.md-studio-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.25rem;
            width: 100%;
            max-width: 1100px;
            margin: 0 auto;
        }

        @media (max-width: 860px) {
            .md-studio-grid {
                grid-template-columns: 1fr;
            }
        }

        .md-editor-pane {
            background: #ffffff;
            border-radius: 12px;
            padding: 1.25rem;
            box-shadow: var(--stitch-shadow-paper, 0 4px 20px rgba(0,0,0,0.06));
            display: flex;
            flex-direction: column;
        }

        .md-editor-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0.75rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color, #e2e8f0);
        }

        .md-editor-title {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--text-main, #0f172a);
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .md-stats-badge {
            font-size: 0.75rem;
            color: var(--text-muted, #64748b);
            font-family: var(--font-mono, monospace);
        }

        .md-textarea {
            width: 100%;
            height: 380px;
            border: 1px solid var(--border-color, #e2e8f0);
            border-radius: 8px;
            padding: 0.85rem;
            font-family: var(--font-mono, 'JetBrains Mono', monospace);
            font-size: 0.85rem;
            line-height: 1.6;
            color: var(--text-main, #0f172a);
            background: #f8fafc;
            resize: vertical;
            outline: none;
            transition: border-color 0.2s ease;
        }

        .md-textarea:focus {
            border-color: var(--color-primary, #137BEC);
            background: #ffffff;
        }

        .md-preview-pane {
            background: #ffffff;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: var(--stitch-shadow-paper, 0 4px 20px rgba(0,0,0,0.06));
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .md-preview-body {
            height: 380px;
            overflow-y: auto;
            border: 1px solid var(--border-color, #e2e8f0);
            border-radius: 8px;
            padding: 1.25rem;
            background: #ffffff;
            font-size: 0.88rem;
            line-height: 1.6;
            color: var(--text-main, #1e293b);
        }

        .md-preview-body h1 {
            font-size: 1.35rem;
            color: #1e3a8a;
            border-bottom: 2px solid #e2e8f0;
            padding-bottom: 0.3rem;
            margin-top: 0;
            margin-bottom: 0.6rem;
        }

        .md-preview-body h2 {
            font-size: 1.15rem;
            color: #1e3a8a;
            border-bottom: 1px solid #f1f5f9;
            padding-bottom: 0.25rem;
            margin-top: 0.9rem;
            margin-bottom: 0.4rem;
        }

        .md-preview-body h3 {
            font-size: 1rem;
            color: #2563eb;
            margin-top: 0.7rem;
            margin-bottom: 0.3rem;
        }

        .md-preview-body p {
            margin-bottom: 0.6rem;
        }

        .md-preview-body blockquote {
            border-left: 3px solid #3b82f6;
            background: #f8fafc;
            padding: 0.5rem 0.75rem;
            margin: 0.6rem 0;
            color: #475569;
            border-radius: 0 4px 4px 0;
        }

        .md-preview-body pre {
            background: #0f172a;
            color: #f8fafc;
            padding: 0.6rem 0.85rem;
            border-radius: 6px;
            overflow-x: auto;
            margin: 0.6rem 0;
            font-family: var(--font-mono, monospace);
            font-size: 0.8rem;
        }

        .md-preview-body code {
            background: #f1f5f9;
            color: #0f172a;
            padding: 0.1rem 0.3rem;
            border-radius: 3px;
            font-family: var(--font-mono, monospace);
            font-size: 0.82rem;
        }

        .md-preview-body pre code {
            background: transparent;
            color: inherit;
            padding: 0;
        }

        .md-preview-body table {
            width: 100%;
            border-collapse: collapse;
            margin: 0.75rem 0;
            font-size: 0.82rem;
        }

        .md-preview-body th, .md-preview-body td {
            border: 1px solid #cbd5e1;
            padding: 0.4rem 0.6rem;
            text-align: left;
        }

        .md-preview-body th {
            background: #f1f5f9;
            font-weight: 600;
        }

        .md-preview-body tr:nth-child(even) {
            background: #f8fafc;
        }

        .md-preview-body ul, .md-preview-body ol {
            padding-left: 1.25rem;
            margin-bottom: 0.6rem;
        }

        .md-options-row {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            align-items: center;
            background: #ffffff;
            border-radius: 12px;
            padding: 1rem 1.25rem;
            box-shadow: var(--stitch-shadow-paper, 0 4px 20px rgba(0,0,0,0.06));
            width: 100%;
            max-width: 1100px;
            margin: 1rem auto 0 auto;
        }

        .md-option-group {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .md-option-label {
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--text-muted, #64748b);
        }

        .md-option-select {
            padding: 0.4rem 0.75rem;
            font-size: 0.85rem;
            border: 1px solid var(--border-color, #e2e8f0);
            border-radius: 6px;
            background: #ffffff;
            color: var(--text-main, #0f172a);
            outline: none;
            cursor: pointer;
        }
