#app {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    width: 100vw;
    height: 100vh;
}

#leftPanel,
#rightPanel {
    padding: 16px;
    overflow-y: auto;
}

#leftPanel {
    border-right: 1px solid var(--border);
}

#rightPanel {
    border-left: 1px solid var(--border);
}

#canvasWrap {
    position: relative;
    min-width: 0;
    min-height: 0;
    background: var(--bg-deep);
}

#canvasWrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#status {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 5;
    padding: 8px 10px;
    white-space: pre-line;
}

.section {
    margin-bottom: 16px;
}

.sectionBlock {
    margin-bottom: 14px;
}

.paletteBtn {
    width: 100%;
    margin-bottom: 8px;
    text-align: left;
}

.rowBtns {
    display: flex;
    gap: 8px;
}

.rowBtns .btn {
    flex: 1;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #222;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.info {
    background: #333;
}

.toast.error {
    background: #c0392b;
}

.toast.success {
    background: #27ae60;
}

#leftPanel label {
    display: block;
    margin-bottom: 6px;
}

#leftPanel input,
#leftPanel select {
    margin-bottom: 14px;
}

#leftPanel button {
    margin-right: 6px;
    margin-bottom: 8px;
}

.sectionBlock {
    margin-bottom: 14px;
}

#dynamicProperties .sectionBlock {
    margin-bottom: 12px;
}

#dynamicProperties .label {
    display: block;
    margin-bottom: 4px;
}

#dynamicProperties select,
#dynamicProperties input {
    width: 95%;
}

#inspectorFields {
    padding-right: 10px;
    box-sizing: border-box;
}

.audioFileRow {
    display: flex;
    gap: 8px;
    align-items: center;
}

.audioFileSelect {
    flex: 1;
}

.audioPreviewBtn {
    width: 38px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid #555;
    background: #333;
    color: white;
    cursor: pointer;
}

.audioPreviewBtn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.checkboxRow {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    min-height: 36px;
}

.editorCheckbox {

    width: 18px;

    height: 18px;

    margin: 0;

    flex-shrink: 0;

    transform: translateY(1px);
}