* { box-sizing: border-box; }
body { margin: 0; height: 100vh; display: flex; flex-direction: column; background: #111418; color: #e8eaed; font: 14px system-ui, sans-serif; }
header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid #2a2f36; }
.tag { color: #ffc828; margin-right: auto; }
button { background: #252b33; color: inherit; border: 1px solid #3a424d; border-radius: 6px; padding: 8px 14px; cursor: pointer; }
button.on { background: #7a5b00; }
label { display: flex; gap: 6px; align-items: center; }
main { flex: 1; display: flex; min-height: 0; }
#editor { width: 34%; display: flex; flex-direction: column; padding: 0 12px; border-right: 1px solid #2a2f36; }
#editor[hidden] { display: none; }
textarea { flex: 1; background: #0b0d10; color: inherit; border: 1px solid #3a424d; border-radius: 6px; padding: 10px; font: 13px ui-monospace, monospace; resize: none; }
#stage { flex: 1; position: relative; overflow: hidden; background: #000; color: #fff; }
#glass { position: absolute; inset: 0; }
#text { position: absolute; left: 8%; right: 8%; top: 30%; will-change: transform; line-height: 1.35; }
#text p, #text h2 { margin: 0 0 .7em; font: inherit; white-space: pre-line; unicode-bidi: plaintext; text-align: start; }
#text h2, #text .cue { color: #ffc828; }
#text h2 { text-transform: uppercase; }
#text .presenter_note { color: #6ebeff; }
#marker { position: absolute; left: 2%; top: 30%; color: #ff503c; font-size: 28px; line-height: 1; margin-top: .3em; }
#msg { position: absolute; left: 8%; bottom: 8px; color: #ffc828; }
@media (max-width: 800px) { main { flex-direction: column; } #editor { width: auto; height: 35%; } }
