* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 300px 1fr;
            gap: 20px;
            height: calc(100vh - 40px);
        }
        .sidebar {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            display: flex;
            flex-direction: column;
        }
        .sidebar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        .sidebar h1 {
            font-size: 24px;
            color: #333;
        }
        .utility-buttons {
            display: flex;
            gap: 8px;
        }
        .icon-btn {
            background: #f8f9fa;
            border: none;
            padding: 8px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .icon-btn:hover {
            background: #e9ecef;
        }
        .icon-btn:active {
            transform: scale(0.95);
        }
        .new-note-btn {
            background: #667eea;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 8px;
            font-size: 16px;
            cursor: pointer;
            margin-bottom: 15px;
            font-weight: 600;
            transition: background 0.3s;
        }
        .new-note-btn:hover {
            background: #5568d3;
        }
        .search-box {
            margin-bottom: 15px;
        }
        .search-box input {
            width: 100%;
            padding: 10px 12px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.3s;
        }
        .search-box input:focus {
            border-color: #667eea;
        }
        .filter-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #e9ecef;
        }
        .filter-tag {
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
            cursor: pointer;
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            transition: all 0.3s;
        }
        .filter-tag:hover {
            background: #e9ecef;
        }
        .filter-tag.active {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }
        .notes-list {
            flex: 1;
            overflow-y: auto;
        }
        .note-item {
            background: #f8f9fa;
            padding: 12px;
            margin-bottom: 10px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            border: 2px solid transparent;
        }
        .note-item:hover {
            background: #e9ecef;
        }
        .note-item.active {
            background: #667eea;
            color: white;
            border-color: #5568d3;
        }
        .note-item h3 {
            font-size: 16px;
            margin-bottom: 5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .note-item p {
            font-size: 13px;
            color: #666;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 5px;
        }
        .note-item.active p {
            color: rgba(255,255,255,0.8);
        }
        .note-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-top: 6px;
        }
        .note-tag {
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 8px;
            background: rgba(102, 126, 234, 0.1);
            color: #667eea;
        }
        .note-item.active .note-tag {
            background: rgba(255,255,255,0.2);
            color: white;
        }
        .editor {
            background: white;
            border-radius: 12px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            display: flex;
            flex-direction: column;
        }
        .editor-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        .editor-actions {
            display: flex;
            gap: 10px;
        }
        .btn {
            padding: 8px 16px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s;
        }
        .btn-save {
            background: #28a745;
            color: white;
        }
        .btn-save:hover {
            background: #218838;
        }
        .btn-delete {
            background: #dc3545;
            color: white;
        }
        .btn-delete:hover {
            background: #c82333;
        }
        .editor input {
            width: 100%;
            padding: 15px;
            font-size: 24px;
            border: none;
            border-bottom: 2px solid #e9ecef;
            margin-bottom: 15px;
            font-weight: 600;
            outline: none;
        }
        .editor input:focus {
            border-bottom-color: #667eea;
        }
        .tags-input-container {
            margin-bottom: 15px;
        }
        .tags-input {
            width: 100%;
            padding: 10px;
            font-size: 14px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            outline: none;
        }
        .tags-input:focus {
            border-color: #667eea;
        }
        .tags-display {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 8px;
        }
        .tag-item {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 4px 10px;
            background: #667eea;
            color: white;
            border-radius: 12px;
            font-size: 12px;
        }
        .tag-remove {
            cursor: pointer;
            font-weight: bold;
        }
        .editor textarea {
            flex: 1;
            width: 100%;
            padding: 15px;
            font-size: 16px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            resize: none;
            font-family: inherit;
            line-height: 1.6;
            outline: none;
        }
        .editor textarea:focus {
            border-color: #667eea;
        }
        .empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: #999;
            text-align: center;
        }
        .empty-state svg {
            width: 100px;
            height: 100px;
            margin-bottom: 20px;
            opacity: 0.3;
        }
        .empty-state p {
            font-size: 18px;
            margin-bottom: 10px;
        }
        .empty-state .hint {
            font-size: 14px;
            color: #bbb;
            max-width: 400px;
        }
        .note-meta {
            font-size: 12px;
            color: #999;
            margin-bottom: 10px;
        }
        .keyboard-shortcuts {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            z-index: 1000;
            max-width: 500px;
            width: 90%;
            display: none;
        }
        .keyboard-shortcuts.show {
            display: block;
        }
        .keyboard-shortcuts h2 {
            margin-bottom: 20px;
            color: #333;
        }
        .shortcut-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #e9ecef;
        }
        .shortcut-item:last-child {
            border-bottom: none;
        }
        .shortcut-key {
            background: #f8f9fa;
            padding: 4px 8px;
            border-radius: 4px;
            font-family: monospace;
            font-size: 14px;
        }
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 999;
            display: none;
        }
        .modal-overlay.show {
            display: block;
        }
        .mobile-toggle {
            display: none;
        }
        @media (max-width: 768px) {
            .container {
                grid-template-columns: 1fr;
                height: calc(100vh - 40px);
            }
            .sidebar {
                display: none;
                max-height: none;
                height: calc(100vh - 40px);
            }
            .sidebar.show-mobile {
                display: flex;
            }
            .editor {
                display: none;
            }
            .editor.show-mobile {
                display: flex;
            }
            .mobile-toggle {
                display: block;
                position: fixed;
                bottom: 20px;
                right: 20px;
                width: 56px;
                height: 56px;
                border-radius: 50%;
                background: #667eea;
                color: white;
                border: none;
                font-size: 24px;
                cursor: pointer;
                box-shadow: 0 4px 12px rgba(0,0,0,0.3);
                z-index: 100;
            }
        }

