:root {
  --bg-opacity: 0.85;
  --bg-color: 22, 22, 28;
  --fg-color: 235, 235, 240;
  --fg-dim: 165, 165, 175;
  --accent: 138, 180, 248;
  --accent-strong: 99, 145, 224;
  --danger: 240, 100, 100;
  --success: 86, 192, 130;
  --warning: 240, 180, 80;
  --border: 255, 255, 255;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);

  color-scheme: dark;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  color: rgb(var(--fg-color));
  -webkit-user-select: none;
  user-select: none;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: transparent !important;
  overflow: hidden;
}

body {
  /* 整个窗口背景完全透明，由 Toolbar 自身画背景 */
}

/* 任务钉子模式：整体更透明，列表区穿透由 Rust ignore_cursor_events 处理 */
html.task-pin-mode {
  --bg-opacity: 0.12;
}
html.task-pin-mode body,
html.task-pin-mode #root {
  background: transparent !important;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

input,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(var(--border), 0.08);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  outline: none;
  user-select: text;
}

input:focus,
textarea:focus {
  border-color: rgba(var(--accent), 0.6);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}
