.code-editor-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; background: white; z-index: 100; } .code-editor-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid #ddd; background: white; } .code-editor-header .header-left { display: flex; align-items: center; gap: 16px; } .code-editor-header .preview-actions { display: flex; gap: 8px; } .editor-filename { margin: 0; font-size: 18px; font-weight: 600; color: #333; } .code-editor-body { flex: 1; overflow: hidden; position: relative; background: white; } .code-editor-body .CodeMirror { height: 100%; font-family: 'Consolas', 'Monaco', 'Courier New', monospace; font-size: 14px; background: white; user-select: text !important; cursor: text; } .code-editor-body .CodeMirror * { user-select: text !important; } .code-editor-body .CodeMirror-scroll { cursor: text; } .code-editor-body .CodeMirror-gutters { background: #f9f9f9; border-right: 1px solid #ddd; } .code-editor-body .CodeMirror-linenumber { color: #999; padding: 0 8px; } .code-editor-body .CodeMirror-cursor { border-left: 2px solid #333; } .code-editor-body .CodeMirror-selected { background: #d7e8ff; } .code-editor-body .CodeMirror-line::selection, .code-editor-body .CodeMirror-line > span::selection, .code-editor-body .CodeMirror-line > span > span::selection { background: #d7e8ff; } .code-editor-body textarea { display: none; } @media (max-width: 767px) { .code-editor-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200; } .code-editor-header { padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0)); flex-wrap: wrap; gap: 8px; } .code-editor-header .header-left { gap: 8px; flex: 1; min-width: 0; } .code-editor-header .preview-actions { gap: 4px; } .code-editor-header .button { min-width: 44px; min-height: 44px; padding: 8px 12px; font-size: 14px; } .editor-filename { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .code-editor-body { padding-bottom: env(safe-area-inset-bottom, 0); } .code-editor-body .CodeMirror { font-size: 13px; } .code-editor-body .CodeMirror-linenumber { padding: 0 4px; } }