:root {
  /* Surface & text */
  --surface-0: #f8fafc;
  --surface-1: #ffffff;
  --surface-2: #edf2f7;
  --surface-glass: rgba(248, 250, 252, 0.72);
  --surface-elevated: rgba(255, 255, 255, 0.9);
  --bg-primary: var(--surface-0);
  --bg-secondary: var(--surface-1);
  --bg-tertiary: var(--surface-2);
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --border-color: #cbd5e1;
  --accent-primary: #2563eb;
  --accent-muted: rgba(37, 99, 235, 0.12);
  --accent-strong: #1d4ed8;

  /* Task colors (light mode — pastel) */
  --task-color-red: #fee2e2;
  --task-color-orange: #ffedd5;
  --task-color-yellow: #fef9c3;
  --task-color-green: #d1fae5;
  --task-color-blue: #dbeafe;
  --task-color-purple: #ede9fe;
  --task-color-pink: #fce7f3;
  --task-color-gray: #f3f4f6;

  /* Shadows, radii, transitions */
  --shadow-rest: 0 14px 38px -30px rgba(15, 23, 42, 0.5);
  --shadow-hover: 0 30px 56px -30px rgba(15, 23, 42, 0.5);
  --card-shadow: var(--shadow-rest);
  --card-shadow-hover: var(--shadow-hover);
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-card: 16px;
  --radius-card-lg: 24px;
  --motion-fast: 160ms ease;
  --motion-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 150ms ease;
  --checkbox-radius: 6px;
  --checkbox-bg: #f8fafc;
  --checkbox-border: #94a3b8;
  --checkbox-checked-bg: #2563eb;
  --checkbox-checked-border: #2563eb;
  --checkbox-check: #ffffff;
  --checkbox-focus-ring: rgba(37, 99, 235, 0.35);

  --header-height: 60px;
}

[data-theme="dark"] {
  --surface-0: #020617;
  --surface-1: #0f172a;
  --surface-2: #1e293b;
  --surface-glass: rgba(15, 23, 42, 0.7);
  --surface-elevated: rgba(15, 23, 42, 0.85);
  --bg-primary: var(--surface-0);
  --bg-secondary: var(--surface-1);
  --bg-tertiary: var(--surface-2);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --border-color: #334155;
  --accent-primary: #60a5fa;
  --accent-muted: rgba(96, 165, 250, 0.18);
  --accent-strong: #93c5fd;

  /* Task colors (dark mode — muted/deeper) */
  --task-color-red: #7f1d1d;
  --task-color-orange: #7c2d12;
  --task-color-yellow: #713f12;
  --task-color-green: #065f46;
  --task-color-blue: #1e3a5f;
  --task-color-purple: #4c1d95;
  --task-color-pink: #831843;
  --task-color-gray: #374151;

  --shadow-rest: 0 16px 34px -24px rgba(0, 0, 0, 0.82);
  --shadow-hover: 0 34px 62px -30px rgba(0, 0, 0, 0.9);
  --card-shadow: var(--shadow-rest);
  --card-shadow-hover: var(--shadow-hover);
  --checkbox-bg: #1f2a3b;
  --checkbox-border: #91a1b7;
  --checkbox-checked-bg: #60a5fa;
  --checkbox-checked-border: #60a5fa;
  --checkbox-check: #0f172a;
  --checkbox-focus-ring: rgba(96, 165, 250, 0.35);
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: radial-gradient(circle at 20% -10%, rgba(59, 130, 246, 0.1) 0%, transparent 44%),
    radial-gradient(circle at 78% 4%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    var(--bg-primary);
  transition: var(--motion-standard);
  position: relative;
}

body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: -1;
  filter: blur(6px);
}

body::before {
  width: 48vw;
  height: 48vw;
  max-width: 680px;
  max-height: 680px;
  top: -14vw;
  left: -12vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0) 70%);
}

body::after {
  width: 54vw;
  height: 54vw;
  max-width: 760px;
  max-height: 760px;
  bottom: -18vw;
  right: -16vw;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(14, 165, 233, 0) 70%);
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  height: var(--header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--border-color) 78%, transparent);
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  justify-content: space-between;
  box-shadow: 0 16px 32px -28px rgba(15, 23, 42, 0.6);
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-brand {
  display: flex;
  align-items: center;
}

.app-logo {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 0.75rem;
}

.app-title {
  margin: 0;
  margin-right: 1.5rem;
}

main {
  flex: 1;
  overflow: hidden;
  padding: 1rem;
}

button {
  cursor: pointer;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--motion-standard);
}

button:hover {
  background: var(--bg-tertiary);
}

.icon-btn {
  padding: 0.5rem;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  min-height: 2.3rem;
}

.app-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
}

[v-cloak] {
  display: none !important;
}

.hidden-file-input {
  display: none;
}

.dropdown-fade-enter-active,
.dropdown-fade-leave-active {
  transition: opacity 180ms ease, transform 180ms ease;
}

.dropdown-fade-enter-from,
.dropdown-fade-leave-to {
  opacity: 0;
  transform: translateY(-4px);
}

.modal-fade-enter-active,
.modal-fade-leave-active,
.dialog-fade-enter-active,
.dialog-fade-leave-active {
  transition: opacity 220ms ease;
}

.modal-fade-enter-from,
.modal-fade-leave-to,
.dialog-fade-enter-from,
.dialog-fade-leave-to {
  opacity: 0;
}

.modal-slide-enter-active,
.modal-slide-leave-active {
  transition: opacity 220ms ease;
}

