        /* Figma-like Floating Toolbar */
        .floating-toolbar {
            position: fixed;
            bottom: 16px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 4px;
            padding: 6px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid var(--color-border);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
            backdrop-filter: blur(10px);
            z-index: 1000;
        }

        body.dark-mode .floating-toolbar {
            background: rgba(30, 30, 30, 0.9);
        }

        .toolbar-item {
            min-width: 44px;
            padding: 6px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            border-radius: 8px;
            cursor: grab;
            user-select: none;
            border: 1px solid transparent;
            transition: background 0.15s ease, border 0.15s ease;
        }

        .toolbar-item:hover {
            background: var(--color-bg-secondary);
        }

        .toolbar-item.active {
            background: var(--color-primary-bg);
            border-color: var(--color-primary);
        }

        .toolbar-icon {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            border-radius: 6px;
            color: white;
        }

        .toolbar-label {
            font-size: 9px;
            font-weight: 500;
            line-height: 1;
            color: var(--color-text-secondary);
        }

        .toolbar-item.active .toolbar-label {
            color: var(--color-primary);
        }


        /* Inline Text Editing */
        .inline-edit-input {
            position: absolute;
            background: var(--color-bg);
            border: 2px solid var(--color-primary);
            border-radius: 4px;
            padding: 4px 8px;
            font-family: inherit;
            font-size: inherit;
            font-weight: inherit;
            color: white;
            outline: none;
            z-index: 1001;
            box-shadow: var(--shadow-md);
        }

        /* Drag Preview */
        .drag-preview {
            position: fixed;
            pointer-events: none;
            opacity: 0.8;
            z-index: 2000;
            transform: translate(-50%, -50%);
        }

        /* Hide old floating menu button */
        .floating-menu-btn {
            display: none;
        }

        .floating-menu {
            display: none;
        }

        /* Right Sidebar Panels */
        .right-sidebar {
            position: fixed;
            right: 0;
            top: 72px;
            bottom: 0;
            width: 320px;
            background: var(--color-bg);
            border-left: 1px solid var(--color-border);
            display: flex;
            flex-direction: column;
            z-index: 50;
            overflow: hidden;
        }

        .panel {
            border-bottom: 1px solid var(--color-border);
            display: flex;
            flex-direction: column;
        }

        .panel-header {
            padding: 16px;
            font-weight: 600;
            font-size: 14px;
            color: var(--color-text);
            background: var(--color-bg-secondary);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .panel-content {
            padding: 16px;
            overflow-y: auto;
            max-height: 400px;
        }

        .panel.collapsed .panel-content {
            display: none;
        }

        @media (max-width: 980px) {
            .right-sidebar {
                top: 118px;
            }
        }

        @media (max-width: 760px) {
            .floating-toolbar {
                left: 16px;
                right: 16px;
                transform: none;
                justify-content: flex-start;
                overflow-x: auto;
            }

            .right-sidebar {
                display: none;
            }
        }
