/* Reset-ish base layout + a small connection indicator driven by the channel state
   (<html data-channel="...">, set in net/channel.js). */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--al-font);
  background: var(--al-bg);
  color: var(--al-fg);
  min-height: 100vh;
  line-height: 1.5;
}

#app {
  padding: 16px;
}

/* Connection status dot (top-right). Amber while connecting, green when open,
   red when disconnected/degraded, grey when closed. */
body::after {
  content: "";
  position: fixed;
  top: 10px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--al-warning);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease;
  z-index: 10;
}
html[data-channel="open"] body::after {
  background: var(--al-success);
}
html[data-channel="disconnected"] body::after,
html[data-channel="degraded"] body::after {
  background: var(--al-error);
}
html[data-channel="closed"] body::after {
  background: var(--al-muted);
}
