.canvas-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  cursor: default;
  background: var(--bg);
}

.canvas-container.pan-mode {
  cursor: grab;
}

.canvas-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, var(--bg-grid) 1px, transparent 1px);
  background-repeat: repeat;
}

.canvas-world {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
}

.canvas-hud {
  position: fixed;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  font-size: 11px;
  font-family: ui-monospace, Menlo, monospace;
  color: var(--text);
  pointer-events: none;
}

.card {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-header {
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--card-border);
  font-size: 11px;
  cursor: move;
  flex-shrink: 0;
}

.card-body {
  flex: 1;
  overflow: auto;
}

.note-card textarea {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 10px;
}
