#file-editor-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.file-editor-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
}

.file-editor-modal {
    position: relative;
    max-width: 1100px;
    height: 80vh;
    margin: 5vh auto;
    background: #fff;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
}

.file-editor-header,
.file-editor-footer {
    padding: 12px 16px;
    background: #f6f7f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-editor-header h2 {
    margin: 0;
    font-size: 16px;
}

.status {
    margin-left: 10px;
    font-weight: normal;
    color: #2271b1;
}

.status.error { color: #b32d2e; }
.status.saved { color: #008a20; }

.close-x {
    font-size: 22px;
    border: none;
    background: none;
    cursor: pointer;
}

.file-editor-body {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

#file-content {
    flex: 1;
    width: 100%;
    resize: none;
    font-family: monospace;
}