:root { color-scheme: dark; font-family: Consolas, monospace; color: #ddd; background: #1e1e1e; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; }
.playground { height: 100%; display: grid; grid-template-rows: minmax(160px, 1fr) auto minmax(100px, .38fr); min-width: 0; }
.toolbar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 8px 10px;  }
.actions { display: flex; gap: 6px; }
button { font: inherit; color: #ddd; background: transparent; border: 1px solid #858585; padding: 6px 10px; border-radius: 4px; cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
button:focus-visible, #output:focus-visible { outline: 2px solid #ddd; outline-offset: 2px; }
button:hover:not(:disabled) { background: #ffffff18; }
#editor { min-width: 0; min-height: 0; overflow: hidden; }
.result { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid #444; }
.result header { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; font-size: 12px; color: #ddd; }
#status { text-align: right; }
#output { flex: 1; min-height: 0; margin: 0; padding: 4px 12px 12px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.5 Consolas, monospace; }
#output.error { color: #ff5e00; }
@media (max-width: 600px) { .playground .cm-editor { font-size: 16px !important; } button { min-height: 40px; } #output { font-size: 16px; } }
