: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: none;--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}::-webkit-scrollbar{width:12px;height:12px}::-webkit-scrollbar-track{background:var(--sidebar-bg)}::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:6px;border:3px solid var(--sidebar-bg)}::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}*{scrollbar-width:thin;scrollbar-color:var(--border-color) var(--sidebar-bg)}select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M6 9L1 4h10z"/></svg>');background-repeat:no-repeat;background-position:right .75rem center;background-size:12px;padding-right:2rem;cursor:pointer}[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;min-width:200px;max-width:600px;background:linear-gradient(180deg,var(--card-bg) 0%,rgba(102,126,234,.03) 100%);border-right:1px solid var(--border-color);display:flex;flex-direction:column;overflow-y:auto;position:relative}.sidebar-resize-handle{position:absolute;top:0;right:0;width:5px;height:100%;cursor:ew-resize;z-index:10}.sidebar-resize-handle:hover{background:var(--primary);opacity:.3}.right-sidebar{width:300px;min-width:200px;max-width:600px;background:transparent;border-left:none;display:flex;flex-direction:column;overflow-y:auto;padding:1.5rem;position:relative;box-shadow:none}.widget-card{background:var(--card-bg);border:2px solid var(--border-color);border-radius:12px;padding:1rem;margin:0 0 .5rem;box-shadow:var(--card-shadow);transition:all .2s}.widget-card:hover{border-color:var(--primary);transform:translateY(-2px);background:linear-gradient(135deg,#667eea1a,#764ba21a);box-shadow:0 4px 12px #667eea33}.sidebar-widgets-container{display:flex;flex-direction:column}[draggable=true]{cursor:grab}[draggable=true]:active{cursor:grabbing}.dragging{opacity:.5;border:2px dashed var(--primary)!important;box-shadow:none!important}.right-sidebar-resize-handle{position:absolute;top:0;left:0;width:5px;height:100%;cursor:ew-resize;z-index:10}.right-sidebar-resize-handle:hover{background:var(--primary);opacity:.3}.right-sidebar.hidden{display:none}.sidebar-header{padding:2rem 1.5rem 1.5rem;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(135deg,#667eea0d,#764ba20d)}.sidebar-header h2{font-size:1.5rem;font-weight:600}.sidebar-nav{display:flex;gap:.5rem;padding:.5rem 1rem;border-bottom:1px solid var(--border-color);background:var(--bg-secondary)}.sidebar-nav-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.6rem .75rem;border:1px solid var(--border-color);background:var(--bg-primary);color:var(--text-secondary);border-radius:8px;cursor:pointer;transition:all .2s ease;font-size:.85rem;font-weight:500}.sidebar-nav-btn:hover{background:var(--hover-bg);border-color:var(--primary-color);color:var(--text-primary)}.sidebar-nav-btn.active{background:linear-gradient(135deg,var(--primary-gradient-start) 0%,var(--primary-gradient-end) 100%);color:#fff;border-color:transparent}.sidebar-nav-btn i{width:16px;height:16px}.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:all .3s ease;box-shadow:0 4px 12px #00000026}.btn-primary:hover{transform:scale(1.05) translateY(-2px);box-shadow:0 8px 20px #00000040;background:linear-gradient(135deg,#7c8ff5,#8c64d4)}.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 #00000026}.btn-secondary:active{transform:translateY(0);box-shadow:0 2px 4px #00000026}.btn-icon{background:none;border:none;font-size:1.25rem;cursor:pointer;padding:.25rem .5rem;color:var(--text-secondary);transition:color .2s;display:inline-flex;align-items:center;justify-content:center}.btn-icon:hover{color:var(--primary-color)}#sync-btn.syncing svg{animation:spin 1s linear infinite}.calendar-section{padding:1.25rem;margin:0 0 .5rem;border-radius:12px;border:2px solid var(--border-color);background:var(--card-bg);box-shadow:var(--card-shadow);transition:all .2s}.calendar-section:hover{border-color:var(--primary);transform:translateY(-2px);background:linear-gradient(135deg,#667eea1a,#764ba21a);box-shadow:0 4px 12px #667eea33}.calendar-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.calendar-header h3{font-size:.9rem;font-weight:600}.calendar-header-actions{display:flex;align-items:center;gap:.25rem}.calendar-settings-btn{opacity:0;transition:opacity .2s ease}.calendar-section:hover .calendar-settings-btn{opacity:.6}.calendar-settings-btn:hover{opacity:1!important}.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:var(--text-muted);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:var(--hover-bg)}.calendar-date.today{background:var(--success-bg);color:var(--success);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}.daily-notes-view{margin-top:1.5rem;padding-top:1.5rem;border-top:none}.daily-notes-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.daily-notes-header h3{font-size:.9rem;font-weight:600;color:var(--text-primary)}#selected-date{color:var(--primary-gradient-start);font-weight:700}.daily-notes-list{display:flex;flex-direction:column;gap:.75rem;max-height:400px;overflow-y:auto}.daily-note-item{padding:.75rem;background:var(--card-bg);border-radius:8px;cursor:pointer;transition:all .2s;border:1px solid var(--border-color);position:relative}.daily-note-item:hover{background:var(--hover-bg);border-color:var(--primary-gradient-start);transform:translate(4px);box-shadow:0 2px 8px #0000001a}.daily-note-item-title{font-weight:600;font-size:.85rem;margin-bottom:.25rem;color:var(--text-primary);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.daily-note-item-meta{display:flex;align-items:center;gap:.5rem;font-size:.75rem;color:var(--text-muted)}.daily-note-item-folder{display:flex;align-items:center;gap:.25rem}.daily-note-item-folder-icon{width:14px;height:14px;object-fit:contain;border-radius:3px}.daily-note-item-time{margin-left:auto}.daily-notes-empty{padding:2rem 1rem;text-align:center;color:var(--text-muted);font-size:.85rem}.folders-section{padding:1rem;border-bottom:1px solid #e2e8f0;display:flex;flex-direction:column;flex:1;overflow:hidden}.sidebar-tabs{display:flex;gap:.25rem;margin:.75rem 0;border-bottom:2px solid var(--border-color)}.sidebar-tab{flex:1;display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.5rem .75rem;border:none;background:transparent;color:var(--text-muted);cursor:pointer;font-size:.875rem;font-weight:500;border-bottom:2px solid transparent;margin-bottom:-2px;transition:all .2s}.sidebar-tab:hover{color:var(--text);background:var(--hover-bg)}.sidebar-tab.active{color:var(--primary);border-bottom-color:var(--primary)}.sidebar-tab i{width:16px;height:16px}.sidebar-view{flex:1;overflow-y:auto}.folder-header-actions{display:flex;justify-content:flex-end;gap:.25rem;margin-bottom:.5rem}.recent-notes-list{display:flex;flex-direction:column;gap:.5rem}.recent-note-item{padding:.75rem;border:1px solid var(--border-color);border-radius:8px;cursor:pointer;transition:all .2s}.recent-note-item:hover{border-color:var(--primary);background:var(--hover-bg)}.recent-note-title{font-weight:600;font-size:.9rem;margin-bottom:.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-note-meta{font-size:.75rem;color:var(--text-muted);display:flex;align-items:center;gap:.75rem}.recent-note-meta i{width:12px;height:12px}.trash-btn:hover{background:var(--hover-bg)!important}.trash-btn i{width:16px;height:16px}.btn-restore,.btn-permanent-delete{padding:.25rem .5rem;border:none;background:transparent;cursor:pointer;border-radius:4px;transition:all .2s}.btn-restore:hover{background:var(--success);color:#fff}.btn-permanent-delete:hover{background:var(--danger);color:#fff}.btn-restore i,.btn-permanent-delete i{width:14px;height:14px}.trash-card{background:var(--card-bg);border:2px solid var(--border-color);border-radius:12px;padding:1rem;transition:all .3s;display:flex;flex-direction:column;gap:.75rem;height:220px;box-shadow:var(--card-shadow)}.trash-card:hover{border-color:var(--primary);transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.trash-card .card-header{display:flex;align-items:center;gap:.5rem}.trash-card .card-header h3{margin:0;font-size:1rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trash-card .card-preview{flex:1;font-size:.875rem;color:var(--text-muted);overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;line-height:1.5}.trash-card .card-footer{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:.75rem;border-top:1px solid var(--border-color)}.trash-card .card-footer small{color:var(--text-muted);font-size:.75rem}.trash-actions{display:flex;gap:.5rem}.card-size-control{display:flex;align-items:center;gap:.5rem;padding:.25rem .75rem;background:var(--card-bg);border:1px solid var(--border-color);border-radius:8px;transition:all .2s}.card-size-control:hover{border-color:var(--primary)}#card-size-slider{width:100px;height:4px;border-radius:2px;background:var(--border-color);outline:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}#card-size-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:14px;height:14px;border-radius:50%;background:var(--primary);cursor:pointer;transition:all .2s}#card-size-slider::-webkit-slider-thumb:hover{transform:scale(1.2)}#card-size-slider::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--primary);cursor:pointer;border:none;transition:all .2s}#card-size-slider::-moz-range-thumb:hover{transform:scale(1.2)}.layout-picker-modal{max-width:900px;width:90vw;background:var(--card-bg);border-radius:12px;box-shadow:0 20px 60px #0000004d;overflow:hidden}.layout-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1.5rem;padding:1rem 0}.layout-option{cursor:pointer;padding:1rem;border:2px solid var(--border-color);border-radius:12px;transition:all .3s;text-align:center}.layout-option:hover{border-color:var(--primary);transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.layout-option.selected{border-color:var(--primary);background:#4f46e50d}.layout-preview{margin-bottom:1rem;display:flex;justify-content:center;align-items:center;min-height:140px}.preview-card{width:140px;background:var(--card-bg);border:2px solid var(--border-color);border-radius:8px;overflow:hidden;box-shadow:0 2px 8px #0000001a}.preview-banner{height:30px;background:linear-gradient(135deg,#4f46e5,#7c3aed);position:relative}.preview-banner-tall{height:50px;background:linear-gradient(135deg,#4f46e5,#7c3aed);display:flex;align-items:center;justify-content:center;font-size:1.5rem}.preview-icon-badge{position:absolute;bottom:-18px;right:8px;width:36px;height:36px;background:var(--card-bg);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.1rem;border:2px solid var(--border-color);box-shadow:0 2px 4px #0000001a}.preview-icon-top{font-size:1.75rem;margin-bottom:.5rem}.preview-content{padding:.75rem}.preview-no-banner .preview-content{padding-top:1rem}.preview-title{font-size:.75rem;font-weight:600;color:var(--text-primary);margin-bottom:.5rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.preview-meta{font-size:.6rem;color:var(--text-muted)}.layout-name{font-weight:600;font-size:.95rem;color:var(--text-primary);margin-bottom:.25rem}.layout-desc{font-size:.85rem;color:var(--text-muted)}.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 2rem .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;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M6 9L1 4h10z"/></svg>');background-repeat:no-repeat;background-position:right .5rem center;background-size:12px}.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:var(--text-muted);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:.35rem .75rem;border-radius:8px;cursor:pointer;transition:all .2s;position:relative}.folder-item:hover{background:var(--hover-bg)}.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{display:none}.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:var(--text-muted);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:1.25rem;margin:.75rem;border-radius:12px;border:2px solid var(--border-color);background:linear-gradient(135deg,#667eea14,#764ba214);box-shadow:0 2px 8px #0000000d}.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:grid;grid-template-columns:repeat(2,1fr);gap:.4rem}.todo-badge{display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.75rem .35rem;background:var(--card-bg);border:2px solid var(--border-color);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:var(--text-secondary)}.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:var(--text-primary)}.todo-priority{font-size:.7rem;padding:.2rem .5rem;border-radius:4px;font-weight:600;text-transform:uppercase}.todo-priority.high{background:#fed7d7;color:#c53030}[data-theme=dark] .todo-priority.high{background:#f5656533;color:#fc8181}.todo-priority.medium{background:#feebc8;color:#c05621}[data-theme=dark] .todo-priority.medium{background:#ed893633;color:#f6ad55}.todo-priority.low{background:#c6f6d5;color:#276749}[data-theme=dark] .todo-priority.low{background:#48bb7833;color:#68d391}.task-workspace-badge{display:inline-flex;align-items:center;justify-content:center;font-size:.75rem;padding:.2rem .4rem;border-radius:4px;background:#667eea;color:#fff;margin-left:.5rem;vertical-align:middle;box-shadow:0 1px 3px #667eea4d}.task-workspace-badge-large{display:inline-flex;align-items:center;gap:.35rem;font-size:.75rem;padding:.3rem .6rem;border-radius:6px;background:#667eea;color:#fff;margin-left:.5rem;font-weight:500;vertical-align:middle;box-shadow:0 1px 3px #667eea4d}[data-theme=dark] .task-workspace-badge,[data-theme=dark] .task-workspace-badge-large{background:#7c3aed;box-shadow:0 1px 3px #7c3aed66}.task-linked-note{margin-top:8px;padding:8px 10px;background:#667eea14;border:1px solid rgba(102,126,234,.2);border-radius:6px;cursor:pointer;transition:all .2s ease}.task-linked-note:hover{background:#667eea1f;border-color:#667eea;transform:translateY(-1px);box-shadow:0 2px 8px #667eea26}.task-linked-note-label{font-size:.65rem;text-transform:uppercase;font-weight:600;color:#667eea;letter-spacing:.5px;margin-bottom:4px}.task-linked-note-content{display:flex;align-items:flex-start;gap:8px}.task-linked-note-content i{color:#667eea;flex-shrink:0;margin-top:2px}.task-linked-note-details{flex:1;min-width:0}.task-linked-note-title{font-size:.8rem;font-weight:600;color:#2d3748;margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-theme=dark] .task-linked-note-title{color:#e2e8f0}.task-linked-note-path{font-size:.75rem;color:#718096;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-theme=dark] .task-linked-note-path{color:#a0aec0}.todo-due-date{font-size:.75rem;color:var(--text-muted);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:var(--text-muted)}.todo-action-btn:hover{background:#edf2f7;color:var(--text-secondary)}.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;position:relative}.note-item:hover{background:var(--hover-bg);box-shadow:0 2px 8px #667eea14}.note-item.active{background:var(--card-bg);border-color:transparent;box-shadow:0 4px 16px #667eea26;position:relative}.note-item.active:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:8px;padding:2px;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}.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:var(--text-muted);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:var(--text-muted);margin-top:.5rem}.empty-state{text-align:center;color:var(--text-muted);padding:2rem}.main-content{flex:1;display:flex;flex-direction:column;background:var(--sidebar-bg);overflow:hidden;min-width:0;position:relative}.main-content[data-has-bg-image=true]:before,.workspace-landing[data-has-bg-image=true]:before,.dashboard-view[data-has-bg-image=true]:before,.editor-view[data-has-bg-image=true]:before{content:"";position:fixed;top:0;left:0;right:0;bottom:0;background:var(--bg-image) center/cover;background-attachment:fixed;filter:var(--bg-blur);z-index:-1;will-change:auto}.workspace-landing{flex:1;display:none;flex-direction:column;overflow:hidden;background:var(--bg-pattern);padding:2rem;overflow-y:auto;width:100%;box-sizing:border-box}.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)}.landing-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem;margin-bottom:2.5rem;max-width:100%;width:100%;margin-left:auto;margin-right:auto}.stat-card{background:var(--card-bg);border:2px solid var(--border-color);border-radius:12px;padding:1.5rem;display:flex;align-items:center;gap:1.25rem;box-shadow:0 2px 8px #0000000d;transition:all .3s ease;cursor:pointer}.stat-card:hover{transform:translateY(-4px);box-shadow:0 8px 20px #667eea26;border-color:var(--primary-color);background:linear-gradient(135deg,var(--card-bg) 0%,rgba(102,126,234,.03) 100%)}.stat-card:active{transform:translateY(-2px);box-shadow:0 4px 12px #00000014}.stat-icon{width:56px;height:56px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.stat-icon [data-lucide]{width:28px;height:28px;color:#fff}.stat-info{display:flex;flex-direction:column;gap:.25rem}.stat-value{font-size:2rem;font-weight:700;color:var(--text-primary);line-height:1}.stat-label{font-size:.875rem;color:var(--text-muted);font-weight:500}.landing-content{display:grid;grid-template-columns:2fr 1fr;gap:2rem;margin-bottom:2.5rem;max-width:1400px;margin-left:auto;margin-right:auto}.landing-section-header{margin-bottom:1rem}.landing-section-header h3{display:flex;align-items:center;gap:.5rem;font-size:1.25rem;font-weight:600;color:var(--text-primary)}.landing-section-header [data-lucide]{width:20px;height:20px;color:var(--primary-color)}.landing-recent-notes,.landing-today-tasks{background:var(--card-bg);border:2px solid var(--border-color);border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000000d}.landing-recent-list,.landing-tasks-list{display:flex;flex-direction:column;gap:.75rem}.landing-recent-item{padding:1rem;background:var(--sidebar-bg);border:1px solid var(--border-color);border-radius:8px;cursor:pointer;transition:all .2s}.landing-recent-item:hover{background:var(--hover-bg);border-color:var(--primary-color);transform:translate(4px)}.landing-recent-item-title{font-size:1rem;font-weight:600;color:var(--text-primary);margin-bottom:.25rem;display:flex;align-items:center;gap:.5rem}.landing-recent-item-title [data-lucide]{width:16px;height:16px;color:var(--text-muted)}.landing-recent-item-meta{display:flex;align-items:center;gap:1rem;font-size:.8rem;color:var(--text-muted)}.landing-recent-item-time{display:flex;align-items:center;gap:.25rem}.landing-recent-item-time [data-lucide]{width:12px;height:12px}.landing-task-item{padding:.875rem;background:var(--sidebar-bg);border:1px solid var(--border-color);border-radius:8px;display:flex;align-items:flex-start;gap:.75rem;transition:all .2s}.landing-task-item:hover{background:var(--hover-bg);border-color:var(--primary-color)}.landing-task-checkbox{width:18px;height:18px;border:2px solid var(--border-color);border-radius:4px;flex-shrink:0;cursor:pointer;margin-top:2px}.landing-task-content{flex:1}.landing-task-title{font-size:.9rem;font-weight:500;color:var(--text-primary);margin-bottom:.25rem}.landing-task-due{font-size:.75rem;color:var(--text-muted);display:flex;align-items:center;gap:.25rem}.landing-task-due [data-lucide]{width:12px;height:12px}.landing-task-due.overdue{color:var(--danger);font-weight:600}.landing-empty-state{text-align:center;padding:2rem;color:var(--text-muted)}.landing-empty-state [data-lucide]{width:48px;height:48px;margin-bottom:1rem;opacity:.5}.landing-workspaces-section{max-width:1400px;width:100%;margin-left:auto;margin-right:auto;margin-bottom:2rem;padding:0 2rem}.landing-folders-section{max-width:100%;width:100%;margin-left:auto;margin-right:auto;margin-bottom:2rem}.workspace-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:2rem;width:100%;justify-items:stretch}.workspace-card{background:var(--card-bg);border:2px solid var(--border-color);border-radius:16px;padding:2rem;cursor:pointer;transition:all .3s ease;display:flex;flex-direction:column;align-items:center;gap:1.25rem;box-shadow:var(--card-shadow);min-height:220px}.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.folder-card,.workspace-card:not(.folder-card){background:transparent!important;position:relative}.workspace-card.folder-card:before,.workspace-card:not(.folder-card):before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:var(--folder-card-bg, var(--card-bg));opacity:var(--folder-card-opacity, 1);border-radius:inherit;z-index:0;pointer-events:none}.workspace-card.folder-card>*,.workspace-card:not(.folder-card)>*{position:relative;z-index:1}.folder-card:hover{border-color:#4299e1}.workspace-card-icon{width:100px;height:100px;min-width:100px;min-height:100px;flex-shrink:0;border-radius:24px;background:transparent;border:2px solid var(--border-color);display:flex;align-items:center;justify-content:center;font-size:3.5rem;box-shadow:0 4px 12px #00000014;overflow:hidden;padding:12px}.workspace-card-icon-emoji{font-size:2.5rem;line-height:1}.workspace-card-icon-img{width:100%;height:100%;object-fit:contain}.workspace-card-title{font-size:1.6rem;font-weight:600;color:var(--text-primary);text-align:center;margin-top:.25rem}.workspace-card-stats{display:flex;gap:2rem;margin-top:auto;padding-top:1.25rem;border-top:1px solid var(--border-color);width:100%;justify-content:center}.workspace-stat{display:flex;align-items:center;gap:.5rem;color:var(--text-secondary);font-size:.95rem;font-weight:500}.workspace-stat [data-lucide]{width:16px;height:16px;color:var(--primary-color)}.dashboard-view,.projects-view{flex:1;display:flex;flex-direction:column;overflow:hidden;background:var(--bg-pattern)}.projects-view-header{padding:1.5rem 2rem;border-bottom:2px solid var(--border-color);background:linear-gradient(180deg,var(--card-bg) 0%,rgba(102,126,234,.03) 100%);display:flex;align-items:center;justify-content:space-between;gap:1rem}.projects-view-title{display:flex;align-items:center;gap:.75rem}.projects-view-title i{width:28px;height:28px;color:var(--primary-color)}.projects-view-title h1{font-size:1.75rem;font-weight:700;color:var(--text-primary);margin:0}.projects-view-actions{display:flex;gap:.5rem}.projects-view-content{flex:1;overflow-y:auto;padding:1.5rem 2rem}.projects-workspace-section{margin-bottom:1.5rem}.projects-workspace-header{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;cursor:pointer;transition:all .2s ease;margin-bottom:.75rem}.projects-workspace-header:hover{background:var(--hover-bg);border-color:var(--primary-color)}.projects-workspace-header i{width:16px;height:16px;color:var(--text-secondary)}.projects-workspace-header i:nth-child(2){color:var(--primary-color)}.projects-workspace-header .workspace-name{flex:1;font-weight:600;color:var(--text-primary)}.projects-workspace-header .workspace-count{background:var(--bg-tertiary);padding:.25rem .5rem;border-radius:10px;font-size:.75rem;color:var(--text-secondary)}.projects-workspace-content{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;padding-left:1rem}.projects-view .project-card{display:flex;flex-direction:column;gap:.75rem;padding:1rem;background:var(--card-bg);border:1px solid var(--border-color);border-radius:10px;cursor:pointer;transition:all .2s ease}.projects-view .project-card:hover{border-color:var(--primary-color);box-shadow:0 4px 12px #0000001a;transform:translateY(-2px)}.projects-view .project-card.completed{opacity:.7}.projects-view .project-card-header{display:flex;align-items:flex-start;gap:.75rem}.projects-view .project-card-icon{width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--primary-gradient-start) 0%,var(--primary-gradient-end) 100%);border-radius:8px;flex-shrink:0}.projects-view .project-card-icon i{width:18px;height:18px;color:#fff}.projects-view .project-card-icon.completed{background:var(--success)}.projects-view .project-card-info{flex:1;min-width:0}.projects-view .project-card-name{font-weight:600;font-size:1rem;color:var(--text-primary);margin-bottom:.25rem}.projects-view .project-card-name.completed{text-decoration:line-through;color:var(--text-secondary)}.projects-view .project-card-meta{font-size:.75rem;color:var(--text-secondary)}.projects-view .project-card-progress{margin-top:.5rem}.projects-view .project-card-progress-bar{height:6px;background:var(--bg-tertiary);border-radius:3px;overflow:hidden}.projects-view .project-card-progress-bar-fill{height:100%;background:var(--primary-color);transition:width .3s ease}.projects-view .project-card-progress-bar-fill.completed{background:var(--success)}.projects-view .project-card-progress-text{display:flex;justify-content:space-between;margin-top:.25rem;font-size:.7rem;color:var(--text-secondary)}.projects-view .project-card-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.5rem;padding-top:.5rem;border-top:1px solid var(--border-color)}.workspace-completed-divider{grid-column:1 / -1;display:flex;align-items:center;gap:1rem;margin:1rem 0 .5rem;color:var(--text-secondary);font-size:.8rem}.workspace-completed-divider:before,.workspace-completed-divider:after{content:"";flex:1;height:1px;background:var(--border-color)}.projects-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;text-align:center;color:var(--text-secondary)}.projects-empty-state i{width:64px;height:64px;color:var(--text-muted);margin-bottom:1rem}.projects-empty-state h3{font-size:1.25rem;color:var(--text-primary);margin-bottom:.5rem}.projects-empty-state p{margin-bottom:1.5rem}.dashboard-header{padding:1.5rem 2rem;border-bottom:2px solid var(--border-color);background:linear-gradient(180deg,var(--card-bg) 0%,rgba(102,126,234,.03) 100%);box-shadow:none;position:relative;display:flex;flex-direction:column;gap:1rem}.dashboard-header-top{display:flex;align-items:center;gap:1rem;min-height:48px}.dashboard-title-section{display:flex;align-items:center;gap:.75rem;flex:1;min-width:0}.dashboard-header #back-to-workspace{flex-shrink:0}.dashboard-title-text{font-size:1.75rem;font-weight:700;color:var(--text-primary);margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;line-height:1.2}.dashboard-actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.dashboard-header-bottom{display:flex;align-items:center;gap:.5rem}#folder-view-settings-btn{flex-shrink:0;margin-left:.5rem;background:var(--sidebar-bg);border:2px solid var(--border);color:var(--text-primary);padding:.5rem;border-radius:.375rem;transition:all .2s;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}#folder-view-settings-btn svg{width:20px;height:20px;stroke-width:2}#folder-view-settings-btn:hover{background:var(--primary-color);color:#fff;border-color:var(--primary-color);transform:translateY(-1px);box-shadow:0 2px 8px #0000001a}.dashboard-header .dashboard-info{flex:1;display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.dashboard-count-badge{background:var(--sidebar-bg);border:1px solid var(--border);border-radius:8px;padding:.5rem .75rem;font-size:.875rem;color:var(--text-muted);font-weight:500;white-space:nowrap;flex-shrink:0}.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:250px;flex:1;max-width:400px}.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 2rem .5rem .75rem;font-size:.875rem;color:var(--text-color);cursor:pointer;transition:all .2s;outline:none;min-width:150px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M6 9L1 4h10z"/></svg>');background-repeat:no-repeat;background-position:right .5rem center;background-size:12px}.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)}.sort-dropdown{background:var(--sidebar-bg);border:1px solid var(--border);border-radius:8px;padding:.5rem 2rem .5rem .75rem;font-size:.875rem;color:var(--text-color);cursor:pointer;transition:all .2s;outline:none;min-width:160px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M6 9L1 4h10z"/></svg>');background-repeat:no-repeat;background-position:right .5rem center;background-size:12px}.sort-dropdown:hover{border-color:var(--primary-color)}.sort-dropdown: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:var(--text-primary);margin-bottom:.5rem}.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:1rem;cursor:grab;transition:all .3s;display:flex;flex-direction:column;gap:.75rem;min-height:220px;max-height:380px;box-shadow:var(--card-shadow);-webkit-user-select:none;user-select:none}.dashboard-card *{pointer-events:none}.dashboard-card input[type=checkbox],.dashboard-card button{pointer-events:auto}.dashboard-card:active{cursor:grabbing}.dashboard-card.dragging{opacity:.5;cursor:grabbing}.dashboard-card:hover{border-color:#667eea;box-shadow:0 8px 24px #667eea26;transform:translateY(-4px)}.dashboard-card-thumbnail{width:100%;height:50px;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:1.75rem;color:#fff;overflow:hidden;position:relative}.dashboard-card-thumbnail.has-image{background:#f7fafc}.dashboard-card-thumbnail img{width:100%;height:100%;object-fit:contain}.layout-tall-banner .dashboard-card-thumbnail.tall-banner,.layout-icon-badge .dashboard-card-thumbnail{height:100px}.card-banner-gradient{width:100%;height:100%;background:linear-gradient(135deg,var(--primary-gradient-start) 0%,var(--primary-gradient-end) 100%)}.card-icon-badge{position:absolute;bottom:-12px;right:10px;width:56px;height:56px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.5rem;border:3px solid white;box-shadow:0 2px 8px #00000026;overflow:hidden;flex-shrink:0}.dashboard-card:has(.dashboard-card-properties) .card-icon-badge{width:48px;height:48px;font-size:1.25rem;bottom:-10px}.card-icon-badge img{width:90%;height:90%;object-fit:contain}.layout-icon-badge .dashboard-card-content{padding-top:1.5rem}.layout-no-banner .dashboard-card-content{padding-top:.5rem}.card-icon-top{font-size:2rem;text-align:center;margin-bottom:.75rem;display:flex;align-items:center;justify-content:center}.dashboard-card-content{flex:1;display:flex;flex-direction:column;gap:.5rem}.dashboard-card-title{font-size:1.1rem;font-weight:600;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-card:has(.dashboard-card-properties) .dashboard-card-title{font-size:1rem}.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:var(--text-muted);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:var(--text-muted);padding-top:.5rem;border-top:1px solid rgba(226,232,240,.5);margin-top:auto}[data-theme=dark] .dashboard-card-footer{border-top-color:#4a556880}.dashboard-card:has(.dashboard-card-properties) .dashboard-card-footer{padding-top:.375rem;font-size:.75rem}.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}.dashboard-card:has(.dashboard-card-properties) .dashboard-card-status{margin-top:.25rem}.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-card-properties{margin-top:.5rem;display:flex;flex-direction:column;gap:.375rem;max-height:120px;overflow-y:auto}.dashboard-card:has(.dashboard-card-properties) .dashboard-card-thumbnail:not(.tall-banner){height:40px}.dashboard-card:has(.dashboard-card-properties) .layout-icon-badge .dashboard-card-thumbnail{height:80px}.dashboard-card:has(.dashboard-card-properties){gap:.5rem;padding:.875rem}.dashboard-card:has(.dashboard-card-properties) .dashboard-card-content{gap:.375rem}.card-property{display:flex;align-items:baseline;gap:.375rem;font-size:.8rem;line-height:1.4;padding:.25rem .5rem;background:var(--hover-bg);border-radius:4px;border-left:2px solid var(--primary-color)}.dashboard-card-properties::-webkit-scrollbar{width:4px}.dashboard-card-properties::-webkit-scrollbar-track{background:transparent}.dashboard-card-properties::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:2px}.dashboard-card-properties::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}.property-label{color:var(--text-tertiary);font-weight:500;white-space:nowrap;flex-shrink:0}.property-value{color:var(--text-secondary);font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#card-display-fields-list label:hover{background:var(--bg-hover)}.view-mode-option{position:relative}.view-mode-option.active{border-color:var(--primary-color)!important;background:#667eea0d}.view-mode-option input[type=radio]{accent-color:var(--primary-color)}.list-view{padding:0;display:block!important;overflow-x:auto;position:relative}.list-view-header{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background:var(--bg-secondary);border-bottom:1px solid var(--border)}.column-manager-btn{position:relative;z-index:20}.column-manager-dropdown{position:absolute;top:100%;left:0;background:var(--card-bg);border:1px solid var(--border);border-radius:8px;box-shadow:0 4px 12px #00000026;min-width:220px;max-height:400px;overflow-y:auto;z-index:1000;margin-top:.25rem}.column-toggle:hover{background:var(--bg-hover)}.column-toggle input[type=checkbox]{margin:0}.notes-list-table{width:100%;border-collapse:collapse;background:var(--card-bg)}.sortable-header{cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .15s}.sortable-header:hover{background:var(--bg-hover)}.sortable-header.sorted{background:var(--bg-hover);color:var(--primary-color)}.sort-indicator{font-size:.75rem;transition:opacity .15s}.notes-list-table thead{background:var(--bg-secondary);position:sticky;top:0;z-index:10}.notes-list-table th{padding:1rem;text-align:left;font-weight:600;font-size:.875rem;color:var(--text-secondary);border-bottom:2px solid var(--border);white-space:nowrap}.notes-list-table td{padding:.875rem 1rem;border-bottom:1px solid var(--border);font-size:.9rem}.list-row{cursor:pointer;transition:background .15s}.list-row:hover{background:var(--bg-hover)}.list-title{font-weight:500;color:var(--text-primary);max-width:400px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.list-folder{color:var(--text-secondary);font-size:.85rem}.list-date{color:var(--text-tertiary);font-size:.85rem;white-space:nowrap}.list-property{color:var(--text-secondary);font-size:.85rem}.list-actions{text-align:center}.btn-sm{padding:.25rem .5rem;font-size:.75rem}.app-version{position:fixed;bottom:.5rem;right:.5rem;font-size:.7rem;color:var(--text-tertiary);opacity:.5;padding:.25rem .5rem;background:var(--bg-secondary);border-radius:4px;pointer-events:none;z-index:1000}.toast-notification{position:fixed;bottom:2rem;left:50%;transform:translate(-50%) translateY(100px);background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:1rem 1.5rem;border-radius:12px;box-shadow:0 8px 24px #667eea66;font-size:.95rem;font-weight:600;z-index:10001;opacity:0;transition:all .3s cubic-bezier(.4,0,.2,1);border:none;min-width:300px;text-align:center}.toast-notification.show{opacity:1;transform:translate(-50%) translateY(0)}.dev-mode-indicator{position:fixed;top:.5rem;right:.5rem;display:flex;align-items:center;gap:.5rem;font-size:.75rem;font-weight:600;color:#f59e0b;background:#f59e0b1a;border:1px solid #f59e0b;padding:.5rem .75rem;border-radius:6px;z-index:10000;box-shadow:0 2px 8px #f59e0b33}.dev-mode-indicator i{color:#f59e0b}.update-banner{position:fixed;top:0;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:.75rem 1.5rem;border-radius:0 0 12px 12px;box-shadow:0 4px 12px #667eea4d;z-index:10002;animation:slideDown .3s ease-out}@keyframes slideDown{0%{transform:translate(-50%) translateY(-100%);opacity:0}to{transform:translate(-50%) translateY(0);opacity:1}}.update-banner .update-message{font-weight:600;font-size:.9rem}.update-banner .btn-primary{background:#fff;color:#667eea;padding:.5rem 1rem;border-radius:6px;border:none;font-weight:600;cursor:pointer;transition:all .2s}.update-banner .btn-primary:hover{transform:scale(1.05);box-shadow:0 2px 8px #0003}.update-banner .btn-icon{background:#fff3;color:#fff;border:none;width:28px;height:28px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}.update-banner .btn-icon:hover{background:#ffffff4d}.link-preview-wrapper{position:relative;margin:1rem 0}.link-preview-card{display:flex;border:1px solid var(--border);border-radius:8px;overflow:hidden;text-decoration:none;transition:all .2s ease;background:var(--bg-secondary)}.link-preview-card:hover{border-color:var(--accent);box-shadow:0 2px 8px #0000001a;transform:translateY(-1px)}.link-preview-image{flex-shrink:0;width:200px;height:150px;overflow:hidden;background:var(--bg-primary)}.link-preview-image img{width:100%;height:100%;object-fit:cover}.link-preview-content{flex:1;padding:1rem;display:flex;flex-direction:column;gap:.5rem;min-width:0}.link-preview-header{display:flex;align-items:center;gap:.5rem;font-size:.75rem;color:var(--text-muted)}.link-preview-favicon{width:16px;height:16px;object-fit:contain}.link-preview-site{text-transform:uppercase;letter-spacing:.05em;font-weight:600}.link-preview-title{font-size:1rem;font-weight:600;color:var(--text-primary);line-height:1.4;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.link-preview-description{font-size:.875rem;color:var(--text-secondary);line-height:1.5;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.link-preview-url{font-size:.75rem;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-preview-convert{position:absolute;top:.5rem;right:.5rem;width:28px;height:28px;border:1px solid var(--border);background:var(--bg-primary);border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;opacity:0;transition:all .2s ease;font-size:14px;color:var(--text-secondary)}.link-preview-convert:hover{background:var(--bg-secondary);border-color:var(--accent);color:var(--accent)}@media (max-width: 768px){.link-preview-card{flex-direction:column}.link-preview-image{width:100%;height:200px}}.dashboard-empty{grid-column:1 / -1;text-align:center;padding:4rem 2rem;color:var(--text-muted)}.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;min-height:220px;height:auto}.todo-dashboard-card .dashboard-card-content{gap:.5rem;overflow:visible}.todo-dashboard-card .todo-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:.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;position:relative;transition:transform .2s cubic-bezier(.68,-.55,.265,1.55)}.todo-checkbox-dashboard:hover{transform:scale(1.15)}.todo-checkbox-dashboard:checked{animation:checkbox-bounce .4s cubic-bezier(.68,-.55,.265,1.55)}@keyframes checkbox-bounce{0%{transform:scale(1)}25%{transform:scale(1.3)}50%{transform:scale(.9)}75%{transform:scale(1.15)}to{transform:scale(1)}}.todo-dashboard-card.completed{opacity:.75;transition:opacity .3s ease}.todo-dashboard-card.completed .todo-title-text{text-decoration:line-through;text-decoration-thickness:2px;text-decoration-color:var(--text-muted);animation:strike-through .3s ease-out}@keyframes strike-through{0%{text-decoration-color:transparent}to{text-decoration-color:var(--text-muted)}}.todo-dashboard-card.completed .dashboard-card-thumbnail{filter:grayscale(.4);transition:filter .3s ease}.todo-dashboard-card{transition:all .3s ease}.todo-dashboard-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.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;position:relative;transition:transform .2s cubic-bezier(.68,-.55,.265,1.55)}.todo-detail-header input[type=checkbox]:hover{transform:scale(1.15)}.todo-detail-header input[type=checkbox]:checked{animation:checkbox-bounce .4s cubic-bezier(.68,-.55,.265,1.55)}.todo-detail-title{flex:1;font-size:1.5rem;font-weight:700;color:var(--text-primary);line-height:1.4;transition:all .3s ease}.todo-detail-title.completed{text-decoration:line-through;text-decoration-thickness:2px;text-decoration-color:var(--text-muted);opacity:.7;animation:strike-through .3s ease-out}.todo-detail-section{margin-bottom:1.5rem;padding-bottom:1.5rem;border-bottom:1px solid rgba(226,232,240,.5)}[data-theme=dark] .todo-detail-section{border-bottom-color:#4a556880}.todo-detail-section:last-of-type{border-bottom:none}.todo-detail-label{font-weight:600;color:var(--text-secondary);font-size:.9rem;margin-bottom:.5rem}.todo-detail-value{color:var(--text-primary);font-size:1rem}.todo-detail-linked-note{background:#667eea14;border:2px solid rgba(102,126,234,.2);border-radius:8px;padding:1rem;cursor:pointer;transition:all .2s;color:#2d3748}[data-theme=dark] .todo-detail-linked-note{color:#e2e8f0}.todo-detail-linked-note:hover{border-color:#667eea;background:#667eea26;transform:translateY(-1px);box-shadow:0 2px 8px #667eea33}.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:var(--text-primary)}.note-title:focus{background:var(--card-bg);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:var(--text-muted);font-weight:500}.editor-actions{display:flex;gap:.5rem}.editor-actions button{padding:.4rem .75rem;font-size:.875rem;height:auto;min-height:32px}.editor-actions .btn-icon{color:var(--text-primary)}.editor-actions .btn-icon:hover{color:var(--primary-color)}.editor-actions .btn-icon [data-lucide]{width:18px;height:18px;display:inline-block}.sync-status{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border-radius:8px;font-size:.875rem;font-weight:500;transition:all .3s ease;background:var(--bg-secondary)}.sync-status.saving{color:var(--warning);background:#f6ad551a}.sync-status.synced{color:var(--success);background:#48bb781a}.sync-status.error{color:var(--danger);background:#f565651a}.sync-status .sync-icon{width:16px;height:16px;flex-shrink:0}.sync-status .sync-icon.spinning{animation:spin 1s linear infinite}.sync-text{white-space:nowrap}.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}.bubble-menu{display:flex;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:.25rem;gap:.125rem;box-shadow:0 10px 40px #00000026,0 4px 12px #0000001a;z-index:1000}.bubble-menu-button{background:transparent;border:none;border-radius:4px;padding:.375rem .5rem;cursor:pointer;transition:all .15s ease;color:#374151;display:inline-flex;align-items:center;justify-content:center;min-width:28px}.bubble-menu-button:hover{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.bubble-menu-button:active{transform:scale(.95)}.bubble-menu-button.is-active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.bubble-menu-separator{width:1px;background:#e5e7eb;margin:.25rem .125rem}[data-theme=dark] .bubble-menu{background:#1f2937;border-color:#374151}[data-theme=dark] .bubble-menu-button{color:#e5e7eb}[data-theme=dark] .bubble-menu-button:hover{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}[data-theme=dark] .bubble-menu-separator{background:#4b5563}.editor-content{flex:1;overflow-y:auto;overflow-x:hidden;padding:2rem;max-width:100%}.toc-panel{position:fixed;top:80px;right:320px;width:280px;max-height:calc(100vh - 120px);background:var(--card-bg);border:2px solid var(--border-color);border-radius:12px;box-shadow:0 8px 24px #0000001f;overflow:hidden;z-index:100;animation:slideInRight .3s ease}@keyframes slideInRight{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.toc-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:2px solid var(--border-color);background:linear-gradient(135deg,var(--primary-gradient-start) 0%,var(--primary-gradient-end) 100%)}.toc-header h4{margin:0;font-size:.95rem;font-weight:600;color:#fff;display:flex;align-items:center;gap:.5rem}.toc-header [data-lucide]{width:18px;height:18px;color:#fff}.toc-header .btn-icon{color:#fff;padding:.25rem}.toc-header .btn-icon:hover{color:#fffc}.toc-content{overflow-y:auto;max-height:calc(100vh - 200px);padding:.75rem}.toc-empty{text-align:center;color:var(--text-muted);font-size:.875rem;padding:2rem 1rem;margin:0}.toc-item{padding:.5rem .75rem;cursor:pointer;border-radius:6px;transition:all .2s;font-size:.875rem;color:var(--text-secondary);display:block;text-decoration:none;line-height:1.4;margin-bottom:.25rem}.toc-item:hover{background:var(--hover-bg);color:var(--primary-color);transform:translate(4px)}.toc-item.active{background:linear-gradient(135deg,var(--primary-gradient-start) 0%,var(--primary-gradient-end) 100%);color:#fff;font-weight:600}.toc-item.level-1{font-weight:600;font-size:.9rem;padding-left:.75rem}.toc-item.level-2{padding-left:1.5rem}.toc-item.level-3{padding-left:2.25rem;font-size:.8125rem}.toc-item.level-4{padding-left:3rem;font-size:.8125rem}.toc-item.level-5{padding-left:3.75rem;font-size:.8125rem}.toc-item.level-6{padding-left:4.5rem;font-size:.8125rem}.tiptap-editor{outline:none;min-height:100%;line-height:var(--editor-line-height, 1.6);font-size:var(--editor-font-size, 1rem);max-width:100%;overflow-x:hidden}.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(--sidebar-bg);border:1px solid var(--border-color, var(--sidebar-border));border-radius:6px;text-decoration:none;color:var(--text-primary);transition:all .2s;margin:4px 0;font-size:14px}.tiptap-editor a.file-attachment:hover{background:var(--hover-bg);border-color:var(--primary-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 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)}.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:var(--code-bg, #282c34)}.code-block-header{display:flex;justify-content:space-between;align-items:center;padding:.5rem 1rem;background:var(--code-header-bg, #21252b);border-bottom:1px solid var(--border-color)}.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:var(--code-bg, #282c34);color:var(--code-text, #abb2bf);padding:1rem;border-radius:0;overflow-x:auto;max-width:100%;margin:0;position:relative;font-family:Consolas,Monaco,Courier New,monospace;font-size:.9rem;line-height:1.5;white-space:pre;display:block;box-sizing:border-box}.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 var(--border-color);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:var(--hover-bg);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:var(--hover-bg);border-left:4px solid var(--primary-color);border-radius:8px;box-shadow:0 2px 4px #0000001a}.tiptap-editor details summary{cursor:pointer;font-weight:600;color:var(--text-primary);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:var(--primary-color);font-size:.9em}.tiptap-editor details[open] summary:before{transform:rotate(90deg)}.tiptap-editor details summary:hover{background:var(--card-bg);color:var(--primary-color)}.tiptap-editor details .details-content{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border-color)}.tiptap-editor details[open]{box-shadow:0 4px 12px #0003}.modal-overlay{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;background:#00000080;display:flex!important;align-items:center!important;justify-content:center!important;z-index:100000}.modal-content{background:var(--card-bg);border-radius:12px;padding:2rem;max-width:600px;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;color:var(--text-primary)}.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:var(--card-bg);border:1px solid var(--border-color);border-radius:8px;cursor:pointer;transition:all .2s;position:relative}.folder-selector-item:hover{background:var(--hover-bg);border-color:var(--primary-color);transform:translate(4px)}.folder-selector-toggle{background:none;border:none;cursor:pointer;padding:2px;display:flex;align-items:center;justify-content:center;color:var(--text-muted, #718096);transition:color .2s,transform .2s;width:20px;height:20px;flex-shrink:0;border-radius:4px}.folder-selector-toggle:hover{color:var(--text-primary, #2d3748);background:#0000000d}.folder-selector-toggle.expanded{transform:rotate(0)}.folder-selector-spacer{width:20px;flex-shrink:0}.folder-selector-name{flex:1;cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--text-primary)}.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:1000px;width:90%;max-height:85vh;display:flex;flex-direction:column}.settings-modal .modal-header{padding-bottom:1rem;border-bottom:1px solid var(--border);margin-bottom:0}.settings-modal .modal-body{display:flex;gap:0;overflow:hidden;flex:1;min-height:0}.settings-tabs{display:flex;flex-direction:column;gap:.25rem;padding:1.5rem 0 1.5rem 1.5rem;border-right:1px solid var(--border);min-width:220px;background:var(--bg-secondary)}.settings-tab{display:flex;align-items:center;justify-content:flex-start;gap:.75rem;padding:.75rem 1rem;background:transparent;border:none;border-radius:8px 0 0 8px;cursor:pointer;transition:all .2s;color:var(--text-secondary);font-weight:500;font-size:.9rem;text-align:left;white-space:nowrap}.settings-tab:hover{color:var(--primary-color);background:var(--bg-hover)}.settings-tab.active{color:var(--primary-color);background:var(--card-bg);font-weight:600}.tab-icon{display:flex;align-items:center;justify-content:center}.settings-content{flex:1;overflow-y:auto;padding:1.5rem 2rem;min-height:0}.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}.background-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:1rem;margin-bottom:1rem}.background-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)}.background-option:hover{transform:translateY(-2px);box-shadow:0 8px 16px -4px #00000026;border-color:var(--primary-color)}.background-option.active{border-color:var(--primary-color);border-width:3px;box-shadow:0 0 0 3px #8b5cf626;background:var(--hover-bg)}.background-preview{height:70px;border-radius:8px;margin-bottom:.75rem;overflow:hidden;box-shadow:0 2px 8px #0000001a;position:relative;transition:transform .2s ease}.background-option:hover .background-preview{transform:scale(1.05)}.background-preview-blur{position:absolute;top:0;right:0;bottom:0;left:0;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);display:flex;align-items:center;justify-content:center;font-size:.75rem;color:#0006;font-weight:600}.background-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:var(--text-primary);font-size:.9rem}.form-input{padding:.75rem;border:2px solid var(--border-color);border-radius:8px;font-size:.95rem;background:var(--card-bg);color:var(--text-primary);transition:border-color .2s}.form-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #667eea1a}select.form-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M6 9L1 4h10z"/></svg>');background-repeat:no-repeat;background-position:right .75rem center;background-size:12px;padding-right:2.5rem;cursor:pointer}.form-control,.form-select{padding:.75rem;border:2px solid var(--border-color);border-radius:8px;font-size:.95rem;background:var(--card-bg);color:var(--text-primary);transition:border-color .2s;width:100%}select.form-control,.form-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M6 9L1 4h10z"/></svg>');background-repeat:no-repeat;background-position:right .75rem center;background-size:12px;padding-right:2.5rem;cursor:pointer}.form-control:focus,.form-select:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #667eea1a}.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:var(--text-primary)}.language-select{width:100%;padding:.75rem 2rem .75rem .75rem;border:2px solid var(--border-color);border-radius:8px;font-size:1rem;background:var(--card-bg);color:var(--text-primary);cursor:pointer;transition:all .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M6 9L1 4h10z"/></svg>');background-repeat:no-repeat;background-position:right .75rem center;background-size:12px}.language-select:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #667eea1a}.language-select:hover{border-color:var(--primary-color)}.folder-input{width:100%;padding:.75rem;border:2px solid var(--border-color);border-radius:8px;font-size:1rem;background:var(--card-bg);color:var(--text-primary);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:var(--text-primary)}.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:var(--text-secondary)}.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 2rem .75rem .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;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M6 9L1 4h10z"/></svg>');background-repeat:no-repeat;background-position:right .75rem center;background-size:12px}.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:var(--text-primary)}.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:var(--text-primary);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:var(--text-secondary);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:var(--card-bg);border-radius:8px;border:1px solid var(--border-color);transition:all .2s}.workspace-item:hover{background:var(--hover-bg);border-color:var(--primary-color)}.workspace-icon{font-size:1.5rem;min-width:32px;text-align:center}.workspace-icon-btn{background:var(--card-bg);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:var(--card-bg)}.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:var(--card-bg);color:var(--text-primary);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:var(--card-bg);border-radius:8px;cursor:pointer;transition:all .2s;border:2px solid var(--border-color)}.sort-option:hover{background:var(--hover-bg);border-color:var(--primary-color);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:var(--text-primary)}.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:var(--card-bg);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:var(--hover-bg)}.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:var(--hover-bg);color:var(--accent-color);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(--text-primary);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:var(--card-bg);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:var(--sidebar-bg);border-bottom:1px solid var(--border-color);color:var(--text-primary);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;color:var(--text-primary)}.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:.8rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:1rem;max-width:100px}.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}.custom-property-actions .btn-icon{background:none;border:none;cursor:pointer;padding:.5rem;border-radius:6px;transition:all .2s;font-size:1rem;color:var(--text-secondary)}.custom-property-actions .btn-icon:hover{background:var(--border-color);color:var(--primary-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}.view-mode-card{display:flex;flex-direction:column;align-items:center;padding:1.5rem 1rem;border:2px solid var(--border);border-radius:12px;cursor:pointer;transition:all .2s ease;background:var(--bg-primary);text-align:center}.view-mode-card:hover{border-color:var(--primary-color);background:var(--bg-hover);transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.view-mode-card.active{border-color:var(--primary-color);background:var(--primary-color);color:#fff;box-shadow:0 4px 16px #677eea4d}.view-mode-card.active .view-mode-description{color:#fffc}.view-mode-icon{margin-bottom:.75rem;opacity:.8}.view-mode-card.active .view-mode-icon{opacity:1}.view-mode-title{font-weight:600;font-size:1rem;margin-bottom:.25rem}.view-mode-description{font-size:.8rem;color:var(--text-tertiary)}.property-checkbox-label{display:flex;align-items:flex-start;cursor:pointer;padding:.75rem;border-radius:8px;border:2px solid transparent;transition:all .15s ease;background:var(--bg-primary)}.property-checkbox-label:hover{background:var(--bg-hover);border-color:var(--border)}.property-checkbox-label input[type=checkbox]{margin-top:.25rem;margin-right:.75rem;cursor:pointer;width:18px;height:18px;flex-shrink:0}.property-checkbox-label input[type=checkbox]:checked{accent-color:var(--primary-color)}.property-checkbox-content{display:flex;flex-direction:column;gap:.25rem;flex:1}.property-name{font-size:.9rem;font-weight:500;color:var(--text-primary)}.property-type{font-size:.75rem;color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.5px}.modal,#icon-picker-modal{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:#000000bf;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:99999!important;align-items:center;justify-content:center;padding:1rem;pointer-events:auto!important;touch-action:auto!important;isolation:isolate}.modal-content{max-width:600px;width:90%;max-height:90vh;background:var(--card-bg);border-radius:12px;box-shadow:0 20px 60px #00000080;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border-color);pointer-events:auto!important;touch-action:auto!important;position:relative;z-index:100000}.icon-picker-modal-content{max-width:800px;width:90%;max-height:90vh;background:var(--card-bg, #ffffff);border-radius:12px;box-shadow:0 20px 60px #00000080;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border-color, rgba(0, 0, 0, .1));pointer-events:auto!important;touch-action:auto!important;position:relative;z-index:100000}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.5rem;border-bottom:1px solid var(--border-color)}.modal-header h2{display:flex;align-items:center;gap:.5rem;margin:0;font-size:1.25rem;color:var(--text-primary)}.modal-header i{width:20px;height:20px}.modal-body{padding:1.5rem;overflow-y:auto;flex:1}.modal-footer{display:flex;justify-content:flex-end;gap:.75rem;padding:1.5rem;border-top:1px solid var(--border-color)}.icon-picker-controls{display:flex;gap:1rem;margin-bottom:1.5rem}.icon-search-container{flex:1;position:relative;display:flex;align-items:center}.icon-search-container i{position:absolute;left:1rem;width:16px;height:16px;color:var(--text-muted)}.icon-search-input{width:100%;padding:.75rem 1rem .75rem 2.5rem;border:1px solid var(--border);border-radius:8px;font-size:.95rem;background:var(--bg);color:var(--text-primary);transition:border-color .2s}.icon-search-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #667eea1a}.icon-collection-filter{padding:.75rem 2rem .75rem 1rem;border:1px solid var(--border);border-radius:8px;font-size:.95rem;background:var(--bg);color:var(--text-primary);cursor:pointer;min-width:200px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M6 9L1 4h10z"/></svg>');background-repeat:no-repeat;background-position:right .75rem center;background-size:12px}.icon-collection-filter:focus{outline:none;border-color:var(--primary)}.icon-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:.75rem;max-height:50vh;overflow-y:auto;padding:1rem;background:var(--bg-secondary);border-radius:8px}.icon-picker-item{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1rem;background:var(--bg);border:2px solid var(--border);border-radius:8px;cursor:pointer;transition:all .2s;min-height:80px;position:relative}.icon-picker-item:hover{border-color:var(--primary);background:var(--hover-bg);transform:translateY(-2px);box-shadow:0 2px 8px #0000001a}.icon-picker-item.selected{border-color:#667eea!important;border-width:3px!important;background:#667eea33!important;box-shadow:0 0 0 4px #667eea26!important;transform:scale(1.05)}.icon-picker-item.selected:after{content:"✓";position:absolute;top:4px;right:4px;background:#667eea;color:#fff;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700}.icon-picker-item img{width:40px;height:40px;margin-bottom:.5rem;filter:brightness(0) saturate(100%) invert(45%) sepia(10%) saturate(500%) hue-rotate(180deg)}.icon-picker-item.selected img{filter:brightness(0) saturate(100%) invert(45%) sepia(80%) saturate(3000%) hue-rotate(220deg) brightness(1.1)}.icon-picker-item:hover img{filter:brightness(0) saturate(100%) invert(45%) sepia(50%) saturate(1500%) hue-rotate(220deg)}.icon-picker-name{font-size:.75rem;color:var(--text-muted);text-align:center;word-break:break-word;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.icon-picker-loading,.icon-picker-empty,.icon-picker-error{grid-column:1 / -1;text-align:center;padding:3rem;color:var(--text-muted);font-size:.95rem}.icon-picker-error{color:var(--danger)}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@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%}}.bulk-actions-toolbar{display:flex;align-items:center;gap:12px;padding:8px 16px;background:var(--card-bg);border:2px solid var(--primary-color);border-radius:8px;box-shadow:0 4px 12px #667eea26}.selected-count{font-weight:600;color:var(--primary-color);font-size:14px}#bulk-select-toggle.active{background:var(--primary-color);color:#fff}#bulk-select-toggle.active:hover{background:#5568d3}.note-select-checkbox{position:absolute;top:12px;left:12px;z-index:10;pointer-events:all}.note-select-checkbox input[type=checkbox]{width:20px;height:20px;cursor:pointer;accent-color:var(--primary-color)}.dashboard-card.selectable{cursor:pointer;position:relative}.dashboard-card.selectable:hover{border-color:var(--primary-color)}.bulk-selection-mode .dashboard-card,.bulk-selection-mode .dashboard-card:active{cursor:pointer!important}.folder-picker-modal{max-width:500px}.folder-picker-list{max-height:400px;overflow-y:auto;border:1px solid var(--border-color);border-radius:8px;margin-top:12px}.folder-picker-item{display:flex;align-items:center;gap:10px;padding:12px 16px;cursor:pointer;transition:background .2s;border-bottom:1px solid var(--border-color)}.folder-picker-item:last-child{border-bottom:none}.folder-picker-item:hover{background:var(--hover-bg)}.folder-picker-item .folder-icon{font-size:18px;display:flex;align-items:center;justify-content:center}.folder-picker-item .folder-name{flex:1;font-weight:500}.folder-picker-item img{width:16px;height:16px;object-fit:cover;border-radius:4px}@media (max-width: 1200px){.dashboard-header{padding:1.25rem 1.5rem}.dashboard-title-text{font-size:1.5rem}.search-container{min-width:200px;max-width:300px}}@media (max-width: 768px){.dashboard-header-top{flex-wrap:wrap;gap:.75rem}.dashboard-title-section{min-width:100%}.dashboard-header-bottom{flex-wrap:wrap}.dashboard-info{width:100%}.search-container{min-width:100%;max-width:100%}}.widgets-container{width:100%;margin:1rem 0 0;padding:.75rem;background:linear-gradient(135deg,#3b82f60d,#8b5cf60d);border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color);position:relative}.widgets-container:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,var(--primary-color),transparent);opacity:.3}.widget-card{background:var(--card-bg);border:1px solid var(--border-color);border-radius:12px;padding:0;margin-bottom:.75rem;box-shadow:var(--card-shadow);overflow:hidden;transition:all .2s}.widget-badges{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;padding:.75rem}.widget-badge{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:.5rem .375rem;border-radius:8px;background:var(--card-bg);border:2px solid var(--border-color);cursor:pointer;transition:all .2s;min-height:70px}.widget-badge:hover{transform:translateY(-3px);box-shadow:0 6px 16px #0000001f;border-color:currentColor;background:linear-gradient(135deg,var(--card-bg) 0%,var(--hover-bg) 100%)}.widget-badge-count{font-size:2rem;font-weight:800;line-height:1;margin:.5rem 0 .375rem;color:var(--text-primary)}.widget-badge-label{font-size:.688rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:var(--text-secondary);text-align:center}.widget-list{display:flex;flex-direction:column;gap:.375rem;padding:.75rem}.widget-list-item{display:flex;align-items:center;gap:.625rem;padding:.5rem .625rem;background:var(--hover-bg);border-radius:6px;cursor:pointer;transition:all .2s;border:1px solid transparent}.widget-list-item:hover{background:var(--card-bg);border-color:var(--border-color);transform:translate(4px);box-shadow:0 2px 8px #00000014}.widget-list-color{width:4px;height:32px;border-radius:3px;flex-shrink:0}.widget-list-label{flex:1;font-weight:500;font-size:.813rem;color:var(--text-primary)}.widget-list-count{background:var(--hover-bg);color:var(--primary-color);padding:.25rem .625rem;border-radius:12px;font-size:.75rem;font-weight:700;min-width:32px;text-align:center}.widget-progress{display:flex;flex-direction:column;gap:.75rem;padding:.75rem}.widget-progress-item{cursor:pointer;transition:opacity .2s}.widget-progress-item:hover{opacity:.8}.widget-progress-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.375rem}.widget-progress-label{font-weight:500;font-size:.813rem;color:var(--text-primary)}.widget-progress-count{font-size:.75rem;color:var(--text-secondary)}.widget-progress-bar{height:8px;background:var(--hover-bg);border-radius:4px;overflow:hidden;box-shadow:inset 0 1px 3px #0000001a}.widget-progress-fill{height:100%;border-radius:4px;transition:width .4s ease;box-shadow:0 0 8px #00000026}.todo-view-toggle{display:flex;gap:.5rem;padding:.5rem 1rem;border-bottom:1px solid var(--border-color)}.todo-view-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:.25rem;padding:.4rem .25rem;border:1px solid var(--border-color);background:var(--card-bg);color:var(--text-muted);border-radius:6px;cursor:pointer;transition:all .2s;font-size:.75rem;white-space:nowrap;overflow:hidden}.todo-view-btn:hover{background:var(--hover-bg);border-color:var(--primary-color)}.todo-view-btn.active{background:var(--primary-color);color:#fff;border-color:var(--primary-color)}.todo-view-btn i{width:14px;height:14px;flex-shrink:0}.todo-view-btn span{overflow:hidden;text-overflow:ellipsis}.task-lists-view{padding:.5rem 0}.task-lists-header{padding:.5rem 1rem;border-bottom:1px solid var(--border-color)}.task-lists-header .btn-text{width:100%;display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.5rem;border:1px dashed var(--border-color);background:transparent;color:var(--primary-color);border-radius:6px;cursor:pointer;transition:all .2s}.task-lists-header .btn-text:hover{background:var(--hover-bg);border-color:var(--primary-color);border-style:solid}.task-lists-container{padding:.5rem}.task-list-item{display:flex;align-items:flex-start;gap:.5rem;padding:.5rem;margin-bottom:.5rem;background:var(--card-bg);border:1px solid var(--border-color);border-radius:6px;cursor:pointer;transition:all .2s}.task-list-item:hover{background:var(--hover-bg);border-color:var(--primary-color);transform:translateY(-1px);box-shadow:0 2px 8px #00000014}.task-list-item.project-card{background:linear-gradient(135deg,var(--card-bg) 0%,var(--bg-secondary) 100%);border:1.5px solid var(--border-color);padding:.65rem}.task-list-item.project-card:hover{border-color:var(--accent-color);box-shadow:0 3px 10px #0000001f}.task-list-item>*{pointer-events:none}.task-list-icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:var(--bg-primary);border-radius:6px;border:1px solid var(--border-color)}.task-list-info{flex:1;min-width:0}.task-list-name{font-weight:600;font-size:.9rem;color:var(--text-primary);margin-bottom:.15rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-list-folder{font-size:.7rem;color:var(--text-muted);display:flex;align-items:center;gap:3px;margin-bottom:.15rem}.task-list-count{background:var(--primary-color);color:#fff;padding:.15rem .4rem;border-radius:10px;font-size:.7rem;font-weight:600;flex-shrink:0}.kanban-modal-content{max-width:90vw;width:1400px;max-height:90vh}.kanban-modal-content .modal-header{display:flex;align-items:center;justify-content:space-between}.kanban-modal-actions{display:flex;gap:.5rem;align-items:center}.kanban-modal-content .modal-body{padding:0;overflow-x:auto;overflow-y:hidden}.kanban-board{display:flex;gap:1rem;padding:1.5rem;min-height:500px}.kanban-column{flex:1;min-width:300px;max-width:400px;background:var(--bg-secondary);border-radius:8px;display:flex;flex-direction:column}.kanban-column-header{padding:1rem;border-bottom:3px solid var(--primary-color);display:flex;align-items:center;justify-content:space-between}.kanban-column-header h4{margin:0;font-size:1rem;color:var(--text-primary)}.kanban-column-count{background:var(--hover-bg);color:var(--text-secondary);padding:.25rem .5rem;border-radius:12px;font-size:.75rem;font-weight:600}.kanban-column-body{flex:1;padding:1rem;overflow-y:auto;min-height:200px}.kanban-card{background:var(--card-bg);border:1px solid var(--border-color);border-radius:6px;padding:.75rem;margin-bottom:.75rem;cursor:grab;transition:all .2s;-webkit-user-select:none;user-select:none}.kanban-card:hover{border-color:var(--primary-color);box-shadow:0 2px 8px #0000001a;transform:translateY(-2px)}.kanban-card:active{cursor:grabbing}.kanban-card[data-dragging=true]{opacity:.5;cursor:grabbing}.kanban-card-header{display:flex;align-items:flex-start;gap:.5rem;margin-bottom:.5rem}.kanban-card-priority{width:4px;height:4px;border-radius:50%;flex-shrink:0;margin-top:.5rem}.kanban-card-title{flex:1;font-weight:500;color:var(--text-primary);line-height:1.4}.kanban-card-description{font-size:.875rem;color:var(--text-secondary);line-height:1.4;margin-bottom:.5rem}.kanban-card-footer{display:flex;align-items:center;gap:.375rem;font-size:.75rem;color:var(--text-muted);padding-top:.5rem;border-top:1px solid var(--border-color)}.kanban-card-footer i{width:12px;height:12px}.kanban-card-footer.overdue{color:var(--danger)}#task-list-modal .modal-content{max-width:500px}.form-group{margin-bottom:1rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:500;color:var(--text-primary)}.form-input,.form-select{width:100%;padding:.625rem;border:1px solid var(--border-color);border-radius:6px;background:var(--card-bg);color:var(--text-primary);font-size:.9375rem;transition:all .2s}.form-input:focus,.form-select:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #3b82f61a}.widget{background:var(--card-bg);border:1px solid var(--border-color);border-radius:12px;margin-bottom:1rem;overflow:hidden;box-shadow:var(--card-shadow)}.widget-content{padding:.5rem}.widget-item,.template-item{padding:1rem;border-radius:8px;margin-bottom:.75rem;transition:all .2s;border:1px solid var(--border-color);background:var(--bg-secondary)}.widget-item:hover,.template-item:hover{background:var(--hover-bg);border-color:var(--primary-color);transform:translateY(-2px);box-shadow:0 4px 12px #0000000d}.widget-item-title{font-size:.875rem;font-weight:500;color:var(--text-primary);display:flex;align-items:center;gap:.5rem;margin-bottom:.25rem}.widget-item-title i{width:.875rem;height:.875rem;color:var(--text-secondary)}.widget-item-meta{font-size:.75rem;color:var(--text-secondary);display:flex;align-items:center;gap:.375rem}.widget-item-meta i{width:.75rem;height:.75rem}.widget-item-meta.overdue,.widget-item-meta.overdue i{color:var(--danger)}.widget-item-content{flex:1}.widget-empty-state{padding:2rem 1rem;text-align:center;color:var(--text-secondary)}.widget-empty-state i{width:2rem;height:2rem;opacity:.5;margin-bottom:.5rem}.widget-empty-state p{margin:0;font-size:.875rem}.task-item{display:flex;align-items:flex-start}.task-checkbox-container{width:1rem;height:1rem;border:2px solid var(--border-color);border-radius:4px;margin-top:.125rem;flex-shrink:0;cursor:pointer;transition:all .2s}.task-checkbox-container:hover{border-color:var(--primary-color);background:#3b82f61a}[data-theme=dark] .folder-icon img,[data-theme=dark] .daily-note-item-folder-icon img,[data-theme=dark] .note-folder-icon,[data-theme=dark] .note-icon[src*=iconify],[data-theme=dark] img[src*=iconify],[data-theme=dark] .dashboard-card-folder .note-folder-icon,[data-theme=dark] .folder-picker-item .folder-icon img,[data-theme=dark] #note-icon-preview img,[data-theme=dark] #icon-preview-img,[data-theme=nord-dark] .folder-icon img,[data-theme=nord-dark] .daily-note-item-folder-icon img,[data-theme=nord-dark] .note-folder-icon,[data-theme=nord-dark] img[src*=iconify],[data-theme=nord-dark] .dashboard-card-folder .note-folder-icon,[data-theme=nord-dark] .folder-picker-item .folder-icon img,[data-theme=nord-dark] #note-icon-preview img,[data-theme=nord-dark] #icon-preview-img,[data-theme=dracula] .folder-icon img,[data-theme=dracula] .daily-note-item-folder-icon img,[data-theme=dracula] .note-folder-icon,[data-theme=dracula] img[src*=iconify],[data-theme=dracula] .dashboard-card-folder .note-folder-icon,[data-theme=dracula] .folder-picker-item .folder-icon img,[data-theme=dracula] #note-icon-preview img,[data-theme=dracula] #icon-preview-img,[data-theme=solarized-dark] .folder-icon img,[data-theme=solarized-dark] .daily-note-item-folder-icon img,[data-theme=solarized-dark] .note-folder-icon,[data-theme=solarized-dark] img[src*=iconify],[data-theme=solarized-dark] .dashboard-card-folder .note-folder-icon,[data-theme=solarized-dark] .folder-picker-item .folder-icon img,[data-theme=solarized-dark] #note-icon-preview img,[data-theme=solarized-dark] #icon-preview-img,[data-theme=gruvbox-dark] .folder-icon img,[data-theme=gruvbox-dark] .daily-note-item-folder-icon img,[data-theme=gruvbox-dark] .note-folder-icon,[data-theme=gruvbox-dark] img[src*=iconify],[data-theme=gruvbox-dark] .dashboard-card-folder .note-folder-icon,[data-theme=gruvbox-dark] .folder-picker-item .folder-icon img,[data-theme=gruvbox-dark] #note-icon-preview img,[data-theme=gruvbox-dark] #icon-preview-img,[data-theme=catppuccin] .folder-icon img,[data-theme=catppuccin] .daily-note-item-folder-icon img,[data-theme=catppuccin] .note-folder-icon,[data-theme=catppuccin] img[src*=iconify],[data-theme=catppuccin] .dashboard-card-folder .note-folder-icon,[data-theme=catppuccin] .folder-picker-item .folder-icon img,[data-theme=catppuccin] #note-icon-preview img,[data-theme=catppuccin] #icon-preview-img,[data-theme=tokyo-night] .folder-icon img,[data-theme=tokyo-night] .daily-note-item-folder-icon img,[data-theme=tokyo-night] .note-folder-icon,[data-theme=tokyo-night] img[src*=iconify],[data-theme=tokyo-night] .dashboard-card-folder .note-folder-icon,[data-theme=tokyo-night] .folder-picker-item .folder-icon img,[data-theme=tokyo-night] #note-icon-preview img,[data-theme=tokyo-night] #icon-preview-img,[data-theme=github-dark] .folder-icon img,[data-theme=github-dark] .daily-note-item-folder-icon img,[data-theme=github-dark] .note-folder-icon,[data-theme=github-dark] img[src*=iconify],[data-theme=github-dark] .dashboard-card-folder .note-folder-icon,[data-theme=github-dark] .folder-picker-item .folder-icon img,[data-theme=github-dark] #note-icon-preview img,[data-theme=github-dark] #icon-preview-img{filter:invert(1);opacity:.9}iframe[src*=iconify]{z-index:200001!important;position:fixed!important}.iconify-modal{z-index:200001!important}.widget-card{background:var(--card-bg);border:1px solid var(--border-color);border-radius:12px;margin-bottom:1rem;overflow:hidden;box-shadow:var(--card-shadow)}.widget-header{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;background:transparent;border-bottom:1px solid var(--border-color);margin:0}.widget-title{margin:0;font-size:.938rem;font-weight:600;color:var(--text-primary);display:flex;align-items:center;gap:.5rem}.widget-settings-btn{opacity:.5;transition:all .2s;padding:4px;border-radius:4px;background:transparent!important;border:none!important;box-shadow:none!important;color:var(--text-primary);cursor:pointer}.widget-settings-btn:hover{opacity:1;background:transparent!important;transform:rotate(45deg)}.widget-badges,.widget-list,.widget-progress{padding:1rem}.widget-item-date{font-size:.75rem;color:var(--text-secondary);margin-left:.5rem;font-weight:400}.widget-list-label{display:flex;align-items:center;justify-content:space-between;flex:1;margin-right:1rem}.widget-progress-label{display:flex;align-items:center;gap:.5rem}.widget-tasks-list{padding:.75rem}.widget-task-item{display:flex;align-items:flex-start;gap:.75rem;padding:.625rem .5rem;border-radius:6px;cursor:pointer;transition:all .15s ease}.widget-task-item:hover{background:var(--hover-bg)}.widget-task-item.completed{opacity:.6}.widget-task-priority{width:3px;min-height:24px;border-radius:2px;flex-shrink:0;align-self:stretch}.widget-task-checkbox{width:18px;height:18px;min-width:18px;border:2px solid var(--border-color);border-radius:4px;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .15s ease;margin-top:1px}.widget-task-checkbox.checked{background:var(--bg-tertiary)}.widget-task-checklist:hover .widget-task-checkbox{border-color:var(--primary-color);background:#3b82f60d}.widget-task-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:.25rem}.widget-task-title{font-size:.875rem;font-weight:500;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}.widget-task-title.completed{text-decoration:line-through;color:var(--text-secondary)}.widget-task-due{font-size:.75rem;color:var(--text-secondary);display:flex;align-items:center;gap:.25rem}.widget-task-due.overdue,.widget-task-due.overdue i{color:var(--danger)}.widget-tasks-grouped{padding:.5rem}.widget-task-group{margin-bottom:.75rem}.widget-task-group:last-child{margin-bottom:0}.widget-task-group-header{display:flex;align-items:center;justify-content:space-between;padding:.25rem .5rem;margin-bottom:.25rem}.widget-task-group-label{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;display:flex;align-items:center;gap:.375rem}.widget-task-group-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.widget-task-group-count{font-size:.75rem;color:var(--text-secondary);font-weight:500}.widget-task-group-items{padding-left:.25rem}.widget-task-group-items .widget-task-item{padding:.5rem}.widget-tasks-more{display:flex;align-items:center;gap:.375rem;padding:.5rem;margin-top:.25rem;font-size:.8125rem;color:var(--primary-color);cursor:pointer;border-radius:6px;transition:all .15s ease}.widget-tasks-more:hover{background:#3b82f61a}.widget-tasks-more i{color:var(--primary-color)}.pinned-notes-list{display:flex;flex-direction:column;padding:.5rem}.pinned-note-item{display:flex;align-items:center;justify-content:space-between;padding:.5rem .75rem;border-radius:6px;cursor:pointer;transition:all .15s ease}.pinned-note-item:hover{background:var(--hover-bg)}.pinned-note-title{font-size:.875rem;font-weight:500;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.pinned-note-unpin{opacity:0;background:transparent;border:none;padding:4px;border-radius:4px;cursor:pointer;color:var(--text-secondary);display:flex;align-items:center;justify-content:center;transition:all .15s ease;flex-shrink:0;margin-left:.5rem}.pinned-note-item:hover .pinned-note-unpin{opacity:1}.pinned-note-unpin:hover{background:var(--hover-bg);color:var(--danger)}.pinned-note-unpin i{width:14px;height:14px}.sidebar-widgets-container.pinned-drop-target{outline:2px dashed var(--primary-color);outline-offset:-4px;background:#3b82f60d;border-radius:8px}.folder-view-settings-modal .modal-content{width:90vw;max-width:800px;max-height:85vh;overflow-y:auto}.widget-editor-modal .modal-content{max-height:85vh;overflow-y:auto}.pdf-preview-modal .modal-content{width:90vw;height:90vh;max-width:1200px;max-height:90vh;padding:20px;display:flex;flex-direction:column}.pdf-preview-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.pdf-preview-iframe{flex:1;width:100%;height:100%;border:1px solid var(--border-color);border-radius:4px;background:#fff}.link-preview-wrapper{margin:1rem 0;-webkit-user-select:none;user-select:none;position:relative}.link-preview-card{display:flex;text-decoration:none;background:var(--bg-secondary, #f8fafc);border:1px solid var(--border-color, #e2e8f0);border-radius:8px;overflow:hidden;transition:all .2s ease;max-width:800px;color:inherit}.link-preview-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000014;border-color:var(--primary-color, #667eea)}.link-preview-image{width:200px;min-width:200px;background:var(--hover-bg, #f1f5f9);position:relative;overflow:hidden}.link-preview-image img{width:100%;height:100%;object-fit:cover;position:absolute;top:0;left:0}.link-preview-content{padding:1rem;flex:1;display:flex;flex-direction:column;gap:.25rem;overflow:hidden}.link-preview-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.25rem}.link-preview-favicon{width:16px;height:16px;border-radius:2px}.link-preview-site{font-size:.75rem;font-weight:600;color:var(--text-secondary, #64748b);text-transform:uppercase;letter-spacing:.5px}.link-preview-title{font-size:1rem;font-weight:600;color:var(--text-primary, #1e293b);margin-bottom:.25rem;line-height:1.4}.link-preview-description{font-size:.85rem;color:var(--text-secondary, #64748b);display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.5}.link-preview-url{margin-top:auto;font-size:.75rem;color:var(--text-tertiary, #94a3b8);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-top:.5rem}.link-preview-convert{position:absolute;top:.5rem;right:.5rem;background:#00000080;color:#fff;border:none;border-radius:4px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;transition:opacity .2s;font-size:.8rem;z-index:10}.link-preview-wrapper:hover .link-preview-convert{opacity:1}.link-preview-convert:hover{background:#000000b3}@media (max-width: 600px){.link-preview-card{flex-direction:column}.link-preview-image{width:100%;min-width:100%;height:150px}}[data-theme=dark] .link-preview-card,[data-theme=nord-dark] .link-preview-card,[data-theme=dracula] .link-preview-card,[data-theme=solarized-dark] .link-preview-card,[data-theme=gruvbox-dark] .link-preview-card,[data-theme=catppuccin] .link-preview-card,[data-theme=tokyo-night] .link-preview-card,[data-theme=github-dark] .link-preview-card{background:var(--card-bg);border-color:var(--border-color)}[data-theme=dark] .link-preview-image,[data-theme=nord-dark] .link-preview-image,[data-theme=dracula] .link-preview-image,[data-theme=solarized-dark] .link-preview-image,[data-theme=gruvbox-dark] .link-preview-image,[data-theme=catppuccin] .link-preview-image,[data-theme=tokyo-night] .link-preview-image,[data-theme=github-dark] .link-preview-image{background:var(--hover-bg)}[data-theme=dark] .link-preview-title,[data-theme=nord-dark] .link-preview-title,[data-theme=dracula] .link-preview-title,[data-theme=solarized-dark] .link-preview-title,[data-theme=gruvbox-dark] .link-preview-title,[data-theme=catppuccin] .link-preview-title,[data-theme=tokyo-night] .link-preview-title,[data-theme=github-dark] .link-preview-title{color:var(--text-primary)}[data-theme=dark] .link-preview-description,[data-theme=dark] .link-preview-site,[data-theme=nord-dark] .link-preview-description,[data-theme=nord-dark] .link-preview-site,[data-theme=dracula] .link-preview-description,[data-theme=dracula] .link-preview-site,[data-theme=solarized-dark] .link-preview-description,[data-theme=solarized-dark] .link-preview-site,[data-theme=gruvbox-dark] .link-preview-description,[data-theme=gruvbox-dark] .link-preview-site,[data-theme=catppuccin] .link-preview-description,[data-theme=catppuccin] .link-preview-site,[data-theme=tokyo-night] .link-preview-description,[data-theme=tokyo-night] .link-preview-site,[data-theme=github-dark] .link-preview-description,[data-theme=github-dark] .link-preview-site{color:var(--text-secondary)}[data-theme=dark] .link-preview-url,[data-theme=nord-dark] .link-preview-url,[data-theme=dracula] .link-preview-url,[data-theme=solarized-dark] .link-preview-url,[data-theme=gruvbox-dark] .link-preview-url,[data-theme=catppuccin] .link-preview-url,[data-theme=tokyo-night] .link-preview-url,[data-theme=github-dark] .link-preview-url{color:var(--text-muted)}[data-theme=dark] .link-preview-card:hover,[data-theme=nord-dark] .link-preview-card:hover,[data-theme=dracula] .link-preview-card:hover,[data-theme=solarized-dark] .link-preview-card:hover,[data-theme=gruvbox-dark] .link-preview-card:hover,[data-theme=catppuccin] .link-preview-card:hover,[data-theme=tokyo-night] .link-preview-card:hover,[data-theme=github-dark] .link-preview-card:hover{border-color:var(--primary-color);box-shadow:0 4px 12px #0000004d}.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}
