* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
  background: #fafaf8;
}

#toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid #e2e2dd;
  z-index: 10;
  overflow-x: auto;
}

.group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.group.right { margin-left: auto; }

button {
  font: inherit;
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid #d0d0c8;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

button:hover { background: #f0f0ea; }

button.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

input, select {
  font: inherit;
  font-size: 13px;
  padding: 6px 8px;
  border: 1px solid #d0d0c8;
  border-radius: 6px;
  max-width: 150px;
}

#boardTag {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}

#presence {
  font-size: 13px;
  color: #555;
  white-space: nowrap;
}

.conn { font-size: 11px; }
.conn.on { color: #16a34a; }
.conn.off { color: #dc2626; }

#board {
  position: fixed;
  top: 48px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 48px);
  touch-action: none;
  cursor: crosshair;
}

#board.select-tool { cursor: default; }
