:root { color-scheme: dark; font-family: ui-sans-serif, system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: #edf5f7; background: radial-gradient(circle at 88% 0, #123a4d, transparent 38rem), #090d12; }
.workspace { width: min(1200px, calc(100% - 32px)); height: 100vh; height: 100dvh; min-height: 520px; margin: 0 auto; padding: clamp(16px, 2.5vh, 28px) 0; display: flex; flex-direction: column; }
header { flex: none; margin-bottom: clamp(14px, 2vh, 22px); }
.eyebrow { margin: 0 0 5px; color: #78d9ee; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 6vh, 3.6rem); line-height: 1; margin: 0; letter-spacing: -.07em; }
.subtitle { margin: 8px 0 0; color: #a8b8c0; }
#editor-form { flex: 1; min-height: 0; display: grid; grid-template-rows: auto minmax(120px, 2fr) auto auto minmax(90px, 1fr); gap: 8px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
label { font-size: .84rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.label-row span { color: #8ca0ab; font-size: .75rem; }
textarea { display: block; width: 100%; height: 100%; min-height: 0; resize: none; border: 1px solid #2a4857; border-radius: 14px; padding: 14px 16px; color: #eaf6f8; background: #111a21; font: 15px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; outline: none; }
textarea:focus { border-color: #69d1e8; box-shadow: 0 0 0 3px #69d1e824; }
.code-editor { position: relative; min-height: 0; height: 100%; border: 1px solid #2a4857; border-radius: 14px; background: #111a21; overflow: hidden; }
.code-editor:focus-within { border-color: #69d1e8; box-shadow: 0 0 0 3px #69d1e824; }
#code, #highlight { width: 100%; height: 100%; margin: 0; padding: 14px 16px; border: 0; border-radius: 0; font: 15px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: normal; tab-size: 4; white-space: pre-wrap; overflow-wrap: break-word; }
#highlight { position: absolute; inset: 0; overflow: hidden; pointer-events: none; color: #eaf6f8; }
#code { position: relative; z-index: 1; overflow: auto; background: transparent; color: transparent; caret-color: #eaf6f8; -webkit-text-fill-color: transparent; scrollbar-width: none; }
#code::-webkit-scrollbar { display: none; }
#code:focus { border: 0; box-shadow: none; }
#code::selection { background: #37648b88; }
.syntax-keyword { color: #c5a5ff; }
.syntax-builtin { color: #7bdcef; }
.syntax-string { color: #b8e9a0; }
.syntax-number { color: #f4bb87; }
.syntax-comment { color: #8499a3; }
.syntax-constant { color: #e6a8d7; }
.syntax-operator { color: #f0d58d; }
#output { color: #b8eac8; background: #0c1419; }
.actions { display: flex; align-items: center; gap: 16px; margin: 4px 0 8px; }
button { border: 0; border-radius: 10px; padding: 11px 18px; color: #04212a; background: #7be3ef; font: inherit; font-weight: 800; cursor: pointer; }
button:hover { background: #a6f3f4; }
button:disabled { opacity: .55; cursor: wait; }
#status { color: #9aabb4; font-size: .83rem; }
@media (max-width: 600px) {
  .workspace { width: calc(100% - 24px); }
  .subtitle { font-size: .9rem; }
  textarea { font-size: 14px; padding: 12px; }
  #code, #highlight { font-size: 14px; padding: 12px; }
}
