:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  display: flex; flex-direction: column;
  background: #0d1117; color: #d8e1ee;
  font-family: ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}
#topbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 44px; padding: 0 14px; flex: none;
  background: #161b22; border-bottom: 1px solid #21262d;
  user-select: none;
}
#brand { font-weight: 600; letter-spacing: .3px; font-size: 14px; }
.badge {
  background: rgba(31,111,235,.18); color: #79c0ff;
  border: 1px solid rgba(31,111,235,.45); border-radius: 4px;
  padding: 1px 6px; font-size: 11px; margin-left: 8px; vertical-align: 1px;
}
#status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #8b949e; min-width: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.green  { background: #3fb950; box-shadow: 0 0 6px rgba(63,185,80,.55); }
.dot.red    { background: #f85149; box-shadow: 0 0 6px rgba(248,81,73,.55); }
.dot.yellow { background: #d29922; box-shadow: 0 0 6px rgba(210,153,34,.55); }
#baseInfo { color: #6e7681; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#termwrap { flex: 1; position: relative; overflow: hidden; padding: 8px; }
canvas#term { display: block; background: #0d1117; cursor: text; user-select: none; }
#fatal {
  display: none; position: fixed; inset: 0; z-index: 10;
  background: rgba(13,17,23,.96);
  align-items: center; justify-content: center; text-align: center;
}
#fatal .dim { color: #8b949e; }
#fatal code { color: #79c0ff; }