.modal-slide-enter-active .modal-content,
.modal-slide-leave-active .modal-content {
  transition: transform 260ms ease, opacity 220ms ease;
}

.modal-slide-enter-from,
.modal-slide-leave-to {
  opacity: 0;
}

.modal-slide-enter-from .modal-content,
.modal-slide-leave-to .modal-content {
  transform: translateX(24px);
  opacity: 0;
}

.toast-stack-enter-active,
.toast-stack-leave-active {
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast-stack-enter-from,
.toast-stack-leave-to {
  opacity: 0;
  transform: translateY(-8px);
}

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

.dependency-error-banner {
  margin: 2rem;
  padding: 2rem;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #dc2626;
  border-radius: var(--radius-md);
}

.tag-pill[class*="tag-tone-"] {
  background: var(--tag-bg);
  color: var(--tag-color);
  border-color: var(--tag-border);
}

.tag-tone-0 { --tag-bg: hsl(0, 70%, 90%); --tag-color: hsl(0, 80%, 25%); --tag-border: hsl(0, 60%, 80%); }
.tag-tone-1 { --tag-bg: hsl(30, 70%, 90%); --tag-color: hsl(30, 80%, 25%); --tag-border: hsl(30, 60%, 80%); }
.tag-tone-2 { --tag-bg: hsl(60, 70%, 90%); --tag-color: hsl(60, 80%, 22%); --tag-border: hsl(60, 55%, 74%); }
.tag-tone-3 { --tag-bg: hsl(90, 70%, 90%); --tag-color: hsl(90, 80%, 20%); --tag-border: hsl(90, 55%, 76%); }
.tag-tone-4 { --tag-bg: hsl(120, 70%, 90%); --tag-color: hsl(120, 80%, 22%); --tag-border: hsl(120, 60%, 80%); }
.tag-tone-5 { --tag-bg: hsl(150, 70%, 90%); --tag-color: hsl(150, 80%, 20%); --tag-border: hsl(150, 60%, 76%); }
.tag-tone-6 { --tag-bg: hsl(180, 70%, 90%); --tag-color: hsl(180, 80%, 22%); --tag-border: hsl(180, 60%, 78%); }
.tag-tone-7 { --tag-bg: hsl(210, 70%, 90%); --tag-color: hsl(210, 80%, 25%); --tag-border: hsl(210, 60%, 80%); }
.tag-tone-8 { --tag-bg: hsl(240, 70%, 92%); --tag-color: hsl(240, 80%, 28%); --tag-border: hsl(240, 60%, 82%); }
.tag-tone-9 { --tag-bg: hsl(270, 70%, 92%); --tag-color: hsl(270, 80%, 28%); --tag-border: hsl(270, 60%, 82%); }
.tag-tone-10 { --tag-bg: hsl(300, 70%, 92%); --tag-color: hsl(300, 80%, 26%); --tag-border: hsl(300, 60%, 80%); }
.tag-tone-11 { --tag-bg: hsl(330, 70%, 92%); --tag-color: hsl(330, 80%, 24%); --tag-border: hsl(330, 60%, 80%); }

[data-theme="dark"] .tag-tone-0 { --tag-bg: hsl(0, 44%, 28%); --tag-color: hsl(0, 78%, 92%); --tag-border: hsl(0, 45%, 42%); }
[data-theme="dark"] .tag-tone-1 { --tag-bg: hsl(30, 44%, 28%); --tag-color: hsl(30, 78%, 92%); --tag-border: hsl(30, 45%, 42%); }
[data-theme="dark"] .tag-tone-2 { --tag-bg: hsl(60, 34%, 30%); --tag-color: hsl(60, 74%, 90%); --tag-border: hsl(60, 35%, 44%); }
[data-theme="dark"] .tag-tone-3 { --tag-bg: hsl(90, 34%, 28%); --tag-color: hsl(90, 74%, 90%); --tag-border: hsl(90, 35%, 42%); }
[data-theme="dark"] .tag-tone-4 { --tag-bg: hsl(120, 34%, 28%); --tag-color: hsl(120, 74%, 90%); --tag-border: hsl(120, 35%, 42%); }
[data-theme="dark"] .tag-tone-5 { --tag-bg: hsl(150, 34%, 28%); --tag-color: hsl(150, 74%, 90%); --tag-border: hsl(150, 35%, 42%); }
[data-theme="dark"] .tag-tone-6 { --tag-bg: hsl(180, 34%, 28%); --tag-color: hsl(180, 74%, 90%); --tag-border: hsl(180, 35%, 42%); }
[data-theme="dark"] .tag-tone-7 { --tag-bg: hsl(210, 40%, 28%); --tag-color: hsl(210, 78%, 92%); --tag-border: hsl(210, 40%, 42%); }
[data-theme="dark"] .tag-tone-8 { --tag-bg: hsl(240, 40%, 30%); --tag-color: hsl(240, 78%, 93%); --tag-border: hsl(240, 40%, 44%); }
[data-theme="dark"] .tag-tone-9 { --tag-bg: hsl(270, 40%, 30%); --tag-color: hsl(270, 78%, 93%); --tag-border: hsl(270, 40%, 44%); }
[data-theme="dark"] .tag-tone-10 { --tag-bg: hsl(300, 40%, 30%); --tag-color: hsl(300, 78%, 93%); --tag-border: hsl(300, 40%, 44%); }
[data-theme="dark"] .tag-tone-11 { --tag-bg: hsl(330, 40%, 30%); --tag-color: hsl(330, 78%, 93%); --tag-border: hsl(330, 40%, 44%); }

