@font-face { font-family: "KITTMono"; src: url("fonts/DejaVuSansMono.ttf") format("truetype"); font-display: swap; }
:root { color-scheme: dark; --red: #ff1a1a; --red-dim: #5a0606; --ink: #e8e8e8; --mute: #8a8a8a; --line: #2a0a0a; --panel: #0b0b0b; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: var(--ink); font-family: "KITTMono", ui-monospace, monospace; -webkit-tap-highlight-color: transparent; }
#app { display: flex; flex-direction: column; height: 100dvh; max-width: 900px; margin: 0 auto; padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom); }
header { display: flex; align-items: center; gap: 12px; padding: 12px 0 8px; }
.brand { color: var(--red); letter-spacing: .35em; font-weight: 700; font-size: 18px; text-shadow: 0 0 10px var(--red); }
.brand.big { font-size: 28px; text-align: center; margin-bottom: 16px; }
.status { flex: 1; text-align: right; color: var(--mute); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.status.live { color: var(--red); }
.chip, .btn, .ptt, .opt { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid #3a1010; border-radius: 10px; padding: 10px 14px; cursor: pointer; min-height: 44px; }
.chip { min-height: 36px; padding: 6px 12px; font-size: 12px; }
.btn:active, .chip:active, .opt:active { background: var(--red-dim); }
.btn.ghost { color: var(--mute); }
.btn.wide { width: 100%; margin-top: 12px; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.scanner { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; height: 26px; padding: 6px 4px; background: #060000; border: 1px solid var(--line); border-radius: 8px; }
.scanner i { background: var(--red-dim); border-radius: 2px; opacity: .35; transition: opacity .08s linear, background .08s linear, box-shadow .08s linear; }
.scanner i.on { background: var(--red); opacity: 1; box-shadow: 0 0 10px 2px rgba(255, 26, 26, .8); }
.scanner i.mid { background: #c01010; opacity: .75; }
.log { flex: 1; overflow-y: auto; padding: 14px 2px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { max-width: 92%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.msg.you { align-self: flex-end; border-color: #4a1515; color: #ffb3b3; }
.msg.desk { align-self: flex-start; }
.msg.note { align-self: center; color: var(--mute); font-size: 12px; border: none; background: none; }
.msg.sm { max-height: 9.5em; overflow: hidden; position: relative; cursor: pointer; }
.msg.sm::after { content: "tap to expand"; position: absolute; right: 8px; bottom: 4px; font-size: 11px; color: var(--red); background: var(--panel); padding-left: 6px; }
.qpanel { max-height: 46dvh; overflow-y: auto; flex: 0 0 auto; border: 1px solid var(--red); border-radius: 12px; padding: 12px; margin-bottom: 8px; box-shadow: 0 0 14px rgba(255,26,26,.25); }
.qtext { font-size: 15px; margin-bottom: 10px; line-height: 1.45; }
.qopts { display: grid; gap: 8px; margin-bottom: 8px; }
.opt { text-align: left; padding: 14px; font-size: 16px; }
.opt small { display: block; color: var(--mute); font-size: 12px; margin-top: 4px; }
.opt b { color: var(--red); margin-right: 8px; }
footer { padding: 8px 0 14px; }
.heard { min-height: 20px; color: var(--mute); font-size: 13px; padding: 0 2px 6px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.ctl { margin-top: 10px; justify-content: space-between; }
.row.sp { justify-content: space-between; margin-top: 16px; }
.txt { flex: 1; font: inherit; font-size: 16px; color: var(--ink); background: #050505; border: 1px solid #3a1010; border-radius: 10px; padding: 11px 12px; min-height: 44px; width: 100%; caret-color: var(--red); }
.txt::placeholder { color: #555; }
.ptt { flex: 0 0 auto; width: 150px; height: 150px; border-radius: 50%; border: 2px solid var(--red); color: var(--red); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; background: radial-gradient(circle, #1a0000, #000); touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 0 18px rgba(255,26,26,.35); }
.ptt.down { background: radial-gradient(circle, #5a0606, #120000); box-shadow: 0 0 34px rgba(255,26,26,.8); }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 5; }
.overlay[hidden], [hidden] { display: none !important; }
.card { width: 100%; max-width: 420px; background: #080808; border: 1px solid #3a1010; border-radius: 14px; padding: 20px; max-height: 92dvh; overflow-y: auto; }
.lbl { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin: 16px 0 6px; display: block; }
.err { color: #ff6b6b; font-size: 13px; min-height: 18px; margin-top: 8px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { font: inherit; font-size: 13px; color: var(--ink); background: var(--panel); border: 1px solid #3a1010; border-radius: 8px; padding: 8px 12px; min-height: 40px; cursor: pointer; }
.seg button.sel { border-color: var(--red); color: var(--red); box-shadow: 0 0 8px rgba(255,26,26,.4); }
.wrapseg { max-height: 150px; overflow-y: auto; }
@media (min-width: 700px) { .ptt { width: 130px; height: 130px; } }
@media (prefers-reduced-motion: reduce) { .scanner i { transition: none; } }
.note { color: var(--mute); font-size: 11px; line-height: 1.4; margin-top: 6px; }
