/* JOINED-WEB-028: the A.O.K. operator look (Knoizeboard LOOK-002 tokens, as in Kountdown NATIVE-012's Ops window). No brand mark. */
:root {
  --bg: #070809; --panel: #121416; --panel2: #1b1e21; --line: #262a2e; --line-hi: #3a4046;
  --ink: #eef2ee; --dim: #9aa3a0; --faint: #66706d; --go: #22e06b; --lcd: #7dffb0; --red: #ff2a1f; --orange: #ff9900;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.4 Consolas, "Menlo", ui-monospace, monospace; }
.strip { background: #3a0c0a; color: var(--red); font-weight: bold; letter-spacing: .12em; padding: 6px 20px; font-size: 12px; }
.strip.stopped { background: var(--red); color: #000; }
main { max-width: 900px; margin: 0 auto; padding: 18px 20px 30px; }
h1 { font-weight: 900; letter-spacing: .06em; font-size: 28px; margin: 10px 0 18px; }
.descriptor { color: var(--dim); font-weight: bold; font-size: 13px; letter-spacing: .12em; margin: -12px 0 18px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: linear-gradient(var(--panel2), var(--panel)); border: 1.5px solid var(--line); border-radius: 10px; padding: 16px 18px 18px; min-height: 260px; display: flex; flex-direction: column; }
.tile.running { border-color: rgba(34, 224, 107, .65); box-shadow: inset 0 0 18px rgba(34, 224, 107, .18); }
.tile h2 { margin: 0; font-size: 21px; letter-spacing: .06em; font-weight: 900; }
.sub { color: var(--dim); font-weight: bold; font-size: 12px; letter-spacing: .12em; margin-top: 6px; }
.state { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.lamp { width: 16px; height: 16px; border-radius: 50%; background: var(--faint); flex: none; }
.word { font-weight: bold; font-size: 26px; letter-spacing: .06em; color: var(--faint); }
.running .lamp { background: var(--lcd); box-shadow: 0 0 0 4px rgba(125, 255, 176, .25); }
.running .word { color: var(--lcd); }
.stopped .lamp { background: var(--red); } .stopped .word { color: var(--red); }
.tile.loading { border-color: rgba(255, 196, 0, .55); }
.loading .lamp { background: #ffc400; } .loading .word { color: #ffc400; }
.problem { color: var(--red); font-weight: bold; font-size: 12px; letter-spacing: .04em; margin-top: 8px; }
.problem:empty { display: none; }
.warn { color: #ffc400; font-weight: bold; font-size: 12px; letter-spacing: .04em; margin: 0 0 12px; }
.detail { color: var(--dim); font-weight: bold; font-size: 13px; margin-top: 12px; flex: 1; }
button { font: inherit; font-weight: 900; letter-spacing: .08em; cursor: pointer; border-radius: 8px; }
button.go { background: linear-gradient(var(--go), #17a64f); color: #000; border: 1.5px solid var(--go); padding: 14px; font-size: 18px; box-shadow: 0 0 12px rgba(125, 255, 176, .35); }
button.go:disabled { background: var(--panel2); color: var(--faint); border-color: var(--line-hi); box-shadow: none; cursor: default; }
.label { color: var(--dim); font-weight: bold; font-size: 12px; letter-spacing: .12em; margin: 26px 0 10px; }
.choices button { background: linear-gradient(var(--panel2), var(--panel)); color: var(--ink); border: 1.5px solid var(--line-hi); padding: 12px 30px; font-size: 16px; }
.foot { color: var(--faint); font-weight: bold; font-size: 12px; letter-spacing: .06em; margin: 16px 0 0; }
.hint { color: #ffc400; font-weight: bold; font-size: 12px; letter-spacing: .06em; margin: 8px 0 0; min-height: 16px; }
/* Klox display 1: a full-width tile under the two apps. */
#tile-klox { grid-column: 1 / -1; min-height: 0; }
/* JOINED-WEB-028: one window. The header holds the tabs; the stage stacks Kountdown, the board and the KUER page. An
   engine page is never display:none or visibility:hidden (the board stops all sound when its page is hidden): the tab
   raises one with z-index, the others stay rendered underneath at full size. */
body.kuer-one { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; gap: 20px; padding: 8px 16px; border-bottom: 1px solid var(--line); flex: none; }
.bar .name { font-weight: 900; letter-spacing: .06em; font-size: 22px; flex: 1; }
.tabs { display: flex; gap: 8px; }
.tab { display: flex; align-items: center; gap: 10px; background: var(--panel); color: var(--dim); border: 1.5px solid var(--line); padding: 10px 22px; font-size: 16px; min-width: 190px; }
.tab .lamp { width: 12px; height: 12px; }
.tab[aria-selected="true"] { background: var(--panel2); color: var(--ink); border-color: var(--go); }
.tab.running .lamp { background: var(--lcd); } .tab.loading .lamp { background: #ffc400; } .tab.stopped .lamp { background: var(--red); }
.stage { position: relative; flex: 1; min-height: 0; }
.stage > .engine, .stage > .pane { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--bg); z-index: 1; }
.stage > .front { z-index: 3; }
.stage > .pane { overflow: auto; padding: 18px 20px 30px; }
.pane .tiles { max-width: 900px; }
.stage > main.pane { max-width: none; margin: 0; }
