.editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    padding: 36px 0 0;
}

.title {
    padding: 0 72px 24px;
    font-family: 'Georgia', serif;
    font-size: 32px;
    font-weight: bold;
    color: var(--text);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.titleWorld {
    color: var(--text-muted);
    font-weight: normal;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.titleSep {
    color: var(--text-muted);
    font-weight: normal;
    font-size: 24px;
}


.content {
    flex: 1;
    overflow-y: auto;
    padding: 0 72px 72px;
}

.content.menuContent {
    padding-bottom: 10px;
}

.content.chatContent {
    padding: 0;
    overflow: hidden;
}

.editable {
    width: 100%;
    min-height: 100%;
    resize: none;
    font-family: 'Georgia', serif;
    font-size: 17px;
    line-height: 1.9;
    color: var(--textColor);
    background: transparent;
    box-sizing: border-box;

    &::placeholder {
        color: var(--text-muted);
        font-style: italic;
    }

    &::selection {
        background: var(--bg-active);
        color: var(--yellow);
    }
}

.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-muted);
    font-style: italic;
    border: 2px dashed var(--border);
    border-radius: 8px;
}

.tabs {
    display: flex;
    border-top: 1px solid var(--border);
    padding: 0 12px;
    gap: 6px;
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: none;

    &::-webkit-scrollbar {
        display: none;
    }
}

.tabRight {
    margin-left: auto;
}

.tabHidden {
    display: none;
}

.promptPreview {
    width: 100%;
    color: var(--textColor);
    white-space: pre-wrap;
    word-break: break-word;
}

.editable mark {
    background: var(--bg-active);
    color: inherit;
}

.tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    border-top: 2px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    margin-top: -1px;

    &:hover {
        color: var(--text);
        background: var(--bg-hover);
    }

    &.active {
        color: var(--accent);
        border-top-color: var(--accent);
    }
}

@media (max-width: 1000px) {
    .tabLabel {
        display: none;
    }

    .tab {
        padding: 12px;
    }

    .content {
        padding: 0 16px 32px;
    }

    .title {
        padding: 0 16px 12px;
        font-size: 22px;
    }

    .titleSep {
        font-size: 18px;
    }

    .editor {
        padding-top: 12px;
    }

    .title {
        display: none;
    }
}
