html, body {
    margin: 0;
    height: 100%;
    font-family: monospace;
    background: #f7f7f7;
}

#app {
    height: 100%;
}

.ide {
    display: grid;
    grid-template-rows: 48px 1fr 150px;
    height: 100vh;
    min-height: 0;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid #bdbdbd;
    background: #ececec;
    box-sizing: border-box;
}

.toolbar button {
    font-family: monospace;
    font-size: 13px;
    padding: 6px 10px;
    border: 1px solid #999;
    background: #ffffff;
    cursor: pointer;
}

.toolbar button:hover {
    background: #f8f8f8;
}

.toolbar .spacer {
    flex: 1;
}

.toolbar .project-label {
    color: #333;
    font-size: 13px;
}

.workspace {
    display: grid;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    background: #ddd;
}

.panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #ffffff;
}

.panel-title {
    margin: 0;
    padding: 8px 10px;
    border-bottom: 1px solid #dfdfdf;
    background: #f6f6f6;
    font-size: 14px;
    font-weight: bold;
}

.panel-body {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tree {
    flex: 1;
    overflow: auto;
    padding: 10px;
    white-space: pre-wrap;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.4;
    background: #ffffff;
}

.editor {
    flex: 1;
    width: 100%;
    height: 100%;
    resize: none;
    border: none;
    outline: none;
    padding: 10px;
    box-sizing: border-box;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.45;
    background: #ffffff;
    color: #111;
}

.preview-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
}

.splitter {
    background: #d0d0d0;
    cursor: col-resize;
    user-select: none;
}

.splitter:hover {
    background: #bcbcbc;
}

.status {
    border-top: 1px solid #bdbdbd;
    background: #fafafa;
    overflow: auto;
    padding: 10px;
    box-sizing: border-box;
    white-space: pre-wrap;
    font-size: 13px;
    line-height: 1.45;
}