:root{--primary-gradient-start: #7c3aed;--primary-gradient-end: #9333ea;--primary-color: #8b5cf6;--primary-dark: #7c3aed;--accent-color: #a855f7;--sidebar-bg: #faf5ff;--sidebar-border: #e9d5ff;--card-bg: #ffffff;--text-primary: #1e1b4b;--text-secondary: #4c1d95;--text-muted: #6b21a8;--text-light: #a78bfa;--border-color: #e9d5ff;--hover-bg: #f3e8ff;--bg-pattern: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);--card-shadow: 0 4px 20px -2px rgba(139, 92, 246, .12), 0 2px 8px -2px rgba(139, 92, 246, .08);--editor-bg: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, .04) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(168, 85, 247, .04) 0%, transparent 50%), #ffffff;--success-color: #10b981;--warning-color: #f59e0b;--error-color: #ef4444}[data-theme=ocean]{--primary-gradient-start: #0284c7;--primary-gradient-end: #0369a1;--primary-color: #0ea5e9;--primary-dark: #0284c7;--accent-color: #38bdf8;--sidebar-bg: #f0f9ff;--sidebar-border: #bae6fd;--card-bg: #ffffff;--text-primary: #082f49;--text-secondary: #0c4a6e;--text-muted: #075985;--text-light: #7dd3fc;--border-color: #bae6fd;--hover-bg: #e0f2fe;--bg-pattern: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);--card-shadow: 0 4px 20px -2px rgba(14, 165, 233, .15), 0 2px 8px -2px rgba(14, 165, 233, .1);--editor-bg: radial-gradient(circle at 10% 20%, rgba(14, 165, 233, .05) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(56, 189, 248, .05) 0%, transparent 50%), #ffffff;--success-color: #10b981;--warning-color: #f59e0b;--error-color: #ef4444}[data-theme=forest]{--primary-gradient-start: #059669;--primary-gradient-end: #047857;--primary-color: #10b981;--primary-dark: #059669;--accent-color: #34d399;--sidebar-bg: #f0fdf4;--sidebar-border: #bbf7d0;--card-bg: #ffffff;--text-primary: #022c22;--text-secondary: #064e3b;--text-muted: #065f46;--text-light: #6ee7b7;--border-color: #bbf7d0;--hover-bg: #dcfce7;--bg-pattern: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);--card-shadow: 0 4px 20px -2px rgba(16, 185, 129, .15), 0 2px 8px -2px rgba(16, 185, 129, .1);--editor-bg: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, .05) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(52, 211, 153, .05) 0%, transparent 50%), #ffffff;--success-color: #10b981;--warning-color: #f59e0b;--error-color: #ef4444}[data-theme=sunset]{--primary-gradient-start: #f97316;--primary-gradient-end: #ea580c;--primary-color: #f97316;--primary-dark: #ea580c;--accent-color: #fb923c;--sidebar-bg: #fff7ed;--sidebar-border: #fed7aa;--card-bg: #ffffff;--text-primary: #7c2d12;--text-secondary: #9a3412;--text-muted: #c2410c;--text-light: #fdba74;--border-color: #fed7aa;--hover-bg: #ffedd5;--bg-pattern: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);--card-shadow: 0 4px 20px -2px rgba(249, 115, 22, .15), 0 2px 8px -2px rgba(249, 115, 22, .1);--editor-bg: radial-gradient(circle at 10% 20%, rgba(249, 115, 22, .05) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(251, 146, 60, .05) 0%, transparent 50%), #ffffff;--success-color: #10b981;--warning-color: #f59e0b;--error-color: #ef4444}[data-theme=rose]{--primary-gradient-start: #f43f5e;--primary-gradient-end: #e11d48;--primary-color: #f43f5e;--primary-dark: #e11d48;--accent-color: #fb7185;--sidebar-bg: #fff1f2;--sidebar-border: #fecdd3;--card-bg: #ffffff;--text-primary: #881337;--text-secondary: #9f1239;--text-muted: #be123c;--text-light: #fda4af;--border-color: #fecdd3;--hover-bg: #ffe4e6;--bg-pattern: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);--card-shadow: 0 4px 20px -2px rgba(244, 63, 94, .15), 0 2px 8px -2px rgba(244, 63, 94, .1);--editor-bg: radial-gradient(circle at 10% 20%, rgba(244, 63, 94, .05) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(251, 113, 133, .05) 0%, transparent 50%), #ffffff;--success-color: #10b981;--warning-color: #f59e0b;--error-color: #ef4444}[data-theme=dark]{--primary-gradient-start: #818cf8;--primary-gradient-end: #6366f1;--primary-color: #818cf8;--primary-dark: #6366f1;--accent-color: #a78bfa;--sidebar-bg: #1e1e2e;--sidebar-border: #313244;--card-bg: #181825;--text-primary: #cdd6f4;--text-secondary: #bac2de;--text-muted: #a6adc8;--text-light: #9399b2;--border-color: #313244;--hover-bg: #313244;--bg-pattern: linear-gradient(135deg, #11111b 0%, #181825 100%);--card-shadow: 0 4px 20px -2px rgba(129, 140, 248, .25), 0 2px 8px -2px rgba(129, 140, 248, .15);--editor-bg: radial-gradient(circle at 10% 20%, rgba(129, 140, 248, .06) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(167, 139, 250, .06) 0%, transparent 50%), #181825;--success-color: #a6e3a1;--warning-color: #f9e2af;--error-color: #f38ba8}[data-theme=monochrome]{--primary-gradient-start: #52525b;--primary-gradient-end: #3f3f46;--primary-color: #52525b;--primary-dark: #3f3f46;--accent-color: #71717a;--sidebar-bg: #fafafa;--sidebar-border: #e4e4e7;--card-bg: #ffffff;--text-primary: #18181b;--text-secondary: #3f3f46;--text-muted: #71717a;--text-light: #a1a1aa;--border-color: #e4e4e7;--hover-bg: #f4f4f5;--bg-pattern: linear-gradient(135deg, #fafafa 0%, #f4f4f5 100%);--card-shadow: 0 4px 20px -2px rgba(63, 63, 70, .12), 0 2px 8px -2px rgba(63, 63, 70, .08);--editor-bg: repeating-linear-gradient( 0deg, transparent, transparent 40px, rgba(0, 0, 0, .015) 40px, rgba(0, 0, 0, .015) 41px ), #ffffff;--success-color: #10b981;--warning-color: #f59e0b;--error-color: #ef4444}[data-theme=lavender]{--primary-gradient-start: #a78bfa;--primary-gradient-end: #8b5cf6;--primary-color: #a78bfa;--primary-dark: #8b5cf6;--accent-color: #c4b5fd;--sidebar-bg: #faf5ff;--sidebar-border: #e9d5ff;--card-bg: #ffffff;--text-primary: #581c87;--text-secondary: #6b21a8;--text-muted: #7e22ce;--text-light: #d8b4fe;--border-color: #e9d5ff;--hover-bg: #f3e8ff;--bg-pattern: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);--card-shadow: 0 4px 20px -2px rgba(167, 139, 250, .15), 0 2px 8px -2px rgba(167, 139, 250, .1);--editor-bg: radial-gradient(circle at 10% 20%, rgba(167, 139, 250, .05) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(196, 181, 253, .05) 0%, transparent 50%), #ffffff;--success-color: #10b981;--warning-color: #f59e0b;--error-color: #ef4444}[data-theme=nord]{--primary-gradient-start: #88c0d0;--primary-gradient-end: #5e81ac;--primary-color: #88c0d0;--primary-dark: #5e81ac;--accent-color: #81a1c1;--sidebar-bg: #eceff4;--sidebar-border: #d8dee9;--card-bg: #ffffff;--text-primary: #2e3440;--text-secondary: #3b4252;--text-muted: #4c566a;--text-light: #88c0d0;--border-color: #d8dee9;--hover-bg: #e5e9f0;--bg-pattern: linear-gradient(135deg, #eceff4 0%, #e5e9f0 100%);--card-shadow: 0 4px 20px -2px rgba(136, 192, 208, .15), 0 2px 8px -2px rgba(136, 192, 208, .1);--editor-bg: radial-gradient(circle at 10% 20%, rgba(136, 192, 208, .04) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(94, 129, 172, .04) 0%, transparent 50%), #ffffff;--success-color: #a3be8c;--warning-color: #ebcb8b;--error-color: #bf616a}[data-theme=nord-dark]{--primary-gradient-start: #88c0d0;--primary-gradient-end: #5e81ac;--primary-color: #88c0d0;--primary-dark: #5e81ac;--accent-color: #81a1c1;--sidebar-bg: #2e3440;--sidebar-border: #3b4252;--card-bg: #2e3440;--text-primary: #eceff4;--text-secondary: #e5e9f0;--text-muted: #d8dee9;--text-light: #88c0d0;--border-color: #3b4252;--hover-bg: #3b4252;--bg-pattern: linear-gradient(135deg, #2e3440 0%, #3b4252 100%);--card-shadow: 0 4px 20px -2px rgba(136, 192, 208, .2), 0 2px 8px -2px rgba(136, 192, 208, .1);--editor-bg: radial-gradient(circle at 10% 20%, rgba(136, 192, 208, .06) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(94, 129, 172, .06) 0%, transparent 50%), #2e3440;--success-color: #a3be8c;--warning-color: #ebcb8b;--error-color: #bf616a}[data-theme=dracula]{--primary-gradient-start: #bd93f9;--primary-gradient-end: #ff79c6;--primary-color: #bd93f9;--primary-dark: #ff79c6;--accent-color: #8be9fd;--sidebar-bg: #282a36;--sidebar-border: #44475a;--card-bg: #282a36;--text-primary: #f8f8f2;--text-secondary: #e6e6e6;--text-muted: #b0b0b0;--text-light: #6272a4;--border-color: #44475a;--hover-bg: #44475a;--bg-pattern: linear-gradient(135deg, #282a36 0%, #21222c 100%);--card-shadow: 0 4px 20px -2px rgba(189, 147, 249, .25), 0 2px 8px -2px rgba(189, 147, 249, .15);--editor-bg: radial-gradient(circle at 10% 20%, rgba(189, 147, 249, .07) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(255, 121, 198, .07) 0%, transparent 50%), #282a36;--success-color: #50fa7b;--warning-color: #f1fa8c;--error-color: #ff5555}[data-theme=solarized-light]{--primary-gradient-start: #268bd2;--primary-gradient-end: #2aa198;--primary-color: #268bd2;--primary-dark: #2aa198;--accent-color: #6c71c4;--sidebar-bg: #fdf6e3;--sidebar-border: #eee8d5;--card-bg: #ffffff;--text-primary: #002b36;--text-secondary: #073642;--text-muted: #586e75;--text-light: #93a1a1;--border-color: #eee8d5;--hover-bg: #eee8d5;--bg-pattern: linear-gradient(135deg, #fdf6e3 0%, #eee8d5 100%);--card-shadow: 0 4px 20px -2px rgba(38, 139, 210, .15), 0 2px 8px -2px rgba(38, 139, 210, .1);--editor-bg: radial-gradient(circle at 10% 20%, rgba(38, 139, 210, .03) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(42, 161, 152, .03) 0%, transparent 50%), #ffffff;--success-color: #859900;--warning-color: #b58900;--error-color: #dc322f}[data-theme=solarized-dark]{--primary-gradient-start: #268bd2;--primary-gradient-end: #2aa198;--primary-color: #268bd2;--primary-dark: #2aa198;--accent-color: #6c71c4;--sidebar-bg: #002b36;--sidebar-border: #073642;--card-bg: #002b36;--text-primary: #fdf6e3;--text-secondary: #eee8d5;--text-muted: #93a1a1;--text-light: #586e75;--border-color: #073642;--hover-bg: #073642;--bg-pattern: linear-gradient(135deg, #002b36 0%, #073642 100%);--card-shadow: 0 4px 20px -2px rgba(38, 139, 210, .2), 0 2px 8px -2px rgba(38, 139, 210, .1);--editor-bg: radial-gradient(circle at 10% 20%, rgba(38, 139, 210, .07) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(42, 161, 152, .07) 0%, transparent 50%), #002b36;--success-color: #859900;--warning-color: #b58900;--error-color: #dc322f}[data-theme=gruvbox-light]{--primary-gradient-start: #458588;--primary-gradient-end: #689d6a;--primary-color: #458588;--primary-dark: #427b58;--accent-color: #689d6a;--sidebar-bg: #fbf1c7;--sidebar-border: #ebdbb2;--card-bg: #ffffff;--text-primary: #3c3836;--text-secondary: #504945;--text-muted: #665c54;--text-light: #7c6f64;--border-color: #ebdbb2;--hover-bg: #ebdbb2;--bg-pattern: linear-gradient(135deg, #fbf1c7 0%, #f9f5d7 100%);--card-shadow: 0 4px 20px -2px rgba(69, 133, 136, .15), 0 2px 8px -2px rgba(69, 133, 136, .1);--editor-bg: radial-gradient(circle at 10% 20%, rgba(69, 133, 136, .04) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(104, 157, 106, .04) 0%, transparent 50%), #ffffff;--success-color: #98971a;--warning-color: #d79921;--error-color: #cc241d}[data-theme=gruvbox-dark]{--primary-gradient-start: #83a598;--primary-gradient-end: #8ec07c;--primary-color: #83a598;--primary-dark: #689d6a;--accent-color: #8ec07c;--sidebar-bg: #282828;--sidebar-border: #3c3836;--card-bg: #1d2021;--text-primary: #ebdbb2;--text-secondary: #d5c4a1;--text-muted: #bdae93;--text-light: #a89984;--border-color: #3c3836;--hover-bg: #3c3836;--bg-pattern: linear-gradient(135deg, #1d2021 0%, #282828 100%);--card-shadow: 0 4px 20px -2px rgba(131, 165, 152, .2), 0 2px 8px -2px rgba(131, 165, 152, .1);--editor-bg: radial-gradient(circle at 10% 20%, rgba(131, 165, 152, .07) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(142, 192, 124, .07) 0%, transparent 50%), #1d2021;--success-color: #b8bb26;--warning-color: #fabd2f;--error-color: #fb4934}[data-theme=catppuccin]{--primary-gradient-start: #89b4fa;--primary-gradient-end: #b4befe;--primary-color: #89b4fa;--primary-dark: #b4befe;--accent-color: #cba6f7;--sidebar-bg: #1e1e2e;--sidebar-border: #313244;--card-bg: #181825;--text-primary: #cdd6f4;--text-secondary: #bac2de;--text-muted: #a6adc8;--text-light: #9399b2;--border-color: #313244;--hover-bg: #313244;--bg-pattern: linear-gradient(135deg, #11111b 0%, #181825 100%);--card-shadow: 0 4px 20px -2px rgba(137, 180, 250, .25), 0 2px 8px -2px rgba(137, 180, 250, .15);--editor-bg: radial-gradient(circle at 10% 20%, rgba(137, 180, 250, .06) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(203, 166, 247, .06) 0%, transparent 50%), #181825;--success-color: #a6e3a1;--warning-color: #f9e2af;--error-color: #f38ba8}[data-theme=tokyo-night]{--primary-gradient-start: #7aa2f7;--primary-gradient-end: #bb9af7;--primary-color: #7aa2f7;--primary-dark: #3d59a1;--accent-color: #bb9af7;--sidebar-bg: #1a1b26;--sidebar-border: #24283b;--card-bg: #1a1b26;--text-primary: #c0caf5;--text-secondary: #a9b1d6;--text-muted: #9aa5ce;--text-light: #565f89;--border-color: #24283b;--hover-bg: #24283b;--bg-pattern: linear-gradient(135deg, #16161e 0%, #1a1b26 100%);--card-shadow: 0 4px 20px -2px rgba(122, 162, 247, .25), 0 2px 8px -2px rgba(122, 162, 247, .15);--editor-bg: radial-gradient(circle at 10% 20%, rgba(122, 162, 247, .06) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(187, 154, 247, .06) 0%, transparent 50%), #1a1b26;--success-color: #9ece6a;--warning-color: #e0af68;--error-color: #f7768e}[data-theme=github-light]{--primary-gradient-start: #0969da;--primary-gradient-end: #0550ae;--primary-color: #0969da;--primary-dark: #0550ae;--accent-color: #218bff;--sidebar-bg: #f6f8fa;--sidebar-border: #d0d7de;--card-bg: #ffffff;--text-primary: #24292f;--text-secondary: #57606a;--text-muted: #6e7781;--text-light: #8c959f;--border-color: #d0d7de;--hover-bg: #f3f4f6;--bg-pattern: linear-gradient(135deg, #ffffff 0%, #f6f8fa 100%);--card-shadow: 0 4px 20px -2px rgba(9, 105, 218, .12), 0 2px 8px -2px rgba(9, 105, 218, .08);--editor-bg: #ffffff;--success-color: #1a7f37;--warning-color: #9a6700;--error-color: #cf222e}[data-theme=github-dark]{--primary-gradient-start: #58a6ff;--primary-gradient-end: #1f6feb;--primary-color: #58a6ff;--primary-dark: #1f6feb;--accent-color: #79c0ff;--sidebar-bg: #0d1117;--sidebar-border: #21262d;--card-bg: #0d1117;--text-primary: #c9d1d9;--text-secondary: #b1bac4;--text-muted: #8b949e;--text-light: #6e7681;--border-color: #21262d;--hover-bg: #161b22;--bg-pattern: linear-gradient(135deg, #0d1117 0%, #010409 100%);--card-shadow: 0 4px 20px -2px rgba(88, 166, 255, .2), 0 2px 8px -2px rgba(88, 166, 255, .12);--editor-bg: radial-gradient(circle at 10% 20%, rgba(88, 166, 255, .05) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(121, 192, 255, .05) 0%, transparent 50%), #0d1117;--success-color: #3fb950;--warning-color: #d29922;--error-color: #f85149}*{margin:0;padding:0;box-sizing:border-box}[data-lucide]{width:18px;height:18px;stroke-width:2;vertical-align:middle}button [data-lucide]{display:inline-block;margin-right:4px}h2 [data-lucide],h3 [data-lucide]{width:20px;height:20px;margin-right:8px}.btn-icon [data-lucide]{margin:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background:var(--sidebar-bg);color:var(--text-primary)}.app-container{display:flex;height:100vh;overflow:hidden}.auth-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000c;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center;z-index:10000;animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.auth-modal{background:var(--card-bg);border-radius:16px;box-shadow:0 20px 60px #0006;width:90%;max-width:450px;padding:2.5rem;animation:slideUp .4s ease}@keyframes slideUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.auth-header{text-align:center;margin-bottom:2rem}.auth-header i{display:inline-block;width:48px;height:48px;padding:12px;background:var(--primary-gradient-start);border-radius:12px;margin-bottom:1rem}.auth-header i [data-lucide]{width:24px;height:24px;color:#fff}.auth-header h2{font-size:1.75rem;margin-bottom:.5rem;color:var(--text-primary)}.auth-header p{color:var(--text-secondary);font-size:.95rem}.auth-tabs{display:flex;gap:.5rem;margin-bottom:1.5rem;border-bottom:2px solid var(--border-color)}.auth-tab{flex:1;padding:.75rem 1rem;border:none;background:none;color:var(--text-secondary);font-size:1rem;font-weight:500;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-2px;transition:all .2s}.auth-tab:hover{color:var(--text-primary)}.auth-tab.active{color:var(--primary-gradient-start);border-bottom-color:var(--primary-gradient-start)}.auth-form{width:100%}.form-group{margin-bottom:1.25rem}.form-group label{display:flex;align-items:center;gap:.5rem;font-size:.9rem;font-weight:500;margin-bottom:.5rem;color:var(--text-primary)}.form-group label i [data-lucide]{width:16px;height:16px}.form-group input{width:100%;padding:.75rem 1rem;border:2px solid var(--border-color);border-radius:8px;background:var(--sidebar-bg);color:var(--text-primary);font-size:1rem;transition:all .2s}.form-group input:focus{outline:none;border-color:var(--primary-gradient-start);background:var(--card-bg)}.password-input{position:relative}.password-input input{padding-right:3rem}.toggle-password{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:.5rem;border-radius:6px;transition:all .2s}.toggle-password:hover{background:var(--sidebar-bg);color:var(--text-primary)}.toggle-password [data-lucide]{width:18px;height:18px}.auth-error{padding:.75rem 1rem;background:#ef44441a;border:1px solid rgba(239,68,68,.3);border-radius:8px;color:#ef4444;font-size:.9rem;margin-bottom:1rem;animation:shake .4s ease}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-10px)}75%{transform:translate(10px)}}.auth-submit{width:100%;padding:.875rem 1.5rem;background:linear-gradient(135deg,var(--primary-gradient-start),var(--primary-gradient-end));color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:.5rem}.auth-submit:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 20px #667eea4d}.auth-submit:active:not(:disabled){transform:translateY(0)}.auth-submit:disabled{opacity:.6;cursor:not-allowed}.auth-spinner{width:20px;height:20px;border:3px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.auth-footer{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--border-color)}.auth-notice{display:flex;gap:.75rem;padding:.75rem;background:#fbbf241a;border-radius:8px}.auth-notice i{flex-shrink:0}.auth-notice i [data-lucide]{width:16px;height:16px;color:#f59e0b}.auth-notice p{font-size:.85rem;line-height:1.4;color:var(--text-secondary);margin:0}.user-info{display:flex;align-items:center;gap:1rem;margin-left:auto}.username{font-size:.9rem;font-weight:500;color:var(--text-primary)}.logout-btn{padding:.5rem;background:var(--sidebar-bg);border:1px solid var(--border-color);border-radius:8px;color:var(--text-secondary);cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center}.logout-btn:hover{background:var(--card-bg);color:#ef4444;border-color:#ef4444}.logout-btn [data-lucide]{width:18px;height:18px}.sidebar{width:320px;background:var(--card-bg);border-right:1px solid var(--border-color);display:flex;flex-direction:column;overflow-y:auto}.right-sidebar{width:300px;background:var(--card-bg);border-left:1px solid var(--border-color);display:flex;flex-direction:column;overflow-y:auto;padding:5rem 1.5rem 1.5rem}.right-sidebar.hidden{display:none}.sidebar-header{padding:1.5rem;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e2e8f0}.sidebar-header h2{font-size:1.5rem;font-weight:600}.btn-primary{background:linear-gradient(135deg,var(--primary-gradient-start) 0%,var(--primary-gradient-end) 100%);color:#fff;border:none;border-radius:8px;padding:.5rem 1rem;font-size:1.25rem;cursor:pointer;transition:transform .2s}.btn-primary:hover{transform:scale(1.05)}.btn-secondary{background:var(--card-bg);color:var(--text-secondary);border:2px solid var(--border-color);border-radius:8px;padding:.625rem 1.25rem;cursor:pointer;transition:all .2s;font-weight:600;font-size:.9rem;box-shadow:0 2px 4px #0000000d}.btn-secondary:hover{background:linear-gradient(135deg,var(--primary-gradient-start) 0%,var(--primary-gradient-end) 100%);color:#fff;border-color:transparent;transform:translateY(-2px);box-shadow:0 4px 12px #667eea4d}.btn-secondary:active{transform:translateY(0);box-shadow:0 2px 4px #667eea4d}.btn-icon{background:none;border:none;font-size:1.25rem;cursor:pointer;padding:.25rem .5rem;color:#4a5568;transition:color .2s}.btn-icon:hover{color:#667eea}#sync-btn.syncing svg{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.calendar-section{padding:0}.calendar-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.calendar-header h3{font-size:.9rem;font-weight:600}.clear-date-filter{display:flex;align-items:center;justify-content:center;gap:.25rem;width:100%;padding:.5rem;margin-bottom:.75rem;background:var(--primary-color);color:#fff;border:none;border-radius:6px;font-size:.75rem;font-weight:500;cursor:pointer;transition:all .2s}.clear-date-filter:hover{background:var(--primary-hover);transform:translateY(-1px)}.clear-date-filter [data-lucide]{width:14px;height:14px}.calendar-days{display:grid;grid-template-columns:repeat(7,1fr);gap:.25rem;text-align:center;font-size:.7rem;color:#718096;margin-bottom:.5rem;font-weight:600}.calendar-dates{display:grid;grid-template-columns:repeat(7,1fr);gap:.25rem}.calendar-date{aspect-ratio:1;display:flex;align-items:center;justify-content:center;border-radius:6px;font-size:.85rem;cursor:pointer;position:relative;transition:all .2s}.calendar-date:not(.empty):hover{background:#edf2f7}.calendar-date.today{background:#e6fffa;color:#047857;font-weight:600}.calendar-date.selected{background:linear-gradient(135deg,var(--primary-gradient-start) 0%,var(--primary-gradient-end) 100%);color:#fff;font-weight:600}.note-count{position:absolute;top:2px;right:2px;background:var(--primary-gradient-start);color:#fff;font-size:.6rem;width:14px;height:14px;border-radius:50%;display:flex;align-items:center;justify-content:center}.folders-section{padding:1rem;border-bottom:1px solid #e2e8f0}.workspace-selector{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid #e2e8f0}.workspace-dropdown{flex:1;padding:.5rem .75rem;border:1px solid var(--border-color);border-radius:6px;background:var(--sidebar-bg);color:var(--text-primary);font-size:.9rem;cursor:pointer;transition:all .2s}.workspace-dropdown:hover{border-color:var(--primary-color)}.workspace-dropdown:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #667eea1a}.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.section-header h3{font-size:.9rem;font-weight:600;color:#718096;text-transform:uppercase;letter-spacing:.5px}.folder-header-actions{display:flex;gap:.5rem}.folders-list{display:flex;flex-direction:column;gap:.5rem}.folder-item{display:flex;align-items:center;padding:.5rem .75rem;border-radius:8px;cursor:pointer;transition:all .2s;position:relative}.folder-item:hover{background:#f7fafc}.folder-item.active{background:linear-gradient(135deg,#667eea1a,#764ba21a)}.folder-item.drag-over{background:#e6fffa;border:2px dashed #667eea}.folder-item.dragging{opacity:.5}.folder-item.folder-drag-over{background:linear-gradient(135deg,#667eea33,#764ba233);border-left:3px solid #667eea}.folder-color{width:12px;height:12px;border-radius:3px;margin-right:.75rem;flex-shrink:0}.folder-icon{width:20px;height:20px;object-fit:contain;margin-right:.75rem;flex-shrink:0}.folder-icon-emoji{font-size:20px;line-height:1;margin-right:.75rem;flex-shrink:0}.folder-name{flex:1;font-weight:500}.folder-count{color:#718096;font-size:.85rem}.folder-delete{background:none;border:none;color:#e53e3e;font-size:1.5rem;cursor:pointer;opacity:0;transition:opacity .2s;line-height:1;padding:0 4px}.folder-add-sub{background:none;border:none;color:var(--primary-color);font-size:1.2rem;cursor:pointer;opacity:0;transition:opacity .2s;line-height:1;padding:0 4px;font-weight:700}.folder-edit{background:none;border:none;color:var(--text-muted);font-size:.85rem;cursor:pointer;opacity:0;transition:opacity .2s;line-height:1;padding:0 4px}.folder-edit:hover{color:var(--primary-color)}.folder-item:hover .folder-delete,.folder-item:hover .folder-edit,.folder-item:hover .folder-add-sub{opacity:1}.folder-toggle{background:none;border:none;color:#718096;font-size:.7rem;cursor:pointer;padding:0;margin-right:.25rem;width:16px;transition:transform .2s;line-height:1}.folder-toggle.expanded{transform:rotate(0)}.folder-spacer{display:inline-block;width:16px;margin-right:.25rem}.todo-summary{padding:1rem;border-bottom:1px solid var(--border);background:linear-gradient(135deg,#667eea0d,#764ba20d)}.todo-summary-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.todo-summary-header h3{display:flex;align-items:center;gap:.5rem;font-size:.95rem;font-weight:600;color:var(--text-primary)}.todo-summary-header [data-lucide]{width:18px;height:18px;color:var(--primary-color)}.todo-header-actions{display:flex;gap:.25rem;align-items:center}.todo-badges{display:flex;gap:.4rem}.todo-badge{flex:1;display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.75rem .35rem;background:var(--card-bg);border:2px solid var(--border);border-radius:10px;cursor:pointer;transition:all .2s;position:relative;min-width:0}.todo-badge:hover{transform:translateY(-2px);border-color:var(--primary-color);box-shadow:0 4px 12px #667eea33}.todo-badge [data-lucide]{width:18px;height:18px;color:var(--text-muted)}.todo-badge span:not(.todo-badge-label){font-size:1.25rem;font-weight:700;color:var(--text-primary)}.todo-badge-label{font-size:.65rem;font-weight:500;color:var(--text-muted);text-transform:uppercase;letter-spacing:.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.todo-badge[data-filter=today]:hover{border-color:#3b82f6}.todo-badge[data-filter=today]:hover [data-lucide]{color:#3b82f6}.todo-badge[data-filter=pending]:hover{border-color:#f59e0b}.todo-badge[data-filter=pending]:hover [data-lucide]{color:#f59e0b}.todo-badge[data-filter=overdue]:hover{border-color:#ef4444}.todo-badge[data-filter=overdue]:hover [data-lucide]{color:#ef4444}.todo-badge[data-filter=backlog]:hover{border-color:#8b5cf6}.todo-badge[data-filter=backlog]:hover [data-lucide]{color:#8b5cf6}.todo-section{padding:1rem;border-bottom:1px solid #e2e8f0}.todo-filters{display:flex;gap:.5rem;margin-bottom:1rem;flex-wrap:wrap}.todo-filter{flex:1;min-width:60px;background:#f7fafc;border:none;padding:.5rem .75rem;border-radius:6px;cursor:pointer;transition:all .2s;font-size:.8rem;font-weight:500;color:#4a5568}.todo-filter:hover{background:#edf2f7}.todo-filter.active{background:linear-gradient(135deg,var(--primary-gradient-start) 0%,var(--primary-gradient-end) 100%);color:#fff}.todos-list{display:flex;flex-direction:column;gap:.5rem;max-height:300px;overflow-y:auto}.todo-item{padding:.75rem;background:#fff;border-radius:8px;border-left:3px solid #cbd5e0;transition:all .2s;cursor:pointer}.todo-item:hover{transform:translate(2px);box-shadow:0 2px 8px #0000001a}.todo-item.priority-high{border-left-color:#e53e3e}.todo-item.priority-medium{border-left-color:#ed8936}.todo-item.priority-low{border-left-color:#48bb78}.todo-item.completed{opacity:.6;background:#f7fafc}.todo-item.completed .todo-title{text-decoration:line-through}.todo-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.25rem}.todo-checkbox{width:18px;height:18px;cursor:pointer;accent-color:#667eea}.todo-title{flex:1;font-weight:500;font-size:.9rem;color:#2d3748}.todo-priority{font-size:.7rem;padding:.2rem .5rem;border-radius:4px;font-weight:600;text-transform:uppercase}.todo-priority.high{background:#fed7d7;color:#c53030}.todo-priority.medium{background:#feebc8;color:#c05621}.todo-priority.low{background:#c6f6d5;color:#276749}.todo-due-date{font-size:.75rem;color:#718096;display:flex;align-items:center;gap:.25rem}.todo-due-date.overdue{color:#e53e3e;font-weight:600}.todo-actions{display:flex;gap:.5rem;margin-top:.5rem}.todo-action-btn{background:none;border:none;padding:.25rem .5rem;border-radius:4px;cursor:pointer;font-size:.75rem;transition:all .2s;color:#718096}.todo-action-btn:hover{background:#edf2f7;color:#4a5568}.todo-action-btn.delete:hover{background:#fed7d7;color:#c53030}.notes-section{flex:1;overflow-y:auto;padding:1rem}.notes-list{display:flex;flex-direction:column;gap:.5rem}.note-item{padding:1rem;background:#f7fafc;border-radius:8px;cursor:pointer;transition:all .2s;border:2px solid transparent}.note-item:hover{background:#edf2f7}.note-item.active{background:#fff;border-color:#667eea;box-shadow:0 4px 12px #667eea26}.note-item.dragging{opacity:.5}.note-item.archived{opacity:.6;background:#f0f0f0}.note-item.archived:hover{background:#e8e8e8}.note-item.archived .note-item-title{color:var(--text-muted)}.note-item-title{font-weight:600;margin-bottom:.5rem}.note-item-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}.note-folder-icon{width:20px;height:20px;object-fit:contain;border-radius:4px;flex-shrink:0}.note-folder-emoji{font-size:20px;line-height:1;flex-shrink:0}.note-folder-color{width:20px;height:20px;border-radius:4px;flex-shrink:0}.note-item-preview{font-size:.85rem;color:#718096;line-height:1.4;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.note-item-date{font-size:.75rem;color:#a0aec0;margin-top:.5rem}.empty-state{text-align:center;color:#a0aec0;padding:2rem}.main-content{flex:1;display:flex;flex-direction:column;background:#fff}.workspace-landing{flex:1;display:none;flex-direction:column;overflow:hidden;background:var(--bg-pattern);padding:3rem;overflow-y:auto}.landing-header{text-align:center;margin-bottom:3rem}.landing-header h1{font-size:2.5rem;font-weight:700;color:var(--text-primary);margin-bottom:.5rem}.landing-header p{font-size:1.125rem;color:var(--text-muted)}.workspace-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:2rem;max-width:1400px;margin:0 auto;width:100%}.workspace-card{background:var(--card-bg);border:2px solid var(--border-color);border-radius:16px;padding:2.5rem;cursor:pointer;transition:all .3s ease;display:flex;flex-direction:column;align-items:center;gap:1.5rem;box-shadow:var(--card-shadow);min-height:280px}.workspace-card:hover{border-color:var(--primary-color);box-shadow:0 12px 32px #667eea33;transform:translateY(-6px)}.workspace-card.dragging{opacity:.5;cursor:grabbing}.workspace-card.drag-over{border-color:var(--success);background:#48bb780d;transform:scale(1.05);box-shadow:0 12px 32px #48bb784d}.folder-card{cursor:grab}.folder-card:active{cursor:grabbing}.workspace-card-icon{width:80px;height:80px;border-radius:20px;background:linear-gradient(135deg,var(--primary-gradient-start) 0%,var(--primary-gradient-end) 100%);display:flex;align-items:center;justify-content:center;font-size:3rem;box-shadow:0 8px 16px #667eea4d}.workspace-card-icon-emoji{font-size:3rem;line-height:1}.workspace-card-icon-img{width:48px;height:48px;object-fit:contain}.workspace-card-title{font-size:1.5rem;font-weight:600;color:var(--text-primary);text-align:center}.workspace-card-stats{display:flex;gap:2rem;margin-top:auto;padding-top:1rem;border-top:1px solid var(--border-color);width:100%;justify-content:center}.workspace-stat{display:flex;align-items:center;gap:.5rem;color:var(--text-muted);font-size:.9rem}.workspace-stat [data-lucide]{width:16px;height:16px;color:var(--primary-color)}.dashboard-view{flex:1;display:flex;flex-direction:column;overflow:hidden;background:var(--bg-pattern)}.dashboard-header{padding:2rem 2rem 1.5rem;border-bottom:2px solid transparent;background:var(--bg-pattern);box-shadow:0 2px 8px #0000000d;position:relative;display:flex;align-items:center;gap:1rem}.dashboard-header #back-to-workspace{flex-shrink:0}.dashboard-header h2{flex:1}.dashboard-header .dashboard-info{flex-shrink:0;display:flex;align-items:center;gap:1rem}.search-container{position:relative;display:flex;align-items:center;background:var(--sidebar-bg);border:1px solid var(--border);border-radius:8px;padding:.5rem .75rem;gap:.5rem;transition:all .2s;min-width:300px}.search-container:focus-within{border-color:var(--primary-color);box-shadow:0 0 0 3px rgba(var(--primary-rgb),.1)}.search-container [data-lucide=search]{width:18px;height:18px;color:var(--text-muted);flex-shrink:0}.search-input{flex:1;border:none;background:transparent;font-size:.875rem;color:var(--text-color);outline:none;min-width:0}.search-input::placeholder{color:var(--text-muted)}.clear-search{background:none;border:none;padding:.25rem;cursor:pointer;border-radius:4px;display:flex;align-items:center;justify-content:center;color:var(--text-muted);transition:all .2s;flex-shrink:0}.clear-search:hover{background:var(--hover-bg);color:var(--text-color)}.clear-search [data-lucide]{width:16px;height:16px}.status-filter{background:var(--sidebar-bg);border:1px solid var(--border);border-radius:8px;padding:.5rem .75rem;font-size:.875rem;color:var(--text-color);cursor:pointer;transition:all .2s;outline:none;min-width:150px}.status-filter:hover{border-color:var(--primary-color)}.status-filter:focus{border-color:var(--primary-color);box-shadow:0 0 0 3px rgba(var(--primary-rgb),.1)}.dashboard-header:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:linear-gradient(90deg,var(--primary-gradient-start) 0%,var(--primary-gradient-end) 100%);opacity:.6}.dashboard-header h2{font-size:2rem;font-weight:700;color:#2d3748;margin-bottom:.5rem}.dashboard-info{color:#718096;font-size:.95rem}.dashboard-grid{flex:1;padding:2rem;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem;align-content:start}.dashboard-card{background:var(--card-bg);border:2px solid var(--border-color);border-radius:12px;padding:1.5rem;cursor:pointer;transition:all .3s;display:flex;flex-direction:column;gap:1rem;height:220px;box-shadow:var(--card-shadow)}.dashboard-card:hover{border-color:#667eea;box-shadow:0 8px 24px #667eea26;transform:translateY(-4px)}.dashboard-card-thumbnail{width:100%;height:80px;background:linear-gradient(135deg,var(--primary-gradient-start) 0%,var(--primary-gradient-end) 100%);border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:2.5rem;color:#fff;overflow:hidden;position:relative}.dashboard-card-thumbnail.has-image{background:#f7fafc}.dashboard-card-thumbnail img{width:100%;height:100%;object-fit:cover}.dashboard-card-content{flex:1;display:flex;flex-direction:column;gap:.5rem}.dashboard-card-title{font-size:1.1rem;font-weight:600;color:#2d3748;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-card-meta{display:flex;align-items:center;gap:1rem;font-size:.85rem;color:var(--text-muted)}.dashboard-card-meta span{display:flex;align-items:center;gap:.35rem}.dashboard-card-meta [data-lucide]{flex-shrink:0}.dashboard-card-preview{font-size:.9rem;color:#718096;line-height:1.5;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}.dashboard-card-footer{display:flex;align-items:center;justify-content:space-between;font-size:.85rem;color:#a0aec0;padding-top:.5rem;border-top:1px solid #e2e8f0}.dashboard-card-folder{display:flex;align-items:center;gap:.25rem}.dashboard-card-folder .note-folder-icon{width:16px;height:16px;object-fit:contain;vertical-align:middle}.dashboard-card-status{margin-top:.5rem}.status-badge{display:inline-block;padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap}.status-in-progress{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.status-closed{background:linear-gradient(135deg,#48bb78,#38a169);color:#fff}.status-pending{background:linear-gradient(135deg,#f6ad55,#ed8936);color:#fff}.status-blocked{background:linear-gradient(135deg,#fc8181,#f56565);color:#fff}.status-new{background:linear-gradient(135deg,#4299e1,#3182ce);color:#fff}.status-default{background:linear-gradient(135deg,#a0aec0,#718096);color:#fff}.dashboard-empty{grid-column:1 / -1;text-align:center;padding:4rem 2rem;color:#a0aec0}.dashboard-empty-icon{font-size:4rem;margin-bottom:1rem;opacity:.5}.dashboard-empty-text{font-size:1.2rem;font-weight:500}.search-result{cursor:pointer;transition:all .2s}.search-result:hover{transform:translateY(-2px);box-shadow:0 8px 16px #0000001a}.note-card-snippet{font-size:.875rem;color:var(--text-muted);line-height:1.5;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;margin:.5rem 0}.note-card-meta{display:flex;align-items:center;gap:1rem;font-size:.75rem;color:var(--text-muted);margin-top:.5rem}.note-card-meta span{display:flex;align-items:center;gap:.25rem}.note-card-meta [data-lucide]{width:14px;height:14px}.note-card-meta .match-type{margin-left:auto;padding:.125rem .5rem;background:var(--primary-color);color:#fff;border-radius:12px;font-size:.7rem}.todo-dashboard-card{border-left-width:4px;height:220px}.todo-dashboard-card .dashboard-card-content{gap:.5rem}.todo-dashboard-card .dashboard-card-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center}.todo-dashboard-card.priority-high{border-left-color:#f56565}.todo-dashboard-card.priority-medium{border-left-color:#ed8936}.todo-dashboard-card.priority-low{border-left-color:#48bb78}.todo-dashboard-card.completed{opacity:.7}.todo-dashboard-card.completed .dashboard-card-title{text-decoration:line-through}.todo-checkbox-dashboard{width:18px;height:18px;cursor:pointer;accent-color:#667eea;vertical-align:middle}.todo-detail-modal .modal-content{max-width:600px}.todo-detail-header{display:flex;align-items:flex-start;gap:1rem;margin-bottom:1.5rem}.todo-detail-header input[type=checkbox]{width:24px;height:24px;margin-top:4px;cursor:pointer;accent-color:#667eea}.todo-detail-title{flex:1;font-size:1.5rem;font-weight:700;color:#2d3748;line-height:1.4}.todo-detail-title.completed{text-decoration:line-through;opacity:.7}.todo-detail-section{margin-bottom:1.5rem;padding-bottom:1.5rem;border-bottom:1px solid #e2e8f0}.todo-detail-section:last-of-type{border-bottom:none}.todo-detail-label{font-weight:600;color:#4a5568;font-size:.9rem;margin-bottom:.5rem}.todo-detail-value{color:#2d3748;font-size:1rem}.todo-detail-linked-note{background:#f7fafc;border:2px solid #e2e8f0;border-radius:8px;padding:1rem;cursor:pointer;transition:all .2s}.todo-detail-linked-note:hover{border-color:#667eea;background:#edf2f7}.todo-detail-badge{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border-radius:6px;font-weight:600;font-size:.9rem}.editor-view{flex:1;display:flex;flex-direction:column}.editor-view{flex:1;display:flex;flex-direction:column;overflow:hidden;background:var(--editor-bg)}.note-banner-container{position:relative;width:100%;height:250px;overflow:hidden}.note-banner-image{width:100%;height:100%;object-fit:cover}.remove-banner-btn{position:absolute;top:1rem;right:1rem;background:#0009;color:#fff;border:none;border-radius:50%;width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:1.2rem;transition:all .2s;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.remove-banner-btn:hover{background:#000c;transform:scale(1.1)}.editor-header{padding:1rem 1.5rem;border-bottom:2px solid transparent;background:var(--bg-pattern);display:flex;align-items:center;justify-content:space-between;gap:.75rem;box-shadow:0 2px 8px #0000000d;position:relative}.editor-header:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:linear-gradient(90deg,var(--primary-gradient-start) 0%,var(--primary-gradient-end) 100%);opacity:.6}.note-title{flex:1;font-size:1.5rem;font-weight:700;border:none;outline:none;padding:.5rem .75rem;border-radius:8px;transition:all .2s;background:transparent;color:#2d3748}.note-title:focus{background:#fff;box-shadow:0 0 0 3px #667eea1a}.note-icon-btn{font-size:2rem;padding:.4rem;min-width:48px;height:48px;display:flex;align-items:center;justify-content:center}.note-icon-btn img{width:32px;height:32px;object-fit:contain}.note-title::placeholder{color:#a0aec0;font-weight:500}.editor-actions{display:flex;gap:.5rem}.editor-actions button{padding:.4rem .75rem;font-size:.875rem;height:auto;min-height:32px}.toolbar{padding:.75rem 1.5rem;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;gap:.375rem;flex-wrap:nowrap;overflow-x:auto;background:linear-gradient(to bottom,#fff,#f9fafb);box-shadow:0 1px 3px #0000000d}.toolbar-btn{background:#fff;border:1px solid #e5e7eb;border-radius:6px;padding:.5rem .625rem;cursor:pointer;transition:all .25s cubic-bezier(.4,0,.2,1);font-weight:600;font-size:.875rem;color:#374151;box-shadow:0 1px 2px #0000000d;display:inline-flex;align-items:center;justify-content:center;min-width:32px;flex-shrink:0}.toolbar-btn:hover{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-color:#667eea;transform:translateY(-2px);box-shadow:0 4px 12px #667eea4d}.toolbar-btn:active{transform:translateY(0);box-shadow:0 2px 4px #667eea33}.toolbar-separator{width:1px;height:24px;background:linear-gradient(to bottom,transparent,#e5e7eb,transparent);margin:0 .25rem;flex-shrink:0}.editor-content{flex:1;overflow-y:auto;padding:2rem}.tiptap-editor{outline:none;min-height:100%;line-height:var(--editor-line-height, 1.6);font-size:var(--editor-font-size, 1rem)}.tiptap-editor h1{font-size:2rem;font-weight:700;margin:var(--editor-heading-spacing, 1.5rem) 0 1rem;line-height:1.3}.tiptap-editor h2{font-size:1.5rem;font-weight:600;margin:var(--editor-heading-spacing, 1.25rem) 0 .75rem;line-height:1.4}.tiptap-editor h3{font-size:1.25rem;font-weight:600;margin:var(--editor-heading-spacing, 1rem) 0 .5rem;line-height:1.4}.tiptap-editor p{margin:var(--editor-paragraph-spacing, .75rem) 0;line-height:var(--editor-line-height, 1.6)}.tiptap-editor a,.tiptap-editor .editor-link{color:#667eea;text-decoration:underline;cursor:pointer;transition:all .2s}.tiptap-editor a:hover,.tiptap-editor .editor-link:hover{color:#764ba2;text-decoration:none}.tiptap-editor a.file-attachment{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;background:var(--toolbar-bg, #f5f5f5);border:1px solid var(--border-color, #e0e0e0);border-radius:6px;text-decoration:none;color:var(--text-primary, #333);transition:all .2s;margin:4px 0;font-size:14px}.tiptap-editor a.file-attachment:hover{background:var(--hover-bg, #e8e8e8);border-color:#667eea;transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.tiptap-editor ul,.tiptap-editor ol{padding-left:var(--editor-indent-size, 2rem);margin:.75rem 0}.tiptap-editor li{margin:var(--editor-list-spacing, .25rem) 0;line-height:var(--editor-line-height, 1.6)}.tiptap-editor li>ul,.tiptap-editor li>ol{margin:.5rem 0;padding-left:var(--editor-indent-size, 2rem)}.tiptap-editor li p{margin:0}.tiptap-editor ul[data-type=taskList]{list-style:none!important;padding:0!important;margin:.75rem 0!important}.tiptap-editor ul[data-type=taskList] li{display:flex!important;align-items:flex-start!important;gap:.75rem!important;margin:var(--editor-list-spacing, .25rem) 0!important;padding:0!important;list-style:none!important}.tiptap-editor ul[data-type=taskList] ul[data-type=taskList]{margin:.5rem 0!important;padding-left:var(--editor-indent-size, 2rem)!important}.tiptap-editor ul[data-type=taskList] li>label{display:contents!important}.tiptap-editor ul[data-type=taskList] li input[type=checkbox]{margin:.25rem 0 0!important;padding:0!important;cursor:pointer;width:16px!important;height:16px!important;min-width:16px!important;flex-shrink:0!important}.tiptap-editor ul[data-type=taskList] li>div,.tiptap-editor ul[data-type=taskList] li>label>div{flex:1!important;margin:0!important;padding:0!important}.tiptap-editor ul[data-type=taskList] li p{margin:0!important;padding:0!important;display:inline!important}.tiptap-editor ul[data-type=taskList] li *{padding-left:0!important;padding-right:0!important}.tiptap-editor blockquote{border-left:4px solid #667eea;padding:.5rem 0 .5rem 1.5rem;margin:var(--editor-paragraph-spacing, 1rem) 0;color:#718096;font-style:italic;line-height:var(--editor-line-height, 1.6)}.tiptap-editor blockquote p{margin:.5rem 0}.code-block-wrapper{margin:1rem 0;border-radius:8px;overflow:hidden;box-shadow:0 4px 12px #00000026;background:#282c34}.code-block-header{display:flex;justify-content:space-between;align-items:center;padding:.5rem 1rem;background:#21252b;border-bottom:1px solid rgba(255,255,255,.1)}.code-block-language{font-size:.75rem;font-weight:600;text-transform:uppercase;color:#61afef;letter-spacing:.5px}.code-block-copy{display:flex;align-items:center;justify-content:center;gap:.4rem;padding:.4rem .75rem;background:#61afef33;border:1.5px solid rgba(97,175,239,.5);border-radius:6px;color:#61afef;cursor:pointer;transition:all .2s;font-size:.75rem;font-weight:600}.code-block-copy:hover{background:#61afef4d;border-color:#61afef;color:#61afef;transform:translateY(-1px);box-shadow:0 2px 8px #61afef4d}.tiptap-editor pre{background:#282c34;color:#abb2bf;padding:1rem;border-radius:0;overflow-x:auto;margin:0;position:relative;font-family:Consolas,Monaco,Courier New,monospace;font-size:.9rem;line-height:1.5}.tiptap-editor pre code{background:none;padding:0;color:inherit;font-family:inherit}.tiptap-editor pre .hljs-comment,.tiptap-editor pre .hljs-quote{color:#5c6370;font-style:italic}.tiptap-editor pre .hljs-keyword,.tiptap-editor pre .hljs-selector-tag,.tiptap-editor pre .hljs-deletion{color:#c678dd}.tiptap-editor pre .hljs-number,.tiptap-editor pre .hljs-literal,.tiptap-editor pre .hljs-variable,.tiptap-editor pre .hljs-template-variable{color:#d19a66}.tiptap-editor pre .hljs-string,.tiptap-editor pre .hljs-doctag{color:#98c379}.tiptap-editor pre .hljs-title,.tiptap-editor pre .hljs-section,.tiptap-editor pre .hljs-selector-id,.tiptap-editor pre .hljs-function{color:#61afef}.tiptap-editor pre .hljs-built_in,.tiptap-editor pre .hljs-params{color:#e06c75}.tiptap-editor pre .hljs-operator{color:#56b6c2}.tiptap-editor pre .hljs-attribute{color:#d19a66}.tiptap-editor pre .hljs-emphasis{font-style:italic}.tiptap-editor pre .hljs-strong{font-weight:700}.tiptap-editor code{background:#edf2f7;padding:.2rem .4rem;border-radius:4px;font-family:Consolas,Monaco,Courier New,monospace;font-size:.9em;color:#e53e3e;font-weight:500}.code-block-ui{position:absolute;top:0;left:0;right:0;height:50px;pointer-events:none;z-index:50;display:block!important}.code-language-label{position:absolute;top:.75rem;left:1rem;background:#61afef40;color:#61afef;padding:.3rem .85rem;border-radius:6px;font-size:.7rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;font-family:Segoe UI,sans-serif;border:1px solid rgba(97,175,239,.3);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);pointer-events:none;-webkit-user-select:none;user-select:none}.code-copy-button{position:absolute;top:.75rem;right:1rem;background:#fff;color:#1e3a5f;border:2px solid #4a9eff;padding:.5rem 1rem;border-radius:6px;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .2s;font-family:Segoe UI,sans-serif;pointer-events:auto!important;-webkit-user-select:none;user-select:none;z-index:100;display:block!important;visibility:visible!important}.code-copy-button:hover{background:#4a9eff;color:#fff;transform:translateY(-2px);box-shadow:0 4px 12px #4a9eff66}.code-copy-button:active{transform:translateY(0)}.code-copy-button.copied{background:#48bb78;border-color:#48bb78;color:#fff}.tiptap-editor table{border-collapse:collapse;margin:1rem 0;table-layout:fixed;width:100%}.tiptap-editor table td,.tiptap-editor table th{border:1px solid #e2e8f0;padding:.25rem .5rem;text-align:left;position:relative;vertical-align:top;min-width:50px;height:auto;line-height:1.4}.tiptap-editor table th{background:#f7fafc;font-weight:600}.tiptap-editor .column-resize-handle{position:absolute;right:-2px;top:0;bottom:0;width:4px;background-color:var(--primary-color);cursor:col-resize;z-index:10;opacity:0;transition:opacity .2s}.tiptap-editor table td:hover .column-resize-handle,.tiptap-editor table th:hover .column-resize-handle{opacity:1}.tiptap-editor .selectedCell{background-color:#667eea1a}.tiptap-editor .tableWrapper{overflow-x:auto;margin:1rem 0}.tiptap-editor hr{border:none;border-top:2px solid #e2e8f0;margin:2rem 0}.tiptap-editor img{max-width:100%;height:auto;border-radius:8px;margin:1rem 0;display:block;box-shadow:0 2px 8px #0000001a;cursor:pointer;transition:box-shadow .2s}.tiptap-editor img:hover{box-shadow:0 4px 12px #00000026}.tiptap-editor img.ProseMirror-selectednode{outline:3px solid #667eea;outline-offset:2px;cursor:nwse-resize}.image-wrapper{position:relative;display:inline-block;max-width:100%}.image-wrapper img{width:100%;height:auto}.image-resize-handle{position:absolute;bottom:0;right:0;width:20px;height:20px;background:#667eea;border:2px solid white;border-radius:50%;cursor:nwse-resize;opacity:0;transition:opacity .2s}.image-wrapper:hover .image-resize-handle,.image-wrapper.resizing .image-resize-handle{opacity:1}.tiptap-editor details{margin:1rem 0;padding:1rem;background:linear-gradient(135deg,#f7fafc,#edf2f7);border-left:4px solid #667eea;border-radius:8px;box-shadow:0 2px 4px #0000000d}.tiptap-editor details summary{cursor:pointer;font-weight:600;color:#2d3748;padding:.5rem;margin:-.5rem -.5rem .5rem;border-radius:4px;transition:all .2s;-webkit-user-select:none;user-select:none;list-style:none;display:flex;align-items:center}.tiptap-editor details summary::-webkit-details-marker{display:none}.tiptap-editor details summary:before{content:"▶";display:inline-block;margin-right:.5rem;transition:transform .2s;color:#667eea;font-size:.9em}.tiptap-editor details[open] summary:before{transform:rotate(90deg)}.tiptap-editor details summary:hover{background:#667eea1a;color:#667eea}.tiptap-editor details .details-content{margin-top:1rem;padding-top:1rem;border-top:1px solid rgba(102,126,234,.2)}.tiptap-editor details[open]{box-shadow:0 4px 12px #667eea26}.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}.modal-content{background:#fff;border-radius:12px;padding:2rem;max-width:400px;width:90%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0000004d;display:flex;flex-direction:column}.modal-content h3{margin-bottom:1.5rem;font-size:1.3rem}.folder-selector-list{display:flex;flex-direction:column;gap:.5rem;max-height:300px;overflow-y:auto;margin-bottom:1.5rem}.folder-selector-item{display:flex;align-items:center;gap:.75rem;padding:.75rem;background:#f7fafc;border-radius:8px;cursor:pointer;transition:all .2s}.folder-selector-item:hover{background:#edf2f7;transform:translate(4px)}.template-selector{max-width:600px}.template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:1rem;margin-bottom:1.5rem;max-height:400px;overflow-y:auto}.template-item-wrapper{position:relative}.template-item{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:1.25rem 1rem;background:var(--sidebar-bg);border-radius:12px;cursor:pointer;transition:all .2s;text-align:center}.template-item:hover{background:linear-gradient(135deg,#667eea1a,#764ba21a);transform:translateY(-2px);box-shadow:0 4px 12px #667eea33}.template-actions{position:absolute;top:4px;right:4px;display:flex;gap:4px;opacity:0;transition:opacity .2s}.template-item-wrapper:hover .template-actions{opacity:1}.template-edit-btn,.template-delete-btn{background:var(--card-bg);border:1px solid var(--border-color);border-radius:6px;padding:4px 6px;font-size:.85rem;cursor:pointer;transition:all .2s;box-shadow:0 2px 4px #0000001a}.template-edit-btn:hover{background:var(--primary-color);color:#fff;border-color:var(--primary-color)}.template-delete-btn:hover{background:#f56565;color:#fff;border-color:#f56565}.template-icon{font-size:2rem;line-height:1}.template-icon-img{width:48px;height:48px;object-fit:contain;border-radius:6px}.template-name{font-size:.9rem;font-weight:500;color:var(--text-primary)}.settings-modal .modal-content{max-width:500px}.settings-modal .modal-content{max-width:700px}.settings-tabs{display:flex;gap:.5rem;margin-bottom:1.5rem;border-bottom:2px solid var(--border-color)}.settings-tab{flex:1;display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 1rem;background:transparent;border:none;border-bottom:3px solid transparent;cursor:pointer;transition:all .2s;color:var(--text-secondary);font-weight:500;font-size:.95rem;margin-bottom:-2px}.settings-tab:hover{color:var(--primary-color);background:var(--hover-bg)}.settings-tab.active{color:var(--primary-color);border-bottom-color:var(--primary-color)}.tab-icon{font-size:1.2rem}.settings-content{position:relative;min-height:300px}.settings-panel{display:none}.settings-panel.active{display:block;animation:fadeIn .3s ease-in}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.settings-section{margin-bottom:2rem}.settings-section:last-child{margin-bottom:0}.settings-section-title{font-size:1.1rem;font-weight:600;color:var(--text-primary);margin-bottom:.5rem}.settings-section-description{font-size:.9rem;color:var(--text-muted);margin-bottom:1rem;line-height:1.5}.editor-preview{background:var(--card-bg);border:2px solid var(--border-color);border-radius:12px;padding:1.5rem;margin-bottom:1.5rem;box-shadow:0 2px 8px #0000000d;line-height:var(--editor-line-height, 1.6);font-size:var(--editor-font-size, 1rem)}.editor-preview h3{font-size:1.25rem;font-weight:600;margin:var(--editor-heading-spacing, 1rem) 0 .5rem;color:var(--text-primary)}.editor-preview h3:first-child{margin-top:0}.editor-preview p{margin:var(--editor-paragraph-spacing, .75rem) 0;line-height:var(--editor-line-height, 1.6);color:var(--text-secondary)}.editor-preview ul{padding-left:var(--editor-indent-size, 2rem);margin:.75rem 0}.editor-preview li{margin:var(--editor-list-spacing, .25rem) 0;line-height:var(--editor-line-height, 1.6);color:var(--text-secondary)}.editor-preview ul ul{margin:.5rem 0;padding-left:var(--editor-indent-size, 2rem)}.editor-preview blockquote{border-left:4px solid var(--primary-color);padding:.5rem 0 .5rem 1.5rem;margin:var(--editor-paragraph-spacing, 1rem) 0;color:var(--text-muted);font-style:italic;line-height:var(--editor-line-height, 1.6)}.form-label{display:block;font-weight:500;color:var(--text-secondary);margin-bottom:.5rem;font-size:.9rem}.theme-category{margin-bottom:2rem}.theme-category:last-child{margin-bottom:0}.theme-category-title{font-size:.875rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:1rem}.theme-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:1rem;margin-bottom:1rem}.theme-option{border:2px solid var(--border-color);border-radius:12px;padding:.875rem;cursor:pointer;transition:all .2s ease;text-align:center;background:var(--card-bg)}.theme-option:hover{transform:translateY(-2px);box-shadow:0 8px 16px -4px #00000026;border-color:var(--primary-color)}.theme-option.active{border-color:var(--primary-color);border-width:3px;box-shadow:0 0 0 3px #8b5cf626;background:var(--hover-bg)}.theme-preview{height:70px;border-radius:8px;margin-bottom:.75rem;display:flex;overflow:hidden;box-shadow:0 2px 8px #0000001a}.theme-preview-color{flex:1;transition:transform .2s ease}.theme-option:hover .theme-preview-color{transform:scale(1.05)}.theme-name{font-weight:600;color:var(--text-primary);font-size:.875rem;line-height:1.3}.template-editor .modal-content{max-width:600px}.icon-upload-section{display:flex;flex-direction:column;gap:.75rem}.icon-upload-btn{background:var(--sidebar-bg);border:2px dashed var(--border-color);border-radius:8px;padding:.75rem;cursor:pointer;transition:all .2s;color:var(--text-secondary);font-size:.9rem;text-align:center}.icon-upload-btn:hover{border-color:var(--primary-color);background:var(--card-bg);color:var(--primary-color)}.icon-preview-container{display:flex;align-items:center;gap:1rem;padding:.75rem;background:var(--sidebar-bg);border-radius:8px}.icon-preview{width:48px;height:48px;object-fit:contain;border-radius:6px;background:#fff}.icon-remove-btn{background:#f56565;color:#fff;border:none;border-radius:6px;padding:.5rem 1rem;cursor:pointer;transition:all .2s;font-size:.85rem}.icon-remove-btn:hover{background:#e53e3e;transform:scale(1.05)}.template-content-input{width:100%;min-height:200px;padding:.75rem;border:2px solid var(--border-color);border-radius:8px;font-family:Segoe UI,system-ui,sans-serif;font-size:.95rem;color:var(--text-primary);background:var(--card-bg);resize:vertical;transition:border-color .2s}.template-content-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #667eea1a}.icon-picker-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:.5rem;margin-top:.75rem}.icon-picker-item{font-size:1.75rem;padding:.75rem;background:var(--sidebar-bg);border:2px solid var(--border-color);border-radius:8px;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center}.icon-picker-item:hover{background:var(--card-bg);border-color:var(--primary-color);transform:scale(1.1)}.icon-picker-item.selected{background:var(--primary-color);border-color:var(--primary-color);color:#fff;transform:scale(1.1);box-shadow:0 0 0 3px #667eea33}.note-card-custom-icon{width:80%;height:80%;object-fit:contain}.unsplash-results{max-height:400px;overflow-y:auto;margin:1rem 0}.unsplash-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}.unsplash-image{height:120px;background-size:cover;background-position:center;border-radius:8px;cursor:pointer;border:3px solid transparent;transition:all .2s}.unsplash-image:hover{transform:scale(1.05);box-shadow:0 4px 12px #0003}.unsplash-image.selected{border-color:var(--primary-color);box-shadow:0 0 0 3px #667eea33}.banner-preview-container{margin-top:.75rem}.banner-preview{width:100%;max-height:200px;object-fit:cover;border-radius:8px}.todo-modal{max-width:500px}.modal-form{display:flex;flex-direction:column;gap:1.25rem;margin-bottom:1.5rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{font-weight:500;color:#2d3748;font-size:.9rem}.form-input{padding:.75rem;border:2px solid #e2e8f0;border-radius:8px;font-size:.95rem;transition:border-color .2s}.form-input:focus{outline:none;border-color:#667eea}.form-group input[type=checkbox]{width:auto;margin-right:.5rem}.range-slider{width:100%;height:6px;border-radius:3px;background:var(--border-color);outline:none;-webkit-appearance:none}.range-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:var(--primary-color);cursor:pointer;transition:all .2s}.range-slider::-webkit-slider-thumb:hover{transform:scale(1.2);box-shadow:0 0 0 4px rgba(var(--primary-rgb),.2)}.range-slider::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:var(--primary-color);cursor:pointer;border:none;transition:all .2s}.range-slider::-moz-range-thumb:hover{transform:scale(1.2);box-shadow:0 0 0 4px rgba(var(--primary-rgb),.2)}.range-labels{display:flex;justify-content:space-between;margin-top:.5rem;font-size:.75rem;color:var(--text-muted)}.form-label{display:flex;justify-content:space-between;align-items:center}.form-label-hint{font-size:.875rem;color:var(--primary-color);font-weight:600}.modal-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--border-color);flex-shrink:0}.modal-form{flex:1;overflow-y:auto;min-height:0;margin-bottom:0}.language-selector{margin-bottom:1.5rem}.language-selector label{display:block;margin-bottom:.5rem;font-weight:600;color:#2d3748}.language-select{width:100%;padding:.75rem;border:2px solid #e2e8f0;border-radius:8px;font-size:1rem;background:#fff;cursor:pointer;transition:all .2s}.language-select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.language-select:hover{border-color:#cbd5e0}.folder-input{width:100%;padding:.75rem;border:2px solid #e2e8f0;border-radius:8px;font-size:1rem;margin-bottom:1.5rem;transition:border-color .2s}.folder-input:focus{outline:none;border-color:#667eea}.icon-picker{margin-bottom:1.5rem}.icon-picker label{display:block;margin-bottom:.75rem;font-weight:500;color:#2d3748}.icon-options{display:flex;gap:1rem;align-items:center}.icon-upload-btn{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:1rem 1.5rem;background:#f7fafc;border:2px dashed #cbd5e0;border-radius:8px;cursor:pointer;transition:all .2s;font-size:.85rem;color:#4a5568}.icon-upload-btn:hover{background:#edf2f7;border-color:#667eea;color:#667eea}.upload-icon{font-size:2rem}.icon-preview-container{display:flex;align-items:center;gap:.75rem;padding:.5rem;background:#f7fafc;border-radius:8px}.icon-preview-img{width:48px;height:48px;object-fit:contain;border-radius:6px}.icon-remove-btn{background:#e53e3e;color:#fff;border:none;width:24px;height:24px;border-radius:50%;cursor:pointer;font-size:.9rem;display:flex;align-items:center;justify-content:center;transition:all .2s}.icon-remove-btn:hover{background:#c53030;transform:scale(1.1)}.color-picker,.workspace-selector-section{margin-bottom:1.5rem}.workspace-selector-section label{display:block;margin-bottom:.5rem;font-weight:500;color:var(--text-primary)}.workspace-select{width:100%;padding:.75rem;border:2px solid var(--border-color);border-radius:8px;font-size:14px;background:var(--sidebar-bg);color:var(--text-primary);cursor:pointer;transition:all .2s}.workspace-select:hover{border-color:var(--primary-color, #667eea)}.workspace-select:focus{outline:none;border-color:var(--primary-color, #667eea);box-shadow:0 0 0 3px #667eea1a}.color-picker label{display:block;margin-bottom:.75rem;font-weight:500;color:#2d3748}.color-options{display:flex;gap:.75rem;flex-wrap:wrap}.color-option{width:40px;height:40px;border-radius:8px;cursor:pointer;transition:all .2s;border:3px solid transparent}.color-option:hover{transform:scale(1.1)}.color-option.selected{border-color:#2d3748;transform:scale(1.15);box-shadow:0 4px 12px #0003}.btn-primary{background:linear-gradient(135deg,var(--primary-gradient-start) 0%,var(--primary-gradient-end) 100%);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.btn-danger{background:#e53e3e;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s}.btn-danger:hover{background:#c53030;transform:translateY(-2px);box-shadow:0 4px 12px #e53e3e66}.modal-content p{margin-bottom:1.5rem;color:#4a5568;line-height:1.6}.workspace-list{display:flex;flex-direction:column;gap:.75rem;margin:1.5rem 0}.workspace-item{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:#f7fafc;border-radius:8px;border:1px solid var(--border-color);transition:all .2s}.workspace-item:hover{background:#edf2f7;border-color:var(--primary-color)}.workspace-icon{font-size:1.5rem;min-width:32px;text-align:center}.workspace-icon-btn{background:#fff;border:1px solid var(--border-color);border-radius:6px;padding:.5rem;cursor:pointer;font-size:1.5rem;min-width:40px;height:40px;display:flex;align-items:center;justify-content:center;transition:all .2s}.workspace-icon-btn:hover{border-color:var(--primary-color);background:#667eea0d;transform:scale(1.05)}.workspace-icon-picker{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.5rem}.workspace-icon-option{width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:1.5rem;border:2px solid var(--border-color);border-radius:8px;cursor:pointer;transition:all .2s;background:#fff}.workspace-icon-option:hover{border-color:var(--primary-color);transform:scale(1.1)}.workspace-icon-option.selected{border-color:var(--primary-color);background:#667eea1a}.workspace-name-input{flex:1;padding:.5rem .75rem;border:1px solid var(--border-color);border-radius:6px;background:#fff;font-size:.9rem;transition:all .2s}.workspace-name-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #667eea1a}.workspace-delete-btn{color:var(--danger)}.workspace-delete-btn:hover{background:#ef44441a}.sort-menu{max-width:400px}.sort-options{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.5rem}.sort-option{display:flex;align-items:center;gap:1rem;padding:1rem;background:#f7fafc;border-radius:8px;cursor:pointer;transition:all .2s;border:2px solid transparent}.sort-option:hover{background:#edf2f7;transform:translate(4px)}.sort-option.active{background:linear-gradient(135deg,#667eea26,#764ba226);border-color:#667eea}.sort-icon{font-size:1.5rem}.sort-option span:last-child{font-weight:500;color:#2d3748}.properties-panel{background:var(--card-bg);border-bottom:1px solid var(--border-color);transition:all .3s ease;overflow:visible}.properties-panel.collapsed .properties-content{display:none}.properties-panel:not(.collapsed) .properties-content{display:block;animation:slideDown .3s ease}@keyframes slideDown{0%{opacity:0;max-height:0}to{opacity:1;max-height:500px}}.properties-header{padding:.75rem 1.5rem;cursor:pointer;-webkit-user-select:none;user-select:none}.properties-header:hover{background:var(--sidebar-bg)}.properties-header button{display:flex;align-items:center;gap:.5rem;background:none;border:none;color:var(--text-secondary);font-size:.9rem;font-weight:600;cursor:pointer;padding:0;transition:color .2s}.properties-header button:hover{color:var(--text-primary)}.properties-panel:not(.collapsed) .properties-header [data-lucide]{transform:rotate(90deg)}.properties-header [data-lucide]{transition:transform .3s ease}.properties-content{padding:0 1.5rem 1rem;display:grid;gap:1rem}.property-row{display:grid;grid-template-columns:auto 120px 1fr;align-items:start;gap:.75rem;cursor:move;transition:all .2s;padding:.5rem;margin:-.5rem;border-radius:6px}.property-row:hover{background:#667eea0d}.property-row.dragging{opacity:.5}.property-drag-handle{display:flex;align-items:center;justify-content:center;color:var(--text-tertiary);cursor:grab;padding-top:.5rem;transition:color .2s}.property-drag-handle:active{cursor:grabbing}.property-row:hover .property-drag-handle{color:var(--primary-color)}.property-row label{font-size:.9rem;font-weight:500;color:var(--text-secondary);padding-top:.5rem}.property-input{width:100%;padding:.5rem .75rem;border:1px solid var(--border-color);border-radius:6px;background:var(--sidebar-bg);color:var(--text-primary);font-size:.9rem;transition:all .2s;white-space:normal;word-wrap:break-word;overflow-wrap:break-word;min-height:2.5rem}.property-textarea{resize:none;overflow:hidden;font-family:inherit;line-height:1.5}.property-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #667eea1a}.property-input:hover{border-color:var(--text-tertiary)}.add-property-btn{display:inline-flex;align-items:center;gap:.4rem;padding:.4rem .75rem;font-size:.85rem;color:var(--text-secondary);background:transparent;border:1px dashed var(--border-color);border-radius:6px;cursor:pointer;transition:all .2s;font-weight:500}.add-property-btn:hover{color:var(--primary-color);border-color:var(--primary-color);background:#667eea0d}.add-property-btn span{line-height:1}.property-picker-dropdown{position:absolute;top:calc(100% + .5rem);left:0;right:0;background:#fff;border:1px solid var(--border-color);border-radius:8px;box-shadow:0 4px 12px #00000026;max-height:300px;overflow-y:auto;z-index:10000;padding:.5rem}.property-picker-item{display:flex;align-items:center;gap:.75rem;padding:.75rem;border-radius:6px;cursor:pointer;transition:background .2s;-webkit-user-select:none;user-select:none}.property-picker-item:hover{background:#f7fafc}.property-picker-item input[type=checkbox]{width:18px;height:18px;cursor:pointer;margin:0}.property-picker-item span:first-of-type{flex:1;font-size:.9rem;color:var(--text-primary)}.property-type-badge{font-size:.75rem;padding:.25rem .5rem;background:#e6f2ff;color:#06c;border-radius:4px;text-transform:capitalize}.backlinks-section{margin-top:1rem;display:flex;justify-content:flex-start;position:relative}.backlinks-badge{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:linear-gradient(135deg,#667eea1a,#764ba21a);border:1px solid rgba(102,126,234,.25);border-radius:6px;cursor:pointer;transition:all .2s;color:var(--primary-color);font-size:.85rem;font-weight:600;box-shadow:0 1px 3px #667eea1a}.backlinks-badge:hover{background:linear-gradient(135deg,#667eea26,#764ba226);border-color:#667eea66;transform:translateY(-1px);box-shadow:0 2px 6px #667eea33}.backlinks-label{font-size:.85rem;font-weight:500}.backlinks-count{font-size:.8rem;font-weight:700;padding:.125rem .5rem;background:#667eea26;border-radius:12px}.backlinks-popover{position:absolute;top:100%;left:0;margin-top:.5rem;background:#fff;border:1px solid var(--border-color);border-radius:8px;box-shadow:0 8px 24px #00000026;min-width:280px;max-width:360px;max-height:400px;overflow:hidden;z-index:1000;animation:popoverFadeIn .15s ease}@keyframes popoverFadeIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.backlinks-popover-header{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background:linear-gradient(135deg,#667eea14,#764ba214);border-bottom:1px solid var(--border-color);color:var(--primary-color);font-weight:600;font-size:.875rem}.backlinks-popover-content{max-height:320px;overflow-y:auto;padding:.5rem}.backlinks-empty{display:flex;align-items:center;gap:.5rem;padding:1.5rem;color:var(--text-muted);font-size:.85rem;justify-content:center}.backlink-item{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.5rem;padding:.625rem .75rem;border-radius:6px;cursor:pointer;transition:all .15s;font-size:.875rem}.backlink-item:hover{background:#667eea14}.backlink-item i{color:var(--text-muted)}.backlink-title{color:var(--text-primary);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.backlink-folder{font-size:.7rem;padding:.125rem .5rem;background:#667eea1a;color:var(--primary-color);border-radius:4px;white-space:nowrap}.tags-container{display:flex;flex-direction:column;gap:.5rem}.tags-display{display:flex;flex-wrap:wrap;gap:.5rem;min-height:32px}.tag-chip{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .75rem;background:var(--primary-gradient-start);color:#fff;border-radius:16px;font-size:.85rem;font-weight:500;animation:fadeIn .2s ease}.tag-chip button{background:none;border:none;color:#fff;cursor:pointer;padding:0;margin-left:.25rem;display:flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;transition:background .2s}.tag-chip button:hover{background:#fff3}.tag-chip [data-lucide]{width:12px;height:12px}.tag-input{padding:.5rem .75rem;border:1px solid var(--border-color);border-radius:6px;background:var(--sidebar-bg);color:var(--text-primary);font-size:.9rem;transition:all .2s}.tag-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #667eea1a}.tag-input::placeholder{color:var(--text-tertiary)}.custom-properties-list{display:flex;flex-direction:column;gap:.75rem;margin-top:1rem}.custom-property-item{display:flex;align-items:center;justify-content:space-between;padding:1rem;background:var(--sidebar-bg);border:1px solid var(--border-color);border-radius:8px;transition:all .2s}.custom-property-item:hover{border-color:var(--primary-color);background:var(--card-bg)}.custom-property-info{flex:1;display:flex;flex-direction:column;gap:.25rem}.custom-property-name{font-weight:600;color:var(--text-primary);font-size:.95rem}.custom-property-type{font-size:.85rem;color:var(--text-muted);text-transform:capitalize}.custom-property-actions{display:flex;gap:.5rem}.btn-icon{background:none;border:none;cursor:pointer;padding:.5rem;border-radius:6px;transition:all .2s;font-size:1rem}.btn-icon:hover{background:var(--border-color)}.empty-state{text-align:center;padding:2rem;color:var(--text-muted)}@keyframes slideIn{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes slideOut{0%{transform:translate(0);opacity:1}to{transform:translate(100%);opacity:0}}.wiki-link{color:#667eea;background:linear-gradient(135deg,#667eea1f,#764ba21f);padding:3px 10px;border-radius:6px;cursor:pointer;transition:all .25s cubic-bezier(.4,0,.2,1);font-weight:600;text-decoration:none;border:1px solid rgba(102,126,234,.25);box-shadow:0 1px 3px #667eea1a;display:inline-flex;align-items:center;gap:4px}.wiki-link:hover{background:linear-gradient(135deg,#667eea33,#764ba233);border-color:#667eea66;box-shadow:0 2px 6px #667eea33;transform:translateY(-1px)}.wiki-link-suggestions{background:#fff;border:1px solid var(--border-color);border-radius:8px;padding:.5rem 0;box-shadow:0 4px 12px #00000026;min-width:300px;max-height:400px;overflow-y:auto}.wiki-link-suggestion-item{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;cursor:pointer;transition:background .2s}.wiki-link-suggestion-item:hover,.wiki-link-suggestion-item.selected{background:var(--hover-color)}.wiki-link-suggestion-item.empty{color:var(--text-muted);cursor:default;justify-content:center}.wiki-link-suggestion-item.empty:hover{background:transparent}.wiki-link-suggestion-icon{color:var(--text-muted);flex-shrink:0;display:flex;align-items:center}.wiki-link-suggestion-title{color:var(--text-primary);font-weight:500}@media (max-width: 1200px){.right-sidebar{display:none}}@media (max-width: 768px){.sidebar{position:fixed;left:-320px;top:0;bottom:0;z-index:1000;transition:left .3s}.sidebar.open{left:0}.main-content{width:100%}}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#abb2bf;background:#282c34}.hljs-comment,.hljs-quote{color:#5c6370;font-style:italic}.hljs-doctag,.hljs-keyword,.hljs-formula{color:#c678dd}.hljs-section,.hljs-name,.hljs-selector-tag,.hljs-deletion,.hljs-subst{color:#e06c75}.hljs-literal{color:#56b6c2}.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string{color:#98c379}.hljs-attr,.hljs-variable,.hljs-template-variable,.hljs-type,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-number{color:#d19a66}.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-title{color:#61aeee}.hljs-built_in,.hljs-title.class_,.hljs-class .hljs-title{color:#e6c07b}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}
