:root {
  --bg: #0f1419;
  --surface: #1a222d;
  --surface2: #243040;
  --border: #2d3a4d;
  --text: #e8eef5;
  --muted: #8b9cb3;
  --accent: #3d9cf5;
  --accent-dim: #2a6cb0;
  --success: #3dd68c;
  --danger: #f55353;
  --radius: 10px;
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

#root {
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input {
  font-family: inherit;
}

.file-ctx-menu button[role="menuitem"]:hover {
  background: var(--surface2);
}

/* Monaco find/replace sits in overlay widgets; keep it above app chrome so Close and controls stay clickable */
.monaco-editor .overlayWidgets {
  z-index: 20000 !important;
}
.monaco-editor .find-widget {
  z-index: 20001 !important;
}
