
:root {
    font-family: Tahoma, Verdana, Arial, sans-serif;
    color: #202020;
    background: #d4d0c8;
    font-size: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
}

button, textarea {
    font: inherit;
}

.title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    color: white;
    background: linear-gradient(90deg, #083b70, #3c78b5);
    border-bottom: 2px solid #00264c;
    font-weight: bold;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    color: #07345f;
    background: #f4f4f4;
    border: 2px outset #ffffff;
    font-weight: bold;
}

.version {
    font-weight: normal;
    font-size: 11px;
}

.menu-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px;
    background: #ece9e2;
    border-bottom: 1px solid #999;
}

button, .menu-bar a {
    padding: 6px 10px;
    color: #202020;
    background: #e7e4dd;
    border: 1px solid;
    border-color: #fff #777 #777 #fff;
    text-decoration: none;
    cursor: pointer;
}

button:active {
    border-color: #777 #fff #fff #777;
}

button.primary {
    color: white;
    background: #285d91;
    border-color: #6493bf #173c63 #173c63 #6493bf;
    font-weight: bold;
}

main {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
}

.panel {
    min-width: 0;
    padding: 5px;
    background: #e8e5de;
    border: 1px solid;
    border-color: #fff #858585 #858585 #fff;
    box-shadow: 1px 1px 0 #aaa;
}

.panel-heading {
    margin-bottom: 6px;
    padding: 7px;
    color: white;
    background: #315f89;
    font-weight: bold;
    letter-spacing: 0.3px;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    padding: 6px;
    color: #333;
    background: #e8e5de;
    border: 1px solid;
    border-color: #999 #fff #fff #999;
}

.editor-panel {
    grid-column: 1 / -1;
    grid-row: auto;
}

.editor-toolbar {
    margin-bottom: 5px;
    font-size: 11px;
}

#script-editor {
    min-height: 240px;
}

#script-editor:focus {
    border-color: #5388bd;
}

.output-panel {
    grid-column: 1 / -1;
}

#compiler-output {
    min-height: 65px;
    max-height: 180px;
    overflow: auto;
    margin: 0;
    padding: 10px;
    color: #d7e4f4;
    background: #18212b;
    border: 2px inset #aaa;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: 12px/1.5 "Courier New", monospace;
}

footer {
    padding: 10px;
    color: #555;
    text-align: center;
    border-top: 1px solid #aaa;
}

@media (max-width: 760px) {
    main {
        grid-template-columns: minmax(0, 1fr);
    }

    .editor-panel, .output-panel {
        grid-column: 1;
        grid-row: auto;
    }

    .dos-screen, #script-editor {
        min-height: 240px;
    }
}
