:root {
    --bg: #0b132b; --surface: #1c2541; --fg: #e6f1ff; --muted: #93a1b5;
    --accent: #5bc0be; --bad: #ff6b6b; --good: #5bc0be;
}
* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0; background: var(--bg); color: var(--fg);
    font-family: -apple-system, system-ui, Segoe UI, Roboto, sans-serif;
    touch-action: none; -webkit-user-select: none; user-select: none; overscroll-behavior: none;
}
header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
h1 { font-size: 20px; margin: 0; }
.badge { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 12px; }
.badge-good { background: rgba(91,192,190,.2); color: var(--good); }
.badge-bad { background: rgba(255,107,107,.2); color: var(--bad); }
.grid { margin: 0 14px; background: var(--surface); border-radius: 12px; padding: 10px 14px; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.05); }
.row:last-child { border-bottom: none; }
.k { color: var(--muted); }
.v { font-weight: 600; }
.v.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.v.big { font-family: ui-monospace, monospace; font-size: 22px; letter-spacing: 3px; color: var(--accent); }
#stage {
    position: relative; margin: 14px; height: 46vh; min-height: 200px;
    border: 2px solid var(--surface); border-radius: 12px; overflow: hidden;
    background: #000; display: flex; align-items: center; justify-content: center;
    touch-action: none;
}
#video { max-width: 100%; max-height: 100%; display: block; touch-action: none; }
#overlay {
    position: absolute; color: var(--muted); text-align: center; font-size: 14px;
    pointer-events: none; padding: 0 16px;
}
.log-title { margin: 0 18px 4px; color: var(--muted); font-size: 13px; }
#log {
    margin: 0 14px 20px; background: #060d1f; border-radius: 10px; padding: 10px;
    height: 20vh; overflow-y: auto; font-size: 11px; line-height: 1.4; color: #b9c6da; white-space: pre-wrap;
}
button {
    background: var(--accent); color: #06141b; border: none; border-radius: 10px;
    padding: 10px 16px; font-size: 14px; font-weight: 700; cursor: pointer;
}
input {
    background: #060d1f; color: var(--fg); border: 1px solid #2a3a55; border-radius: 8px;
    padding: 8px 10px; font-size: 14px; font-family: ui-monospace, monospace;
}