#__wc_fb_btn{position:fixed;bottom:18px;right:18px;z-index:99999;background:#1a1a2e;border:1px solid rgba(255,255,255,0.12);border-radius:24px;padding:8px 14px;font-size:12px;color:#e2e8f0;cursor:pointer;font-family:system-ui,-apple-system,sans-serif;box-shadow:0 4px 16px rgba(0,0,0,0.3);display:flex;align-items:center;gap:6px;transition:all 0.2s;user-select:none}
#__wc_fb_btn:hover{background:#252540;border-color:rgba(255,255,255,0.2);transform:translateY(-1px)}
#__wc_fb_panel{position:fixed;bottom:64px;right:18px;z-index:99999;background:#0f1624;border:1px solid #1a2d45;border-radius:12px;padding:16px;width:260px;box-shadow:0 8px 32px rgba(0,0,0,0.5);display:none;font-family:system-ui,-apple-system,sans-serif}
#__wc_fb_panel.open{display:block}
.__wc_fb_title{font-size:13px;color:#e2e8f0;margin-bottom:12px;font-weight:500}
.__wc_fb_emojis{display:flex;justify-content:space-around;margin-bottom:12px}
.__wc_fb_emoji{font-size:26px;cursor:pointer;padding:6px;border-radius:8px;transition:all 0.15s;border:2px solid transparent}
.__wc_fb_emoji:hover{background:rgba(255,255,255,0.08);transform:scale(1.1)}
.__wc_fb_emoji.selected{border-color:rgba(196,168,74,0.6);background:rgba(196,168,74,0.08)}
.__wc_fb_prompt{font-size:11px;color:#4a6a90;margin-bottom:6px}
.__wc_fb_ta{width:100%;background:rgba(255,255,255,0.04);border:1px solid #1e2d45;border-radius:6px;padding:8px;color:#e2e8f0;font-size:11px;font-family:system-ui,-apple-system,sans-serif;resize:none;outline:none;box-sizing:border-box;line-height:1.5}
.__wc_fb_ta:focus{border-color:#2a4060}
.__wc_fb_actions{display:flex;gap:6px;margin-top:8px;justify-content:flex-end}
.__wc_fb_skip{font-size:11px;color:#2a4060;cursor:pointer;padding:4px 8px;background:transparent;border:none}
.__wc_fb_send{font-size:11px;color:#c4a84a;background:rgba(196,168,74,0.08);border:0.5px solid rgba(196,168,74,0.3);border-radius:4px;padding:5px 12px;cursor:pointer;font-family:system-ui}
.__wc_fb_send:hover{background:rgba(196,168,74,0.15)}
.__wc_fb_thanks{text-align:center;padding:8px 0;font-size:13px;color:#4ade80}