/* NJG live view: a dark plate with lit violet, sized for a phone held in one hand. */
:root {
  --plate: #0e0c14;
  --panel: #17141f;
  --line: #2a2533;
  --bone: #f3efe7;
  --muted: #a9a2b5;
  --violet: #a58bff;
  --violet-ink: #160f2b;
  --warn: #f2b56b;
  --err: #ff8f8f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--plate); color: var(--bone); }
body { font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
#app { min-height: 100%; display: flex; }
.card { margin: auto; width: 100%; max-width: 28rem; padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); }
.brand { font-weight: 800; letter-spacing: .14em; color: var(--violet); font-size: 13px; text-transform: uppercase; margin-bottom: 18px; }
.brand span { color: var(--muted); font-weight: 500; letter-spacing: .08em; margin-left: .6em; }
h1 { font-size: 24px; line-height: 1.2; margin: 0 0 12px; font-weight: 700; }
p { margin: 0 0 12px; }
.who { color: var(--muted); font-size: 14px; margin: 0 0 4px; }
.task { margin: 0; }
.task.big { font-size: 19px; font-weight: 600; margin: 8px 0 16px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--violet); border-radius: 10px; }
.note { color: var(--muted); font-size: 15px; }
.warn { color: var(--warn); }
.err { color: var(--err); margin-top: 12px; }
button { font: inherit; font-weight: 650; border-radius: 12px; border: 1px solid transparent; padding: 14px 18px; min-height: 48px; cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .55; cursor: default; }
button.primary { background: var(--violet); color: var(--violet-ink); width: 100%; }
button.ghost { background: transparent; color: var(--bone); border-color: var(--line); }
button.link { background: none; border: 0; padding: 0; min-height: 0; color: var(--violet); text-decoration: underline; font-weight: 600; }
.card button.primary { margin-top: 8px; }

/* The live screen: header, the remote browser filling the rest, buttons in thumb reach. */
.live { display: flex; flex-direction: column; width: 100%; height: 100vh; height: 100dvh; }
.live header { padding: max(10px, env(safe-area-inset-top)) 14px 10px; background: var(--panel); border-bottom: 1px solid var(--line); }
.live header .task { font-weight: 600; font-size: 15px; }
#stage { flex: 1; position: relative; overflow: hidden; min-height: 0; background: #000; }
.status { margin: 0; padding: 0 14px; font-size: 14px; color: var(--muted); background: var(--panel); }
.status:not(:empty) { padding: 8px 14px; }
.live footer { display: flex; gap: 8px; padding: 10px 14px max(10px, env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); }
.live footer button { flex: 1; padding: 12px 8px; }
.live footer button.primary { flex: 1.4; width: auto; }
#kbd { position: fixed; left: -100px; bottom: 0; width: 10px; height: 10px; opacity: 0; font-size: 16px; }
