/* The app's own colours (web/src/styles.css): dark by default, light when the system asks for it. */
:root {
  --bg: #181818;
  --fg: #ececec;
  --muted: #a3a3a0;
  --line: #333333;
  --accent: #d97757;
  --accent-fg: #181818;
  --danger: #f2b8b5;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf9f7;
    --fg: #1f1e1c;
    --muted: #6b6a66;
    --line: #e3e1db;
    --accent: #c6613f;
    --accent-fg: #ffffff;
    --danger: #b3261e;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
body { display: grid; place-items: center; padding: 16px; }
body.connected { display: block; padding: 0; }
.panel { width: 100%; max-width: 360px; text-align: center; }
.mark { display: block; margin: 0 auto 12px; }
h1 { font-size: 1.25rem; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.detail { color: var(--muted); font-size: 0.875rem; }
.detail:empty { display: none; }
.error { color: var(--danger); }
.actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.actions:empty { display: none; }
button { font: inherit; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
iframe.app { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: var(--bg); }
.banner { position: fixed; left: 50%; top: 8px; transform: translateX(-50%); z-index: 1; background: var(--fg); color: var(--bg); padding: 6px 12px; border-radius: 999px; font-size: 0.875rem; }
