/* ---------------------------------------------------------------------------
   Design tokens – a quiet charcoal palette with one restrained accent.
   --------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --bg: #191919;
  --bg-sidebar: #1f1f1f;
  --bg-panel: #202020;
  --bg-elevated: #262626;
  --bg-input: #1c1c1c;
  --bg-hover: rgba(255, 255, 255, 0.055);
  --bg-active: rgba(255, 255, 255, 0.085);
  --bg-selected: rgba(110, 145, 255, 0.10);

  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.13);
  --border-focus: rgba(120, 155, 255, 0.65);

  --text: #e8e7e4;
  --text-2: #a8a7a3;
  --text-3: #75746f;
  --text-4: #57564f;

  --accent: #6b8cff;
  --accent-hover: #7f9bff;
  --accent-soft: rgba(107, 140, 255, 0.14);
  --on-accent: #0f1320;

  --danger: #eb5f55;
  --danger-hover: #f07168;
  --danger-soft: rgba(235, 95, 85, 0.13);

  --status-todo: #8e8d88;
  --status-progress: #5e9cf0;
  --status-done: #5fb488;

  --priority-low: #6f6e69;
  --priority-medium: #a8a7a3;
  --priority-high: #e69a53;
  --priority-urgent: #eb5f55;

  --glyph-contrast: #191919;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;

  --shadow-pop: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-strong);
  --shadow-panel: -12px 0 32px rgba(0, 0, 0, 0.28);

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Ubuntu, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --sidebar-width: 280px;
  --panel-width: 720px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

#app {
  height: 100%;
}

h1, h2, h3, h4, p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

button:disabled {
  cursor: default;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(107, 140, 255, 0.32);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 1px;
  border-radius: var(--radius-sm);
}

.icon,
.glyph {
  flex: none;
  display: block;
}

kbd {
  font-family: var(--font);
  font-size: 11px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  color: var(--text-2);
  background: var(--bg-elevated);
  margin-right: 3px;
}

/* Thin, unobtrusive scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid transparent;
  border-radius: 10px;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
