        /* Page layout */
        body {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        body > *:not(footer) {
            flex-shrink: 0;
        }

        body > footer {
            margin-top: auto;
        }

        /* Note card hover */
        .note-card {
            background: var(--dm-card-bg);
            border: 1px solid var(--dm-border);
            border-radius: 8px;
            padding: 1.5rem;
            box-shadow: var(--dm-shadow-sm);
            transition: box-shadow 0.2s ease;
            cursor: pointer;
        }

        .note-card:hover {
            box-shadow: var(--dm-shadow-md);
        }

        .note-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1rem;
        }

        .note-header h3 {
            margin: 0;
            font-size: 1.25rem;
            color: var(--dm-text);
        }

        .note-actions {
            display: flex;
            gap: 0.5rem;
        }

        .icon-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.25rem;
            color: var(--dm-text-muted);
            transition: color 0.2s ease;
        }

        .icon-btn:hover {
            color: var(--dm-primary);
        }

        .note-preview {
            color: var(--dm-text-muted);
            font-size: 0.9rem;
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .note-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            color: var(--dm-text-muted);
        }

        .note-categories {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .category-tag {
            background: var(--dm-primary-light);
            color: var(--dm-primary);
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 500;
        }

        /* Editor modal */
        .note-editor-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--dm-black-t50);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }

        .note-editor-content {
            background: var(--dm-card-bg);
            border-radius: 12px;
            width: 90%;
            max-width: 800px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: var(--dm-shadow-xl);
        }

        .editor-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem;
            border-bottom: 1px solid var(--dm-border);
        }

        .editor-header input {
            flex: 1;
            margin-right: 1rem;
            padding: 0.75rem;
            border: 1px solid var(--dm-border);
            border-radius: 8px;
            background: var(--dm-surface);
            color: var(--dm-text);
            font-size: 1.25rem;
            font-weight: 600;
        }

        .editor-toolbar {
            display: flex;
            gap: 0.5rem;
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--dm-border);
            background: var(--dm-surface);
        }

        .editor-toolbar button {
            background: var(--dm-card-bg);
            border: 1px solid var(--dm-border);
            padding: 0.5rem 0.75rem;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            transition: background 0.2s ease;
        }

        .editor-toolbar button:hover {
            background: var(--dm-hover-bg);
        }

        #note-content {
            width: 100%;
            min-height: 300px;
            padding: 1.5rem;
            border: none;
            background: var(--dm-surface);
            color: var(--dm-text);
            font-family: inherit;
            font-size: 1rem;
            line-height: 1.6;
            resize: vertical;
        }

        .editor-footer {
            display: flex;
            gap: 1rem;
            padding: 1.5rem;
            border-top: 1px solid var(--dm-border);
        }

        .editor-footer input {
            flex: 1;
            padding: 0.75rem;
            border: 1px solid var(--dm-border);
            border-radius: 8px;
            background: var(--dm-surface);
            color: var(--dm-text);
        }

        /* Empty state */
        .empty-state {
            text-align: center;
            padding: 4rem 2rem;
            color: var(--dm-text-muted);
        }

        .empty-state h3 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: var(--dm-text);
        }
