body.jt-fullscreen-active {
    overflow: hidden !important;
}

.jt-fullscreen-toolbar {
    display: none;
}

.jt-workspace.is-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    width: 100vw !important;
    height: 100vh !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: rgb(var(--color-bg)) !important;
}

.jt-workspace.is-fullscreen .jt-fullscreen-toolbar {
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    border-bottom: 1px solid rgb(var(--color-border));
    background: rgb(var(--color-surface));
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.jt-workspace.is-fullscreen .jt-mode-switcher {
    flex: none;
    margin: 0 !important;
    padding: 12px 16px 0;
}

.jt-workspace.is-fullscreen #jt-grid {
    flex: 1;
    min-height: 0;
    margin: 0 !important;
    padding: 12px 16px 16px;
    gap: 12px !important;
    align-items: stretch !important;
}

.jt-workspace.is-fullscreen #jt-grid.lg\:grid-cols-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.jt-workspace.is-fullscreen .jt-editor-column {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
}

.jt-workspace.is-fullscreen .jt-tree-column {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
}

.jt-workspace.is-fullscreen #jt-text-panel {
    flex: 1;
    min-height: 0;
}

.jt-workspace.is-fullscreen #jt-input {
    height: 100% !important;
    min-height: 240px;
    resize: none;
}

.jt-workspace.is-fullscreen #jt-output-panel {
    flex: 1;
    min-width: 0;
    min-height: 0 !important;
    max-height: none !important;
    height: auto;
}

.jt-workspace.is-fullscreen #jt-tree-actions {
    display: none !important;
}

.jt-workspace.is-fullscreen #jt-fullscreen-actions:not(.hidden) {
    display: flex;
}

.jt-workspace.is-fullscreen #jt-toggle-fullscreen {
    display: none !important;
}

@media (max-width: 1023px) {
    .jt-workspace.is-fullscreen #jt-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        overflow-y: auto;
    }

    .jt-workspace.is-fullscreen .jt-editor-column,
    .jt-workspace.is-fullscreen .jt-tree-column,
    .jt-workspace.is-fullscreen #jt-output-panel {
        min-height: 420px !important;
    }
}
