/* node_modules/tailwindcss/index.css */
@layer theme {
  @theme default {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; --color-red-50: oklch(97.1% .013 17.38); --color-red-100: oklch(93.6% .032 17.717); --color-red-200: oklch(88.5% .062 18.334); --color-red-300: oklch(80.8% .114 19.571); --color-red-400: oklch(70.4% .191 22.216); --color-red-500: oklch(63.7% .237 25.331); --color-red-600: oklch(57.7% .245 27.325); --color-red-700: oklch(50.5% .213 27.518); --color-red-800: oklch(44.4% .177 26.899); --color-red-900: oklch(39.6% .141 25.723); --color-red-950: oklch(25.8% .092 26.042); --color-orange-50: oklch(98% .016 73.684); --color-orange-100: oklch(95.4% .038 75.164); --color-orange-200: oklch(90.1% .076 70.697); --color-orange-300: oklch(83.7% .128 66.29); --color-orange-400: oklch(75% .183 55.934); --color-orange-500: oklch(70.5% .213 47.604); --color-orange-600: oklch(64.6% .222 41.116); --color-orange-700: oklch(55.3% .195 38.402); --color-orange-800: oklch(47% .157 37.304); --color-orange-900: oklch(40.8% .123 38.172); --color-orange-950: oklch(26.6% .079 36.259); --color-amber-50: oklch(98.7% .022 95.277); --color-amber-100: oklch(96.2% .059 95.617); --color-amber-200: oklch(92.4% .12 95.746); --color-amber-300: oklch(87.9% .169 91.605); --color-amber-400: oklch(82.8% .189 84.429); --color-amber-500: oklch(76.9% .188 70.08); --color-amber-600: oklch(66.6% .179 58.318); --color-amber-700: oklch(55.5% .163 48.998); --color-amber-800: oklch(47.3% .137 46.201); --color-amber-900: oklch(41.4% .112 45.904); --color-amber-950: oklch(27.9% .077 45.635); --color-yellow-50: oklch(98.7% .026 102.212); --color-yellow-100: oklch(97.3% .071 103.193); --color-yellow-200: oklch(94.5% .129 101.54); --color-yellow-300: oklch(90.5% .182 98.111); --color-yellow-400: oklch(85.2% .199 91.936); --color-yellow-500: oklch(79.5% .184 86.047); --color-yellow-600: oklch(68.1% .162 75.834); --color-yellow-700: oklch(55.4% .135 66.442); --color-yellow-800: oklch(47.6% .114 61.907); --color-yellow-900: oklch(42.1% .095 57.708); --color-yellow-950: oklch(28.6% .066 53.813); --color-lime-50: oklch(98.6% .031 120.757); --color-lime-100: oklch(96.7% .067 122.328); --color-lime-200: oklch(93.8% .127 124.321); --color-lime-300: oklch(89.7% .196 126.665); --color-lime-400: oklch(84.1% .238 128.85); --color-lime-500: oklch(76.8% .233 130.85); --color-lime-600: oklch(64.8% .2 131.684); --color-lime-700: oklch(53.2% .157 131.589); --color-lime-800: oklch(45.3% .124 130.933); --color-lime-900: oklch(40.5% .101 131.063); --color-lime-950: oklch(27.4% .072 132.109); --color-green-50: oklch(98.2% .018 155.826); --color-green-100: oklch(96.2% .044 156.743); --color-green-200: oklch(92.5% .084 155.995); --color-green-300: oklch(87.1% .15 154.449); --color-green-400: oklch(79.2% .209 151.711); --color-green-500: oklch(72.3% .219 149.579); --color-green-600: oklch(62.7% .194 149.214); --color-green-700: oklch(52.7% .154 150.069); --color-green-800: oklch(44.8% .119 151.328); --color-green-900: oklch(39.3% .095 152.535); --color-green-950: oklch(26.6% .065 152.934); --color-emerald-50: oklch(97.9% .021 166.113); --color-emerald-100: oklch(95% .052 163.051); --color-emerald-200: oklch(90.5% .093 164.15); --color-emerald-300: oklch(84.5% .143 164.978); --color-emerald-400: oklch(76.5% .177 163.223); --color-emerald-500: oklch(69.6% .17 162.48); --color-emerald-600: oklch(59.6% .145 163.225); --color-emerald-700: oklch(50.8% .118 165.612); --color-emerald-800: oklch(43.2% .095 166.913); --color-emerald-900: oklch(37.8% .077 168.94); --color-emerald-950: oklch(26.2% .051 172.552); --color-teal-50: oklch(98.4% .014 180.72); --color-teal-100: oklch(95.3% .051 180.801); --color-teal-200: oklch(91% .096 180.426); --color-teal-300: oklch(85.5% .138 181.071); --color-teal-400: oklch(77.7% .152 181.912); --color-teal-500: oklch(70.4% .14 182.503); --color-teal-600: oklch(60% .118 184.704); --color-teal-700: oklch(51.1% .096 186.391); --color-teal-800: oklch(43.7% .078 188.216); --color-teal-900: oklch(38.6% .063 188.416); --color-teal-950: oklch(27.7% .046 192.524); --color-cyan-50: oklch(98.4% .019 200.873); --color-cyan-100: oklch(95.6% .045 203.388); --color-cyan-200: oklch(91.7% .08 205.041); --color-cyan-300: oklch(86.5% .127 207.078); --color-cyan-400: oklch(78.9% .154 211.53); --color-cyan-500: oklch(71.5% .143 215.221); --color-cyan-600: oklch(60.9% .126 221.723); --color-cyan-700: oklch(52% .105 223.128); --color-cyan-800: oklch(45% .085 224.283); --color-cyan-900: oklch(39.8% .07 227.392); --color-cyan-950: oklch(30.2% .056 229.695); --color-sky-50: oklch(97.7% .013 236.62); --color-sky-100: oklch(95.1% .026 236.824); --color-sky-200: oklch(90.1% .058 230.902); --color-sky-300: oklch(82.8% .111 230.318); --color-sky-400: oklch(74.6% .16 232.661); --color-sky-500: oklch(68.5% .169 237.323); --color-sky-600: oklch(58.8% .158 241.966); --color-sky-700: oklch(50% .134 242.749); --color-sky-800: oklch(44.3% .11 240.79); --color-sky-900: oklch(39.1% .09 240.876); --color-sky-950: oklch(29.3% .066 243.157); --color-blue-50: oklch(97% .014 254.604); --color-blue-100: oklch(93.2% .032 255.585); --color-blue-200: oklch(88.2% .059 254.128); --color-blue-300: oklch(80.9% .105 251.813); --color-blue-400: oklch(70.7% .165 254.624); --color-blue-500: oklch(62.3% .214 259.815); --color-blue-600: oklch(54.6% .245 262.881); --color-blue-700: oklch(48.8% .243 264.376); --color-blue-800: oklch(42.4% .199 265.638); --color-blue-900: oklch(37.9% .146 265.522); --color-blue-950: oklch(28.2% .091 267.935); --color-indigo-50: oklch(96.2% .018 272.314); --color-indigo-100: oklch(93% .034 272.788); --color-indigo-200: oklch(87% .065 274.039); --color-indigo-300: oklch(78.5% .115 274.713); --color-indigo-400: oklch(67.3% .182 276.935); --color-indigo-500: oklch(58.5% .233 277.117); --color-indigo-600: oklch(51.1% .262 276.966); --color-indigo-700: oklch(45.7% .24 277.023); --color-indigo-800: oklch(39.8% .195 277.366); --color-indigo-900: oklch(35.9% .144 278.697); --color-indigo-950: oklch(25.7% .09 281.288); --color-violet-50: oklch(96.9% .016 293.756); --color-violet-100: oklch(94.3% .029 294.588); --color-violet-200: oklch(89.4% .057 293.283); --color-violet-300: oklch(81.1% .111 293.571); --color-violet-400: oklch(70.2% .183 293.541); --color-violet-500: oklch(60.6% .25 292.717); --color-violet-600: oklch(54.1% .281 293.009); --color-violet-700: oklch(49.1% .27 292.581); --color-violet-800: oklch(43.2% .232 292.759); --color-violet-900: oklch(38% .189 293.745); --color-violet-950: oklch(28.3% .141 291.089); --color-purple-50: oklch(97.7% .014 308.299); --color-purple-100: oklch(94.6% .033 307.174); --color-purple-200: oklch(90.2% .063 306.703); --color-purple-300: oklch(82.7% .119 306.383); --color-purple-400: oklch(71.4% .203 305.504); --color-purple-500: oklch(62.7% .265 303.9); --color-purple-600: oklch(55.8% .288 302.321); --color-purple-700: oklch(49.6% .265 301.924); --color-purple-800: oklch(43.8% .218 303.724); --color-purple-900: oklch(38.1% .176 304.987); --color-purple-950: oklch(29.1% .149 302.717); --color-fuchsia-50: oklch(97.7% .017 320.058); --color-fuchsia-100: oklch(95.2% .037 318.852); --color-fuchsia-200: oklch(90.3% .076 319.62); --color-fuchsia-300: oklch(83.3% .145 321.434); --color-fuchsia-400: oklch(74% .238 322.16); --color-fuchsia-500: oklch(66.7% .295 322.15); --color-fuchsia-600: oklch(59.1% .293 322.896); --color-fuchsia-700: oklch(51.8% .253 323.949); --color-fuchsia-800: oklch(45.2% .211 324.591); --color-fuchsia-900: oklch(40.1% .17 325.612); --color-fuchsia-950: oklch(29.3% .136 325.661); --color-pink-50: oklch(97.1% .014 343.198); --color-pink-100: oklch(94.8% .028 342.258); --color-pink-200: oklch(89.9% .061 343.231); --color-pink-300: oklch(82.3% .12 346.018); --color-pink-400: oklch(71.8% .202 349.761); --color-pink-500: oklch(65.6% .241 354.308); --color-pink-600: oklch(59.2% .249 .584); --color-pink-700: oklch(52.5% .223 3.958); --color-pink-800: oklch(45.9% .187 3.815); --color-pink-900: oklch(40.8% .153 2.432); --color-pink-950: oklch(28.4% .109 3.907); --color-rose-50: oklch(96.9% .015 12.422); --color-rose-100: oklch(94.1% .03 12.58); --color-rose-200: oklch(89.2% .058 10.001); --color-rose-300: oklch(81% .117 11.638); --color-rose-400: oklch(71.2% .194 13.428); --color-rose-500: oklch(64.5% .246 16.439); --color-rose-600: oklch(58.6% .253 17.585); --color-rose-700: oklch(51.4% .222 16.935); --color-rose-800: oklch(45.5% .188 13.697); --color-rose-900: oklch(41% .159 10.272); --color-rose-950: oklch(27.1% .105 12.094); --color-slate-50: oklch(98.4% .003 247.858); --color-slate-100: oklch(96.8% .007 247.896); --color-slate-200: oklch(92.9% .013 255.508); --color-slate-300: oklch(86.9% .022 252.894); --color-slate-400: oklch(70.4% .04 256.788); --color-slate-500: oklch(55.4% .046 257.417); --color-slate-600: oklch(44.6% .043 257.281); --color-slate-700: oklch(37.2% .044 257.287); --color-slate-800: oklch(27.9% .041 260.031); --color-slate-900: oklch(20.8% .042 265.755); --color-slate-950: oklch(12.9% .042 264.695); --color-gray-50: oklch(98.5% .002 247.839); --color-gray-100: oklch(96.7% .003 264.542); --color-gray-200: oklch(92.8% .006 264.531); --color-gray-300: oklch(87.2% .01 258.338); --color-gray-400: oklch(70.7% .022 261.325); --color-gray-500: oklch(55.1% .027 264.364); --color-gray-600: oklch(44.6% .03 256.802); --color-gray-700: oklch(37.3% .034 259.733); --color-gray-800: oklch(27.8% .033 256.848); --color-gray-900: oklch(21% .034 264.665); --color-gray-950: oklch(13% .028 261.692); --color-zinc-50: oklch(98.5% 0 0); --color-zinc-100: oklch(96.7% .001 286.375); --color-zinc-200: oklch(92% .004 286.32); --color-zinc-300: oklch(87.1% .006 286.286); --color-zinc-400: oklch(70.5% .015 286.067); --color-zinc-500: oklch(55.2% .016 285.938); --color-zinc-600: oklch(44.2% .017 285.786); --color-zinc-700: oklch(37% .013 285.805); --color-zinc-800: oklch(27.4% .006 286.033); --color-zinc-900: oklch(21% .006 285.885); --color-zinc-950: oklch(14.1% .005 285.823); --color-neutral-50: oklch(98.5% 0 0); --color-neutral-100: oklch(97% 0 0); --color-neutral-200: oklch(92.2% 0 0); --color-neutral-300: oklch(87% 0 0); --color-neutral-400: oklch(70.8% 0 0); --color-neutral-500: oklch(55.6% 0 0); --color-neutral-600: oklch(43.9% 0 0); --color-neutral-700: oklch(37.1% 0 0); --color-neutral-800: oklch(26.9% 0 0); --color-neutral-900: oklch(20.5% 0 0); --color-neutral-950: oklch(14.5% 0 0); --color-stone-50: oklch(98.5% .001 106.423); --color-stone-100: oklch(97% .001 106.424); --color-stone-200: oklch(92.3% .003 48.717); --color-stone-300: oklch(86.9% .005 56.366); --color-stone-400: oklch(70.9% .01 56.259); --color-stone-500: oklch(55.3% .013 58.071); --color-stone-600: oklch(44.4% .011 73.639); --color-stone-700: oklch(37.4% .01 67.558); --color-stone-800: oklch(26.8% .007 34.298); --color-stone-900: oklch(21.6% .006 56.043); --color-stone-950: oklch(14.7% .004 49.25); --color-mauve-50: oklch(98.5% 0 0); --color-mauve-100: oklch(96% .003 325.6); --color-mauve-200: oklch(92.2% .005 325.62); --color-mauve-300: oklch(86.5% .012 325.68); --color-mauve-400: oklch(71.1% .019 323.02); --color-mauve-500: oklch(54.2% .034 322.5); --color-mauve-600: oklch(43.5% .029 321.78); --color-mauve-700: oklch(36.4% .029 323.89); --color-mauve-800: oklch(26.3% .024 320.12); --color-mauve-900: oklch(21.2% .019 322.12); --color-mauve-950: oklch(14.5% .008 326); --color-olive-50: oklch(98.8% .003 106.5); --color-olive-100: oklch(96.6% .005 106.5); --color-olive-200: oklch(93% .007 106.5); --color-olive-300: oklch(88% .011 106.6); --color-olive-400: oklch(73.7% .021 106.9); --color-olive-500: oklch(58% .031 107.3); --color-olive-600: oklch(46.6% .025 107.3); --color-olive-700: oklch(39.4% .023 107.4); --color-olive-800: oklch(28.6% .016 107.4); --color-olive-900: oklch(22.8% .013 107.4); --color-olive-950: oklch(15.3% .006 107.1); --color-mist-50: oklch(98.7% .002 197.1); --color-mist-100: oklch(96.3% .002 197.1); --color-mist-200: oklch(92.5% .005 214.3); --color-mist-300: oklch(87.2% .007 219.6); --color-mist-400: oklch(72.3% .014 214.4); --color-mist-500: oklch(56% .021 213.5); --color-mist-600: oklch(45% .017 213.2); --color-mist-700: oklch(37.8% .015 216); --color-mist-800: oklch(27.5% .011 216.9); --color-mist-900: oklch(21.8% .008 223.9); --color-mist-950: oklch(14.8% .004 228.8); --color-taupe-50: oklch(98.6% .002 67.8); --color-taupe-100: oklch(96% .002 17.2); --color-taupe-200: oklch(92.2% .005 34.3); --color-taupe-300: oklch(86.8% .007 39.5); --color-taupe-400: oklch(71.4% .014 41.2); --color-taupe-500: oklch(54.7% .021 43.1); --color-taupe-600: oklch(43.8% .017 39.3); --color-taupe-700: oklch(36.7% .016 35.7); --color-taupe-800: oklch(26.8% .011 36.5); --color-taupe-900: oklch(21.4% .009 43.1); --color-taupe-950: oklch(14.7% .004 49.3); --color-black: #000; --color-white: #fff; --spacing: .25rem; --breakpoint-sm: 40rem; --breakpoint-md: 48rem; --breakpoint-lg: 64rem; --breakpoint-xl: 80rem; --breakpoint-2xl: 96rem; --container-3xs: 16rem; --container-2xs: 18rem; --container-xs: 20rem; --container-sm: 24rem; --container-md: 28rem; --container-lg: 32rem; --container-xl: 36rem; --container-2xl: 42rem; --container-3xl: 48rem; --container-4xl: 56rem; --container-5xl: 64rem; --container-6xl: 72rem; --container-7xl: 80rem; --text-xs: .75rem; --text-xs--line-height: calc(1 / .75) ; --text-sm: .875rem; --text-sm--line-height: calc(1.25 / .875) ; --text-base: 1rem; --text-base--line-height: calc(1.5 / 1) ; --text-lg: 1.125rem; --text-lg--line-height: calc(1.75 / 1.125) ; --text-xl: 1.25rem; --text-xl--line-height: calc(1.75 / 1.25) ; --text-2xl: 1.5rem; --text-2xl--line-height: calc(2 / 1.5) ; --text-3xl: 1.875rem; --text-3xl--line-height: calc(2.25 / 1.875) ; --text-4xl: 2.25rem; --text-4xl--line-height: calc(2.5 / 2.25) ; --text-5xl: 3rem; --text-5xl--line-height: 1; --text-6xl: 3.75rem; --text-6xl--line-height: 1; --text-7xl: 4.5rem; --text-7xl--line-height: 1; --text-8xl: 6rem; --text-8xl--line-height: 1; --text-9xl: 8rem; --text-9xl--line-height: 1; --font-weight-thin: 100; --font-weight-extralight: 200; --font-weight-light: 300; --font-weight-normal: 400; --font-weight-medium: 500; --font-weight-semibold: 600; --font-weight-bold: 700; --font-weight-extrabold: 800; --font-weight-black: 900; --tracking-tighter: -.05em; --tracking-tight: -.025em; --tracking-normal: 0em; --tracking-wide: .025em; --tracking-wider: .05em; --tracking-widest: .1em; --leading-tight: 1.25; --leading-snug: 1.375; --leading-normal: 1.5; --leading-relaxed: 1.625; --leading-loose: 2; --radius-xs: .125rem; --radius-sm: .25rem; --radius-md: .375rem; --radius-lg: .5rem; --radius-xl: .75rem; --radius-2xl: 1rem; --radius-3xl: 1.5rem; --radius-4xl: 2rem; --shadow-2xs: 0 1px #0000000d; --shadow-xs: 0 1px 2px 0 #0000000d; --shadow-sm: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a; --shadow-md: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a; --shadow-lg: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a; --shadow-xl: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a; --shadow-2xl: 0 25px 50px -12px #00000040; --inset-shadow-2xs: inset 0 1px #0000000d; --inset-shadow-xs: inset 0 1px 1px #0000000d; --inset-shadow-sm: inset 0 2px 4px #0000000d; --drop-shadow-xs: 0 1px 1px #0000000d; --drop-shadow-sm: 0 1px 2px #00000026; --drop-shadow-md: 0 3px 3px #0000001f; --drop-shadow-lg: 0 4px 4px #00000026; --drop-shadow-xl: 0 9px 7px #0000001a; --drop-shadow-2xl: 0 25px 25px #00000026; --text-shadow-2xs: 0px 1px 0px #00000026; --text-shadow-xs: 0px 1px 1px #0003; --text-shadow-sm: 0px 1px 0px #00000013, 0px 1px 1px #00000013, 0px 2px 2px #00000013; --text-shadow-md: 0px 1px 1px #0000001a, 0px 1px 2px #0000001a, 0px 2px 4px #0000001a; --text-shadow-lg: 0px 1px 2px #0000001a, 0px 3px 2px #0000001a, 0px 4px 8px #0000001a; --ease-in: cubic-bezier(.4, 0, 1, 1) ; --ease-out: cubic-bezier(0, 0, .2, 1) ; --ease-in-out: cubic-bezier(.4, 0, .2, 1) ; --animate-spin: spin 1s linear infinite; --animate-ping: ping 1s cubic-bezier(0, 0, .2, 1) infinite; --animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; --animate-bounce: bounce 1s infinite; @keyframes spin { to { transform: rotate(360deg) ; } } @keyframes ping { 75%, 100% { transform: scale(2) ; opacity: 0; } } @keyframes pulse { 50% { opacity: .5; } } @keyframes bounce { 0%, 100% { transform: translateY(-25%) ; animation-timing-function: cubic-bezier(.8, 0, 1, 1) ; } 50% { transform: none; animation-timing-function: cubic-bezier(0, 0, .2, 1) ; } } --blur-xs: 4px; --blur-sm: 8px; --blur-md: 12px; --blur-lg: 16px; --blur-xl: 24px; --blur-2xl: 40px; --blur-3xl: 64px; --perspective-dramatic: 100px; --perspective-near: 300px; --perspective-normal: 500px; --perspective-midrange: 800px; --perspective-distant: 1200px; --aspect-video: 16 / 9; --default-transition-duration: .15s; --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1) ; --default-font-family: --theme(--font-sans, initial) ; --default-font-feature-settings: --theme(--font-sans--font-feature-settings, initial) ; --default-font-variation-settings: --theme(--font-sans--font-variation-settings, initial) ; --default-mono-font-family: --theme(--font-mono, initial) ; --default-mono-font-feature-settings: --theme(--font-mono--font-feature-settings, initial) ; --default-mono-font-variation-settings: --theme(--font-mono--font-variation-settings, initial) ;
  }

  @theme default inline reference {
    --blur: 8px; --shadow: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a; --shadow-inner: inset 0 2px 4px 0 #0000000d; --drop-shadow: 0 1px 2px #0000001a, 0 1px 1px #0000000f; --radius: .25rem; --max-width-prose: 65ch;
  }
}

@layer base {
  *, :after, :before {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::-webkit-file-upload-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: --theme(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: --theme(--default-font-feature-settings, normal);
    font-variation-settings: --theme(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    color: inherit;
    border-top-width: 1px;
    height: 0;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

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

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: --theme(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: --theme(--default-mono-font-feature-settings, normal);
    font-variation-settings: --theme(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    position: relative;
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::-webkit-file-upload-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:-webkit-any([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:-moz-any([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:-webkit-any([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  :where(select:-moz-any([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::-webkit-file-upload-button {
    margin-inline-end: 4px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports ( not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: color-mix(in oklab, currentcolor 50%, transparent);
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    text-align: inherit;
    min-height: 1lh;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button {
    appearance: button;
  }

  input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::-webkit-file-upload-button {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer utilities {
  @tailwind utilities;
}

/* ui/src/styles/globals.css */
:root {
  --j-bg: #07070a;
  --j-surface: #0c0c12;
  --j-surface-hover: #1a1a22;
  --j-border: #ffffff0a;
  --j-border-bright: #ffffff12;
  --j-accent: #8b5cf6;
  --j-accent-dim: #6d28d9;
  --j-accent2: #a78bfa;
  --j-success: #34d399;
  --j-warning: #fbbf24;
  --j-error: #fb7185;
  --j-text: #ffffffe0;
  --j-text-dim: #ffffff7a;
  --j-text-muted: #ffffff40;
  --j-glow: 0 0 20px #8b5cf626;
  --j-glow-strong: 0 0 30px #8b5cf64d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--j-bg);
  color: var(--j-text);
  overflow: hidden;
  min-height: 100vh;
  font-family: Inter, SF Pro Display, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
}

#root {
  width: 100vw;
  height: 100vh;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: var(--j-border-bright);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--j-text-muted);
}

::selection {
  color: #fff;
  background: #8b5cf64d;
}

.markdown-content {
  word-break: break-word;
  line-height: 1.6;
}

.markdown-content > :first-child {
  margin-top: 0;
}

.markdown-content > :last-child {
  margin-bottom: 0;
}

.markdown-content h1, .markdown-content h2, .markdown-content h3, .markdown-content h4, .markdown-content h5, .markdown-content h6 {
  color: var(--j-text);
  margin: 16px 0 8px;
  font-weight: 600;
  line-height: 1.3;
}

.markdown-content h1 {
  border-bottom: 1px solid var(--j-border);
  padding-bottom: 4px;
  font-size: 1.4em;
}

.markdown-content h2 {
  font-size: 1.25em;
}

.markdown-content h3 {
  font-size: 1.1em;
}

.markdown-content h4 {
  color: var(--j-text-dim);
  font-size: 1em;
}

.markdown-content p {
  margin: 6px 0;
}

.markdown-content ul, .markdown-content ol {
  margin: 6px 0;
  padding-left: 20px;
}

.markdown-content li, .markdown-content li > p {
  margin: 2px 0;
}

.markdown-content li::marker {
  color: var(--j-text-muted);
}

.markdown-content li:has( > input[type="checkbox"]) {
  list-style: none;
  margin-left: -20px;
}

.markdown-content strong {
  color: var(--j-text);
  font-weight: 600;
}

.markdown-content em {
  color: var(--j-text-dim);
  font-style: italic;
}

.markdown-content del {
  color: var(--j-text-muted);
  text-decoration: line-through;
}

.markdown-content a:hover {
  border-bottom-color: var(--j-accent) !important;
}

.hljs {
  color: var(--j-text);
}

.hljs-keyword, .hljs-selector-tag, .hljs-built_in, .hljs-name {
  color: #c792ea;
}

.hljs-string, .hljs-attr, .hljs-template-tag, .hljs-template-variable {
  color: #c3e88d;
}

.hljs-comment, .hljs-quote {
  color: #546e7a;
  font-style: italic;
}

.hljs-number, .hljs-literal, .hljs-boolean {
  color: #f78c6c;
}

.hljs-function, .hljs-title {
  color: #82aaff;
}

.hljs-type, .hljs-class .hljs-title {
  color: #ffcb6b;
}

.hljs-variable, .hljs-params {
  color: var(--j-text);
}

.hljs-regexp {
  color: #89ddff;
}

.hljs-symbol, .hljs-bullet {
  color: #f07178;
}

.hljs-meta {
  color: #89ddff;
}

.hljs-addition {
  color: #c3e88d;
  background: #c3e88d14;
}

.hljs-deletion {
  color: #f07178;
  background: #f0717814;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: bold;
}

@keyframes taskPulse {
  0% {
    box-shadow: 0 0 #00d4ff66;
  }

  50% {
    box-shadow: 0 0 16px 4px #00d4ff26;
  }

  100% {
    box-shadow: 0 0 #00d4ff00;
  }
}

/* ui/src/styles/sidebar.css */
.sidebar {
  background: var(--j-surface, #0c0c12);
  display: flex;
  z-index: 10;
  position: relative;
  overflow: hidden;
  border-right: 1px solid #ffffff0a;
  flex-direction: column;
  flex-shrink: 0;
  align-items:  center;
  width: 52px;
  min-width: 52px;
  padding: 14px 0 16px;
  transition: width .28s cubic-bezier(.4,0,.2,1), min-width .28s cubic-bezier(.4,0,.2,1);
}

.sidebar:hover {
  width: 200px;
  min-width: 200px;
}

.sidebar:before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background: #8b5cf608;
  width: 1px;
  transition: left .28s cubic-bezier(.4,0,.2,1);
  top: 0;
  bottom: 0;
  left: 26px;
}

.sidebar:hover:before {
  left: 26px;
}

.sidebar-logo {
  cursor: pointer;
  position: relative;
  z-index: 1;
  animation: sb-coreBreath 5s ease-in-out infinite, sb-orbGlow 5s ease-in-out infinite;
  background: radial-gradient(circle at 38% 33%, #c4b5fd 0%, #8b5cf6 45%, #6d28d9 100%);
  border-radius: 50%;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.sidebar-logo-text {
  color: #8b5cf6;
  letter-spacing: 2px;
  white-space: nowrap;
  opacity: 0;
  overflow: hidden;
  width: 0;
  margin-left: 0;
  transition: opacity .2s, width .28s cubic-bezier(.4,0,.2,1);
  font-size: 13px;
  font-weight: 700;
}

.sidebar:hover .sidebar-logo-text {
  opacity: 1;
  width: auto;
  margin-left: 12px;
  transition: opacity .2s .1s, width .28s cubic-bezier(.4,0,.2,1);
}

.sidebar-logo-row {
  display: flex;
  flex-shrink: 0;
  align-items:  center;
  width: 100%;
  padding: 0 20px;
}

.sidebar-logo-gap {
  flex-shrink: 0;
  height: 20px;
}

.sidebar-nav {
  display: flex;
  position: relative;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  flex-direction: column;
  flex: 1;
  align-items:  center;
  gap: 0;
  width: 100%;
  min-height: 0;
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.sidebar-group-divider {
  background: #ffffff0a;
  flex-shrink: 0;
  width: 28px;
  height: 1px;
  margin: 6px auto;
  transition: width .28s cubic-bezier(.4,0,.2,1);
}

.sidebar:hover .sidebar-group-divider {
  width: calc(100% - 24px);
}

.sidebar-nav-item {
  display: flex;
  cursor: pointer;
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 40px;
  height: 40px;
  margin: 1px 6px;
  padding: 0;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  font-family: inherit;
}

.sidebar:hover .sidebar-nav-item {
  justify-content: flex-start;
  width: calc(100% - 12px);
  padding: 0 12px;
}

.sidebar-nav-item:hover {
  background: #8b5cf60a;
}

.sidebar-nav-item:hover .nav-icon {
  opacity: .5;
}

.sidebar-nav-item.active {
  box-shadow: 0 0 20px #8b5cf614;
}

.sidebar-nav-item.active:hover {
  background: #8b5cf60f;
}

.nav-icon {
  opacity: .2;
  color: #ffffffe0;
  user-select: none;
  text-align: center;
  flex-shrink: 0;
  width: 16px;
  transition: opacity .15s;
  font-size: 14px;
  font-style: normal;
  line-height: 1;
}

.sidebar-nav-item.active .nav-icon {
  opacity: 1;
}

.nav-label {
  color: #ffffff7a;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  width: 0;
  margin-left: 0;
  transition: opacity .15s, width .28s cubic-bezier(.4,0,.2,1), margin .28s;
  font-size: 12px;
}

.sidebar:hover .nav-label {
  opacity: 1;
  width: auto;
  margin-left: 10px;
  transition: opacity .15s .12s, width .28s cubic-bezier(.4,0,.2,1), margin .28s;
}

.sidebar-nav-item.active .nav-label {
  color: #ffffffe0;
  font-weight: 500;
}

.sidebar-nav-item:hover .nav-label {
  color: #ffffffb3;
}

.nav-active-dot {
  opacity: 0;
  position: absolute;
  background: #8b5cf6;
  border-radius: 50%;
  width: 4px;
  height: 4px;
  transition: opacity .15s;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
}

.sidebar-nav-item.active .nav-active-dot {
  opacity: 1;
  animation: sb-breathe 3s ease-in-out infinite;
}

.sidebar:hover .nav-active-dot {
  top: 50%;
  bottom: auto;
  left: 6px;
  transform: translateY(-50%);
}

.sidebar-settings-sub {
  display: none;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.sidebar:hover .sidebar-settings-sub.open {
  display: flex;
}

.sidebar-sub-item {
  display: flex;
  cursor: pointer;
  color: #ffffff59;
  white-space: nowrap;
  background: none;
  border: none;
  border-radius: 6px;
  align-items:  center;
  gap: 8px;
  width: calc(100% - 12px);
  margin: 0 6px;
  padding: 6px 12px 6px 38px;
  transition: all .15s;
  font-family: inherit;
  font-size: 11px;
}

.sidebar-sub-item:hover {
  color: #fff9;
  background: #8b5cf60a;
}

.sidebar-sub-item.active {
  color: #a78bfa;
  font-weight: 500;
}

.sidebar-health {
  position: relative;
  z-index: 1;
  cursor: default;
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: auto;
  margin-bottom: 4px;
  transition: background .3s;
}

.sidebar-health.connected {
  animation: sb-statusPulse 2.5s ease-out infinite;
  background: #34d399;
}

.sidebar-health.disconnected {
  animation: none;
  background: #ffffff40;
}

.sidebar-health-row {
  display: flex;
  flex-shrink: 0;
  align-items:  center;
  width: 100%;
  margin-top: auto;
  padding: 0 20px;
}

.sidebar-health-label {
  color: #ffffff40;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  width: 0;
  margin-left: 0;
  transition: opacity .15s, width .28s, margin .28s;
  font-size: 10px;
}

.sidebar:hover .sidebar-health-label {
  opacity: 1;
  width: auto;
  margin-left: 10px;
  transition: opacity .15s .12s, width .28s, margin .28s;
}

@keyframes sb-coreBreath {
  0%, 100% {
    transform: scale(1);
    opacity: .7;
  }

  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes sb-orbGlow {
  0%, 100% {
    box-shadow: 0 0 8px #8b5cf680, 0 0 20px #8b5cf626;
  }

  50% {
    box-shadow: 0 0 14px #8b5cf6cc, 0 0 36px #8b5cf640;
  }
}

@keyframes sb-breathe {
  0%, 100% {
    opacity: .28;
  }

  50% {
    opacity: 1;
  }
}

@keyframes sb-statusPulse {
  0% {
    box-shadow: 0 0 #34d3998c;
  }

  70% {
    box-shadow: 0 0 0 6px #34d39900;
  }

  100% {
    box-shadow: 0 0 #34d39900;
  }
}

/* ui/src/styles/chat.css */
.chat-page {
  --void: #07070a;
  --surface-1: #0c0c12;
  --surface-2: #131319;
  --surface-3: #1a1a22;
  --surface-4: #22222e;
  --border-1: #ffffff0a;
  --border-2: #ffffff12;
  --border-3: #ffffff1f;
  --text-1: #ffffffe0;
  --text-2: #ffffff7a;
  --text-3: #ffffff40;
  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --violet-glow: #8b5cf633;
  --violet-aura: #8b5cf60f;
  --emerald: #34d399;
  --rose: #fb7185;
  --amber: #fbbf24;
  display: flex;
  position: relative;
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  color: var(--text-1);
  flex-direction: column;
  width: 100%;
  height: 100%;
  font-family: Inter, sans-serif;
}

@keyframes chat-auroraShift {
  0% {
    background-position: 0%;
  }

  50% {
    background-position: 100%;
  }

  100% {
    background-position: 0%;
  }
}

@keyframes chat-drift {
  0%, 100% {
    transform: translate(0);
  }

  25% {
    transform: translate(3px, -5px);
  }

  50% {
    transform: translate(-3px, 3px);
  }

  75% {
    transform: translate(2px, 4px);
  }
}

@keyframes chat-streamDown {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }

  10% {
    opacity: .18;
  }

  90% {
    opacity: .18;
  }

  100% {
    transform: translateY(120vh);
    opacity: 0;
  }
}

@keyframes chat-flowPulse {
  0% {
    stroke-dashoffset: 16;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes chat-materialize {
  0% {
    opacity: 0;
    transform: translateY(14px)scale(.98);
    filter: blur(3px);
  }

  100% {
    opacity: 1;
    transform: translateY(0)scale(1);
    filter: blur(0);
  }
}

@keyframes chat-breathe {
  0%, 100% {
    opacity: .28;
  }

  50% {
    opacity: 1;
  }
}

@keyframes chat-cursorBlink {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes chat-waveform {
  0%, 100% {
    height: var(--wave-min);
  }

  50% {
    height: var(--wave-max);
  }
}

@keyframes chat-typingDot {
  0%, 80%, 100% {
    transform: scale(.5);
    opacity: .25;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes chat-micPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.15);
    opacity: .7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.chat-atmos {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  inset: 0;
}

.chat-atmos-aurora {
  position: absolute;
  animation: chat-auroraShift 30s ease-in-out infinite;
  background-color: #0000;
  background-image: radial-gradient(at 30% 15%, #8b5cf609 0%, #0000 55%), radial-gradient(at 68% 58%, #60a5fa07 0%, #0000 45%), radial-gradient(at 42% 82%, #34d39906 0%, #0000 50%);
  background-position: 0 0, 0 0, 0 0;
  background-repeat: repeat, repeat, repeat;
  background-size: 200% 200%;
  background-attachment: scroll, scroll, scroll;
  background-origin: padding-box, padding-box, padding-box;
  background-clip: border-box, border-box, border-box;
  inset: 0;
}

.chat-atmos-constellation {
  position: absolute;
  inset: 0;
}

.chat-const-node {
  position: absolute;
  border-radius: 50%;
}

.chat-const-node.drift {
  animation: chat-drift var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
}

.chat-const-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}

.chat-stream-channel {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
  width: 2px;
  top: 0;
  bottom: 0;
}

.chat-stream-particle {
  position: absolute;
  animation: chat-streamDown var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
  border-radius: 50%;
  width: 2px;
  height: 2px;
  left: 0;
}

.chat-status-bar {
  text-align: center;
  display: flex;
  position: relative;
  z-index: 2;
  letter-spacing: .02em;
  justify-content: center;
  align-items:  center;
  gap: 8px;
  padding: 6px 16px;
  font-family: JetBrains Mono, monospace;
  font-size: 12px;
}

.chat-status-disconnected {
  color: var(--rose);
  background: #fb71850f;
  border-bottom: 1px solid #fb71851a;
}

.chat-status-voice {
  background: var(--violet-aura);
  color: var(--violet-bright);
  border-bottom: 1px solid #8b5cf61a;
}

.chat-status-dot {
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.chat-status-dot-recording {
  background: var(--rose);
  animation: chat-micPulse 1s ease infinite;
}

.chat-status-dot-voice {
  background: var(--violet);
  animation: chat-breathe 2s ease-in-out infinite;
}

.chat-messages-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-4) transparent;
  display: flex;
  position: relative;
  z-index: 1;
  flex-direction: column;
  flex: 1;
  padding: 28px 0 20px;
}

.chat-messages-scroll::-webkit-scrollbar {
  width: 4px;
}

.chat-messages-scroll::-webkit-scrollbar-track {
  background: none;
}

.chat-messages-scroll::-webkit-scrollbar-thumb {
  background: var(--surface-4);
  border-radius: 2px;
}

.chat-messages-center {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 0 32px;
}

.chat-empty {
  display: flex;
  position: relative;
  z-index: 1;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items:  center;
  gap: 14px;
}

.chat-empty-orb {
  animation: chat-breathe 5s ease-in-out infinite;
  background: radial-gradient(circle at 38% 33%, #c4b5fd 0%, #8b5cf6 45%, #6d28d9 100%);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  box-shadow: 0 0 18px #8b5cf680, 0 0 44px #8b5cf633;
}

.chat-empty-title {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
}

.chat-empty-sub {
  color: var(--text-3);
  text-align: center;
  max-width: 400px;
  font-size: 13px;
  line-height: 1.6;
}

.chat-time-divider {
  display: flex;
  animation: chat-materialize .4s cubic-bezier(.16, 1, .3, 1) both;
  align-items:  center;
  gap: 16px;
  margin: 20px 0 16px;
}

.chat-time-divider:before, .chat-time-divider:after {
  content: "";
  background: var(--border-1);
  flex: 1;
  height: 1px;
}

.chat-time-label {
  color: var(--text-3);
  letter-spacing: .04em;
  white-space: nowrap;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

.chat-msg {
  animation: chat-materialize .5s cubic-bezier(.16, 1, .3, 1) both;
  margin-bottom: 20px;
}

.chat-msg-user {
  align-self:  flex-end;
  max-width: 70%;
}

.chat-msg-jarvis {
  max-width: 88%;
}

.chat-msg-system {
  align-self:  center;
  max-width: 600px;
  margin-bottom: 12px;
}

.chat-sender {
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-bottom: 8px;
}

.chat-sender-orb {
  background: var(--violet);
  animation: chat-breathe 3s ease-in-out infinite;
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.chat-sender-name {
  letter-spacing: .06em;
  color: var(--text-3);
  text-transform: uppercase;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
  font-weight: 600;
}

.chat-sender-ts {
  color: var(--text-3);
  opacity: .6;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.chat-bubble {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  color: var(--text-1);
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  word-break: break-word;
  border-radius: 2px 20px 20px;
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.7;
}

.chat-bubble-jarvis:before {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, var(--violet), #8b5cf61a);
  opacity: .5;
  border-radius: 1px;
  width: 2px;
  top: 8px;
  bottom: 8px;
  left: 0;
}

.chat-bubble-user {
  white-space: pre-wrap;
  background: #8b5cf60f;
  border-color: #8b5cf61a;
  border-radius: 20px 20px 2px;
}

.chat-bubble-user:before {
  display: none;
}

.chat-system-card {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  display: flex;
  animation: chat-materialize .4s cubic-bezier(.16, 1, .3, 1) both;
  border-radius: 12px;
  align-items:  flex-start;
  gap: 12px;
  padding: 14px 20px;
}

.chat-system-icon {
  display: flex;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  font-size: 13px;
}

.chat-system-icon-heartbeat {
  color: var(--emerald);
  background: #34d3990f;
  border: 1px solid #34d3991a;
}

.chat-system-icon-error {
  color: var(--rose);
  background: #fb71850f;
  border: 1px solid #fb71851a;
}

.chat-system-icon-workflow, .chat-system-icon-default {
  background: var(--violet-aura);
  color: var(--violet-bright);
  border: 1px solid #8b5cf61a;
}

.chat-system-body {
  flex: 1;
  min-width: 0;
}

.chat-system-label {
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 3px;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
  font-weight: 600;
}

.chat-system-label-heartbeat {
  color: var(--emerald);
  opacity: .6;
}

.chat-system-label-error {
  color: var(--rose);
}

.chat-system-label-workflow {
  color: var(--violet-bright);
  opacity: .6;
}

.chat-system-label-default {
  color: var(--text-3);
}

.chat-system-text {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.55;
}

.chat-system-text-error {
  color: #fb7185b3;
}

.chat-system-ts {
  color: var(--text-3);
  opacity: .5;
  margin-top: 4px;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.chat-sa-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.chat-sa {
  display: inline-flex;
  border-radius: 6px;
  align-items:  center;
  gap: 4px;
  padding: 3px 10px;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

.chat-sa-active {
  color: var(--violet-bright);
  background: #a78bfa0f;
  border: 1px solid #a78bfa1f;
}

.chat-sa-tool {
  color: var(--amber);
  background: #fbbf240f;
  border: 1px solid #fbbf241f;
}

.chat-sa-done {
  color: var(--emerald);
  background: #34d3990f;
  border: 1px solid #34d3991f;
}

.chat-tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chat-tool {
  display: inline-flex;
  color: #fbbf24b3;
  background: #fbbf240d;
  border: 1px solid #fbbf241a;
  border-radius: 8px;
  align-items:  center;
  gap: 5px;
  padding: 4px 10px;
  transition: all .15s;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

.chat-tool:hover {
  color: var(--amber);
  background: #fbbf2414;
  border-color: #fbbf2433;
}

.chat-ts {
  color: var(--text-3);
  opacity: .6;
  margin-top: 6px;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.chat-ts-right {
  text-align: right;
}

.chat-cursor {
  display: inline-block;
  background: var(--violet);
  vertical-align: text-bottom;
  animation: chat-cursorBlink 1s step-end infinite;
  border-radius: 1px;
  width: 2px;
  height: 15px;
  margin-left: 3px;
}

.chat-typing-wrap {
  animation: chat-materialize .4s cubic-bezier(.16, 1, .3, 1) both;
  margin-bottom: 20px;
}

.chat-typing-inner {
  display: flex;
  align-items:  center;
  gap: 14px;
}

.chat-waveform {
  display: flex;
  align-items:  center;
  gap: 2.5px;
  height: 28px;
}

.chat-wave-bar {
  animation: chat-waveform var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
  border-radius: 1.5px;
  width: 2.5px;
}

.chat-typing-text {
  color: var(--text-3);
  letter-spacing: .04em;
  animation: chat-breathe 2s ease-in-out infinite;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

.chat-page .markdown-content pre {
  overflow: hidden;
  border: 1px solid var(--border-1) !important;
  background: #00000059 !important;
  border-radius: 12px !important;
}

.chat-page .markdown-content code:not(pre code) {
  color: var(--violet-bright) !important;
  background: #8b5cf614 !important;
  border: 1px solid #8b5cf61a !important;
  border-radius: 5px !important;
  padding: 2px 7px !important;
  font-family: JetBrains Mono, monospace !important;
  font-size: 12px !important;
}

.chat-page .markdown-content blockquote {
  border-left: 2px solid var(--violet) !important;
  background: var(--violet-aura) !important;
  color: var(--text-2) !important;
  border-radius: 0 10px 10px 0 !important;
  margin: 12px 0 !important;
  padding: 10px 16px !important;
}

.chat-page .markdown-content table {
  overflow: hidden;
  border: 1px solid var(--border-1) !important;
  border-radius: 8px !important;
}

.chat-page .markdown-content th {
  letter-spacing: .04em;
  text-transform: uppercase;
  border-color: var(--border-2) !important;
  color: var(--text-2) !important;
  background: #8b5cf60a !important;
  font-size: 10px !important;
}

.chat-page .markdown-content td {
  border-color: var(--border-1) !important;
}

.chat-page .markdown-content a {
  color: var(--violet-bright) !important;
  border-bottom-color: #8b5cf64d !important;
}

.chat-page .markdown-content a:hover {
  border-bottom-color: var(--violet) !important;
}

.chat-doc {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  cursor: pointer;
  border-radius: 12px;
  align-items:  center;
  gap: 14px;
  margin: 14px 0;
  padding: 14px 18px;
  transition: all .2s cubic-bezier(.4,0,.2,1);
}

.chat-doc:hover {
  background: var(--surface-3);
  border-color: var(--border-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px #0003;
}

.chat-doc-icon {
  display: flex;
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 42px;
  height: 42px;
  font-size: 16px;
}

.chat-doc-icon-md {
  color: var(--violet-bright);
  background: linear-gradient(135deg, #8b5cf614, #60a5fa0f);
  border: 1px solid #8b5cf61f;
}

.chat-doc-icon-csv {
  color: var(--emerald);
  background: linear-gradient(135deg, #34d39914, #34d3990a);
  border: 1px solid #34d3991f;
}

.chat-doc-icon-json {
  color: var(--amber);
  background: linear-gradient(135deg, #fbbf2414, #fbbf240a);
  border: 1px solid #fbbf241f;
}

.chat-doc-icon-code {
  color: #60a5fa;
  background: linear-gradient(135deg, #60a5fa14, #60a5fa0a);
  border: 1px solid #60a5fa1f;
}

.chat-doc-icon-default {
  color: var(--violet-bright);
  background: linear-gradient(135deg, #8b5cf614, #60a5fa0f);
  border: 1px solid #8b5cf61f;
}

.chat-doc-info {
  flex: 1;
  min-width: 0;
}

.chat-doc-name {
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 500;
}

.chat-doc-meta {
  color: var(--text-3);
  margin-top: 3px;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

.chat-doc-dl {
  border: 1px solid var(--border-2);
  color: var(--text-2);
  display: flex;
  cursor: pointer;
  background: none;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 34px;
  height: 34px;
  transition: all .15s;
  font-family: inherit;
  font-size: 15px;
}

.chat-doc-dl:hover {
  background: var(--violet-aura);
  border-color: var(--violet);
  color: var(--violet-bright);
}

.chat-doc-dl:disabled {
  opacity: .4;
  cursor: default;
}

.chat-input-area {
  z-index: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items:  center;
  gap: 8px;
  padding: 16px 32px 24px;
}

.chat-input-row {
  display: flex;
  align-items:  flex-end;
  gap: 10px;
  width: 100%;
  max-width: 740px;
}

.chat-textarea {
  background: var(--surface-1);
  border: 1px solid var(--border-2);
  color: var(--text-1);
  resize: none;
  outline: none;
  border-radius: 16px;
  flex: 1;
  min-height: 48px;
  max-height: 150px;
  padding: 14px 20px;
  transition: border-color .2s, box-shadow .2s;
  font-family: Inter, sans-serif;
  font-size: 14px;
}

.chat-textarea:focus {
  border-color: #8b5cf640;
  box-shadow: 0 0 0 4px #8b5cf60a;
}

.chat-textarea::placeholder {
  color: var(--text-3);
}

.chat-textarea:disabled {
  opacity: .5;
}

.chat-send-btn {
  background: var(--violet);
  color: #fff;
  display: flex;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 42px;
  height: 42px;
  transition: all .15s;
  font-family: inherit;
  font-size: 18px;
}

.chat-send-btn:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: scale(1.06);
  box-shadow: 0 4px 20px #8b5cf64d;
}

.chat-send-btn:disabled {
  background: var(--surface-3);
  color: var(--text-3);
  cursor: not-allowed;
}

.chat-mic-btn {
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text-2);
  display: flex;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 42px;
  height: 42px;
  transition: all .15s;
  font-family: inherit;
  font-size: 17px;
}

.chat-mic-btn:hover {
  border-color: var(--violet);
  color: var(--violet-bright);
  background: var(--violet-aura);
}

.chat-mic-btn-recording {
  animation: chat-micPulse 1s ease infinite;
  border-color: var(--rose) !important;
  color: var(--rose) !important;
  background: #fb718514 !important;
}

.chat-mic-btn-speaking {
  border-color: var(--violet) !important;
  background: var(--violet-aura) !important;
  color: var(--violet-bright) !important;
}

.chat-mic-btn:disabled {
  opacity: .4;
  cursor: wait;
}

.chat-hints {
  color: var(--text-3);
  opacity: .5;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

/* ui/src/styles/tasks.css */
.tk-page {
  display: flex;
  overflow: hidden;
  position: relative;
  flex-direction: column;
  height: 100%;
}

.tk-atmosphere {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  animation: tk-auroraShift 25s ease-in-out infinite alternate;
  background: radial-gradient(600px 400px at 12% 30%, #8b5cf60f 0%, #0000 70%), radial-gradient(500px 300px at 50% 60%, #22d3ee0a 0%, #0000 70%), radial-gradient(400px 350px at 88% 40%, #34d3990a 0%, #0000 70%);
  inset: 0;
}

@keyframes tk-auroraShift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 100% 100%;
  }
}

.tk-header {
  position: relative;
  z-index: 1;
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  align-items:  center;
  gap: 16px;
  padding: 16px 28px;
}

.tk-header-left {
  display: flex;
  align-items:  center;
  gap: 12px;
}

.tk-header-title {
  letter-spacing: -.02em;
  color: #ffffffeb;
  font-size: 16px;
  font-weight: 700;
}

.tk-header-count {
  color: #ffffff4d;
  background: #12121c;
  border-radius: 10px;
  padding: 2px 8px;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
}

.tk-header-spacer {
  flex: 1;
}

.tk-search-wrap {
  position: relative;
}

.tk-search-wrap svg {
  position: absolute;
  opacity: .3;
  pointer-events: none;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.tk-header-search {
  color: #ffffffeb;
  outline: none;
  background: #12121c;
  border: 1px solid #ffffff0a;
  border-radius: 8px;
  width: 200px;
  padding: 7px 12px 7px 32px;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
  font-size: 12px;
}

.tk-header-search:focus {
  border-color: #8b5cf64d;
  box-shadow: 0 0 0 4px #8b5cf60a;
}

.tk-header-search::placeholder {
  color: #ffffff40;
}

.tk-filter-btn {
  color: #ffffff8c;
  cursor: pointer;
  display: flex;
  background: #12121c;
  border: 1px solid #ffffff0a;
  border-radius: 8px;
  align-items:  center;
  gap: 6px;
  padding: 7px 14px;
  transition: border-color .15s, color .15s;
  font-family: inherit;
  font-size: 12px;
}

.tk-filter-btn:hover {
  color: #ffffffbf;
  border-color: #ffffff14;
}

.tk-filter-btn.active {
  color: #a78bfa;
  background: #8b5cf614;
  border-color: #8b5cf64d;
}

.tk-new-btn {
  color: #a78bfa;
  cursor: pointer;
  display: flex;
  background: #8b5cf62e;
  border: 1px solid #8b5cf64d;
  border-radius: 8px;
  align-items:  center;
  gap: 6px;
  padding: 7px 16px;
  transition: background .15s, border-color .15s;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}

.tk-new-btn:hover {
  background: #8b5cf640;
  border-color: #8b5cf673;
}

.tk-stats-ribbon {
  position: relative;
  z-index: 1;
  display: flex;
  background: #ffffff0a;
  gap: 1px;
  padding: 0 28px;
}

.tk-stat {
  background: #0d0d14;
  flex: 1;
  padding: 14px 18px;
}

.tk-stat-label {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #ffffff4d;
  margin-bottom: 4px;
  font-size: 9px;
  font-weight: 600;
}

.tk-stat-value {
  letter-spacing: -.03em;
  font-family: JetBrains Mono, monospace;
  font-size: 20px;
  font-weight: 700;
}

.tk-stat-sub {
  color: #ffffff4d;
  margin-top: 2px;
  font-size: 9px;
}

.tk-kanban {
  position: relative;
  z-index: 1;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  gap: 12px;
  padding: 20px 28px;
}

.tk-column {
  display: flex;
  overflow: hidden;
  background: #0d0d14;
  border: 1px solid #ffffff0a;
  border-radius: 12px;
  flex-direction: column;
  flex: 1;
  min-width: 220px;
  transition: border-color .2s, background .2s;
}

.tk-column.drop-hover {
  background: #8b5cf608;
  border-color: #8b5cf659;
}

.tk-column.drop-hover .tk-col-header {
  background: #8b5cf60a;
}

.tk-col-header {
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  flex-direction: column;
  align-items:  center;
  gap: 8px;
  padding: 16px 16px 12px;
  transition: background .2s;
}

.tk-gravity-well {
  position: relative;
  display: flex;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 32px;
  height: 32px;
}

.tk-gravity-well .core {
  border-radius: 50%;
  width: 10px;
  height: 10px;
}

.tk-gravity-well .ring {
  position: absolute;
  opacity: .2;
  border: 1px solid;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tk-gravity-well .ring-1 {
  animation: tk-ringPulse 3s ease-in-out infinite;
  width: 20px;
  height: 20px;
}

.tk-gravity-well .ring-2 {
  animation: tk-ringPulse 3s ease-in-out infinite .5s;
  width: 30px;
  height: 30px;
}

@keyframes tk-ringPulse {
  0%, 100% {
    opacity: .15;
    transform: translate(-50%, -50%)scale(1);
  }

  50% {
    opacity: .3;
    transform: translate(-50%, -50%)scale(1.08);
  }
}

.tk-col-label {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 10px;
  font-weight: 700;
}

.tk-col-count {
  font-family: JetBrains Mono, monospace;
  font-size: 18px;
  font-weight: 700;
}

.tk-column.pending .tk-gravity-well .core {
  background: #fbbf24;
  box-shadow: 0 0 12px #fbbf2480;
}

.tk-column.pending .tk-gravity-well .ring {
  border-color: #fbbf24;
}

.tk-column.pending .tk-col-label, .tk-column.pending .tk-col-count {
  color: #fbbf24;
}

.tk-column.active .tk-gravity-well .core {
  background: #8b5cf6;
  box-shadow: 0 0 12px #8b5cf680;
}

.tk-column.active .tk-gravity-well .ring {
  border-color: #8b5cf6;
}

.tk-column.active .tk-col-label, .tk-column.active .tk-col-count {
  color: #a78bfa;
}

.tk-column.completed .tk-gravity-well .core {
  background: #34d399;
  box-shadow: 0 0 12px #34d39980;
}

.tk-column.completed .tk-gravity-well .ring {
  border-color: #34d399;
}

.tk-column.completed .tk-col-label, .tk-column.completed .tk-col-count {
  color: #34d399;
}

.tk-column.failed .tk-gravity-well .core {
  background: #fb7185;
  box-shadow: 0 0 12px #fb718580;
}

.tk-column.failed .tk-gravity-well .ring {
  border-color: #fb7185;
}

.tk-column.failed .tk-col-label, .tk-column.failed .tk-col-count {
  color: #fb7185;
}

.tk-column.escalated .tk-gravity-well .core {
  background: #22d3ee;
  box-shadow: 0 0 12px #22d3ee80;
}

.tk-column.escalated .tk-gravity-well .ring {
  border-color: #22d3ee;
}

.tk-column.escalated .tk-col-label, .tk-column.escalated .tk-col-count {
  color: #22d3ee;
}

.tk-card-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 10px;
}

.tk-card-list::-webkit-scrollbar {
  width: 3px;
}

.tk-card-list::-webkit-scrollbar-track {
  background: none;
}

.tk-card-list::-webkit-scrollbar-thumb {
  background: #ffffff1f;
  border-radius: 3px;
}

.tk-task-card {
  cursor: grab;
  animation: tk-cardIn .4s cubic-bezier(.16, 1, .3, 1) backwards;
  background: #12121c;
  border: 1px solid #ffffff0a;
  border-radius: 10px;
  padding: 14px;
  transition: all .2s cubic-bezier(.16,1,.3,1);
}

.tk-task-card:active {
  cursor: grabbing;
}

.tk-task-card:hover {
  border-color: #8b5cf633;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #0000004d, 0 0 16px #8b5cf60f;
}

.tk-task-card.just-updated {
  animation: tk-updatePulse 1.5s ease-out;
  border-color: #8b5cf666;
  box-shadow: 0 0 16px #8b5cf633;
}

.tk-task-card.completed {
  opacity: .75;
}

@keyframes tk-cardIn {
  from {
    opacity: 0;
    transform: translateY(8px)scale(.98);
    filter: blur(4px);
  }
}

@keyframes tk-updatePulse {
  0% {
    box-shadow: 0 0 16px #8b5cf666;
  }

  100% {
    box-shadow: 0 0 #8b5cf600;
  }
}

.tk-card-top {
  display: flex;
  align-items:  flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.tk-priority-pip {
  border-radius: 50%;
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  margin-top: 6px;
}

.tk-priority-pip.critical {
  background: #fb7185;
  box-shadow: 0 0 6px #fb7185;
}

.tk-priority-pip.high {
  background: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
}

.tk-priority-pip.normal {
  background: #8b5cf6;
}

.tk-priority-pip.low {
  background: #ffffff4d;
}

.tk-card-title {
  color: #ffffffeb;
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.tk-card-title.done {
  text-decoration: line-through;
  text-decoration-color: #ffffff4d;
}

.tk-card-actions {
  display: flex;
  opacity: 0;
  flex-shrink: 0;
  gap: 3px;
  transition: opacity .15s;
}

.tk-task-card:hover .tk-card-actions {
  opacity: 1;
}

.tk-card-action-btn {
  display: flex;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  justify-content: center;
  align-items:  center;
  width: 22px;
  height: 22px;
  transition: background .15s;
  font-size: 10px;
}

.tk-card-action-btn.complete {
  color: #34d399;
  background: #34d3991f;
}

.tk-card-action-btn.complete:hover {
  background: #34d39940;
}

.tk-card-action-btn.fail {
  color: #fb7185;
  background: #fb71851f;
}

.tk-card-action-btn.fail:hover {
  background: #fb718540;
}

.tk-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 8px;
}

.tk-meta-tag {
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 600;
}

.tk-meta-tag.agent {
  color: #a78bfa;
  background: #8b5cf626;
}

.tk-meta-tag.due {
  color: #ffffff8c;
  background: #1a1a28;
  font-family: JetBrains Mono, monospace;
}

.tk-meta-tag.due.overdue {
  color: #fb7185;
  background: #fb71851f;
}

.tk-meta-tag.context {
  color: #22d3ee;
  background: #22d3ee1a;
}

.tk-meta-tag.result-tag {
  color: #34d399;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #34d3991a;
  max-width: 180px;
}

.tk-meta-tag.error-tag {
  color: #fb7185;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fb71851f;
  max-width: 180px;
}

.tk-card-time {
  color: #ffffff4d;
  margin-left: auto;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.tk-card-empty {
  text-align: center;
  padding: 28px 16px;
}

.tk-empty-ring {
  display: flex;
  opacity: .4;
  animation: tk-emptyBreath 4s ease-in-out infinite;
  border: 1px dashed #ffffff1f;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
}

@keyframes tk-emptyBreath {
  0%, 100% {
    opacity: .3;
  }

  50% {
    opacity: .5;
  }
}

.tk-card-empty p {
  color: #ffffff4d;
  font-size: 11px;
}

.tk-loading {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items:  center;
  gap: 16px;
}

.tk-loading-orb {
  animation: tk-loadingBreath 2s ease-in-out infinite;
  background: radial-gradient(circle at 40% 35%, #c4b5fd 0%, #8b5cf6 50%, #6d28d9 100%);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  box-shadow: 0 0 20px #8b5cf666, 0 0 40px #8b5cf626;
}

@keyframes tk-loadingBreath {
  0%, 100% {
    transform: scale(1);
    opacity: .8;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.tk-loading-text {
  color: #ffffff4d;
  font-size: 12px;
}

/* ui/src/styles/pipeline.css */
.pl-page {
  display: flex;
  overflow: hidden;
  position: relative;
  flex-direction: column;
  height: 100%;
}

.pl-atmosphere {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(600px 300px at 50% 0%, #8b5cf60f 0%, #0000 70%), radial-gradient(400px 300px at 80% 70%, #34d39908 0%, #0000 70%);
  inset: 0;
}

.pl-header {
  position: relative;
  z-index: 1;
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  align-items:  center;
  gap: 16px;
  padding: 16px 28px;
}

.pl-header-title {
  letter-spacing: -.02em;
  font-size: 16px;
  font-weight: 700;
}

.pl-header-count {
  color: #ffffff4d;
  background: #12121c;
  border-radius: 10px;
  padding: 2px 8px;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
}

.pl-header-spacer {
  flex: 1;
}

.pl-search-wrap {
  position: relative;
}

.pl-search-wrap svg {
  position: absolute;
  opacity: .3;
  pointer-events: none;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.pl-search-input {
  color: #ffffffeb;
  outline: none;
  background: #12121c;
  border: 1px solid #ffffff0a;
  border-radius: 8px;
  width: 200px;
  padding: 7px 12px 7px 32px;
  font-family: inherit;
  font-size: 12px;
}

.pl-search-input:focus {
  border-color: #8b5cf64d;
  box-shadow: 0 0 0 4px #8b5cf60a;
}

.pl-search-input::placeholder {
  color: #ffffff40;
}

.pl-new-btn {
  color: #a78bfa;
  cursor: pointer;
  display: flex;
  background: #8b5cf62e;
  border: 1px solid #8b5cf64d;
  border-radius: 8px;
  align-items:  center;
  gap: 6px;
  padding: 7px 16px;
  transition: background .15s;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}

.pl-new-btn:hover {
  background: #8b5cf640;
}

.pl-pipeline-bar {
  position: relative;
  z-index: 1;
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  justify-content: center;
  align-items:  center;
  gap: 0;
  padding: 16px 28px;
}

.pl-pipe-stage {
  display: flex;
  cursor: pointer;
  border-radius: 8px;
  flex-direction: column;
  flex-shrink: 0;
  align-items:  center;
  gap: 6px;
  padding: 8px 6px;
  transition: background .15s;
}

.pl-pipe-stage:hover {
  background: #12121c;
}

.pl-pipe-stage.active {
  background: #1a1a28;
}

.pl-pipe-node {
  display: flex;
  border: 2px solid;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
  transition: all .2s;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
  font-weight: 700;
}

.pl-pipe-stage.active .pl-pipe-node {
  transform: scale(1.15);
}

.pl-pipe-label {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 9px;
  font-weight: 600;
}

.pl-pipe-connector {
  opacity: .2;
  border-radius: 1px;
  flex-shrink: 1;
  width: 100%;
  min-width: 8px;
  max-width: 36px;
  height: 2px;
}

.pl-content-area {
  position: relative;
  z-index: 1;
  display: flex;
  overflow: hidden;
  flex: 1;
}

.pl-card-area {
  overflow-y: auto;
  flex: 1;
  padding: 20px 28px;
}

.pl-card-area::-webkit-scrollbar {
  width: 3px;
}

.pl-card-area::-webkit-scrollbar-thumb {
  background: #ffffff1f;
  border-radius: 3px;
}

.pl-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.pl-content-card {
  cursor: pointer;
  animation: pl-cardIn .35s cubic-bezier(.16, 1, .3, 1) backwards;
  background: #0d0d14;
  border: 1px solid #ffffff0a;
  border-radius: 10px;
  padding: 14px 16px;
  transition: all .2s cubic-bezier(.16,1,.3,1);
}

.pl-content-card:hover {
  border-color: #8b5cf633;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px #0003;
}

.pl-content-card.selected {
  border-color: #8b5cf666;
  box-shadow: 0 0 12px #8b5cf61a;
}

.pl-content-card.just-updated {
  animation: pl-updatePulse 1.5s ease-out;
}

@keyframes pl-cardIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes pl-updatePulse {
  0% {
    box-shadow: 0 0 16px #8b5cf666;
  }

  100% {
    box-shadow: none;
  }
}

.pl-cc-top {
  display: flex;
  align-items:  center;
  gap: 6px;
  margin-bottom: 8px;
}

.pl-type-tag {
  color: #a78bfa;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: #8b5cf626;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 8px;
  font-weight: 700;
}

.pl-stage-badge {
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 8px;
  font-weight: 700;
}

.pl-cc-time {
  color: #ffffff4d;
  margin-left: auto;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.pl-cc-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffffeb;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.pl-cc-tags {
  display: flex;
  gap: 4px;
}

.pl-cc-tag {
  color: #ffffff4d;
  background: #1a1a28;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 8px;
}

.pl-empty-grid {
  text-align: center;
  color: #ffffff4d;
  padding: 60px 20px;
  font-size: 12px;
}

.pl-empty-grid .empty-icon {
  opacity: .2;
  margin-bottom: 12px;
  font-size: 28px;
}

.pl-detail-panel {
  display: flex;
  overflow: hidden;
  animation: pl-panelSlide .3s cubic-bezier(.16, 1, .3, 1);
  background: #0d0d14;
  border-left: 1px solid #ffffff0a;
  flex-direction: column;
  flex-shrink: 0;
  width: 420px;
}

@keyframes pl-panelSlide {
  from {
    transform: translateX(20px);
    opacity: 0;
  }
}

.pl-dp-header {
  border-bottom: 1px solid #ffffff0a;
  padding: 20px;
}

.pl-dp-title-input {
  color: #ffffffeb;
  outline: none;
  background: none;
  border: none;
  border-bottom: 2px solid #8b5cf666;
  width: 100%;
  padding: 0 0 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
}

.pl-dp-title {
  color: #ffffffeb;
  cursor: text;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.pl-dp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 6px;
  margin-top: 8px;
}

.pl-dp-meta-text {
  color: #ffffff4d;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

.pl-dp-tags {
  display: flex;
  cursor: text;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 20px;
  margin-top: 8px;
}

.pl-dp-tag {
  color: #ffffff8c;
  background: #1a1a28;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 9px;
}

.pl-dp-tags-input {
  color: #ffffffeb;
  outline: none;
  background: none;
  border: none;
  border-bottom: 1px solid #8b5cf64d;
  width: 100%;
  padding: 2px 0;
  font-family: inherit;
  font-size: 11px;
}

.pl-dp-tags-hint {
  color: #ffffff40;
  font-size: 10px;
  font-style: italic;
}

.pl-dp-content {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 20px;
  padding: 16px 20px;
}

.pl-dp-content::-webkit-scrollbar {
  width: 3px;
}

.pl-dp-content::-webkit-scrollbar-thumb {
  background: #ffffff1f;
  border-radius: 3px;
}

.pl-no-selection {
  display: flex;
  color: #ffffff4d;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items:  center;
  gap: 10px;
  font-size: 12px;
}

.pl-no-selection-icon {
  opacity: .15;
  font-size: 32px;
}

.pl-loading {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items:  center;
  gap: 16px;
}

.pl-loading-orb {
  animation: pl-loadBreath 2s ease-in-out infinite;
  background: radial-gradient(circle at 40% 35%, #c4b5fd 0%, #8b5cf6 50%, #6d28d9 100%);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  box-shadow: 0 0 20px #8b5cf666;
}

@keyframes pl-loadBreath {
  0%, 100% {
    transform: scale(1);
    opacity: .8;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.pl-loading-text {
  color: #ffffff4d;
  font-size: 12px;
}

/* ui/src/styles/knowledge.css */
.kb-page {
  display: flex;
  overflow: hidden;
  position: relative;
  flex-direction: column;
  height: 100%;
}

.kb-atmosphere {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(400px 300px at 30% 40%, #22d3ee0a 0%, #0000 70%), radial-gradient(400px 300px at 80% 60%, #8b5cf608 0%, #0000 70%);
  inset: 0;
}

.kb-header {
  position: relative;
  z-index: 1;
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  align-items:  center;
  gap: 16px;
  padding: 16px 28px;
}

.kb-header-title {
  letter-spacing: -.02em;
  font-size: 16px;
  font-weight: 700;
}

.kb-header-count {
  color: #ffffff4d;
  background: #12121c;
  border-radius: 10px;
  padding: 2px 8px;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
}

.kb-header-spacer {
  flex: 1;
}

.kb-columns {
  position: relative;
  z-index: 1;
  display: flex;
  overflow: hidden;
  flex: 1;
}

.kb-col {
  display: flex;
  overflow: hidden;
  border-right: 1px solid #ffffff0a;
  flex-direction: column;
}

.kb-col:last-child {
  border-right: none;
}

.kb-col-header {
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  flex-shrink: 0;
  align-items:  center;
  gap: 8px;
  padding: 12px 14px;
}

.kb-col-title {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 700;
}

.kb-col-count {
  color: #ffffff4d;
  background: #1a1a28;
  border-radius: 8px;
  padding: 1px 6px;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.kb-col-body {
  overflow-y: auto;
  flex: 1;
  padding: 8px;
}

.kb-col-body::-webkit-scrollbar {
  width: 2px;
}

.kb-col-body::-webkit-scrollbar-thumb {
  background: #ffffff1f;
  border-radius: 2px;
}

.kb-col-entities {
  flex: 1.2;
}

.kb-col-entities .kb-col-title {
  color: #a78bfa;
}

.kb-col-search {
  border-bottom: 1px solid #ffffff0a;
  flex-shrink: 0;
  padding: 8px;
}

.kb-col-search input {
  color: #ffffffeb;
  outline: none;
  background: #12121c;
  border: 1px solid #ffffff0a;
  border-radius: 6px;
  width: 100%;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 10px;
}

.kb-col-search input:focus {
  border-color: #8b5cf64d;
}

.kb-col-search input::placeholder {
  color: #ffffff40;
}

.kb-type-filters {
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 3px;
  padding: 6px 8px;
}

.kb-type-filter {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #ffffff4d;
  cursor: pointer;
  background: none;
  border: 1px solid #ffffff0a;
  border-radius: 4px;
  padding: 3px 8px;
  transition: all .15s;
  font-family: inherit;
  font-size: 8px;
  font-weight: 700;
}

.kb-type-filter:hover {
  border-color: #ffffff14;
}

.kb-type-filter.active {
  color: #a78bfa;
  background: #8b5cf626;
  border-color: #8b5cf64d;
}

.kb-entity {
  cursor: pointer;
  display: flex;
  border-left: 3px solid #0000;
  border-radius: 6px;
  align-items:  center;
  gap: 8px;
  margin-bottom: 2px;
  padding: 8px 10px;
  transition: background .15s;
}

.kb-entity:hover {
  background: #12121c;
}

.kb-entity.selected {
  background: #1a1a28;
  border-left-color: #8b5cf6;
}

.kb-entity .ke-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.kb-entity .ke-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-size: 11px;
  font-weight: 600;
}

.kb-entity .ke-type {
  color: #ffffff4d;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 8px;
}

.kb-col-facts {
  flex: 1;
}

.kb-col-facts .kb-col-title {
  color: #22d3ee;
}

.kb-fact {
  animation: kb-fadeIn .25s cubic-bezier(.16, 1, .3, 1) backwards;
  background: #0d0d14;
  border: 1px solid #ffffff0a;
  border-radius: 6px;
  margin-bottom: 4px;
  padding: 8px 10px;
  font-size: 11px;
}

@keyframes kb-fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.kb-fact .kf-pred {
  color: #22d3ee;
  font-size: 10px;
  font-weight: 600;
}

.kb-fact .kf-obj {
  color: #ffffffeb;
  margin-top: 2px;
  line-height: 1.4;
}

.kb-fact .kf-meta {
  color: #ffffff4d;
  display: flex;
  gap: 6px;
  margin-top: 3px;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.kb-fact .kf-conf-bar {
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  background: #1a1a28;
  border-radius: 3px;
  width: 30px;
  height: 3px;
  margin-left: 4px;
}

.kb-fact .kf-conf-fill {
  border-radius: 3px;
  height: 100%;
}

.kb-col-rels {
  flex: 1;
}

.kb-col-rels .kb-col-title {
  color: #34d399;
}

.kb-rel {
  display: flex;
  cursor: pointer;
  animation: kb-fadeIn .25s cubic-bezier(.16, 1, .3, 1) backwards;
  background: #0d0d14;
  border: 1px solid #ffffff0a;
  border-radius: 6px;
  align-items:  center;
  gap: 6px;
  margin-bottom: 4px;
  padding: 8px 10px;
  transition: border-color .15s;
  font-size: 11px;
}

.kb-rel:hover {
  border-color: #ffffff14;
}

.kb-rel .kr-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
}

.kb-rel .kr-type {
  color: #ffffff4d;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 9px;
  font-weight: 600;
}

.kb-rel .kr-arrow {
  color: #ffffff4d;
  font-size: 10px;
}

.kb-rel .kr-name {
  flex: 1;
  font-size: 11px;
  font-weight: 500;
}

.kb-rel .kr-etype {
  color: #ffffff4d;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 8px;
}

.kb-rel .kr-nav {
  color: #a78bfa;
  opacity: 0;
  transition: opacity .15s;
  font-size: 9px;
}

.kb-rel:hover .kr-nav {
  opacity: 1;
}

.kb-empty {
  text-align: center;
  color: #ffffff4d;
  padding: 32px 12px;
  font-size: 11px;
}

.kb-loading {
  text-align: center;
  color: #ffffff4d;
  padding: 24px 12px;
  font-size: 11px;
}

/* ui/src/styles/memory.css */
.mem-page {
  display: flex;
  overflow: hidden;
  position: relative;
  flex-direction: column;
  height: 100%;
}

.mem-atmosphere {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(500px 500px at 35% 45%, #8b5cf60f 0%, #0000 60%), radial-gradient(300px 300px at 80% 20%, #22d3ee0a 0%, #0000 60%);
  inset: 0;
}

.mem-header {
  position: relative;
  z-index: 1;
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  align-items:  center;
  gap: 16px;
  padding: 16px 28px;
}

.mem-header-title {
  letter-spacing: -.02em;
  font-size: 16px;
  font-weight: 700;
}

.mem-header-count {
  color: #ffffff4d;
  background: #12121c;
  border-radius: 10px;
  padding: 2px 8px;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
}

.mem-header-spacer {
  flex: 1;
}

.mem-view-toggle {
  display: flex;
  background: #12121c;
  border-radius: 8px;
  gap: 2px;
  padding: 2px;
}

.mem-view-toggle button {
  color: #ffffff4d;
  cursor: pointer;
  display: flex;
  background: none;
  border: none;
  border-radius: 6px;
  align-items:  center;
  gap: 5px;
  padding: 5px 12px;
  transition: color .15s, background .15s;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
}

.mem-view-toggle button:hover {
  color: #ffffff8c;
}

.mem-view-toggle button.active {
  color: #ffffffeb;
  background: #1a1a28;
}

.mem-search-wrap {
  position: relative;
}

.mem-search-wrap svg {
  position: absolute;
  opacity: .3;
  pointer-events: none;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.mem-search-input {
  color: #ffffffeb;
  outline: none;
  background: #12121c;
  border: 1px solid #ffffff0a;
  border-radius: 8px;
  width: 220px;
  padding: 7px 12px 7px 32px;
  font-family: inherit;
  font-size: 12px;
}

.mem-search-input:focus {
  border-color: #8b5cf64d;
  box-shadow: 0 0 0 4px #8b5cf60a;
}

.mem-search-input::placeholder {
  color: #ffffff40;
}

.mem-constellation-layout {
  position: relative;
  z-index: 1;
  display: flex;
  overflow: hidden;
  flex: 1;
}

.mem-cf-bar {
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  align-items:  center;
  gap: 6px;
  padding: 10px 16px;
}

.mem-cf-pill {
  color: #ffffff4d;
  cursor: pointer;
  display: flex;
  background: none;
  border: 1px solid #ffffff0a;
  border-radius: 20px;
  align-items:  center;
  gap: 4px;
  padding: 3px 10px;
  transition: all .15s;
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
}

.mem-cf-pill:hover {
  border-color: #ffffff14;
}

.mem-cf-pill.active {
  color: #a78bfa;
  background: #8b5cf626;
  border-color: #8b5cf64d;
}

.mem-cf-pill .cp-dot {
  border-radius: 50%;
  width: 4px;
  height: 4px;
}

.mem-star-field {
  position: relative;
  overflow: hidden;
  flex: 1;
}

.mem-dot-grid {
  position: absolute;
  pointer-events: none;
  background-image: radial-gradient(1px, #ffffff05 1px, #0000 1px);
  background-size: 32px 32px;
  inset: 0;
}

.mem-constellation {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  flex: 1;
}

.mem-star {
  position: absolute;
  cursor: pointer;
  animation: mem-starIn .5s cubic-bezier(.175, .885, .32, 1.275) backwards;
  border-radius: 50%;
  transition: all .25s cubic-bezier(.16,1,.3,1);
}

.mem-star:hover {
  z-index: 5;
  transform: scale(1.6);
}

.mem-star.selected {
  z-index: 5;
}

@keyframes mem-starIn {
  from {
    opacity: 0;
    transform: scale(.3);
  }
}

.mem-star .star-label {
  position: absolute;
  color: #ffffff4d;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  font-family: JetBrains Mono, monospace;
  font-size: 8px;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
}

.mem-star:hover .star-label, .mem-star.selected .star-label {
  opacity: 1;
}

.mem-conn-svg {
  position: absolute;
  pointer-events: none;
  inset: 0;
}

.mem-conn-svg line {
  stroke: #ffffff0f;
  stroke-width: 1;
  stroke-dasharray: 4, 4;
  animation: mem-connFlow 3s linear infinite;
}

.mem-conn-svg line.highlight {
  stroke: #8b5cf633;
  stroke-width: 1.5;
  stroke-dasharray: none;
}

@keyframes mem-connFlow {
  0% {
    stroke-dashoffset: 16;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

.mem-legend {
  position: absolute;
  display: flex;
  backdrop-filter: blur(8px);
  z-index: 10;
  background: #0c0c12cc;
  border: 1px solid #ffffff14;
  border-radius: 8px;
  gap: 12px;
  padding: 6px 12px;
  bottom: 12px;
  left: 12px;
}

.mem-legend-item {
  display: flex;
  color: #ffffff4d;
  align-items:  center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
}

.mem-legend-item .ldot {
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.mem-detail-panel {
  display: flex;
  overflow: hidden;
  animation: mem-panelSlide .3s cubic-bezier(.16, 1, .3, 1);
  background: #0d0d14;
  border-left: 1px solid #ffffff0a;
  flex-direction: column;
  flex-shrink: 0;
  width: 360px;
}

@keyframes mem-panelSlide {
  from {
    transform: translateX(20px);
    opacity: 0;
  }
}

.mem-d-tabs {
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  gap: 0;
}

.mem-d-tab {
  color: #ffffff4d;
  cursor: pointer;
  text-align: center;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  flex: 1;
  padding: 10px;
  transition: color .15s;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
}

.mem-d-tab:hover {
  color: #ffffff8c;
}

.mem-d-tab.active {
  color: #a78bfa;
  border-bottom-color: #8b5cf6;
}

.mem-d-content {
  overflow-y: auto;
  flex: 1;
  padding: 16px 20px;
}

.mem-d-content::-webkit-scrollbar {
  width: 3px;
}

.mem-d-content::-webkit-scrollbar-thumb {
  background: #ffffff1f;
  border-radius: 3px;
}

.mem-d-entity-header {
  margin-bottom: 16px;
}

.mem-d-entity-name {
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 700;
}

.mem-d-entity-meta {
  color: #ffffff4d;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

.mem-d-section {
  margin-bottom: 16px;
}

.mem-d-section-label {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #ffffff4d;
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 700;
}

.mem-d-fact {
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  gap: 8px;
  padding: 5px 0;
  font-size: 11px;
}

.mem-d-fact:last-child {
  border-bottom: none;
}

.mem-d-fact .df-pred {
  color: #ffffff4d;
  flex-shrink: 0;
  min-width: 80px;
  font-size: 10px;
}

.mem-d-fact .df-obj {
  color: #ffffffeb;
  flex: 1;
}

.mem-d-fact .df-conf {
  color: #ffffff4d;
  flex-shrink: 0;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.mem-d-rel {
  display: flex;
  cursor: pointer;
  background: #12121c;
  border: 1px solid #0000;
  border-radius: 8px;
  align-items:  center;
  gap: 8px;
  margin-bottom: 4px;
  padding: 8px 10px;
  transition: border-color .15s;
}

.mem-d-rel:hover {
  border-color: #ffffff14;
}

.mem-d-rel .dr-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
}

.mem-d-rel .dr-type {
  color: #ffffff4d;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 9px;
  font-weight: 600;
}

.mem-d-rel .dr-name {
  flex: 1;
  font-size: 11px;
  font-weight: 500;
}

.mem-d-conv {
  background: #12121c;
  border-radius: 8px;
  margin-bottom: 6px;
  padding: 10px 12px;
}

.mem-d-conv .dc-channel {
  color: #a78bfa;
  font-size: 10px;
  font-weight: 600;
}

.mem-d-conv .dc-preview {
  color: #ffffff8c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.4;
}

.mem-d-conv .dc-meta {
  color: #ffffff4d;
  margin-top: 4px;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.mem-no-selection {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items:  center;
  gap: 12px;
}

.mem-no-selection-orb {
  display: flex;
  animation: mem-breathe 4s ease-in-out infinite;
  border: 1px dashed #ffffff1f;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 32px;
  height: 32px;
}

@keyframes mem-breathe {
  0%, 100% {
    opacity: .3;
  }

  50% {
    opacity: .5;
  }
}

.mem-no-selection p {
  color: #ffffff4d;
  font-size: 12px;
}

.mem-type-badge {
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 8px;
  font-weight: 700;
}

.mem-explorer-layout {
  position: relative;
  z-index: 1;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  flex: 1;
}

.mem-type-tabs {
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  align-items:  center;
  gap: 4px;
  padding: 10px 28px;
}

.mem-ttab {
  cursor: pointer;
  color: #ffffff4d;
  display: flex;
  background: none;
  border: 1px solid #0000;
  border-radius: 20px;
  align-items:  center;
  gap: 6px;
  padding: 5px 14px;
  transition: all .15s;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
}

.mem-ttab:hover {
  color: #ffffff8c;
  background: #12121c;
}

.mem-ttab.active {
  color: #a78bfa;
  background: #8b5cf626;
  border-color: #8b5cf633;
}

.mem-ttab .tdot {
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.mem-ttab .tcount {
  opacity: .6;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.mem-tabs-spacer {
  flex: 1;
}

.mem-grid-area {
  overflow-y: auto;
  flex: 1;
  padding: 20px 28px;
}

.mem-grid-area::-webkit-scrollbar {
  width: 3px;
}

.mem-grid-area::-webkit-scrollbar-thumb {
  background: #ffffff1f;
  border-radius: 3px;
}

.mem-entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}

.mem-entity-card {
  overflow: hidden;
  cursor: pointer;
  animation: mem-cardIn .4s cubic-bezier(.16, 1, .3, 1) backwards;
  background: #0d0d14;
  border: 1px solid #ffffff0a;
  border-radius: 12px;
  transition: all .2s cubic-bezier(.16,1,.3,1);
}

.mem-entity-card:hover {
  border-color: #8b5cf633;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px #0000004d, 0 0 18px #8b5cf60f;
}

@keyframes mem-cardIn {
  from {
    opacity: 0;
    transform: translateY(10px)scale(.97);
    filter: blur(4px);
  }
}

.mem-ec-accent {
  height: 2px;
}

.mem-ec-body {
  padding: 16px;
}

.mem-ec-top {
  display: flex;
  align-items:  flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.mem-ec-icon {
  display: flex;
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.mem-ec-info {
  flex: 1;
  min-width: 0;
}

.mem-ec-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.mem-ec-source {
  color: #ffffff4d;
  margin-top: 2px;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.mem-ec-facts {
  margin-bottom: 12px;
}

.mem-ec-fact {
  display: flex;
  gap: 6px;
  padding: 3px 0;
  font-size: 10px;
}

.mem-ec-fact .f-pred {
  color: #ffffff4d;
  min-width: 70px;
}

.mem-ec-fact .f-obj {
  color: #ffffff8c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.mem-ec-footer {
  display: flex;
  border-top: 1px solid #ffffff0a;
  align-items:  center;
  gap: 10px;
  padding-top: 12px;
}

.mem-ef-chip {
  color: #ffffff4d;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.mem-ef-time {
  color: #ffffff4d;
  margin-left: auto;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.mem-stats-ribbon {
  position: relative;
  z-index: 1;
  display: flex;
  background: #ffffff0a;
  border-top: 1px solid #ffffff0a;
  gap: 1px;
}

.mem-v-stat {
  background: #0d0d14;
  flex: 1;
  padding: 12px 18px;
}

.mem-vs-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #ffffff4d;
  margin-bottom: 3px;
  font-size: 9px;
  font-weight: 600;
}

.mem-vs-value {
  font-family: JetBrains Mono, monospace;
  font-size: 16px;
  font-weight: 700;
}

.mem-loading {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items:  center;
  gap: 16px;
}

.mem-loading-orb {
  animation: mem-loadBreath 2s ease-in-out infinite;
  background: radial-gradient(circle at 40% 35%, #c4b5fd 0%, #8b5cf6 50%, #6d28d9 100%);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  box-shadow: 0 0 20px #8b5cf666;
}

@keyframes mem-loadBreath {
  0%, 100% {
    transform: scale(1);
    opacity: .8;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.mem-loading-text {
  color: #ffffff4d;
  font-size: 12px;
}

.mem-empty {
  text-align: center;
  color: #ffffff4d;
  padding: 48px 20px;
  font-size: 12px;
}

/* ui/src/styles/calendar.css */
.cal-page {
  display: flex;
  overflow: hidden;
  position: relative;
  flex-direction: column;
  height: 100%;
}

.cal-atmosphere {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(600px 300px at 50% 0%, #8b5cf60d 0%, #0000 70%), radial-gradient(400px 300px at 80% 80%, #22d3ee08 0%, #0000 70%);
  inset: 0;
}

.cal-header {
  position: relative;
  z-index: 1;
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  align-items:  center;
  gap: 16px;
  padding: 16px 28px;
}

.cal-header-title {
  letter-spacing: -.02em;
  font-size: 16px;
  font-weight: 700;
}

.cal-header-spacer {
  flex: 1;
}

.cal-week-nav {
  display: flex;
  align-items:  center;
  gap: 6px;
}

.cal-week-btn {
  color: #ffffff8c;
  cursor: pointer;
  display: flex;
  background: #12121c;
  border: 1px solid #ffffff0a;
  border-radius: 8px;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
  transition: all .15s;
  font-family: inherit;
  font-size: 12px;
}

.cal-week-btn:hover {
  color: #ffffffeb;
  border-color: #ffffff14;
}

.cal-week-range {
  text-align: center;
  min-width: 180px;
  font-size: 13px;
  font-weight: 600;
}

.cal-today-btn {
  color: #ffffff8c;
  cursor: pointer;
  background: #12121c;
  border: 1px solid #ffffff0a;
  border-radius: 8px;
  padding: 5px 12px;
  transition: all .15s;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
}

.cal-today-btn:hover {
  color: #a78bfa;
  border-color: #8b5cf64d;
}

.cal-legend {
  display: flex;
  gap: 14px;
}

.cal-legend-item {
  display: flex;
  color: #ffffff4d;
  align-items:  center;
  gap: 5px;
  font-size: 9px;
  font-weight: 600;
}

.cal-legend-item .ldot {
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.cal-day-summaries {
  position: relative;
  z-index: 1;
  display: flex;
  background: #ffffff0a;
  gap: 1px;
  padding: 0 28px;
}

.cal-day-sum {
  cursor: pointer;
  text-align: center;
  background: #0d0d14;
  flex: 1;
  padding: 12px 14px;
  transition: background .15s;
}

.cal-day-sum:hover {
  background: #12121c;
}

.cal-day-sum.today {
  border-bottom: 2px solid #22d3ee;
}

.cal-day-sum.selected {
  background: #1a1a28;
}

.cal-ds-day {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #ffffff4d;
  font-size: 9px;
  font-weight: 600;
}

.cal-ds-date {
  color: #ffffffeb;
  margin: 4px 0 6px;
  font-family: JetBrains Mono, monospace;
  font-size: 18px;
  font-weight: 700;
}

.cal-ds-date.today {
  color: #22d3ee;
}

.cal-ds-dots {
  display: flex;
  justify-content: center;
  gap: 3px;
}

.cal-ds-dot {
  border-radius: 50%;
  width: 4px;
  height: 4px;
}

.cal-event-area {
  position: relative;
  z-index: 1;
  overflow-y: auto;
  flex: 1;
  padding: 20px 28px;
}

.cal-event-area::-webkit-scrollbar {
  width: 3px;
}

.cal-event-area::-webkit-scrollbar-thumb {
  background: #ffffff1f;
  border-radius: 3px;
}

.cal-swim-lane {
  margin-bottom: 16px;
}

.cal-sl-header {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #ffffff4d;
  display: flex;
  align-items:  center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 700;
}

.cal-sl-header .sh-dot {
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.cal-sl-header .sh-count {
  opacity: .5;
  font-family: JetBrains Mono, monospace;
}

.cal-event-card {
  display: flex;
  cursor: default;
  animation: cal-cardIn .3s cubic-bezier(.16, 1, .3, 1) backwards;
  background: #0d0d14;
  border: 1px solid #ffffff0a;
  border-left: 3px solid;
  border-radius: 10px;
  align-items:  flex-start;
  gap: 12px;
  margin-bottom: 6px;
  padding: 12px 14px;
  transition: all .15s;
}

.cal-event-card:hover {
  border-color: #8b5cf626;
  border-left-color: inherit;
  box-shadow: 0 4px 12px #0003;
}

.cal-event-card.task {
  border-left-color: #22d3ee;
}

.cal-event-card.content {
  border-left-color: #fbbf24;
}

@keyframes cal-cardIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.cal-ec-time {
  color: #ffffff4d;
  flex-shrink: 0;
  min-width: 50px;
  padding-top: 1px;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

.cal-ec-body {
  flex: 1;
  min-width: 0;
}

.cal-ec-title {
  color: #ffffffeb;
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 600;
}

.cal-ec-meta {
  display: flex;
  color: #ffffff4d;
  flex-wrap: wrap;
  align-items:  center;
  gap: 6px;
  font-size: 9px;
}

.cal-ec-badge {
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 8px;
  font-weight: 600;
}

.cal-ec-badge.task-badge {
  color: #22d3ee;
  background: #22d3ee1f;
}

.cal-ec-badge.content-badge {
  color: #fbbf24;
  background: #fbbf241f;
}

.cal-ec-priority {
  text-transform: uppercase;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 8px;
  font-weight: 600;
}

.cal-ec-status {
  background: #ffffff0a;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 8px;
}

.cal-no-events {
  text-align: center;
  color: #ffffff4d;
  padding: 48px 20px;
  font-size: 12px;
}

.cal-no-events .empty-icon {
  opacity: .15;
  margin-bottom: 10px;
  font-size: 28px;
}

.cal-loading {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items:  center;
  gap: 16px;
}

.cal-loading-orb {
  animation: cal-loadBreath 2s ease-in-out infinite;
  background: radial-gradient(circle at 40% 35%, #c4b5fd 0%, #8b5cf6 50%, #6d28d9 100%);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  box-shadow: 0 0 20px #8b5cf666;
}

@keyframes cal-loadBreath {
  0%, 100% {
    transform: scale(1);
    opacity: .8;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.cal-loading-text {
  color: #ffffff4d;
  font-size: 12px;
}

/* ui/src/styles/agents.css */
.ag-page {
  --bg: #07070a;
  --surface-1: #0d0d14;
  --surface-2: #12121c;
  --surface-3: #1a1a28;
  --border-1: #ffffff0a;
  --border-2: #ffffff14;
  --text-1: #ffffffeb;
  --text-2: #ffffff8c;
  --text-3: #ffffff4d;
  --violet: #8b5cf6;
  --violet-dim: #8b5cf626;
  --blue: #60a5fa;
  --blue-dim: #60a5fa1f;
  --emerald: #34d399;
  --emerald-dim: #34d3991f;
  --amber: #fbbf24;
  --amber-dim: #fbbf241f;
  --rose: #fb7185;
  --rose-dim: #fb71851f;
  --cyan: #22d3ee;
  --cyan-dim: #22d3ee1a;
  display: flex;
  overflow: hidden;
  background: var(--surface-1);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  flex-direction: column;
  height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
}

.ag-header {
  display: flex;
  border-bottom: 1px solid var(--border-1);
  background: var(--surface-1);
  z-index: 200;
  position: relative;
  flex-shrink: 0;
  align-items:  center;
  gap: 14px;
  padding: 13px 28px;
}

.ag-header-title {
  letter-spacing: -.02em;
  font-size: 15px;
  font-weight: 700;
}

.ag-header-count {
  color: var(--text-3);
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
}

.ag-header-spacer {
  flex: 1;
}

.ag-header-search-wrap {
  position: relative;
}

.ag-header-search-wrap svg {
  position: absolute;
  pointer-events: none;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.ag-header-search {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text-1);
  outline: none;
  border-radius: 8px;
  width: 210px;
  padding: 7px 12px 7px 34px;
  transition: border-color .15s;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
  font-size: 12px;
}

.ag-header-search::placeholder {
  color: var(--text-3);
}

.ag-header-search:focus {
  border-color: #8b5cf659;
}

.ag-spawn-btn {
  color: var(--violet);
  cursor: pointer;
  display: flex;
  background: #8b5cf62e;
  border: 1px solid #8b5cf652;
  border-radius: 8px;
  align-items:  center;
  gap: 7px;
  padding: 7px 16px;
  transition: background .15s, border-color .15s;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.ag-spawn-btn:hover {
  background: #8b5cf642;
  border-color: #8b5cf680;
}

.ag-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border-1);
  z-index: 190;
  position: relative;
  flex-shrink: 0;
}

.ag-stat-card {
  background: var(--surface-1);
  border-right: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 22px;
}

.ag-stat-card:last-child {
  border-right: none;
}

.ag-stat-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
}

.ag-stat-value {
  letter-spacing: -.03em;
  font-size: 22px;
  font-weight: 700;
}

.ag-stat-value.cyan {
  color: var(--cyan);
}

.ag-stat-value.emerald {
  color: var(--emerald);
}

.ag-stat-value.violet {
  color: var(--violet);
}

.ag-stat-value.amber {
  color: var(--amber);
}

.ag-stat-sub {
  color: var(--text-3);
  font-size: 10px;
}

.ag-stat-sub .up {
  color: var(--emerald);
  font-weight: 600;
}

.ag-tab-bar {
  display: flex;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-1);
  z-index: 180;
  position: relative;
  flex-shrink: 0;
  align-items:  center;
  gap: 4px;
  padding: 0 28px;
}

.ag-tab-btn {
  display: flex;
  color: var(--text-3);
  cursor: pointer;
  position: relative;
  letter-spacing: -.01em;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  align-items:  center;
  gap: 7px;
  margin-bottom: -1px;
  padding: 11px 16px;
  transition: color .15s, border-color .15s;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
  font-size: 12px;
  font-weight: 600;
  top: 1px;
}

.ag-tab-btn:hover {
  color: var(--text-2);
}

.ag-tab-btn.active {
  color: var(--text-1);
  border-bottom-color: var(--violet);
}

.ag-tab-btn svg {
  flex-shrink: 0;
}

.ag-tab-badge {
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  color: var(--text-3);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
}

.ag-tab-btn.active .ag-tab-badge {
  background: var(--violet-dim);
  color: var(--violet);
  border-color: #8b5cf640;
}

.ag-view {
  display: none;
  overflow: hidden;
  flex: 1;
}

.ag-view.visible {
  display: flex;
  flex-direction: column;
}

.ag-grid-area {
  overflow-y: auto;
  flex: 1;
  padding: 20px 28px 56px;
}

.ag-grid-area::-webkit-scrollbar {
  width: 4px;
}

.ag-grid-area::-webkit-scrollbar-track {
  background: none;
}

.ag-grid-area::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 2px;
}

.ag-section-label {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 600;
}

.ag-section-label:after {
  content: "";
  background: var(--border-1);
  flex: 1;
  height: 1px;
}

.ag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.ag-card {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  animation: ag-fadeUp .4s ease both;
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}

.ag-card:hover {
  border-color: #8b5cf638;
  box-shadow: 0 0 24px #8b5cf60f;
}

.ag-card.active-card {
  box-shadow: inset 3px 0 0 var(--cyan), 0 0 28px #22d3ee0f;
  border-color: #22d3ee33;
}

.ag-card.active-card:hover {
  box-shadow: inset 3px 0 0 var(--cyan), 0 0 32px #22d3ee1f;
  border-color: #22d3ee61;
}

.ag-card.primary-card {
  box-shadow: inset 3px 0 0 var(--violet), 0 0 28px #8b5cf614;
  border-color: #8b5cf64d;
}

.ag-card.primary-card:hover {
  box-shadow: inset 3px 0 0 var(--violet), 0 0 36px #8b5cf624;
}

.ag-card:first-child {
  animation-delay: 40ms;
}

.ag-card:nth-child(2) {
  animation-delay: 80ms;
}

.ag-card:nth-child(3) {
  animation-delay: .12s;
}

.ag-card:nth-child(4) {
  animation-delay: .16s;
}

.ag-card:nth-child(5) {
  animation-delay: .2s;
}

.ag-card:nth-child(6) {
  animation-delay: .24s;
}

.ag-card:nth-child(7) {
  animation-delay: .28s;
}

.ag-card:nth-child(8) {
  animation-delay: .32s;
}

.ag-card:nth-child(9) {
  animation-delay: .36s;
}

.ag-card:nth-child(10) {
  animation-delay: .4s;
}

.ag-card:nth-child(11) {
  animation-delay: .44s;
}

.ag-card:nth-child(12) {
  animation-delay: .48s;
}

.ag-card-body {
  display: flex;
  align-items:  flex-start;
  gap: 12px;
  padding: 15px 16px 12px;
}

.ag-avatar {
  display: flex;
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 38px;
  height: 38px;
  font-size: 18px;
}

.ag-avatar-violet {
  background: #8b5cf62e;
}

.ag-avatar-blue {
  background: #60a5fa26;
}

.ag-avatar-emerald {
  background: #34d39926;
}

.ag-avatar-cyan {
  background: #22d3ee1f;
}

.ag-avatar-amber {
  background: #fbbf241f;
}

.ag-avatar-rose {
  background: #fb71851f;
}

.ag-card-info {
  flex: 1;
  min-width: 0;
}

.ag-card-name {
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
}

.ag-card-task {
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  line-height: 1.45;
}

.ag-card-task.no-task {
  color: var(--text-3);
  font-style: italic;
}

.ag-status-badge {
  display: flex;
  text-transform: uppercase;
  letter-spacing: .06em;
  flex-shrink: 0;
  align-items:  center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
}

.ag-status-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.ag-status-badge.active {
  color: var(--cyan);
}

.ag-status-badge.active .ag-status-dot {
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: ag-dotPulse 2s ease-in-out infinite;
}

.ag-status-badge.primary-status {
  color: var(--violet);
}

.ag-status-badge.primary-status .ag-status-dot {
  background: var(--violet);
  box-shadow: 0 0 6px var(--violet);
  animation: ag-dotPulse 2s ease-in-out infinite;
}

.ag-status-badge.idle {
  color: var(--text-3);
}

.ag-status-badge.idle .ag-status-dot {
  background: var(--text-3);
}

.ag-card-footer {
  border-top: 1px solid var(--border-1);
  display: flex;
  align-items:  center;
  gap: 10px;
  padding: 10px 16px;
}

.ag-authority-bar {
  display: flex;
  align-items:  center;
  gap: 2px;
}

.ag-authority-pip {
  border-radius: 2px;
  width: 12px;
  height: 4px;
}

.ag-authority-pip.filled {
  background: var(--violet);
}

.ag-authority-pip.filled.cyan {
  background: var(--cyan);
}

.ag-authority-pip.empty {
  background: var(--border-2);
}

.ag-authority-label {
  color: var(--text-3);
  margin-left: 4px;
  font-size: 10px;
}

.ag-footer-spacer {
  flex: 1;
}

.ag-tools-badge {
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
}

.ag-since-label {
  color: var(--text-3);
  font-size: 10px;
}

.ag-activity-bar {
  background: var(--surface-1);
  border-top: 1px solid var(--border-1);
  display: flex;
  overflow: hidden;
  flex-shrink: 0;
  align-items:  center;
  height: 44px;
}

.ag-activity-label {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  border-right: 1px solid var(--border-1);
  display: flex;
  flex-shrink: 0;
  align-items:  center;
  height: 100%;
  padding: 0 16px;
  font-size: 10px;
  font-weight: 700;
}

.ag-activity-track {
  overflow: hidden;
  position: relative;
  flex: 1;
  height: 100%;
}

.ag-activity-scroll {
  display: flex;
  animation: ag-scrollFeed 40s linear infinite;
  white-space: nowrap;
  gap: 0;
  height: 100%;
}

.ag-activity-event {
  display: inline-flex;
  color: var(--text-2);
  border-right: 1px solid var(--border-1);
  flex-shrink: 0;
  align-items:  center;
  gap: 8px;
  height: 100%;
  padding: 0 24px;
  font-size: 11px;
}

.ag-event-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
}

.ag-event-time {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
}

.ag-event-agent {
  color: var(--violet);
  font-weight: 600;
}

.ag-event-cyan {
  color: var(--cyan);
  font-weight: 600;
}

.ag-event-emerald {
  color: var(--emerald);
  font-weight: 600;
}

.ag-orbital-view {
  position: relative;
  overflow: hidden;
}

.ag-aurora {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  inset: 0;
}

.ag-aurora:before {
  content: "";
  position: absolute;
  filter: blur(40px);
  background: radial-gradient(at 50% 0%, #8b5cf624 0%, #22d3ee0f 40%, #0000 70%);
  width: 900px;
  height: 500px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
}

.ag-aurora:after {
  content: "";
  position: absolute;
  background-image: radial-gradient(circle, #ffffff07 1px, #0000 1px);
  background-size: 28px 28px;
  inset: 0;
}

.ag-orbital-canvas {
  position: absolute;
  z-index: 10;
  inset: 0 0 48px;
}

.ag-lines-svg {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
  width: 100%;
  height: 100%;
  inset: 0;
}

.ag-orbit-ring-trace {
  position: absolute;
  pointer-events: none;
  border: 1px dashed #ffffff0d;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ag-center-orb {
  position: absolute;
  display: flex;
  cursor: pointer;
  z-index: 20;
  flex-direction: column;
  align-items:  center;
  transform: translate(-50%, -50%);
}

.ag-orb-ring-outer {
  position: absolute;
  animation: ag-orbRotate 14s linear infinite reverse;
  border: 1px solid #8b5cf61f;
  border-radius: 50%;
}

.ag-orb-ring-inner {
  position: absolute;
  animation: ag-orbRotate 9s linear infinite;
  border: 1px solid #8b5cf638;
  border-radius: 50%;
}

.ag-orb-core {
  display: flex;
  animation: ag-orbPulse 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
  background: radial-gradient(circle at 35% 35%, #a78bfa8c, #8b5cf647 60%, #0000);
  border: 2px solid #8b5cf68c;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 80px;
  height: 80px;
  font-size: 34px;
  box-shadow: 0 0 40px #8b5cf659, 0 0 80px #8b5cf624, inset 0 0 28px #8b5cf62e;
}

.ag-orb-label {
  letter-spacing: -.01em;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
}

.ag-orb-badge {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--violet);
  background: #8b5cf61f;
  border: 1px solid #8b5cf640;
  border-radius: 10px;
  margin-top: 4px;
  padding: 2px 9px;
  font-size: 9px;
  font-weight: 700;
}

.ag-orbital-node {
  position: absolute;
  display: flex;
  cursor: pointer;
  z-index: 20;
  flex-direction: column;
  align-items:  center;
  gap: 5px;
  transition: filter .2s;
  transform: translate(-50%, -50%);
}

.ag-orbital-node:hover {
  filter: brightness(1.15);
}

.ag-node-bubble {
  display: flex;
  position: relative;
  border: 2px solid #0000;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  transition: box-shadow .2s, border-color .2s;
}

.ag-node-bubble.size-lg {
  width: 64px;
  height: 64px;
  font-size: 26px;
}

.ag-node-bubble.size-md {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.ag-node-bubble.size-sm {
  opacity: .45;
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.ag-node-bubble.active-node {
  animation: ag-nodePulse 3s ease-in-out infinite;
  border-color: #22d3ee8c;
  box-shadow: 0 0 22px #22d3ee40, 0 0 44px #22d3ee1a;
}

.ag-node-bubble.idle-inner {
  opacity: .45;
  border-color: #ffffff14;
}

.ag-node-bubble.idle-outer {
  opacity: .3;
  border-color: #ffffff0d;
}

.ag-bubble-dot {
  position: absolute;
  border: 2px solid var(--bg, #07070a);
  border-radius: 50%;
  width: 10px;
  height: 10px;
  bottom: 2px;
  right: 2px;
}

.ag-bubble-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.ag-bubble-dot.idle {
  background: #ffffff40;
}

.ag-node-label {
  color: var(--text-2);
  text-align: center;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
}

.ag-node-label.dimmed {
  opacity: .45;
  font-size: 9px;
}

.ag-node-task-mini {
  color: var(--cyan);
  text-align: center;
  max-width: 90px;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.35;
}

.ag-detail-card {
  position: absolute;
  z-index: 30;
  background: var(--surface-2);
  animation: ag-cardPop .25s cubic-bezier(.175, .885, .32, 1.275) both;
  border: 1px solid #8b5cf64d;
  border-radius: 14px;
  width: 248px;
  padding: 15px;
  box-shadow: 0 20px 60px #000000a6, 0 0 30px #8b5cf61a;
}

.ag-dc-header {
  display: flex;
  align-items:  center;
  gap: 10px;
  margin-bottom: 11px;
}

.ag-dc-emoji {
  display: flex;
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 38px;
  height: 38px;
  font-size: 20px;
}

.ag-dc-name {
  font-size: 13px;
  font-weight: 700;
}

.ag-dc-status {
  display: flex;
  align-items:  center;
  gap: 5px;
  margin-top: 2px;
  font-size: 10px;
}

.ag-dc-dot {
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.ag-dc-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 5px var(--cyan);
  animation: ag-dotPulse 2s infinite;
}

.ag-dc-section-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 600;
}

.ag-dc-task {
  color: var(--text-2);
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.5;
}

.ag-dc-auth {
  display: flex;
  align-items:  center;
  gap: 2px;
  margin-bottom: 10px;
}

.ag-dc-pip {
  border-radius: 2px;
  width: 14px;
  height: 3px;
}

.ag-dc-pip.on {
  background: var(--cyan);
}

.ag-dc-pip.off {
  background: var(--border-2);
}

.ag-dc-auth-val {
  color: var(--text-3);
  margin-left: 6px;
  font-size: 10px;
}

.ag-dc-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ag-dc-tool {
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
}

.ag-orbital-bottom {
  position: absolute;
  z-index: 50;
  display: flex;
  border-top: 1px solid var(--border-1);
  background: linear-gradient(to top, #07070af7 0%, #07070ad1 100%);
  align-items:  center;
  height: 48px;
  padding: 0 24px;
  bottom: 0;
  left: 0;
  right: 0;
}

.ag-bottom-stats {
  display: flex;
  flex-shrink: 0;
  gap: 20px;
}

.ag-bs-item {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ag-bs-val {
  letter-spacing: -.03em;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
}

.ag-bs-val.cyan {
  color: var(--cyan);
}

.ag-bs-val.emerald {
  color: var(--emerald);
}

.ag-bs-val.violet {
  color: var(--violet);
}

.ag-bs-val.amber {
  color: var(--amber);
}

.ag-bs-key {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  font-size: 9px;
  font-weight: 600;
}

.ag-bottom-divider {
  background: var(--border-1);
  width: 1px;
  height: 28px;
  margin: 0 18px;
}

.ag-ticker-wrap {
  overflow: hidden;
  position: relative;
  flex: 1;
}

.ag-ticker-label {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  margin-bottom: 2px;
  font-size: 9px;
  font-weight: 700;
}

.ag-ticker-scroll {
  white-space: nowrap;
  animation: ag-tickerScroll 32s linear infinite;
  color: var(--text-2);
  font-size: 11px;
}

.ag-ticker-sep {
  color: var(--text-3);
  margin: 0 12px;
}

.ag-ticker-violet {
  color: var(--violet);
  font-weight: 600;
}

.ag-ticker-cyan {
  color: var(--cyan);
  font-weight: 600;
}

.ag-ticker-emerald {
  color: var(--emerald);
  font-weight: 600;
}

@keyframes ag-dotPulse {
  0%, 100% {
    box-shadow: 0 0 6px;
    opacity: 1;
  }

  50% {
    box-shadow: 0 0 12px;
    opacity: .65;
  }
}

@keyframes ag-fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ag-scrollFeed {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes ag-orbPulse {
  0%, 100% {
    box-shadow: 0 0 40px #8b5cf659, 0 0 80px #8b5cf624, inset 0 0 28px #8b5cf62e;
  }

  50% {
    box-shadow: 0 0 60px #8b5cf680, 0 0 110px #8b5cf638, inset 0 0 38px #8b5cf642;
  }
}

@keyframes ag-nodePulse {
  0%, 100% {
    box-shadow: 0 0 22px #22d3ee40, 0 0 44px #22d3ee1a;
  }

  50% {
    box-shadow: 0 0 32px #22d3ee66, 0 0 64px #22d3ee2e;
  }
}

@keyframes ag-orbRotate {
  from {
    transform: translate(-50%, -50%)rotate(0);
  }

  to {
    transform: translate(-50%, -50%)rotate(360deg);
  }
}

@keyframes ag-tickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes ag-cardPop {
  from {
    opacity: 0;
    transform: scale(.92)translateY(6px);
  }

  to {
    opacity: 1;
    transform: scale(1)translateY(0);
  }
}

/* ui/src/styles/command.css */
.cmd-page {
  display: flex;
  overflow: hidden;
  position: relative;
  flex-direction: column;
  height: 100%;
}

.cmd-atmosphere {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(500px 500px at 50% 30%, #34d3990f 0%, #0000 60%), radial-gradient(300px 300px at 80% 70%, #8b5cf608 0%, #0000 60%);
  inset: 0;
}

.cmd-header {
  position: relative;
  z-index: 1;
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  align-items:  center;
  gap: 16px;
  padding: 16px 28px;
}

.cmd-header-title {
  letter-spacing: -.02em;
  font-size: 16px;
  font-weight: 700;
}

.cmd-header-spacer {
  flex: 1;
}

.cmd-header-pid {
  color: #ffffff4d;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

.cmd-pulse-section {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items:  center;
  gap: 60px;
  padding: 36px 28px;
}

.cmd-central-orb {
  position: relative;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 100px;
  height: 100px;
}

.cmd-co-inner {
  animation: cmd-breathe 4s ease-in-out infinite;
  background: radial-gradient(circle at 40% 35%, #6ee7b7 0%, #34d399 50%, #059669 100%);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 0 0 30px #34d39966, 0 0 60px #34d39926;
}

.cmd-co-inner.degraded {
  background: radial-gradient(circle at 40% 35%, #fde68a 0%, #fbbf24 50%, #d97706 100%);
  box-shadow: 0 0 30px #fbbf2466, 0 0 60px #fbbf2426;
}

.cmd-co-inner.critical {
  background: radial-gradient(circle at 40% 35%, #fca5a5 0%, #fb7185 50%, #e11d48 100%);
  box-shadow: 0 0 30px #fb718566, 0 0 60px #fb718526;
}

@keyframes cmd-breathe {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.cmd-co-ring {
  position: absolute;
  border: 1px solid #34d39926;
  border-radius: 50%;
}

.cmd-co-ring-1 {
  animation: cmd-ringPulse 3s ease-in-out infinite;
  inset: 5px;
}

.cmd-co-ring-2 {
  animation: cmd-ringPulse 3s ease-in-out infinite .5s;
  inset: -5px;
}

.cmd-co-ring-3 {
  animation: cmd-ringPulse 3s ease-in-out infinite 1s;
  inset: -15px;
}

@keyframes cmd-ringPulse {
  0%, 100% {
    opacity: .15;
    transform: scale(1);
  }

  50% {
    opacity: .3;
    transform: scale(1.05);
  }
}

.cmd-co-label {
  position: absolute;
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
}

.cmd-radial-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cmd-rs-card {
  display: flex;
  background: #0d0d14;
  border: 1px solid #ffffff0a;
  border-radius: 10px;
  align-items:  center;
  gap: 10px;
  min-width: 180px;
  padding: 10px 14px;
}

.cmd-rs-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.cmd-rs-info {
  flex: 1;
}

.cmd-rs-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #ffffff4d;
  font-size: 9px;
  font-weight: 600;
}

.cmd-rs-val {
  font-family: JetBrains Mono, monospace;
  font-size: 16px;
  font-weight: 700;
}

.cmd-rs-sub {
  color: #ffffff4d;
  margin-top: 1px;
  font-size: 9px;
}

.cmd-mem-bar {
  overflow: hidden;
  background: #1a1a28;
  border-radius: 3px;
  height: 3px;
  margin-top: 4px;
}

.cmd-mem-fill {
  border-radius: 3px;
  height: 100%;
  transition: width .3s;
}

.cmd-bottom-split {
  position: relative;
  z-index: 1;
  display: flex;
  overflow: hidden;
  flex: 1;
  gap: 16px;
  padding: 0 28px 20px;
}

.cmd-panel-card {
  display: flex;
  overflow: hidden;
  background: #0d0d14;
  border: 1px solid #ffffff0a;
  border-radius: 12px;
  flex-direction: column;
  flex: 1;
}

.cmd-pc-header {
  text-transform: uppercase;
  letter-spacing: .08em;
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  align-items:  center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
}

.cmd-pc-count {
  color: #ffffff4d;
  background: #1a1a28;
  border-radius: 8px;
  padding: 1px 6px;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.cmd-pc-body {
  overflow-y: auto;
  flex: 1;
  padding: 10px 14px;
}

.cmd-pc-body::-webkit-scrollbar {
  width: 2px;
}

.cmd-pc-body::-webkit-scrollbar-thumb {
  background: #ffffff1f;
  border-radius: 2px;
}

.cmd-svc-item {
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  align-items:  center;
  gap: 8px;
  padding: 7px 0;
  font-size: 12px;
}

.cmd-svc-item:last-child {
  border-bottom: none;
}

.cmd-svc-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.cmd-svc-dot.running {
  background: #34d399;
  box-shadow: 0 0 6px #34d39966;
}

.cmd-svc-dot.idle {
  background: #fbbf24;
}

.cmd-svc-dot.stopped {
  background: #fb7185;
}

.cmd-svc-name {
  flex: 1;
}

.cmd-svc-status {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 9px;
  font-weight: 600;
}

.cmd-obs-item {
  display: flex;
  animation: cmd-obsIn .25s cubic-bezier(.16, 1, .3, 1) backwards;
  background: #12121c;
  border-radius: 6px;
  align-items:  flex-start;
  gap: 8px;
  margin-bottom: 4px;
  padding: 6px 8px;
  font-size: 10px;
}

@keyframes cmd-obsIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
}

.cmd-obs-type {
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  border-radius: 3px;
  flex-shrink: 0;
  padding: 1px 5px;
  font-size: 8px;
  font-weight: 600;
}

.cmd-obs-text {
  color: #ffffff8c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

.cmd-obs-time {
  color: #ffffff4d;
  flex-shrink: 0;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.cmd-loading {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items:  center;
  gap: 16px;
}

.cmd-loading-orb {
  animation: cmd-loadBreath 2s ease-in-out infinite;
  background: radial-gradient(circle at 40% 35%, #6ee7b7 0%, #34d399 50%, #059669 100%);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  box-shadow: 0 0 20px #34d39966;
}

@keyframes cmd-loadBreath {
  0%, 100% {
    transform: scale(1);
    opacity: .8;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.cmd-loading-text {
  color: #ffffff4d;
  font-size: 12px;
}

.cmd-empty {
  text-align: center;
  color: #ffffff4d;
  padding: 24px 12px;
  font-size: 11px;
}

/* ui/src/styles/authority.css */
.au-page {
  display: flex;
  overflow: hidden;
  position: relative;
  flex-direction: column;
  height: 100%;
}

.au-atmosphere {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(600px 300px at 50% 0%, #8b5cf612 0%, #0000 70%), radial-gradient(300px 300px at 20% 80%, #34d39908 0%, #0000 70%);
  inset: 0;
}

.au-header {
  position: relative;
  z-index: 1;
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  align-items:  center;
  gap: 16px;
  padding: 16px 28px;
}

.au-header-title {
  letter-spacing: -.02em;
  color: #ffffffeb;
  font-size: 16px;
  font-weight: 700;
}

.au-header-spacer {
  flex: 1;
}

.au-em-badge {
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
}

.au-em-badge.normal {
  color: #34d399;
  background: #34d3991f;
}

.au-em-badge.paused {
  color: #fbbf24;
  background: #fbbf241f;
}

.au-em-badge.killed {
  color: #fb7185;
  background: #fb71851f;
}

.au-em-btn {
  cursor: pointer;
  background: none;
  border: 1px solid;
  border-radius: 8px;
  padding: 6px 14px;
  transition: background .15s;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
}

.au-em-btn.pause {
  color: #fbbf24;
  border-color: #fbbf244d;
}

.au-em-btn.pause:hover {
  background: #fbbf2414;
}

.au-em-btn.resume {
  color: #34d399;
  border-color: #34d3994d;
}

.au-em-btn.resume:hover {
  background: #34d39914;
}

.au-em-btn.kill {
  color: #fb7185;
  border-color: #fb71854d;
}

.au-em-btn.kill:hover {
  background: #fb718514;
}

.au-em-btn.reset {
  color: #34d399;
  border-color: #34d3994d;
}

.au-em-btn.reset:hover {
  background: #34d39914;
}

.au-main-layout {
  position: relative;
  z-index: 1;
  display: flex;
  overflow: hidden;
  flex: 1;
}

.au-gauge-panel {
  display: flex;
  overflow-y: auto;
  border-right: 1px solid #ffffff0a;
  flex-direction: column;
  flex-shrink: 0;
  align-items:  center;
  width: 280px;
  padding: 28px 20px;
}

.au-arc-container {
  position: relative;
  width: 200px;
  height: 120px;
  margin-bottom: 16px;
}

.au-arc-bg {
  fill: none;
  stroke: #1a1a28;
  stroke-width: 8;
  stroke-linecap: round;
}

.au-arc-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset .6s cubic-bezier(.16,1,.3,1), stroke .3s;
}

.au-gauge-value {
  position: absolute;
  text-align: center;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.au-gauge-number {
  letter-spacing: -.04em;
  font-family: JetBrains Mono, monospace;
  font-size: 36px;
  font-weight: 800;
}

.au-gauge-sublabel {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #ffffff4d;
  font-size: 10px;
  font-weight: 600;
}

.au-level-range {
  display: flex;
  color: #ffffff4d;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 16px;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.au-gauge-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.au-g-stat {
  display: flex;
  background: #0d0d14;
  border: 1px solid #ffffff0a;
  border-radius: 10px;
  align-items:  center;
  gap: 10px;
  padding: 10px 12px;
}

.au-g-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.au-g-info {
  flex: 1;
}

.au-g-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #ffffff4d;
  font-size: 9px;
  font-weight: 600;
}

.au-g-val {
  font-family: JetBrains Mono, monospace;
  font-size: 16px;
  font-weight: 700;
}

.au-content-panel {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  flex: 1;
}

.au-tabs {
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  gap: 0;
  padding: 0 24px;
}

.au-tab-btn {
  cursor: pointer;
  color: #ffffff4d;
  display: flex;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  align-items:  center;
  gap: 6px;
  padding: 12px 18px;
  transition: color .15s, border-color .15s;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}

.au-tab-btn:hover {
  color: #ffffff8c;
}

.au-tab-btn.active {
  color: #a78bfa;
  border-bottom-color: #8b5cf6;
}

.au-tab-count {
  margin-left: 2px;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.au-tab-content {
  overflow-y: auto;
  flex: 1;
  padding: 20px 24px;
}

.au-tab-content::-webkit-scrollbar {
  width: 3px;
}

.au-tab-content::-webkit-scrollbar-thumb {
  background: #ffffff1f;
  border-radius: 3px;
}

.au-af-card {
  display: flex;
  animation: au-feedIn .35s cubic-bezier(.16, 1, .3, 1) backwards;
  background: #0d0d14;
  border: 1px solid #ffffff0a;
  border-radius: 10px;
  align-items:  flex-start;
  gap: 12px;
  margin-bottom: 8px;
  padding: 14px 16px;
  transition: border-color .15s;
}

.au-af-card:hover {
  border-color: #ffffff14;
}

@keyframes au-feedIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.au-af-indicator {
  border-radius: 4px;
  flex-shrink: 0;
  align-self: stretch;
  width: 4px;
}

.au-af-indicator.pending {
  background: #fbbf24;
}

.au-af-indicator.urgent {
  background: #fb7185;
  box-shadow: 0 0 8px #fb71854d;
}

.au-af-body {
  flex: 1;
  min-width: 0;
}

.au-af-tool {
  color: #22d3ee;
  font-family: JetBrains Mono, monospace;
  font-size: 12px;
  font-weight: 600;
}

.au-af-detail {
  color: #ffffff8c;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.4;
}

.au-af-meta {
  color: #ffffff4d;
  margin-top: 4px;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.au-af-actions {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 4px;
}

.au-af-btn {
  display: flex;
  cursor: pointer;
  background: none;
  border: 1px solid;
  border-radius: 8px;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
  transition: background .15s;
}

.au-af-btn.approve {
  color: #34d399;
  border-color: #34d39940;
}

.au-af-btn.approve:hover {
  background: #34d3991a;
}

.au-af-btn.deny {
  color: #fb7185;
  border-color: #fb718540;
}

.au-af-btn.deny:hover {
  background: #fb71851a;
}

.au-af-pre {
  color: #ffffff8c;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  background: #07070a;
  border: 1px solid #ffffff0a;
  border-radius: 6px;
  max-height: 200px;
  margin-top: 10px;
  padding: 10px;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
}

.au-af-toggle {
  color: #ffffff4d;
  cursor: pointer;
  background: none;
  border: none;
  margin-top: 4px;
  padding: 2px 0;
  transition: color .15s;
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
}

.au-af-toggle:hover {
  color: #ffffff8c;
}

.au-audit-entry {
  display: flex;
  animation: au-auditIn .3s cubic-bezier(.16, 1, .3, 1) backwards;
  border-bottom: 1px solid #ffffff0a;
  align-items:  flex-start;
  gap: 10px;
  padding: 10px 0;
}

@keyframes au-auditIn {
  from {
    opacity: 0;
  }
}

.au-ae-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 4px;
}

.au-ae-dot.allowed {
  background: #34d399;
}

.au-ae-dot.denied {
  background: #fb7185;
}

.au-ae-dot.approval_required {
  background: #fbbf24;
}

.au-ae-body {
  flex: 1;
}

.au-ae-tool {
  color: #ffffffeb;
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
  font-weight: 600;
}

.au-ae-detail {
  color: #ffffff4d;
  margin-top: 1px;
  font-size: 10px;
}

.au-ae-time {
  color: #ffffff4d;
  flex-shrink: 0;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.au-filter-row {
  display: flex;
  align-items:  center;
  gap: 6px;
  margin-bottom: 14px;
}

.au-filter-label {
  color: #ffffff4d;
  margin-right: 4px;
  font-size: 10px;
}

.au-filter-pill {
  cursor: pointer;
  color: #ffffff4d;
  background: none;
  border: 1px solid #ffffff0a;
  border-radius: 20px;
  padding: 4px 12px;
  transition: all .15s;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
}

.au-filter-pill:hover {
  color: #ffffff8c;
  border-color: #ffffff14;
}

.au-filter-pill.active {
  color: #a78bfa;
  background: #8b5cf626;
  border-color: #8b5cf64d;
}

.au-config-section {
  margin-bottom: 18px;
}

.au-config-label {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #ffffff4d;
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 700;
}

.au-cfg-card {
  background: #0d0d14;
  border: 1px solid #ffffff0a;
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 14px;
}

.au-level-row {
  display: flex;
  align-items:  center;
  gap: 14px;
}

.au-lr-num {
  font-family: JetBrains Mono, monospace;
  font-size: 28px;
  font-weight: 800;
}

.au-lr-name {
  color: #ffffffeb;
  font-size: 13px;
  font-weight: 600;
}

.au-lr-desc {
  color: #ffffff4d;
  font-size: 10px;
}

.au-level-slider {
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  background: #1a1a28;
  border-radius: 4px;
  width: 100%;
  height: 4px;
  margin-top: 10px;
}

.au-level-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  background: var(--thumb-color, #34d399);
  box-shadow: 0 0 8px var(--thumb-color, #34d39966);
  cursor: pointer;
  border: 2px solid #07070a;
  border-radius: 50%;
  width: 14px;
  height: 14px;
}

.au-slider-range {
  display: flex;
  color: #ffffff4d;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 9px;
}

.au-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.au-cat-chip {
  color: #ffffff4d;
  cursor: pointer;
  background: none;
  border: 1px solid #ffffff0a;
  border-radius: 4px;
  padding: 3px 8px;
  transition: all .15s;
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
}

.au-cat-chip:hover {
  border-color: #ffffff14;
}

.au-cat-chip.governed {
  color: #fbbf24;
  background: #fbbf241a;
  border-color: #fbbf2440;
}

.au-rule-entry {
  display: flex;
  background: #12121c;
  border-radius: 6px;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 4px;
  padding: 8px 10px;
  font-size: 10px;
}

.au-re-code {
  color: #22d3ee;
  font-family: JetBrains Mono, monospace;
  font-weight: 600;
}

.au-re-detail {
  color: #ffffff4d;
  margin-left: 6px;
}

.au-re-remove {
  color: #fb7185;
  cursor: pointer;
  opacity: .6;
  background: none;
  border: none;
  flex-shrink: 0;
  transition: opacity .15s;
  font-family: inherit;
  font-size: 10px;
}

.au-re-remove:hover {
  opacity: 1;
}

.au-add-btn {
  color: #a78bfa;
  cursor: pointer;
  background: #8b5cf614;
  border: 1px solid #8b5cf64d;
  border-radius: 8px;
  padding: 6px 14px;
  transition: background .15s;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
}

.au-add-btn:hover {
  background: #8b5cf626;
}

.au-suggestion {
  display: flex;
  background: #22d3ee0a;
  border: 1px solid #22d3ee26;
  border-radius: 8px;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 8px;
  padding: 12px;
}

.au-suggestion .au-sg-tool {
  color: #22d3ee;
  font-family: JetBrains Mono, monospace;
  font-size: 12px;
}

.au-suggestion .au-sg-count {
  color: #ffffff4d;
  margin-top: 2px;
  font-size: 10px;
}

.au-suggestion .au-sg-actions {
  display: flex;
  gap: 6px;
}

.au-sg-btn {
  cursor: pointer;
  background: none;
  border: 1px solid;
  border-radius: 6px;
  padding: 4px 12px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
}

.au-sg-btn.accept {
  color: #34d399;
  border-color: #34d39940;
}

.au-sg-btn.dismiss {
  color: #ffffff4d;
  border-color: #ffffff14;
}

.au-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items:  center;
}

.au-toggle-sw {
  position: relative;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  width: 36px;
  height: 20px;
  transition: background .2s;
}

.au-toggle-sw.on {
  background: #8b5cf666;
}

.au-toggle-sw.off {
  background: #1a1a28;
}

.au-toggle-knob {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  transition: left .2s;
  top: 3px;
}

.au-toggle-sw.on .au-toggle-knob {
  left: 19px;
}

.au-toggle-sw.off .au-toggle-knob {
  left: 3px;
}

.au-inline-form {
  display: flex;
  background: #0d0d14;
  border: 1px solid #8b5cf640;
  border-radius: 10px;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  padding: 14px;
}

.au-form-row {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.au-form-label {
  color: #ffffff4d;
  flex-shrink: 0;
  min-width: 70px;
  font-size: 11px;
}

.au-form-select, .au-form-input {
  color: #ffffffeb;
  outline: none;
  background: #07070a;
  border: 1px solid #ffffff0a;
  border-radius: 6px;
  flex: 1;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
}

.au-form-select:focus, .au-form-input:focus {
  border-color: #8b5cf64d;
}

.au-form-submit {
  color: #34d399;
  cursor: pointer;
  background: #34d3991a;
  border: 1px solid #34d39940;
  border-radius: 8px;
  align-self:  flex-end;
  padding: 6px 16px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
}

.au-step-btn {
  color: #ffffffeb;
  cursor: pointer;
  display: flex;
  background: #07070a;
  border: 1px solid #ffffff0a;
  border-radius: 6px;
  justify-content: center;
  align-items:  center;
  width: 24px;
  height: 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}

.au-empty {
  text-align: center;
  color: #ffffff4d;
  padding: 32px 16px;
  font-size: 12px;
}

.au-loading {
  display: flex;
  color: #ffffff4d;
  justify-content: center;
  align-items:  center;
  padding: 40px;
  font-size: 12px;
}

/* ui/src/styles/awareness.css */
.aw-page {
  display: flex;
  overflow: hidden;
  position: relative;
  flex-direction: column;
  height: 100%;
}

.aw-atmosphere {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(500px 300px at 50% 0%, #22d3ee0d 0%, #0000 70%), radial-gradient(400px 300px at 80% 70%, #8b5cf608 0%, #0000 70%);
  inset: 0;
}

.aw-header {
  position: relative;
  z-index: 1;
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  align-items:  center;
  gap: 16px;
  padding: 16px 28px;
}

.aw-header-title {
  letter-spacing: -.02em;
  font-size: 16px;
  font-weight: 700;
}

.aw-header-spacer {
  flex: 1;
}

.aw-status-pill {
  text-transform: uppercase;
  letter-spacing: .08em;
  display: flex;
  border-radius: 20px;
  align-items:  center;
  gap: 5px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
}

.aw-status-pill.active {
  color: #34d399;
  background: #34d3991f;
}

.aw-status-pill.inactive {
  color: #ffffff4d;
  background: #ffffff0a;
}

.aw-status-dot {
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.aw-status-dot.active {
  background: #34d399;
  box-shadow: 0 0 6px #34d39966;
}

.aw-status-dot.inactive {
  background: #ffffff4d;
}

.aw-toggle-btn {
  cursor: pointer;
  background: none;
  border: 1px solid;
  border-radius: 8px;
  padding: 5px 14px;
  transition: background .15s;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
}

.aw-toggle-btn.disable {
  color: #fb7185;
  border-color: #fb71854d;
}

.aw-toggle-btn.disable:hover {
  background: #fb718514;
}

.aw-toggle-btn.enable {
  color: #34d399;
  border-color: #34d3994d;
}

.aw-toggle-btn.enable:hover {
  background: #34d39914;
}

.aw-stats-ribbon {
  position: relative;
  z-index: 1;
  display: flex;
  background: #ffffff0a;
  gap: 1px;
  padding: 0 28px;
}

.aw-stat {
  background: #0d0d14;
  flex: 1;
  padding: 14px 18px;
}

.aw-stat-label {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #ffffff4d;
  margin-bottom: 4px;
  font-size: 9px;
  font-weight: 600;
}

.aw-stat-value {
  letter-spacing: -.03em;
  font-family: JetBrains Mono, monospace;
  font-size: 20px;
  font-weight: 700;
}

.aw-stat-value.app-name {
  letter-spacing: 0;
  font-size: 14px;
}

.aw-stat-sub {
  color: #ffffff4d;
  margin-top: 2px;
  font-size: 9px;
}

.aw-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  gap: 0;
  padding: 0 28px;
}

.aw-tab-btn {
  cursor: pointer;
  color: #ffffff4d;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  padding: 12px 18px;
  transition: color .15s, border-color .15s;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}

.aw-tab-btn:hover {
  color: #ffffff8c;
}

.aw-tab-btn.active {
  color: #a78bfa;
  border-bottom-color: #8b5cf6;
}

.aw-tab-content {
  position: relative;
  z-index: 1;
  overflow-y: auto;
  flex: 1;
  padding: 20px 28px;
}

.aw-tab-content::-webkit-scrollbar {
  width: 3px;
}

.aw-tab-content::-webkit-scrollbar-thumb {
  background: #ffffff1f;
  border-radius: 3px;
}

.aw-live-split {
  display: flex;
  gap: 16px;
}

.aw-live-split > div {
  flex: 1;
}

.aw-loading {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items:  center;
  gap: 16px;
}

.aw-loading-orb {
  animation: aw-loadBreath 2s ease-in-out infinite;
  background: radial-gradient(circle at 40% 35%, #a5f3fc 0%, #22d3ee 50%, #0891b2 100%);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  box-shadow: 0 0 20px #22d3ee66;
}

@keyframes aw-loadBreath {
  0%, 100% {
    transform: scale(1);
    opacity: .8;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.aw-loading-text {
  color: #ffffff4d;
  font-size: 12px;
}

/* node_modules/@xyflow/react/dist/style.css */
.react-flow {
  direction: ltr;
  --xy-edge-stroke-default: #b1b1b7;
  --xy-edge-stroke-width-default: 1;
  --xy-edge-stroke-selected-default: #555;
  --xy-connectionline-stroke-default: #b1b1b7;
  --xy-connectionline-stroke-width-default: 1;
  --xy-attribution-background-color-default: #ffffff80;
  --xy-minimap-background-color-default: #fff;
  --xy-minimap-mask-background-color-default: #f0f0f099;
  --xy-minimap-mask-stroke-color-default: transparent;
  --xy-minimap-mask-stroke-width-default: 1;
  --xy-minimap-node-background-color-default: #e2e2e2;
  --xy-minimap-node-stroke-color-default: transparent;
  --xy-minimap-node-stroke-width-default: 2;
  --xy-background-color-default: transparent;
  --xy-background-pattern-dots-color-default: #91919a;
  --xy-background-pattern-lines-color-default: #eee;
  --xy-background-pattern-cross-color-default: #e2e2e2;
  background-color: var(--xy-background-color, var(--xy-background-color-default));
  --xy-node-color-default: inherit;
  --xy-node-border-default: 1px solid #1a192b;
  --xy-node-background-color-default: #fff;
  --xy-node-group-background-color-default: #f0f0f040;
  --xy-node-boxshadow-hover-default: 0 1px 4px 1px #00000014;
  --xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;
  --xy-node-border-radius-default: 3px;
  --xy-handle-background-color-default: #1a192b;
  --xy-handle-border-color-default: #fff;
  --xy-selection-background-color-default: #0059dc14;
  --xy-selection-border-default: 1px dotted #0059dccc;
  --xy-controls-button-background-color-default: #fefefe;
  --xy-controls-button-background-color-hover-default: #f4f4f4;
  --xy-controls-button-color-default: inherit;
  --xy-controls-button-color-hover-default: inherit;
  --xy-controls-button-border-color-default: #eee;
  --xy-controls-box-shadow-default: 0 0 2px 1px #00000014;
  --xy-edge-label-background-color-default: #fff;
  --xy-edge-label-color-default: inherit;
  --xy-resize-background-color-default: #3367d9;
}

.react-flow.dark {
  --xy-edge-stroke-default: #3e3e3e;
  --xy-edge-stroke-width-default: 1;
  --xy-edge-stroke-selected-default: #727272;
  --xy-connectionline-stroke-default: #b1b1b7;
  --xy-connectionline-stroke-width-default: 1;
  --xy-attribution-background-color-default: #96969640;
  --xy-minimap-background-color-default: #141414;
  --xy-minimap-mask-background-color-default: #3c3c3c99;
  --xy-minimap-mask-stroke-color-default: transparent;
  --xy-minimap-mask-stroke-width-default: 1;
  --xy-minimap-node-background-color-default: #2b2b2b;
  --xy-minimap-node-stroke-color-default: transparent;
  --xy-minimap-node-stroke-width-default: 2;
  --xy-background-color-default: #141414;
  --xy-background-pattern-dots-color-default: #777;
  --xy-background-pattern-lines-color-default: #777;
  --xy-background-pattern-cross-color-default: #777;
  --xy-node-color-default: #f8f8f8;
  --xy-node-border-default: 1px solid #3c3c3c;
  --xy-node-background-color-default: #1e1e1e;
  --xy-node-group-background-color-default: #f0f0f040;
  --xy-node-boxshadow-hover-default: 0 1px 4px 1px #ffffff14;
  --xy-node-boxshadow-selected-default: 0 0 0 .5px #999;
  --xy-handle-background-color-default: #bebebe;
  --xy-handle-border-color-default: #1e1e1e;
  --xy-selection-background-color-default: #c8c8dc14;
  --xy-selection-border-default: 1px dotted #c8c8dccc;
  --xy-controls-button-background-color-default: #2b2b2b;
  --xy-controls-button-background-color-hover-default: #3e3e3e;
  --xy-controls-button-color-default: #f8f8f8;
  --xy-controls-button-color-hover-default: #fff;
  --xy-controls-button-border-color-default: #5b5b5b;
  --xy-controls-box-shadow-default: 0 0 2px 1px #00000014;
  --xy-edge-label-background-color-default: #141414;
  --xy-edge-label-color-default: #f8f8f8;
}

.react-flow__background {
  background-color: var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));
  pointer-events: none;
  z-index: -1;
}

.react-flow__container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.react-flow__pane {
  z-index: 1;
}

.react-flow__pane.draggable {
  cursor: grab;
}

.react-flow__pane.dragging {
  cursor: grabbing;
}

.react-flow__pane.selection {
  cursor: pointer;
}

.react-flow__viewport {
  transform-origin: 0 0;
  z-index: 2;
  pointer-events: none;
}

.react-flow__renderer {
  z-index: 4;
}

.react-flow__selection {
  z-index: 6;
}

.react-flow__nodesselection-rect:focus {
  outline: none;
}

.react-flow__nodesselection-rect:focus-visible {
  outline: none;
}

.react-flow__edge-path {
  stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
  stroke-width: var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));
  fill: none;
}

.react-flow__connection-path {
  stroke: var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));
  stroke-width: var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));
  fill: none;
}

.react-flow .react-flow__edges {
  position: absolute;
}

.react-flow .react-flow__edges svg {
  overflow: visible;
  position: absolute;
  pointer-events: none;
}

.react-flow__edge {
  pointer-events: visibleStroke;
}

.react-flow__edge.selectable {
  cursor: pointer;
}

.react-flow__edge.animated path {
  stroke-dasharray: 5;
  animation: dashdraw .5s linear infinite;
}

.react-flow__edge.animated path.react-flow__edge-interaction {
  stroke-dasharray: none;
  animation: none;
}

.react-flow__edge.inactive {
  pointer-events: none;
}

.react-flow__edge.selected, .react-flow__edge:focus {
  outline: none;
}

.react-flow__edge:focus-visible {
  outline: none;
}

.react-flow__edge.selected .react-flow__edge-path, .react-flow__edge.selectable:focus .react-flow__edge-path {
  stroke: var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default));
}

.react-flow__edge.selectable:focus-visible .react-flow__edge-path {
  stroke: var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default));
}

.react-flow__edge-textwrapper {
  pointer-events: all;
}

.react-flow__edge .react-flow__edge-text {
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.react-flow__arrowhead polyline {
  stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
}

.react-flow__arrowhead polyline.arrowclosed {
  fill: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
}

.react-flow__connection {
  pointer-events: none;
}

.react-flow__connection .animated {
  stroke-dasharray: 5;
  animation: dashdraw .5s linear infinite;
}

svg.react-flow__connectionline {
  z-index: 1001;
  overflow: visible;
  position: absolute;
}

.react-flow__nodes {
  pointer-events: none;
  transform-origin: 0 0;
}

.react-flow__node {
  position: absolute;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  pointer-events: all;
  transform-origin: 0 0;
  box-sizing: border-box;
  cursor: default;
}

.react-flow__node.selectable {
  cursor: pointer;
}

.react-flow__node.draggable {
  cursor: grab;
  pointer-events: all;
}

.react-flow__node.draggable.dragging {
  cursor: grabbing;
}

.react-flow__nodesselection {
  z-index: 3;
  transform-origin: left top;
  pointer-events: none;
}

.react-flow__nodesselection-rect {
  position: absolute;
  pointer-events: all;
  cursor: grab;
}

.react-flow__handle {
  position: absolute;
  pointer-events: none;
  background-color: var(--xy-handle-background-color, var(--xy-handle-background-color-default));
  border: 1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));
  border-radius: 100%;
  width: 6px;
  min-width: 5px;
  height: 6px;
  min-height: 5px;
}

.react-flow__handle.connectingfrom {
  pointer-events: all;
}

.react-flow__handle.connectionindicator {
  pointer-events: all;
  cursor: crosshair;
}

.react-flow__handle-bottom {
  top: auto;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
}

.react-flow__handle-top {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.react-flow__handle-left {
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
}

.react-flow__handle-right {
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
}

.react-flow__edgeupdater {
  cursor: move;
  pointer-events: all;
}

.react-flow__pane.selection .react-flow__panel {
  pointer-events: none;
}

.react-flow__panel {
  position: absolute;
  z-index: 5;
  margin: 15px;
}

.react-flow__panel.top {
  top: 0;
}

.react-flow__panel.bottom {
  bottom: 0;
}

.react-flow__panel.top.center, .react-flow__panel.bottom.center {
  left: 50%;
  transform: translateX(-15px)translateX(-50%);
}

.react-flow__panel.left {
  left: 0;
}

.react-flow__panel.right {
  right: 0;
}

.react-flow__panel.left.center, .react-flow__panel.right.center {
  top: 50%;
  transform: translateY(-15px)translateY(-50%);
}

.react-flow__attribution {
  background: var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));
  margin: 0;
  padding: 2px 3px;
  font-size: 10px;
}

.react-flow__attribution a {
  text-decoration: none;
  color: #999;
}

@keyframes dashdraw {
  from {
    stroke-dashoffset: 10;
  }
}

.react-flow__edgelabel-renderer {
  position: absolute;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.react-flow__viewport-portal {
  position: absolute;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.react-flow__minimap {
  background: var(--xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)));
}

.react-flow__minimap-svg {
  display: block;
}

.react-flow__minimap-mask {
  fill: var(--xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)));
  stroke: var(--xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)));
  stroke-width: var(--xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)));
}

.react-flow__minimap-node {
  fill: var(--xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)));
  stroke: var(--xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)));
  stroke-width: var(--xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)));
}

.react-flow__background-pattern.dots {
  fill: var(--xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)));
}

.react-flow__background-pattern.lines {
  stroke: var(--xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)));
}

.react-flow__background-pattern.cross {
  stroke: var(--xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)));
}

.react-flow__controls {
  display: flex;
  box-shadow: var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default));
  flex-direction: column;
}

.react-flow__controls.horizontal {
  flex-direction: row;
}

.react-flow__controls-button {
  display: flex;
  background: var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));
  border: none;
  border-bottom: 1px solid var(--xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)));
  color: var(--xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)));
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  justify-content: center;
  align-items:  center;
  width: 26px;
  height: 26px;
  padding: 4px;
}

.react-flow__controls-button svg {
  fill: currentColor;
  width: 100%;
  max-width: 12px;
  max-height: 12px;
}

.react-flow__edge.updating .react-flow__edge-path {
  stroke: #777;
}

.react-flow__edge-text {
  font-size: 10px;
}

.react-flow__node.selectable:focus {
  outline: none;
}

.react-flow__node.selectable:focus-visible {
  outline: none;
}

.react-flow__node-input, .react-flow__node-default, .react-flow__node-output, .react-flow__node-group {
  border-radius: var(--xy-node-border-radius, var(--xy-node-border-radius-default));
  color: var(--xy-node-color, var(--xy-node-color-default));
  text-align: center;
  border: var(--xy-node-border, var(--xy-node-border-default));
  background-color: var(--xy-node-background-color, var(--xy-node-background-color-default));
  width: 150px;
  padding: 10px;
  font-size: 12px;
}

.react-flow__node-input.selectable:hover, .react-flow__node-default.selectable:hover, .react-flow__node-output.selectable:hover, .react-flow__node-group.selectable:hover {
  box-shadow: var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default));
}

.react-flow__node-input.selectable.selected, .react-flow__node-input.selectable:focus, .react-flow__node-default.selectable.selected, .react-flow__node-default.selectable:focus, .react-flow__node-output.selectable.selected, .react-flow__node-output.selectable:focus, .react-flow__node-group.selectable.selected, .react-flow__node-group.selectable:focus {
  box-shadow: var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default));
}

.react-flow__node-input.selectable:focus-visible {
  box-shadow: var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default));
}

.react-flow__node-default.selectable:focus-visible {
  box-shadow: var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default));
}

.react-flow__node-output.selectable:focus-visible {
  box-shadow: var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default));
}

.react-flow__node-group.selectable:focus-visible {
  box-shadow: var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default));
}

.react-flow__node-group {
  background-color: var(--xy-node-group-background-color, var(--xy-node-group-background-color-default));
}

.react-flow__nodesselection-rect, .react-flow__selection {
  background: var(--xy-selection-background-color, var(--xy-selection-background-color-default));
  border: var(--xy-selection-border, var(--xy-selection-border-default));
}

.react-flow__nodesselection-rect:focus, .react-flow__selection:focus {
  outline: none;
}

.react-flow__nodesselection-rect:focus-visible {
  outline: none;
}

.react-flow__selection:focus-visible {
  outline: none;
}

.react-flow__controls-button:hover {
  background: var(--xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)));
  color: var(--xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)));
}

.react-flow__controls-button:disabled {
  pointer-events: none;
}

.react-flow__controls-button:disabled svg {
  fill-opacity: .4;
}

.react-flow__controls-button:last-child {
  border-bottom: none;
}

.react-flow__controls.horizontal .react-flow__controls-button {
  border-bottom: none;
  border-right: 1px solid var(--xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)));
}

.react-flow__controls.horizontal .react-flow__controls-button:last-child {
  border-right: none;
}

.react-flow__resize-control {
  position: absolute;
}

.react-flow__resize-control.left, .react-flow__resize-control.right {
  cursor: ew-resize;
}

.react-flow__resize-control.top, .react-flow__resize-control.bottom {
  cursor: ns-resize;
}

.react-flow__resize-control.top.left, .react-flow__resize-control.bottom.right {
  cursor: nwse-resize;
}

.react-flow__resize-control.bottom.left, .react-flow__resize-control.top.right {
  cursor: nesw-resize;
}

.react-flow__resize-control.handle {
  background-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
  border: 1px solid #fff;
  border-radius: 1px;
  width: 5px;
  height: 5px;
  translate: -50% -50%;
}

.react-flow__resize-control.handle.left {
  top: 50%;
  left: 0;
}

.react-flow__resize-control.handle.right {
  top: 50%;
  left: 100%;
}

.react-flow__resize-control.handle.top {
  top: 0;
  left: 50%;
}

.react-flow__resize-control.handle.bottom {
  top: 100%;
  left: 50%;
}

.react-flow__resize-control.handle.top.left, .react-flow__resize-control.handle.bottom.left {
  left: 0;
}

.react-flow__resize-control.handle.top.right, .react-flow__resize-control.handle.bottom.right {
  left: 100%;
}

.react-flow__resize-control.line {
  border-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
  border-style: solid;
  border-width: 0;
}

.react-flow__resize-control.line.left, .react-flow__resize-control.line.right {
  width: 1px;
  height: 100%;
  top: 0;
  transform: translate(-50%);
}

.react-flow__resize-control.line.left {
  border-left-width: 1px;
  left: 0;
}

.react-flow__resize-control.line.right {
  border-right-width: 1px;
  left: 100%;
}

.react-flow__resize-control.line.top, .react-flow__resize-control.line.bottom {
  width: 100%;
  height: 1px;
  left: 0;
  transform: translate(0, -50%);
}

.react-flow__resize-control.line.top {
  border-top-width: 1px;
  top: 0;
}

.react-flow__resize-control.line.bottom {
  border-bottom-width: 1px;
  top: 100%;
}

.react-flow__edge-textbg {
  fill: var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default));
}

.react-flow__edge-text {
  fill: var(--xy-edge-label-color, var(--xy-edge-label-color-default));
}

/* ui/src/styles/workflows.css */
.wf-page {
  --surface-1: #07070a;
  --surface-2: #0d0d14;
  --surface-3: #12121c;
  --surface-4: #1a1a28;
  --border-1: #ffffff0a;
  --border-2: #ffffff14;
  --border-3: #ffffff1f;
  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --violet-dim: #8b5cf626;
  --blue: #60a5fa;
  --blue-dim: #60a5fa1f;
  --emerald: #34d399;
  --emerald-dim: #34d3991f;
  --amber: #fbbf24;
  --amber-dim: #fbbf241f;
  --rose: #fb7185;
  --rose-dim: #fb71851f;
  --cyan: #22d3ee;
  --cyan-dim: #22d3ee1a;
  --text-1: #ffffffeb;
  --text-2: #ffffff8c;
  --text-3: #ffffff4d;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  display: flex;
  overflow: hidden;
  background: var(--surface-1);
  color: var(--text-1);
  font-family: var(--font-sans);
  flex-direction: column;
  height: 100%;
}

.wf-header {
  display: flex;
  border-bottom: 1px solid var(--border-1);
  flex-shrink: 0;
  align-items:  center;
  gap: 16px;
  padding: 16px 28px;
}

.wf-header-title {
  letter-spacing: -.02em;
  font-size: 16px;
  font-weight: 700;
}

.wf-header-count {
  color: var(--text-3);
  background: var(--surface-3);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 12px;
}

.wf-header-spacer {
  flex: 1;
}

.wf-search-wrap {
  position: relative;
}

.wf-search-wrap svg {
  position: absolute;
  opacity: .3;
  pointer-events: none;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.wf-search {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  color: var(--text-1);
  outline: none;
  font-size: 12px;
  font-family: var(--font-sans);
  border-radius: 8px;
  width: 220px;
  padding: 7px 12px 7px 32px;
  transition: border-color .15s;
}

.wf-search:focus {
  border-color: #8b5cf64d;
}

.wf-filter-btn {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-family: var(--font-sans);
  border-radius: 8px;
  align-items:  center;
  gap: 6px;
  padding: 7px 14px;
  transition: border-color .15s, color .15s;
}

.wf-filter-btn:hover {
  border-color: var(--border-2);
  color: var(--text-1);
}

.wf-filter-btn.active {
  color: var(--violet);
  background: var(--violet-dim);
  border-color: #8b5cf64d;
}

.wf-new-btn {
  color: var(--violet);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  background: #8b5cf62e;
  border: 1px solid #8b5cf64d;
  border-radius: 8px;
  align-items:  center;
  gap: 6px;
  padding: 7px 16px;
  transition: background .15s, border-color .15s;
}

.wf-new-btn:hover {
  background: #8b5cf640;
  border-color: #8b5cf666;
}

.wf-stats-bar {
  display: flex;
  background: var(--border-1);
  flex-shrink: 0;
  gap: 1px;
  padding: 0 28px;
}

.wf-stat-card {
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
  padding: 16px 20px;
}

.wf-stat-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
}

.wf-stat-value {
  letter-spacing: -.03em;
  font-size: 22px;
  font-weight: 700;
}

.wf-stat-value.violet {
  color: var(--violet);
}

.wf-stat-value.emerald {
  color: var(--emerald);
}

.wf-stat-value.blue {
  color: var(--blue);
}

.wf-stat-value.amber {
  color: var(--amber);
}

.wf-stat-sub {
  color: var(--text-3);
  font-size: 10px;
}

.wf-filter-tabs {
  display: flex;
  flex-shrink: 0;
  gap: 2px;
  padding: 12px 28px 0;
}

.wf-filter-tab {
  color: var(--text-3);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-sans);
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  padding: 6px 14px;
  transition: color .15s, border-color .15s;
}

.wf-filter-tab:hover {
  color: var(--text-2);
}

.wf-filter-tab.active {
  color: var(--violet);
  border-bottom-color: var(--violet);
}

.wf-grid-area {
  overflow-y: auto;
  flex: 1;
  padding: 20px 28px;
}

.wf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}

.wf-card {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  overflow: hidden;
  cursor: pointer;
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}

.wf-card:hover {
  border-color: #8b5cf640;
  box-shadow: 0 0 20px #8b5cf60f;
}

.wf-card-top {
  display: flex;
  align-items:  flex-start;
  gap: 12px;
  padding: 16px 18px 12px;
}

.wf-card-icon {
  display: flex;
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.wf-card-info {
  flex: 1;
  min-width: 0;
}

.wf-card-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 600;
}

.wf-card-desc {
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
  font-size: 11px;
  line-height: 1.45;
}

.wf-card-status {
  display: flex;
  text-transform: uppercase;
  letter-spacing: .05em;
  flex-shrink: 0;
  align-items:  center;
  gap: 5px;
  padding-top: 2px;
  font-size: 10px;
  font-weight: 600;
}

.wf-card-status .wf-status-dot {
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.wf-card-status.active .wf-status-dot {
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

.wf-card-status.active {
  color: var(--emerald);
}

.wf-card-status.paused .wf-status-dot {
  background: var(--amber);
}

.wf-card-status.paused {
  color: var(--amber);
}

.wf-card-status.disabled .wf-status-dot {
  background: var(--text-3);
}

.wf-card-status.disabled {
  color: var(--text-3);
}

.wf-card-status.running .wf-status-dot {
  background: var(--violet);
  box-shadow: 0 0 6px var(--violet);
  animation: wf-pulse 1.5s infinite;
}

.wf-card-status.running {
  color: var(--violet);
}

.wf-card-preview {
  display: flex;
  overflow-x: hidden;
  align-items:  center;
  gap: 4px;
  padding: 8px 18px 10px;
}

.wf-preview-node {
  display: flex;
  white-space: nowrap;
  color: #fffc;
  border-radius: 4px;
  flex-shrink: 0;
  align-items:  center;
  height: 22px;
  padding: 0 8px;
  font-size: 9px;
  font-weight: 600;
}

.wf-preview-arrow {
  color: var(--text-3);
  flex-shrink: 0;
  font-size: 10px;
}

.wf-preview-more {
  color: var(--text-3);
  flex-shrink: 0;
  padding: 0 4px;
  font-size: 9px;
}

.wf-card-footer {
  border-top: 1px solid var(--border-1);
  display: flex;
  align-items:  center;
  gap: 12px;
  padding: 10px 18px;
}

.wf-card-tags {
  display: flex;
  gap: 4px;
}

.wf-card-tag {
  background: var(--violet-dim);
  color: #8b5cf6b3;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 500;
}

.wf-card-meta {
  color: var(--text-3);
  display: flex;
  align-items:  center;
  gap: 4px;
  font-size: 10px;
}

.wf-card-meta svg {
  opacity: .4;
}

.wf-card-footer-spacer {
  flex: 1;
}

.wf-card-action {
  border: 1px solid var(--border-1);
  background: var(--surface-3);
  display: flex;
  cursor: pointer;
  color: var(--text-2);
  border-radius: 6px;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
  padding: 0;
  transition: all .15s;
}

.wf-card-action:hover {
  border-color: var(--border-2);
  color: var(--text-1);
  background: var(--surface-4);
}

.wf-card-action.run:hover {
  color: var(--emerald);
  border-color: #34d3994d;
}

.wf-card-action.danger:hover {
  color: var(--rose);
  border-color: #fb71854d;
}

.wf-empty {
  display: flex;
  color: var(--text-2);
  position: relative;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items:  center;
  gap: 16px;
}

.wf-empty-icon {
  background: var(--violet-dim);
  display: flex;
  animation: wf-breathe 3s ease-in-out infinite;
  border-radius: 16px;
  justify-content: center;
  align-items:  center;
  width: 64px;
  height: 64px;
  font-size: 28px;
}

.wf-empty-title {
  color: var(--text-1);
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.wf-empty-desc {
  color: var(--text-3);
  margin: 0;
  font-size: 12px;
}

.wf-empty-cta {
  color: var(--violet);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  background: #8b5cf62e;
  border: 1px solid #8b5cf64d;
  border-radius: 8px;
  align-items:  center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 24px;
  transition: background .15s;
}

.wf-empty-cta:hover {
  background: #8b5cf640;
}

.wf-loading {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items:  center;
  gap: 12px;
}

.wf-loading-orb {
  background: var(--violet-dim);
  animation: wf-pulse 1.5s ease-in-out infinite;
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

.wf-loading-text {
  color: var(--text-3);
  font-size: 12px;
}

.wf-canvas-header {
  display: flex;
  border-bottom: 1px solid var(--border-1);
  flex-shrink: 0;
  align-items:  center;
  gap: 12px;
  padding: 12px 20px;
}

.wf-back-btn {
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-family: var(--font-sans);
  background: none;
  border: none;
  border-radius: 6px;
  align-items:  center;
  gap: 4px;
  padding: 4px 8px;
  transition: background .15s, color .15s;
}

.wf-back-btn:hover {
  background: var(--surface-3);
  color: var(--text-1);
}

.wf-canvas-divider {
  background: var(--border-2);
  width: 1px;
  height: 16px;
}

.wf-canvas-title {
  font-size: 15px;
  font-weight: 700;
}

.wf-canvas-badge {
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
}

.wf-canvas-badge.active {
  background: var(--emerald-dim);
  color: var(--emerald);
}

.wf-canvas-badge.paused {
  background: var(--amber-dim);
  color: var(--amber);
}

.wf-canvas-badge.disabled {
  color: var(--text-3);
  background: #ffffff0d;
}

.wf-canvas-spacer {
  flex: 1;
}

.wf-canvas-actions {
  display: flex;
  gap: 6px;
}

.wf-canvas-btn {
  border: 1px solid var(--border-2);
  background: var(--surface-3);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: 7px;
  align-items:  center;
  gap: 5px;
  padding: 6px 14px;
  transition: color .15s, border-color .15s;
}

.wf-canvas-btn:hover {
  color: var(--text-1);
  border-color: var(--border-3);
}

.wf-canvas-btn.primary {
  color: var(--violet);
  background: #8b5cf62e;
  border-color: #8b5cf64d;
}

.wf-canvas-btn.primary:hover {
  background: #8b5cf640;
}

.wf-canvas-layout {
  display: flex;
  overflow: hidden;
  flex: 1;
}

.wf-palette {
  border-right: 1px solid var(--border-1);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  width: 240px;
  min-width: 240px;
}

.wf-palette-header {
  display: flex;
  border-bottom: 1px solid var(--border-1);
  justify-content: space-between;
  align-items:  center;
  padding: 12px 14px;
}

.wf-palette-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
}

.wf-palette-collapse {
  border: 1px solid var(--border-1);
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  background: none;
  border-radius: 4px;
  justify-content: center;
  align-items:  center;
  width: 22px;
  height: 22px;
  padding: 0;
  transition: color .15s, border-color .15s;
  font-size: 10px;
}

.wf-palette-collapse:hover {
  color: var(--text-2);
  border-color: var(--border-2);
}

.wf-palette-search {
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  color: var(--text-1);
  outline: none;
  font-size: 11px;
  font-family: var(--font-sans);
  border-radius: 6px;
  margin: 10px 12px;
  padding: 6px 10px;
  transition: border-color .15s;
}

.wf-palette-search:focus {
  border-color: #8b5cf64d;
}

.wf-palette-scroll {
  overflow-y: auto;
  flex: 1;
  padding: 0 0 12px;
}

.wf-palette-category {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  display: flex;
  cursor: pointer;
  user-select: none;
  justify-content: space-between;
  align-items:  center;
  padding: 8px 14px 4px;
  font-size: 9px;
  font-weight: 700;
}

.wf-palette-category:hover {
  color: var(--text-2);
}

.wf-palette-node {
  display: flex;
  cursor: grab;
  align-items:  center;
  gap: 10px;
  padding: 7px 14px;
  transition: background .1s;
}

.wf-palette-node:hover {
  background: #ffffff08;
}

.wf-palette-node:active {
  cursor: grabbing;
}

.wf-palette-node-icon {
  display: flex;
  border-radius: 7px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
  font-size: 13px;
}

.wf-palette-node-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}

.wf-palette-empty {
  text-align: center;
  color: var(--text-3);
  padding: 20px;
  font-size: 12px;
}

.wf-palette-collapsed {
  border-right: 1px solid var(--border-1);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items:  center;
  width: 32px;
  min-width: 32px;
  padding-top: 8px;
}

.wf-palette-expand {
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  border-radius: 4px;
  justify-content: center;
  align-items:  center;
  width: 24px;
  height: 24px;
  padding: 0;
  transition: color .15s, border-color .15s;
  font-size: 10px;
}

.wf-palette-expand:hover {
  color: var(--text-2);
  border-color: var(--border-2);
}

.wf-canvas-center {
  position: relative;
  overflow: hidden;
  flex: 1;
}

.wf-canvas-center .react-flow__controls {
  background: var(--surface-2) !important;
  border: 1px solid var(--border-1) !important;
  box-shadow: none !important;
  border-radius: 8px !important;
}

.wf-canvas-center .react-flow__controls-button {
  background: var(--surface-2) !important;
  border-color: var(--border-1) !important;
  fill: var(--text-2) !important;
}

.wf-canvas-center .react-flow__controls-button:hover {
  background: var(--surface-3) !important;
  fill: var(--text-1) !important;
}

.wf-canvas-center .react-flow__minimap {
  background: var(--surface-2) !important;
  border: 1px solid var(--border-1) !important;
  border-radius: 8px !important;
}

.wf-right-panel {
  border-left: 1px solid var(--border-1);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  width: 300px;
  min-width: 300px;
}

.wf-panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-1);
  flex-shrink: 0;
  align-items:  center;
}

.wf-panel-tab {
  text-align: center;
  color: var(--text-3);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-sans);
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  flex: 1;
  padding: 10px 0;
  transition: all .15s;
}

.wf-panel-tab:hover {
  color: var(--text-2);
}

.wf-panel-tab.active {
  color: var(--violet);
  border-bottom-color: var(--violet);
}

.wf-panel-collapse {
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  border-radius: 4px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 22px;
  height: 22px;
  margin: 4px;
  padding: 0;
  transition: color .15s;
  font-size: 10px;
}

.wf-panel-collapse:hover {
  color: var(--text-2);
}

.wf-panel-body {
  overflow-y: auto;
  flex: 1;
  padding: 16px;
}

.wf-panel-section {
  margin-bottom: 16px;
}

.wf-panel-section-label {
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-3);
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 600;
}

.wf-panel-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.wf-panel-field label {
  color: var(--text-2);
  font-size: 11px;
  font-weight: 500;
}

.wf-panel-input {
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  color: var(--text-1);
  outline: none;
  font-size: 12px;
  font-family: var(--font-sans);
  box-sizing: border-box;
  border-radius: 6px;
  width: 100%;
  padding: 7px 10px;
  transition: border-color .15s;
}

.wf-panel-input:focus {
  border-color: #8b5cf64d;
}

.wf-panel-input.mono {
  font-family: var(--font-mono);
  font-size: 11px;
}

.wf-panel-placeholder {
  color: var(--text-3);
  text-align: center;
  padding: 20px;
  font-size: 12px;
}

.wf-panel-node-header {
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-bottom: 16px;
}

.wf-panel-node-icon {
  display: flex;
  border-radius: 7px;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
  font-size: 13px;
}

.wf-panel-node-name {
  font-size: 13px;
  font-weight: 600;
}

.wf-panel-node-type {
  color: var(--text-3);
  font-size: 10px;
}

.wf-panel-divider {
  background: var(--border-1);
  height: 1px;
  margin-bottom: 16px;
}

.wf-panel-node-id {
  color: var(--text-3);
  margin-top: 8px;
  font-size: 9px;
}

.wf-panel-collapsed {
  border-left: 1px solid var(--border-1);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items:  center;
  width: 32px;
  min-width: 32px;
  padding-top: 8px;
}

.wf-exec-card {
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  overflow: hidden;
  border-radius: 6px;
}

.wf-exec-header {
  display: flex;
  cursor: pointer;
  justify-content: space-between;
  align-items:  center;
  padding: 8px 12px;
  transition: background .1s;
  font-size: 12px;
}

.wf-exec-header:hover {
  background: #ffffff05;
}

.wf-exec-header-left, .wf-exec-header-right {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.wf-exec-status-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.wf-exec-status-dot.running {
  animation: wf-pulse 1.5s infinite;
}

.wf-exec-version {
  color: var(--text-1);
  font-weight: 500;
}

.wf-exec-trigger, .wf-exec-duration {
  color: var(--text-3);
  font-size: 11px;
}

.wf-exec-expand-icon {
  color: var(--text-3);
  font-size: 10px;
}

.wf-exec-steps {
  border-top: 1px solid var(--border-1);
  padding: 8px 12px;
}

.wf-exec-step {
  display: flex;
  align-items:  center;
  gap: 8px;
  padding: 4px 0;
  font-size: 11px;
}

.wf-exec-step-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.wf-exec-step-name {
  color: var(--text-1);
  flex: 1;
}

.wf-exec-step-type {
  color: var(--text-3);
}

.wf-exec-step-retry {
  color: var(--amber);
  font-size: 10px;
}

.wf-exec-step-error {
  color: var(--rose);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
  font-size: 10px;
}

.wf-exec-error-banner {
  border-top: 1px solid var(--border-1);
  color: var(--rose);
  background: #fb71850d;
  padding: 6px 12px;
  font-size: 11px;
}

.wf-version-card {
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  border-radius: 6px;
  padding: 10px 12px;
}

.wf-version-header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
}

.wf-version-badge {
  color: var(--text-1);
  font-size: 12px;
  font-weight: 600;
}

.wf-version-badge.latest {
  background: var(--violet-dim);
  border-radius: 4px;
  padding: 1px 6px;
}

.wf-version-latest-label {
  color: var(--violet);
  margin-left: 4px;
  font-size: 10px;
}

.wf-version-date {
  color: var(--text-3);
  font-size: 10px;
}

.wf-version-changelog {
  color: var(--text-2);
  margin-top: 4px;
  font-size: 11px;
}

.wf-version-stats {
  color: var(--text-3);
  margin-top: 4px;
  font-size: 10px;
}

.wf-version-diff-btn {
  border: 1px solid var(--border-1);
  color: var(--violet);
  cursor: pointer;
  font-size: 10px;
  font-family: var(--font-sans);
  background: none;
  border-radius: 4px;
  margin-top: 6px;
  padding: 2px 8px;
  transition: border-color .15s;
}

.wf-version-diff-btn:hover {
  border-color: #8b5cf64d;
}

.wf-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.wf-chat-header {
  border-bottom: 1px solid var(--border-1);
  color: var(--text-1);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
}

.wf-chat-messages {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 8px;
}

.wf-chat-empty {
  text-align: center;
  color: var(--text-3);
  padding: 16px;
  font-size: 11px;
}

.wf-chat-hint-btn {
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  color: var(--text-2);
  cursor: pointer;
  text-align: left;
  font-size: 10px;
  font-family: var(--font-sans);
  border-radius: 4px;
  width: 100%;
  padding: 4px 8px;
  transition: border-color .15s;
}

.wf-chat-hint-btn:hover {
  border-color: var(--border-2);
}

.wf-chat-msg {
  border-radius: 8px;
  max-width: 85%;
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1.4;
}

.wf-chat-msg.user {
  background: var(--violet-dim);
  color: var(--violet-bright);
  border: 1px solid #8b5cf633;
  align-self:  flex-end;
}

.wf-chat-msg.assistant {
  background: var(--surface-3);
  color: var(--text-1);
  border: 1px solid var(--border-1);
  align-self:  flex-start;
}

.wf-chat-msg.thinking {
  background: var(--surface-3);
  color: var(--text-3);
  border: 1px solid var(--border-1);
  align-self:  flex-start;
}

.wf-chat-input-area {
  border-top: 1px solid var(--border-1);
  display: flex;
  gap: 6px;
  padding: 8px;
}

.wf-chat-input {
  border: 1px solid var(--border-1);
  background: var(--surface-3);
  color: var(--text-1);
  outline: none;
  font-size: 11px;
  font-family: var(--font-sans);
  border-radius: 6px;
  flex: 1;
  padding: 6px 10px;
  transition: border-color .15s;
}

.wf-chat-input:focus {
  border-color: #8b5cf64d;
}

.wf-chat-send {
  background: var(--violet);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-family: var(--font-sans);
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  transition: opacity .15s;
}

.wf-chat-send:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.wf-node {
  background: var(--surface-2, #0d0d14);
  border: 1.5px solid var(--border-2, #ffffff14);
  overflow: hidden;
  border-radius: 10px;
  min-width: 170px;
  transition: border-color .15s, box-shadow .15s;
}

.wf-node.selected {
  border-color: #8b5cf680;
  box-shadow: 0 0 0 3px #8b5cf61f;
}

.wf-node-header {
  display: flex;
  border-bottom: 1px solid var(--border-1, #ffffff0a);
  align-items:  center;
  gap: 8px;
  padding: 8px 12px;
}

.wf-node-header-icon {
  display: flex;
  border-radius: 6px;
  justify-content: center;
  align-items:  center;
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.wf-node-header-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-1, #ffffffeb);
  flex: 1;
  font-size: 12px;
  font-weight: 600;
}

.wf-node-header-status {
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.wf-node-header-status.running {
  animation: wf-pulse 1.5s infinite;
}

.wf-node-body {
  padding: 8px 12px 10px;
}

.wf-node-field {
  color: var(--text-2, #ffffff8c);
  display: flex;
  gap: 6px;
  font-size: 10px;
  line-height: 1.4;
}

.wf-node-field-key {
  color: var(--text-3, #ffffff4d);
  min-width: 40px;
}

.wf-node-field-overflow {
  color: var(--text-3, #ffffff4d);
  font-size: 10px;
  font-style: italic;
}

@keyframes wf-pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

@keyframes wf-breathe {
  0%, 100% {
    transform: scale(1);
    opacity: .8;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* ui/src/styles/goals.css */
.goals-page {
  --surface-1: #07070a;
  --surface-2: #131319;
  --surface-3: #1a1a22;
  --surface-4: #22222e;
  --border-1: #ffffff0a;
  --border-2: #ffffff12;
  --border-3: #ffffff1f;
  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --violet-glow: #8b5cf633;
  --violet-dim: #8b5cf62e;
  --violet-mid: #8b5cf661;
  --emerald: #34d399;
  --rose: #fb7185;
  --blue: #60a5fa;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --text-1: #ffffffe0;
  --text-2: #ffffff7a;
  --text-3: #ffffff40;
  --font-sans: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  display: flex;
  overflow: hidden;
  background: var(--surface-1);
  color: var(--text-1);
  font-family: var(--font-sans);
  position: relative;
  flex-direction: column;
  height: 100%;
}

@keyframes goals-materialize {
  from {
    opacity: 0;
    transform: translateY(8px)scale(.96);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0)scale(1);
    filter: blur(0);
  }
}

@keyframes goals-pulseRing {
  0% {
    box-shadow: 0 0 #8b5cf680;
  }

  70% {
    box-shadow: 0 0 0 12px #8b5cf600;
  }

  100% {
    box-shadow: 0 0 #8b5cf600;
  }
}

@keyframes goals-dashScroll {
  to {
    stroke-dashoffset: -20;
  }
}

@keyframes goals-healthPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .5;
    transform: scale(.85);
  }
}

@keyframes goals-arcGrow {
  from {
    stroke-dashoffset: 220;
  }

  to {
    stroke-dashoffset: var(--arc-offset, 0);
  }
}

@keyframes goals-slideInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes goals-fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes goals-emptyOrb {
  0%, 100% {
    transform: translateY(0)scale(1);
    opacity: .9;
  }

  50% {
    transform: translateY(-6px)scale(1.04);
    opacity: 1;
  }
}

@keyframes goals-gentleFloat {
  0%, 100% {
    transform: scale(1)rotate(0);
  }

  50% {
    transform: scale(1.04)rotate(180deg);
  }
}

@keyframes goals-sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0)rotate(0);
  }

  50% {
    opacity: 1;
    transform: scale(1)rotate(180deg);
  }
}

@keyframes goals-shimmer {
  from {
    background-position: -200%;
  }

  to {
    background-position: 200%;
  }
}

@keyframes goals-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes goals-loadingPulse {
  0%, 100% {
    opacity: .4;
    transform: scale(.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.goals-atmos {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  inset: 0;
}

.goals-atmos-aurora {
  position: absolute;
  filter: blur(40px);
  background: radial-gradient(#8b5cf614 0%, #3b82f60a 40%, #0000 70%);
  border-radius: 50%;
  width: 900px;
  height: 500px;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
}

.goals-atmos-dots {
  position: absolute;
  background-image: radial-gradient(#ffffff0a 1px, #0000 1px);
  background-size: 32px 32px;
  inset: 0;
}

.goals-header {
  display: flex;
  border-bottom: 1px solid var(--border-1);
  background: var(--surface-2);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  align-items:  center;
  gap: 12px;
  padding: 16px 24px;
}

.goals-orb {
  display: flex;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 34px;
  height: 34px;
  box-shadow: 0 0 16px #8b5cf666;
}

.goals-orb svg {
  color: #fff;
  width: 18px;
  height: 18px;
}

.goals-title {
  color: #ffffffeb;
  letter-spacing: -.01em;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.goals-subtitle {
  color: #ffffff61;
  margin-top: 2px;
  font-size: 12px;
}

.goals-view-tabs {
  display: flex;
  border: 1px solid var(--border-1);
  background: #ffffff0a;
  border-radius: 8px;
  gap: 2px;
  margin-left: 16px;
  padding: 3px;
}

.goals-view-tab {
  color: #ffffff73;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  transition: all .15s;
  font-size: 12px;
  font-weight: 500;
}

.goals-view-tab:hover {
  color: #ffffffb3;
  background: #ffffff0d;
}

.goals-view-tab.active {
  color: #ffffffe6;
  background: #8b5cf638;
}

.goals-spacer {
  flex: 1;
}

.goals-search-btn, .goals-filter-btn {
  border: 1px solid var(--border-1);
  display: flex;
  cursor: pointer;
  color: #ffffff80;
  background: #ffffff0a;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 32px;
  height: 32px;
  transition: all .15s;
}

.goals-search-btn:hover, .goals-filter-btn:hover {
  border-color: var(--border-2);
  color: #fffc;
  background: #ffffff14;
}

.goals-new-btn {
  display: flex;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border: none;
  border-radius: 8px;
  flex-shrink: 0;
  align-items:  center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  transition: all .15s;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px #8b5cf659;
}

.goals-new-btn:hover {
  background: linear-gradient(135deg, #9d6ff8 0%, #8b5cf6 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px #8b5cf680;
}

.goals-body {
  display: flex;
  overflow: hidden;
  position: relative;
  z-index: 1;
  flex: 1;
}

.goals-content {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.goals-canvas-wrap {
  position: relative;
  overflow: hidden;
  flex: 1;
}

.goals-canvas {
  position: relative;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  width: 100%;
  height: 100%;
}

.goals-canvas-layer {
  position: absolute;
  will-change: transform;
  width: 100%;
  height: 100%;
  inset: 0;
}

.goals-svg-overlay, .goals-canvas-svg {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
  top: 0;
  left: 0;
}

.goals-connection {
  stroke: #8b5cf638;
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 5 4;
  animation: goals-dashScroll 3s linear infinite;
}

.goals-connection.active {
  stroke: #8b5cf680;
  stroke-width: 2;
}

.goals-node {
  position: absolute;
  display: flex;
  cursor: pointer;
  z-index: 2;
  animation: goals-materialize .35s ease both;
  flex-direction: column;
  align-items:  center;
}

.goals-node-circle {
  position: relative;
  display: flex;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  transition: box-shadow .2s, transform .2s;
}

.goals-node-obj .goals-node-circle {
  background: radial-gradient(circle at 35% 35%, #8b5cf680, #6d28d938);
  border: 1.5px solid #8b5cf699;
  box-shadow: 0 0 0 6px #8b5cf61a, 0 0 28px #8b5cf659, inset 0 0 12px #8b5cf626;
}

.goals-node-kr .goals-node-circle {
  background: radial-gradient(circle at 35% 35%, #60a5fa73, #3b82f62e);
  border: 1.5px solid #60a5fa8c;
  box-shadow: 0 0 0 5px #60a5fa14, 0 0 22px #60a5fa4d, inset 0 0 10px #60a5fa1f;
}

.goals-node-ms .goals-node-circle {
  background: radial-gradient(circle at 35% 35%, #34d3996b, #10b98129);
  border: 1.5px solid #34d39980;
  box-shadow: 0 0 0 4px #34d39912, 0 0 18px #34d39940, inset 0 0 8px #34d3991a;
}

.goals-node-task .goals-node-circle {
  background: radial-gradient(circle at 35% 35%, #fbbf2466, #f59e0b26);
  border: 1px solid #fbbf2480;
  box-shadow: 0 0 0 3px #fbbf240f, 0 0 14px #fbbf2438, inset 0 0 6px #fbbf2414;
}

.goals-node-daily .goals-node-circle {
  background: radial-gradient(circle at 35% 35%, #22d3ee66, #06b6d426);
  border: 1px solid #22d3ee7a;
  box-shadow: 0 0 0 3px #22d3ee0f, 0 0 12px #22d3ee33, inset 0 0 6px #22d3ee14;
}

.goals-node:hover .goals-node-circle {
  filter: brightness(1.15);
  transform: scale(1.1);
}

.goals-node.selected .goals-node-circle {
  animation: goals-pulseRing 1.8s ease-out infinite;
}

.goals-node.selected.goals-node-obj .goals-node-circle {
  box-shadow: 0 0 0 8px #8b5cf626, 0 0 36px #8b5cf680, inset 0 0 12px #8b5cf626;
}

.goals-node.selected.goals-node-kr .goals-node-circle {
  box-shadow: 0 0 0 6px #60a5fa26, 0 0 28px #60a5fa73, inset 0 0 10px #60a5fa1f;
}

.goals-node-score {
  color: #ffffffe6;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  line-height: 1;
}

.goals-node-obj .goals-node-score {
  font-size: 15px;
}

.goals-node-kr .goals-node-score {
  font-size: 12px;
}

.goals-node-ms .goals-node-score {
  font-size: 10px;
}

.goals-node-task .goals-node-score, .goals-node-daily .goals-node-score {
  display: none;
}

.goals-node-label {
  color: #fff9;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.goals-node-obj .goals-node-label {
  max-width: 120px;
  font-size: 12px;
  font-weight: 600;
}

.goals-node-kr .goals-node-label {
  max-width: 90px;
}

.goals-node-ms .goals-node-label {
  max-width: 80px;
}

.goals-node-task .goals-node-label, .goals-node-daily .goals-node-label {
  max-width: 70px;
  font-size: 10px;
}

.goals-node-health {
  position: absolute;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  bottom: 3px;
  right: 3px;
}

.goals-node-health.healthy {
  background: var(--emerald);
  animation: none;
}

.goals-node-health.warning {
  background: var(--amber);
  animation: goals-healthPulse 2s ease-in-out infinite;
}

.goals-node-health.critical {
  background: var(--rose);
  animation: goals-healthPulse 1.2s ease-in-out infinite;
}

.goals-legend {
  position: absolute;
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  backdrop-filter: blur(12px);
  z-index: 10;
  display: flex;
  animation: goals-materialize .3s ease both;
  animation-delay: .2s;
  opacity: 0;
  border-radius: 12px;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  bottom: 20px;
  left: 20px;
}

.goals-legend-item {
  display: flex;
  color: #ffffff8c;
  align-items:  center;
  gap: 8px;
  font-size: 11px;
}

.goals-legend-dot {
  border: 1.5px solid;
  border-radius: 50%;
  flex-shrink: 0;
}

.goals-legend-dot.obj {
  background: #8b5cf64d;
  border-color: #8b5cf699;
  width: 14px;
  height: 14px;
}

.goals-legend-dot.kr {
  background: #3b82f647;
  border-color: #3b82f68c;
  width: 11px;
  height: 11px;
}

.goals-legend-dot.ms {
  background: #06b6d442;
  border-color: #06b6d480;
  width: 9px;
  height: 9px;
}

.goals-legend-dot.task {
  background: #22c55e3d;
  border-color: #22c55e7a;
  width: 7px;
  height: 7px;
}

.goals-legend-dot.daily {
  background: #f59e0b3d;
  border-color: #f59e0b73;
  width: 6px;
  height: 6px;
}

.goals-minimap {
  position: absolute;
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  overflow: hidden;
  backdrop-filter: blur(12px);
  z-index: 10;
  animation: goals-materialize .3s ease both;
  animation-delay: .25s;
  opacity: 0;
  border-radius: 12px;
  width: 160px;
  height: 100px;
  bottom: 20px;
  right: 20px;
}

.goals-minimap-label {
  position: absolute;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #ffffff4d;
  font-size: 9px;
  font-weight: 600;
  top: 6px;
  left: 8px;
}

.goals-minimap-viewport {
  position: absolute;
  pointer-events: none;
  background: #8b5cf60f;
  border: 1px solid #8b5cf680;
  border-radius: 2px;
}

.goals-zoom {
  position: absolute;
  display: flex;
  z-index: 10;
  flex-direction: column;
  gap: 4px;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.goals-zoom-btn {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  color: #ffffff8c;
  display: flex;
  cursor: pointer;
  backdrop-filter: blur(8px);
  border-radius: 7px;
  justify-content: center;
  align-items:  center;
  width: 30px;
  height: 30px;
  transition: all .15s;
  font-size: 16px;
  line-height: 1;
}

.goals-zoom-btn:hover {
  border-color: var(--border-2);
  color: #ffffffd9;
  background: #ffffff14;
}

.goals-zoom-level {
  text-align: center;
  font-size: 10px;
  font-family: var(--font-mono);
  color: #ffffff59;
  padding: 2px 0;
}

.goals-detail {
  background: var(--surface-2);
  border-left: 1px solid var(--border-2);
  display: flex;
  overflow: hidden;
  position: relative;
  z-index: 5;
  animation: goals-slideInRight .25s ease both;
  flex-direction: column;
  flex-shrink: 0;
  width: 360px;
}

.goals-detail-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}

.goals-detail-top {
  border-bottom: 1px solid var(--border-1);
  position: relative;
  padding: 18px 20px 14px;
}

.goals-detail-level-badge {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 5px;
  align-items:  center;
  gap: 5px;
  margin-bottom: 10px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
}

.goals-detail-level-badge.obj {
  color: var(--violet-bright);
  background: #8b5cf629;
  border: 1px solid #8b5cf647;
}

.goals-detail-level-badge.kr {
  color: var(--blue);
  background: #60a5fa29;
  border: 1px solid #60a5fa47;
}

.goals-detail-level-badge.ms {
  color: var(--cyan);
  background: #22d3ee29;
  border: 1px solid #22d3ee47;
}

.goals-detail-level-badge.task {
  color: var(--emerald);
  background: #34d39929;
  border: 1px solid #34d39947;
}

.goals-detail-level-badge.daily {
  color: var(--amber);
  background: #fbbf2429;
  border: 1px solid #fbbf2447;
}

.goals-detail-close {
  position: absolute;
  border: 1px solid var(--border-1);
  color: #fff6;
  display: flex;
  cursor: pointer;
  background: #ffffff0a;
  border-radius: 6px;
  justify-content: center;
  align-items:  center;
  width: 26px;
  height: 26px;
  transition: all .15s;
  font-size: 14px;
  top: 16px;
  right: 16px;
}

.goals-detail-close:hover {
  color: #ffffffbf;
  background: #ffffff14;
}

.goals-detail-title {
  color: #ffffffe6;
  letter-spacing: -.01em;
  padding-right: 36px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.goals-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.goals-meta-badge {
  display: inline-flex;
  border: 1px solid var(--border-1);
  color: #ffffff8c;
  background: #ffffff0d;
  border-radius: 5px;
  align-items:  center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
}

.goals-meta-badge.health-healthy {
  color: var(--emerald);
  background: #34d3991a;
  border-color: #34d39940;
}

.goals-meta-badge.health-warning {
  color: var(--amber);
  background: #fbbf241a;
  border-color: #fbbf2440;
}

.goals-meta-badge.health-critical {
  color: var(--rose);
  background: #fb71851a;
  border-color: #fb718540;
}

.goals-meta-badge.status-active {
  color: #a78bfa;
  background: #8b5cf61f;
  border-color: #8b5cf647;
}

.goals-meta-badge.status-paused {
  color: #94a3b8;
  background: #64748b1f;
  border-color: #64748b40;
}

.goals-meta-badge.status-done {
  color: var(--emerald);
  background: #34d3991f;
  border-color: #34d39947;
}

.goals-score-section {
  border-bottom: 1px solid var(--border-1);
  display: flex;
  align-items:  center;
  gap: 18px;
  padding: 18px 20px;
}

.goals-score-ring-wrap {
  position: relative;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
}

.goals-score-ring-svg {
  width: 70px;
  height: 70px;
  transform: rotate(-90deg);
}

.goals-score-ring-bg {
  fill: none;
  stroke: #ffffff0f;
  stroke-width: 5;
}

.goals-score-ring-fill {
  fill: none;
  stroke: var(--violet-bright);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 220;
  animation: goals-arcGrow 1s cubic-bezier(.34, 1.56, .64, 1) both;
  animation-delay: .1s;
}

.goals-score-ring-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.goals-score-num {
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: #ffffffeb;
  line-height: 1;
}

.goals-score-pct {
  color: #ffffff61;
  margin-top: 1px;
  font-size: 10px;
  line-height: 1;
}

.goals-score-meta {
  flex: 1;
}

.goals-score-label {
  color: #fff6;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
}

.goals-score-trend {
  display: flex;
  align-items:  center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
}

.goals-score-trend.up {
  color: var(--emerald);
}

.goals-score-trend.down {
  color: var(--rose);
}

.goals-score-trend.flat {
  color: #fff6;
}

.goals-score-since {
  color: #ffffff59;
  margin-top: 2px;
  font-size: 11px;
}

.goals-detail-section {
  border-bottom: 1px solid var(--border-1);
  position: relative;
  padding: 14px 20px;
}

.goals-detail-section-header {
  display: flex;
  cursor: pointer;
  user-select: none;
  align-items:  center;
  gap: 6px;
  margin-bottom: 12px;
}

.goals-detail-section-title {
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #fff6;
  flex: 1;
  font-size: 11px;
  font-weight: 600;
}

.goals-detail-section-toggle {
  color: #ffffff40;
  transition: transform .15s;
  font-size: 11px;
}

.goals-detail-section.collapsed .goals-detail-section-toggle {
  transform: rotate(-90deg);
}

.goals-children-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.goals-child-item {
  display: flex;
  border: 1px solid var(--border-1);
  cursor: pointer;
  background: #ffffff08;
  border-radius: 8px;
  align-items:  center;
  gap: 10px;
  padding: 8px 10px;
  transition: all .15s;
}

.goals-child-item:hover {
  border-color: var(--border-2);
  background: #ffffff0f;
}

.goals-child-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.goals-child-dot.kr {
  background: #3b82f6b3;
  box-shadow: 0 0 6px #3b82f666;
}

.goals-child-dot.ms {
  background: #06b6d4b3;
  box-shadow: 0 0 6px #06b6d466;
}

.goals-child-dot.task {
  background: #22c55eb3;
  box-shadow: 0 0 6px #22c55e66;
}

.goals-child-dot.daily {
  background: #f59e0bb3;
  box-shadow: 0 0 6px #f59e0b66;
}

.goals-child-name {
  color: #ffffffb3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  font-size: 12px;
}

.goals-child-score {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #ffffff8c;
  flex-shrink: 0;
  font-weight: 600;
}

.goals-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.goals-history-item {
  display: flex;
  gap: 10px;
}

.goals-history-line {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items:  center;
  gap: 0;
}

.goals-history-dot {
  background: var(--violet-bright);
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 4px;
}

.goals-history-connector {
  background: var(--border-1);
  flex: 1;
  width: 1px;
  min-height: 14px;
}

.goals-history-content {
  flex: 1;
  padding-bottom: 8px;
}

.goals-history-score {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: #fffc;
}

.goals-history-delta {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 500;
}

.goals-history-delta.pos {
  color: var(--emerald);
}

.goals-history-delta.neg {
  color: var(--rose);
}

.goals-history-reason {
  color: #ffffff73;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.4;
}

.goals-history-date {
  color: #ffffff47;
  margin-top: 2px;
  font-size: 10px;
}

.goals-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.goals-detail-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.goals-detail-field-label {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #ffffff4d;
  font-size: 10px;
  font-weight: 600;
}

.goals-detail-field-value {
  color: #ffffffb3;
  font-size: 12px;
}

.goals-editable-input, .goals-editable-textarea, .goals-editable-select {
  border: 1px solid var(--border-1);
  color: #fffc;
  font-family: var(--font-sans);
  outline: none;
  -webkit-appearance: none;
  background: #ffffff0a;
  border-radius: 6px;
  width: 100%;
  padding: 6px 10px;
  transition: border-color .15s;
  font-size: 12px;
}

.goals-editable-input:focus, .goals-editable-textarea:focus, .goals-editable-select:focus {
  background: #8b5cf60d;
  border-color: #8b5cf68c;
}

.goals-editable-textarea {
  resize: vertical;
  min-height: 64px;
  line-height: 1.5;
}

.goals-editable-select {
  cursor: pointer;
}

.goals-score-update {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.goals-score-slider-wrap {
  display: flex;
  align-items:  center;
  gap: 10px;
}

.goals-score-slider {
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
  background: #ffffff1a;
  border-radius: 2px;
  flex: 1;
  height: 4px;
}

.goals-score-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: var(--violet-bright);
  cursor: pointer;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  transition: box-shadow .15s;
  box-shadow: 0 0 8px #8b5cf680;
}

.goals-score-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 14px #8b5cf6b3;
}

.goals-score-slider-val {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--violet-bright);
  text-align: center;
  width: 32px;
}

.goals-score-reason-input {
  border: 1px solid var(--border-1);
  color: #ffffffb3;
  font-family: var(--font-sans);
  outline: none;
  box-sizing: border-box;
  background: #ffffff0a;
  border-radius: 6px;
  width: 100%;
  padding: 6px 10px;
  transition: border-color .15s;
  font-size: 12px;
}

.goals-score-reason-input::placeholder {
  color: #ffffff40;
}

.goals-score-reason-input:focus {
  border-color: #8b5cf68c;
}

.goals-score-submit-btn {
  color: #a78bfa;
  cursor: pointer;
  background: #8b5cf633;
  border: 1px solid #8b5cf659;
  border-radius: 7px;
  width: 100%;
  padding: 7px;
  transition: all .15s;
  font-size: 12px;
  font-weight: 600;
}

.goals-score-submit-btn:hover {
  color: #c4b5fd;
  background: #8b5cf652;
  border-color: #8b5cf68c;
}

.goals-parent-link {
  display: flex;
  border: 1px solid var(--border-1);
  cursor: pointer;
  color: #fff9;
  background: #ffffff08;
  border-radius: 8px;
  align-items:  center;
  gap: 8px;
  padding: 8px 10px;
  transition: all .15s;
  font-size: 12px;
}

.goals-parent-link:hover {
  color: #a78bfa;
  background: #8b5cf614;
  border-color: #8b5cf64d;
}

.goals-danger-zone {
  padding: 14px 20px 20px;
}

.goals-delete-btn {
  color: #fb7185b3;
  cursor: pointer;
  background: #fb718514;
  border: 1px solid #fb718533;
  border-radius: 8px;
  width: 100%;
  padding: 8px;
  transition: all .15s;
  font-size: 12px;
  font-weight: 500;
}

.goals-delete-btn:hover {
  color: var(--rose);
  background: #fb718529;
  border-color: #fb718566;
}

.goals-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding: 0 20px 14px;
}

.goals-meta-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.goals-detail-section-label {
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #fff6;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
}

.goals-detail-text {
  color: #ffffffbf;
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: 6px;
  padding: 6px 8px;
  transition: all .15s;
  font-size: 13px;
  line-height: 1.55;
}

.goals-detail-text:hover {
  border-color: var(--border-1);
  background: #ffffff08;
}

.goals-detail-text.empty {
  color: #ffffff40;
  font-style: italic;
}

.goals-edit-input {
  color: #ffffffe6;
  font-family: var(--font-sans);
  outline: none;
  box-sizing: border-box;
  background: #ffffff0a;
  border: 1px solid #8b5cf673;
  border-radius: 6px;
  width: 100%;
  padding: 6px 10px;
  font-size: 15px;
  font-weight: 600;
}

.goals-edit-textarea {
  color: #fffc;
  font-family: var(--font-sans);
  outline: none;
  resize: vertical;
  box-sizing: border-box;
  background: #ffffff0a;
  border: 1px solid #8b5cf673;
  border-radius: 6px;
  width: 100%;
  min-height: 64px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.5;
}

.goals-score-info {
  flex: 1;
  min-width: 0;
}

.goals-score-value {
  font-size: 22px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: #ffffffe6;
  cursor: pointer;
  line-height: 1;
}

.goals-score-value:hover {
  color: var(--violet-bright);
}

.goals-score-center {
  position: absolute;
  display: flex;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: #fffc;
  pointer-events: none;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.goals-score-reason {
  color: #fff6;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.4;
}

.goals-score-input-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.goals-score-slider-row {
  display: flex;
  align-items:  center;
  gap: 10px;
}

.goals-score-btn-row {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.goals-btn-secondary {
  border: 1px solid var(--border-2);
  color: #fff9;
  cursor: pointer;
  background: #ffffff0d;
  border-radius: 7px;
  padding: 6px 14px;
  transition: all .15s;
  font-size: 12px;
  font-weight: 500;
}

.goals-btn-secondary:hover {
  color: #fffc;
  background: #ffffff14;
}

.goals-btn-primary {
  color: var(--violet-bright);
  cursor: pointer;
  background: #8b5cf633;
  border: 1px solid #8b5cf659;
  border-radius: 7px;
  padding: 6px 14px;
  transition: all .15s;
  font-size: 12px;
  font-weight: 600;
}

.goals-btn-primary:hover {
  background: #8b5cf652;
  border-color: #8b5cf68c;
}

.goals-btn-danger {
  color: var(--rose);
  cursor: pointer;
  background: #fb718524;
  border: 1px solid #fb71854d;
  border-radius: 7px;
  padding: 6px 14px;
  transition: all .15s;
  font-size: 12px;
  font-weight: 600;
}

.goals-btn-danger:hover {
  background: #fb718540;
  border-color: #fb718580;
}

.goals-select-row {
  display: flex;
  gap: 12px;
}

.goals-select-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.goals-select-label {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #ffffff4d;
  font-size: 10px;
  font-weight: 600;
}

.goals-select {
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  color: #fffc;
  font-family: var(--font-sans);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 10px;
  border-radius: 8px;
  width: 100%;
  padding: 8px 28px 8px 12px;
  transition: border-color .15s, background .15s;
  font-size: 12px;
  font-weight: 500;
}

.goals-select:hover {
  border-color: #8b5cf659;
}

.goals-select:focus {
  background: #8b5cf60d;
  border-color: #8b5cf68c;
}

.goals-select option {
  background: var(--surface-2);
  color: #fffc;
  padding: 8px;
}

.goals-child-card {
  display: flex;
  border: 1px solid var(--border-1);
  cursor: pointer;
  background: #ffffff08;
  border-radius: 8px;
  align-items:  center;
  gap: 10px;
  padding: 8px 10px;
  transition: all .15s;
}

.goals-child-card:hover {
  border-color: var(--border-2);
  background: #ffffff0f;
}

.goals-child-health {
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.goals-progress-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.goals-progress-entry {
  display: flex;
  align-items:  flex-start;
  gap: 8px;
  padding: 6px 0;
}

.goals-progress-dot {
  background: var(--violet-bright);
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 4px;
}

.goals-progress-dot.baseline {
  background: #fff3;
}

.goals-progress-change {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--emerald);
  flex-shrink: 0;
  width: 48px;
}

.goals-progress-change.baseline {
  color: #ffffff59;
}

.goals-progress-desc {
  color: #ffffff80;
  flex: 1;
  min-width: 0;
  font-size: 11px;
  line-height: 1.4;
}

.goals-progress-date {
  color: #ffffff47;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 10px;
}

.goals-detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.goals-detail-item-label {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #ffffff4d;
  font-size: 10px;
  font-weight: 600;
}

.goals-detail-item-val {
  color: #ffffffb3;
  text-transform: capitalize;
  font-size: 12px;
}

.goals-detail-item-val.accent {
  color: var(--violet-bright);
  font-family: var(--font-mono);
  font-weight: 600;
}

.goals-detail-item-val.muted {
  color: #ffffff4d;
}

.goals-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.goals-tag-pill {
  display: inline-flex;
  color: var(--violet-bright);
  background: #8b5cf61a;
  border: 1px solid #8b5cf633;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 500;
}

.goals-parent-arrow {
  color: var(--violet-bright);
  font-size: 13px;
}

.goals-danger-label {
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #fb718580;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 600;
}

.goals-delete-confirm-text {
  color: #ffffff8c;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.goals-delete-confirm-row {
  display: flex;
  gap: 8px;
}

.goals-saving-text {
  color: var(--violet-bright);
  animation: goals-pulseOpacity 1.5s ease-in-out infinite;
  font-size: 11px;
  font-weight: 500;
}

.goals-tl-wrap {
  display: flex;
  overflow: hidden;
  position: relative;
  flex-direction: column;
  flex: 1;
}

.goals-tl-header-row {
  display: flex;
  border-bottom: 1px solid var(--border-1);
  background: var(--surface-1);
  position: sticky;
  z-index: 5;
  flex-shrink: 0;
  height: 44px;
  top: 0;
}

.goals-tl-header-spacer {
  border-right: 1px solid var(--border-1);
  display: flex;
  letter-spacing: .08em;
  color: #ffffff38;
  text-transform: uppercase;
  background: var(--surface-1);
  flex-shrink: 0;
  align-items:  center;
  width: 236px;
  padding: 0 14px;
  font-size: 10px;
  font-weight: 700;
}

.goals-tl-body {
  display: flex;
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.goals-tl-labels {
  border-right: 1px solid var(--border-1);
  background: var(--surface-1);
  flex-shrink: 0;
  width: 236px;
}

.goals-tl-label-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}

.goals-tl-group-header {
  display: flex;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #ffffff47;
  border-bottom: 1px solid var(--border-1);
  background: #ffffff05;
  flex-shrink: 0;
  align-items:  center;
  gap: 6px;
  height: 28px;
  padding: 0 14px;
  font-size: 10px;
  font-weight: 700;
}

.goals-tl-group-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.goals-tl-label-row {
  display: flex;
  cursor: pointer;
  outline: none;
  border-bottom: 1px solid #ffffff08;
  flex-shrink: 0;
  align-items:  center;
  height: 38px;
  padding: 0 10px;
}

.goals-tl-label-row:hover {
  background: #ffffff06;
}

.goals-tl-label-row:focus-visible {
  background: #8b5cf60f;
}

.goals-tl-label-row--dead {
  opacity: .38;
}

.goals-tl-indent-0 {
  padding-left: 10px;
}

.goals-tl-indent-1 {
  padding-left: 24px;
}

.goals-tl-indent-2 {
  padding-left: 38px;
}

.goals-tl-indent-3 {
  padding-left: 52px;
}

.goals-tl-indent-4 {
  padding-left: 66px;
}

.goals-tl-label-objective {
  font-weight: 600;
}

.goals-tl-label-key_result {
  font-weight: 500;
}

.goals-tl-label-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-right: 7px;
}

.goals-tl-label-text {
  color: #ffffffa6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  font-size: 12px;
}

.goals-tl-label-text--dead {
  text-decoration: line-through;
  color: #ffffff4d;
}

.goals-tl-label-score {
  font-size: 10px;
  font-family: var(--font-mono);
  color: #ffffff59;
  flex-shrink: 0;
  margin-left: 6px;
  font-weight: 600;
}

.goals-tl-chart {
  position: relative;
  flex: 1;
  min-width: 600px;
}

.goals-tl-month-header {
  display: flex;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.goals-tl-month-col {
  display: flex;
  border-right: 1px solid var(--border-1);
  overflow: hidden;
  flex-direction: column;
  min-width: 0;
}

.goals-tl-month-col:last-child {
  border-right: none;
}

.goals-tl-month-col--current {
  background: #8b5cf60a;
}

.goals-tl-month-name {
  display: flex;
  color: #ffffff61;
  text-transform: uppercase;
  letter-spacing: .07em;
  border-bottom: 1px solid var(--border-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  height: 22px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 600;
}

.goals-tl-month-name--current {
  color: #8b5cf6cc;
}

.goals-tl-month-weeks {
  display: flex;
  overflow: hidden;
  flex: 1;
  align-items:  center;
  min-width: 0;
}

.goals-tl-week-label {
  display: flex;
  color: #ffffff38;
  letter-spacing: .03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  border-right: 1px solid #ffffff0a;
  flex: 1;
  justify-content: center;
  align-items:  center;
  min-width: 0;
  height: 100%;
  font-size: 9px;
  font-weight: 600;
}

.goals-tl-week-label:last-child {
  border-right: none;
}

.goals-tl-week-label--current {
  color: #8b5cf6b3;
  font-weight: 700;
}

.goals-today-line {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(#8b5cf600, #8b5cf6b3 10% 90%, #8b5cf600);
  width: 2px;
  top: 0;
  bottom: 0;
  box-shadow: 0 0 8px #8b5cf680;
}

.goals-today-label {
  position: absolute;
  letter-spacing: .1em;
  color: #8b5cf6cc;
  white-space: nowrap;
  background: var(--surface-1);
  pointer-events: none;
  z-index: 5;
  border: 1px solid #8b5cf640;
  border-radius: 3px;
  padding: 2px 5px;
  font-size: 8px;
  font-weight: 700;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
}

.goals-gantt-group-header {
  border-bottom: 1px solid var(--border-1);
  background: #ffffff05;
  flex-shrink: 0;
  height: 28px;
}

.goals-gantt-row {
  position: relative;
  cursor: pointer;
  outline: none;
  border-bottom: 1px solid #ffffff08;
  flex-shrink: 0;
  height: 38px;
}

.goals-gantt-row:hover {
  background: #ffffff05;
}

.goals-gantt-row:focus-visible {
  background: #8b5cf60d;
}

.goals-gantt-row--dead {
  opacity: .38;
}

.goals-gantt-bar-track {
  position: absolute;
  overflow: hidden;
  border-radius: 6px;
  height: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.goals-gantt-bar-fill {
  border-radius: 6px;
  height: 100%;
  transition: width .5s cubic-bezier(.34,1.56,.64,1);
}

.goals-gantt-bar-health {
  position: absolute;
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
}

@keyframes goals-gantt-pulse {
  0%, 100% {
    box-shadow: 0 0 #fff0;
    opacity: 1;
  }

  50% {
    box-shadow: 0 0 0 4px #fff0;
    opacity: .65;
  }
}

.goals-gantt-bar-health--pulse {
  animation: goals-gantt-pulse 1.8s ease-in-out infinite;
}

.goals-gantt-deadline-label {
  position: absolute;
  color: #ffffff59;
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: .03em;
  font-size: 9px;
  font-weight: 600;
  top: 50%;
  transform: translateY(-50%);
}

.goals-tl-empty {
  display: flex;
  color: #ffffff47;
  text-align: center;
  flex: 1;
  justify-content: center;
  align-items:  center;
  padding: 48px 24px;
  font-size: 13px;
}

.goals-tl-months {
  display: flex;
  position: sticky;
  z-index: 5;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-1);
  backdrop-filter: blur(8px);
  height: 44px;
  top: 0;
}

.goals-tl-month {
  display: flex;
  color: #ffffff61;
  text-transform: uppercase;
  letter-spacing: .07em;
  border-right: 1px solid var(--border-1);
  flex: 1;
  justify-content: center;
  align-items:  center;
  font-size: 11px;
  font-weight: 600;
}

.goals-tl-month:last-child {
  border-right: none;
}

.goals-tl-month.current {
  color: #8b5cf6cc;
  background: #8b5cf60a;
}

.goals-tl-group {
  display: flex;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #ffffff47;
  border-bottom: 1px solid var(--border-1);
  background: #ffffff05;
  align-items:  center;
  height: 28px;
  padding: 0 14px;
  font-size: 10px;
  font-weight: 600;
}

.goals-tl-row {
  display: flex;
  border-bottom: 1px solid #ffffff08;
  align-items:  center;
  height: 38px;
  padding: 0 10px;
}

.goals-tl-row.indent-0 {
  padding-left: 10px;
}

.goals-tl-row.indent-1 {
  padding-left: 24px;
}

.goals-tl-row.indent-2 {
  padding-left: 38px;
}

.goals-tl-row.indent-3 {
  padding-left: 52px;
}

.goals-tl-row.indent-4 {
  padding-left: 66px;
}

.goals-tl-row:hover {
  background: #ffffff05;
}

.goals-tl-row.type-obj .goals-tl-dot {
  background: #8b5cf6cc;
  box-shadow: 0 0 5px #8b5cf680;
}

.goals-tl-row.type-kr .goals-tl-dot {
  background: #3b82f6cc;
  box-shadow: 0 0 5px #3b82f680;
}

.goals-tl-row.type-ms .goals-tl-dot {
  background: #06b6d4cc;
  box-shadow: 0 0 5px #06b6d480;
}

.goals-tl-row.type-task .goals-tl-dot {
  background: #22c55ecc;
  box-shadow: 0 0 5px #22c55e80;
}

.goals-tl-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-right: 7px;
}

.goals-gantt-group {
  border-bottom: 1px solid var(--border-1);
  background: #ffffff05;
  height: 28px;
}

.goals-gantt-track {
  position: absolute;
  overflow: hidden;
  background: #ffffff0d;
  border-radius: 6px;
  height: 18px;
}

.goals-gantt-fill {
  border-radius: 6px;
  height: 100%;
  transition: width .5s cubic-bezier(.34,1.56,.64,1);
}

.goals-gantt-fill.obj {
  background: linear-gradient(90deg, #6d28d9b3, #8b5cf68c);
}

.goals-gantt-fill.kr {
  background: linear-gradient(90deg, #1d4ed8b3, #3b82f68c);
}

.goals-gantt-fill.ms {
  background: linear-gradient(90deg, #0891b2b3, #06b6d48c);
}

.goals-gantt-fill.task {
  background: linear-gradient(90deg, #15803db3, #22c55e8c);
}

.goals-gantt-fill.health-critical {
  opacity: .65;
}

.goals-metrics-body {
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  align-content:  start;
  gap: 16px;
  padding: 20px 24px;
}

.goals-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.goals-metric-card {
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  padding: 18px;
  transition: transform .18s, box-shadow .18s;
}

.goals-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #0000004d;
}

.goals-metric-card.wide {
  grid-column: span 2;
}

.goals-metric-card.full {
  grid-column: span 3;
}

.goals-metric-label {
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #ffffff61;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
}

.goals-metric-big {
  color: var(--violet-bright);
  font-size: 44px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: -.02em;
  line-height: 1;
}

.goals-metric-sub {
  color: #ffffff61;
  margin-top: 4px;
  font-size: 12px;
}

.goals-metric-ring-inner {
  display: flex;
  align-items:  center;
  gap: 16px;
}

.goals-health-dist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.goals-health-dist-row {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.goals-health-dist-label {
  color: #ffffff73;
  flex-shrink: 0;
  width: 56px;
  font-size: 11px;
}

.goals-health-dist-bar {
  overflow: hidden;
  background: #ffffff0f;
  border-radius: 3px;
  flex: 1;
  height: 6px;
}

.goals-health-dist-fill {
  border-radius: 3px;
  height: 100%;
  transition: width .6s cubic-bezier(.34,1.56,.64,1);
}

.goals-health-dist-fill.healthy {
  background: var(--emerald);
}

.goals-health-dist-fill.warning {
  background: var(--amber);
}

.goals-health-dist-fill.critical {
  background: var(--rose);
}

.goals-health-dist-count {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #ffffff73;
  text-align: right;
  flex-shrink: 0;
  width: 24px;
}

.goals-histogram {
  display: flex;
  align-items:  flex-end;
  gap: 4px;
  height: 60px;
  padding-top: 8px;
}

.goals-histogram-bar {
  background: #8b5cf659;
  border-radius: 3px 3px 0 0;
  flex: 1;
  min-height: 4px;
  transition: background .15s;
}

.goals-histogram-bar:hover {
  background: #8b5cf699;
}

.goals-sparkline {
  width: 100%;
  height: 48px;
}

.goals-sparkline path {
  fill: none;
  stroke: var(--violet-bright);
  stroke-width: 1.5;
}

.goals-sparkline .area {
  fill: #8b5cf61f;
  stroke: none;
}

.goals-escalation-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.goals-escalation-item {
  display: flex;
  border: 1px solid var(--border-1);
  background: #ffffff08;
  border-radius: 8px;
  align-items:  flex-start;
  gap: 10px;
  padding: 10px 12px;
}

.goals-escalation-item.severity-high {
  border-left: 3px solid var(--rose);
}

.goals-escalation-item.severity-medium {
  border-left: 3px solid var(--amber);
}

.goals-escalation-item.severity-low {
  border-left: 3px solid var(--blue);
}

.goals-escalation-badge {
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 1px;
  padding: 2px 5px;
  font-size: 9px;
  font-weight: 600;
}

.goals-escalation-badge.high {
  color: var(--rose);
  background: #fb718526;
}

.goals-escalation-badge.medium {
  color: var(--amber);
  background: #fbbf2426;
}

.goals-escalation-badge.low {
  color: var(--blue);
  background: #60a5fa26;
}

.goals-escalation-text {
  color: #ffffffa6;
  flex: 1;
  font-size: 12px;
  line-height: 1.4;
}

.goals-escalation-pill {
  border: 1px solid var(--border-1);
  color: #fff6;
  white-space: nowrap;
  background: #ffffff0d;
  border-radius: 4px;
  flex-shrink: 0;
  padding: 2px 7px;
  font-size: 10px;
}

.goals-modal-backdrop {
  position: fixed;
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  animation: goals-fadeIn .18s ease;
  background: #000000a6;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.goals-modal {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  display: flex;
  overflow: hidden;
  animation: goals-materialize .22s ease both;
  border-radius: 16px;
  flex-direction: column;
  width: 560px;
  max-height: 82vh;
  box-shadow: 0 0 0 1px #ffffff0a, 0 24px 80px #0009, 0 0 40px #8b5cf614;
}

.goals-modal-header {
  display: flex;
  border-bottom: 1px solid var(--border-1);
  flex-shrink: 0;
  align-items:  center;
  gap: 12px;
  padding: 18px 20px 16px;
}

.goals-modal-title {
  color: #ffffffe6;
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.goals-modal-close {
  border: 1px solid var(--border-1);
  color: #fff6;
  display: flex;
  cursor: pointer;
  background: #ffffff0a;
  border-radius: 7px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
  transition: all .15s;
  font-size: 15px;
}

.goals-modal-close:hover {
  color: #ffffffbf;
  background: #ffffff14;
}

.goals-mode-toggle {
  display: flex;
  border: 1px solid var(--border-1);
  background: #ffffff0a;
  border-radius: 8px;
  flex-shrink: 0;
  gap: 2px;
  padding: 3px;
}

.goals-mode-btn {
  color: #ffffff6b;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  transition: all .15s;
  font-size: 12px;
  font-weight: 500;
}

.goals-mode-btn.active {
  color: #ffffffe6;
  background: #8b5cf633;
}

.goals-modal-body {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
  padding: 18px 20px;
}

.goals-modal-desc {
  color: #ffffff61;
  font-size: 12px;
  line-height: 1.5;
}

.goals-quick-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.goals-modal-loading {
  display: flex;
  color: #8b5cf6b3;
  justify-content: center;
  align-items:  center;
  padding: 32px 0;
  font-size: 13px;
  font-weight: 500;
}

.goals-modal-error {
  color: #f43f5ed9;
  background: #f43f5e1a;
  border: 1px solid #f43f5e4d;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.4;
}

.goals-proposal-divider-label {
  white-space: nowrap;
  flex-shrink: 0;
}

.goals-ai-textarea {
  border: 1px solid var(--border-1);
  color: #fffc;
  font-family: var(--font-sans);
  outline: none;
  resize: vertical;
  box-sizing: border-box;
  background: #ffffff0a;
  border-radius: 8px;
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  transition: border-color .15s;
  font-size: 13px;
  line-height: 1.5;
}

.goals-ai-textarea::placeholder {
  color: #ffffff38;
}

.goals-ai-textarea:focus {
  background: #8b5cf60a;
  border-color: #8b5cf68c;
}

.goals-generate-btn {
  display: flex;
  color: #a78bfa;
  cursor: pointer;
  background: linear-gradient(135deg, #8b5cf647, #6d28d933);
  border: 1px solid #8b5cf666;
  border-radius: 8px;
  justify-content: center;
  align-items:  center;
  gap: 7px;
  padding: 9px;
  transition: all .18s;
  font-size: 13px;
  font-weight: 600;
}

.goals-generate-btn:hover {
  color: #c4b5fd;
  background: linear-gradient(135deg, #8b5cf666, #6d28d952);
  border-color: #8b5cf699;
  box-shadow: 0 0 20px #8b5cf633;
}

.goals-proposal-divider {
  display: flex;
  color: #ffffff47;
  text-transform: uppercase;
  letter-spacing: .06em;
  align-items:  center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
}

.goals-proposal-divider:before, .goals-proposal-divider:after {
  content: "";
  background: var(--border-1);
  flex: 1;
  height: 1px;
}

.goals-proposal-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.goals-proposal-item {
  display: flex;
  border: 1px solid var(--border-1);
  cursor: pointer;
  background: #ffffff08;
  border-radius: 9px;
  gap: 10px;
  padding: 10px 12px;
  transition: all .15s;
}

.goals-proposal-item:hover {
  background: #8b5cf612;
  border-color: #8b5cf638;
}

.goals-proposal-item.selected {
  background: #8b5cf61f;
  border-color: #8b5cf661;
}

.goals-proposal-icon {
  display: flex;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.goals-proposal-content {
  flex: 1;
  min-width: 0;
}

.goals-proposal-type {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #ffffff4d;
  margin-bottom: 2px;
  font-size: 9px;
  font-weight: 600;
}

.goals-proposal-name {
  color: #fffc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 600;
}

.goals-proposal-desc {
  color: #ffffff6b;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.4;
}

.goals-proposal-item.indent-1 {
  margin-left: 16px;
}

.goals-proposal-item.indent-2 {
  margin-left: 32px;
}

.goals-proposal-item.indent-3 {
  margin-left: 48px;
}

.goals-clarify-box {
  background: #8b5cf60f;
  border: 1px solid #8b5cf638;
  border-radius: 10px;
  padding: 14px;
}

.goals-clarify-label {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #8b5cf6b3;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
}

.goals-clarify-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.goals-clarify-question {
  display: flex;
  color: #ffffffa6;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.goals-clarify-number {
  font-family: var(--font-mono);
  color: #8b5cf6b3;
  flex-shrink: 0;
  width: 14px;
  font-size: 11px;
  font-weight: 600;
}

.goals-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.goals-form-label {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #ffffff61;
  font-size: 11px;
  font-weight: 600;
}

.goals-form-input, .goals-form-textarea, .goals-form-select {
  border: 1px solid var(--border-1);
  color: #fffc;
  font-family: var(--font-sans);
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  background: #ffffff0a;
  border-radius: 8px;
  width: 100%;
  padding: 8px 12px;
  transition: border-color .15s, background .15s;
  font-size: 13px;
}

.goals-form-input::placeholder, .goals-form-textarea::placeholder {
  color: #ffffff38;
}

.goals-form-input:focus, .goals-form-textarea:focus, .goals-form-select:focus {
  background: #8b5cf60a;
  border-color: #8b5cf68c;
}

.goals-form-textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}

.goals-form-select {
  cursor: pointer;
}

.goals-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.goals-modal-footer {
  display: flex;
  border-top: 1px solid var(--border-1);
  flex-shrink: 0;
  align-items:  center;
  gap: 8px;
  padding: 14px 20px;
}

.goals-modal-cancel {
  border: 1px solid var(--border-1);
  color: #ffffff80;
  cursor: pointer;
  background: #ffffff0a;
  border-radius: 8px;
  padding: 8px 16px;
  transition: all .15s;
  font-size: 13px;
  font-weight: 500;
}

.goals-modal-cancel:hover {
  color: #ffffffbf;
  background: #ffffff14;
}

.goals-modal-edit {
  border: 1px solid var(--border-2);
  color: #ffffffa6;
  cursor: pointer;
  background: #ffffff0a;
  border-radius: 8px;
  padding: 8px 16px;
  transition: all .15s;
  font-size: 13px;
  font-weight: 500;
}

.goals-modal-edit:hover {
  border-color: var(--border-3);
  color: #ffffffd9;
  background: #ffffff14;
}

.goals-modal-confirm {
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border: none;
  border-radius: 8px;
  flex: 1;
  margin-left: auto;
  padding: 8px 20px;
  transition: all .15s;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px #8b5cf659;
}

.goals-modal-confirm:hover {
  background: linear-gradient(135deg, #9d6ff8 0%, #8b5cf6 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px #8b5cf680;
}

.goals-modal-confirm:disabled {
  opacity: .4;
  pointer-events: none;
  box-shadow: none;
  background: linear-gradient(135deg, #6d4db5 0%, #5b32a8 100%);
}

.goals-empty {
  display: flex;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: goals-materialize .4s ease both;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items:  center;
  padding: 40px 20px;
}

.goals-empty-canvas {
  position: relative;
  display: flex;
  justify-content: center;
  align-items:  center;
  width: 200px;
  height: 200px;
  margin-bottom: 28px;
}

.goals-empty-orb-wrap {
  display: flex;
  position: relative;
  z-index: 2;
  animation: goals-emptyOrb 3.2s ease-in-out infinite;
  justify-content: center;
  align-items:  center;
  width: 80px;
  height: 80px;
}

.goals-empty-orb {
  pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #8b5cf699, #6d28d94d);
  border: 1.5px solid #8b5cf68c;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  box-shadow: 0 0 0 8px #8b5cf614, 0 0 24px #8b5cf659;
}

.goals-empty-ring {
  position: absolute;
  pointer-events: none;
  border: 1px dashed #8b5cf614;
  border-radius: 50%;
}

.goals-empty-ring:first-child {
  animation: goals-gentleFloat 6s ease-in-out infinite;
  width: 80px;
  height: 80px;
}

.goals-empty-ring:nth-child(2) {
  animation: goals-gentleFloat 8s ease-in-out infinite reverse;
  border-color: #3b82f60f;
  width: 130px;
  height: 130px;
}

.goals-empty-ring:nth-child(3) {
  animation: goals-gentleFloat 10s ease-in-out infinite;
  border-color: #06b6d40d;
  width: 180px;
  height: 180px;
}

.goals-empty-hint-dot {
  position: absolute;
  animation: goals-sparkle 3s ease-in-out infinite;
  pointer-events: none;
  background: #8b5cf659;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.goals-empty-orb-inner {
  background: inherit;
  animation: goals-emptyOrb 3.2s ease-in-out infinite;
  border-radius: 50%;
  width: 100%;
  height: 100%;
}

.goals-empty-sparkle {
  position: absolute;
  animation: goals-sparkle 2.5s ease-in-out infinite;
  background: #8b5cf6b3;
  border-radius: 50%;
  width: 4px;
  height: 4px;
}

.goals-empty-sparkle:nth-child(2) {
  animation-delay: .5s;
  top: 20%;
  right: 18%;
}

.goals-empty-sparkle:nth-child(3) {
  animation-delay: 1s;
  bottom: 22%;
  left: 22%;
}

.goals-empty-sparkle:nth-child(4) {
  animation-delay: 1.5s;
  top: 30%;
  left: 16%;
}

.goals-empty-sparkle:nth-child(5) {
  animation-delay: 2s;
  bottom: 18%;
  right: 20%;
}

.goals-empty-title {
  color: #fffc;
  letter-spacing: -.01em;
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}

.goals-empty-desc {
  color: #ffffff61;
  position: relative;
  z-index: 2;
  max-width: 300px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.6;
}

.goals-empty-cta {
  display: flex;
  color: #fff;
  cursor: pointer;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border: none;
  border-radius: 10px;
  align-items:  center;
  gap: 7px;
  margin-bottom: 20px;
  padding: 10px 22px;
  transition: all .18s;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px #8b5cf659;
}

.goals-empty-cta:hover {
  background: linear-gradient(135deg, #9d6ff8 0%, #8b5cf6 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px #8b5cf680;
}

.goals-empty-pills {
  display: flex;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.goals-empty-pill {
  display: flex;
  border: 1px solid var(--border-1);
  color: #fff6;
  cursor: pointer;
  background: #ffffff0a;
  border-radius: 20px;
  align-items:  center;
  gap: 5px;
  padding: 5px 12px;
  transition: all .15s;
  font-size: 11px;
}

.goals-empty-pill:hover {
  color: #a78bfa;
  background: #8b5cf61a;
  border-color: #8b5cf647;
}

.goals-loading {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items:  center;
  gap: 14px;
}

.goals-loading-orb {
  border: 2.5px solid #0000;
  border-top-color: var(--violet-bright);
  animation: goals-spin .9s linear infinite;
  border-left-color: #8b5cf666;
  border-radius: 50%;
  width: 28px;
  height: 28px;
}

.goals-loading-text {
  color: #ffffff59;
  animation: goals-loadingPulse 1.6s ease-in-out infinite;
  font-size: 12px;
  font-weight: 500;
}

.goals-page ::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.goals-page ::-webkit-scrollbar-track {
  background: none;
}

.goals-page ::-webkit-scrollbar-thumb {
  background: var(--surface-4);
  border-radius: 2px;
}

.goals-page ::-webkit-scrollbar-thumb:hover {
  background: var(--surface-3);
}

.goals-page * {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-4) transparent;
}

.goals-score-inner {
  display: flex;
  align-items:  center;
  gap: 16px;
  margin-top: 4px;
}

.goals-score-ring-wrap {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.goals-score-ring-svg {
  display: block;
  transform: rotate(-90deg);
}

.goals-score-ring-center {
  position: absolute;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fffc;
  letter-spacing: -.01em;
  pointer-events: none;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.goals-metric-trend {
  color: var(--emerald);
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
}

.goals-health-row {
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-bottom: 8px;
}

.goals-health-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.goals-health-dot--pulse {
  animation: goals-pulseOpacity 2s ease-in-out infinite;
}

@keyframes goals-pulseOpacity {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .45;
  }
}

.goals-health-name {
  color: #ffffff8c;
  flex-shrink: 0;
  width: 56px;
  font-size: 12px;
}

.goals-health-bar-track {
  overflow: hidden;
  background: #ffffff0f;
  border-radius: 3px;
  flex: 1;
  min-width: 0;
  height: 5px;
}

.goals-health-bar-fill {
  border-radius: 3px;
  min-width: 0;
  height: 100%;
  transition: width .6s cubic-bezier(.34,1.56,.64,1);
}

.goals-health-count {
  font-size: 12px;
  font-family: var(--font-mono);
  text-align: right;
  flex-shrink: 0;
  width: 22px;
  font-weight: 600;
}

.goals-health-footer {
  display: flex;
  border-top: 1px solid #ffffff0f;
  justify-content: space-around;
  align-items:  flex-start;
  margin-top: 10px;
  padding-top: 10px;
}

.goals-health-footer-stat {
  display: flex;
  flex-direction: column;
  align-items:  center;
  gap: 3px;
  min-width: 0;
}

.goals-health-footer-num {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #ffffffbf;
  line-height: 1;
}

.goals-health-footer-num--failed {
  color: var(--rose);
}

.goals-health-footer-label {
  color: #ffffff59;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  font-size: 10px;
}

.goals-hist-bar {
  cursor: default;
  border-radius: 3px 3px 0 0;
  flex: 1;
  min-height: 4px;
  transition: opacity .15s;
}

.goals-hist-bar:hover {
  opacity: .8;
}

.goals-hist-labels {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  margin-top: 6px;
}

.goals-hist-label {
  font-size: 9px;
  font-family: var(--font-mono);
  color: #ffffff4d;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.goals-hist-footer {
  display: flex;
  border-top: 1px solid #ffffff0f;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
}

.goals-hist-footer-row {
  display: flex;
  color: #ffffff61;
  justify-content: space-between;
  align-items:  center;
  gap: 8px;
  font-size: 11px;
}

.goals-hist-footer-val {
  font-family: var(--font-mono);
  color: #ffffffa6;
  font-size: 11px;
  font-weight: 600;
}

.goals-hist-footer-val--dim {
  color: #fff6;
}

.goals-level-row {
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-bottom: 8px;
}

.goals-level-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.goals-level-name {
  color: #ffffff8c;
  white-space: nowrap;
  flex-shrink: 0;
  width: 80px;
  font-size: 11px;
}

.goals-level-bar-track {
  overflow: hidden;
  position: relative;
  background: #ffffff0f;
  border-radius: 4px;
  flex: 1;
  min-width: 0;
  height: 8px;
}

.goals-level-bar-active {
  position: absolute;
  opacity: .85;
  border-radius: 4px;
  min-width: 2px;
  height: 100%;
  transition: width .6s cubic-bezier(.34,1.56,.64,1);
  top: 0;
  left: 0;
}

.goals-level-bar-completed {
  position: absolute;
  opacity: .35;
  border-radius: 4px;
  min-width: 2px;
  height: 100%;
  transition: width .6s cubic-bezier(.34,1.56,.64,1);
  top: 0;
  left: 0;
}

.goals-level-count {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #ffffff61;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  width: 36px;
}

.goals-level-legend {
  display: flex;
  border-top: 1px solid #ffffff0f;
  align-items:  center;
  gap: 14px;
  margin-top: 8px;
  padding-top: 8px;
}

.goals-level-legend-item {
  display: flex;
  align-items:  center;
  gap: 5px;
}

.goals-level-legend-swatch {
  border-radius: 2px;
  flex-shrink: 0;
  width: 10px;
  height: 6px;
}

.goals-level-legend-label {
  color: #ffffff59;
  font-size: 10px;
}

.goals-velocity-top {
  display: flex;
  justify-content: space-between;
  align-items:  flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.goals-velocity-big {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--violet);
  letter-spacing: -.02em;
  line-height: 1;
}

.goals-velocity-sub {
  color: #ffffff61;
  margin-top: 4px;
  font-size: 11px;
}

.goals-velocity-best-label {
  color: #ffffff59;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: right;
  font-size: 10px;
}

.goals-velocity-best-val {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--emerald);
  text-align: right;
  line-height: 1.2;
}

.goals-sparkline {
  overflow: hidden;
  width: 100%;
  height: 60px;
}

.goals-sparkline-svg {
  width: 100%;
  height: 100%;
}

.goals-sparkline-dates {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 4px;
  margin-top: 4px;
}

.goals-sparkline-date {
  font-size: 10px;
  font-family: var(--font-mono);
  color: #ffffff4d;
  white-space: nowrap;
}

.goals-sparkline-date--current {
  color: var(--violet);
  font-weight: 600;
}

.goals-esc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.goals-esc-item {
  display: flex;
  background: #ffffff08;
  border: 1px solid #ffffff0f;
  border-radius: 8px;
  align-items:  center;
  gap: 10px;
  padding: 8px 10px;
}

.goals-esc-badge {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-mono);
  text-align: center;
  flex-shrink: 0;
  min-width: 22px;
  line-height: 1;
}

.goals-esc-name {
  color: #fff9;
  flex: 1;
  min-width: 0;
  font-size: 12px;
}

.goals-esc-pill {
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
  border: 1px solid #0000;
  border-radius: 4px;
  flex-shrink: 0;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 700;
}

.goals-esc-footer {
  color: #ffffff4d;
  border-top: 1px solid #ffffff0f;
  padding-top: 10px;
  font-size: 11px;
  line-height: 1.5;
}

.goals-esc-footer-highlight {
  color: #ffffffa6;
  font-weight: 500;
}

.goals-esc-footer-time {
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ui/src/styles/dashboard.css */
.dashboard {
  --void: #07070a;
  --surface-1: #0c0c12;
  --surface-2: #131319;
  --surface-3: #1a1a22;
  --surface-4: #22222e;
  --border-1: #ffffff0a;
  --border-2: #ffffff12;
  --border-3: #ffffff1f;
  --text-1: #ffffffe0;
  --text-2: #ffffff7a;
  --text-3: #ffffff40;
  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --violet-glow: #8b5cf633;
  --violet-aura: #8b5cf60f;
  --emerald: #34d399;
  --emerald-glow: #34d39926;
  --blue: #60a5fa;
  --blue-glow: #60a5fa1f;
  --cyan: #22d3ee;
  --rose: #fb7185;
  --amber: #fbbf24;
  -webkit-font-smoothing: antialiased;
  background: var(--void);
  color: var(--text-1);
  position: relative;
  overflow: hidden;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  font-family: Inter, sans-serif;
}

@keyframes db-auroraShift {
  0% {
    background-position: 0%;
  }

  50% {
    background-position: 100%;
  }

  100% {
    background-position: 0%;
  }
}

@keyframes db-drift {
  0%, 100% {
    transform: translate(0);
  }

  25% {
    transform: translate(3px, -5px);
  }

  50% {
    transform: translate(-3px, 3px);
  }

  75% {
    transform: translate(2px, 4px);
  }
}

@keyframes db-streamDown {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }

  10% {
    opacity: .18;
  }

  90% {
    opacity: .18;
  }

  100% {
    transform: translateY(120vh);
    opacity: 0;
  }
}

@keyframes db-flowPulse {
  0% {
    stroke-dashoffset: 16;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes db-materialize {
  0% {
    opacity: 0;
    transform: translateY(16px)scale(.98);
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0)scale(1);
    filter: blur(0);
  }
}

@keyframes db-coreBreath {
  0%, 100% {
    transform: scale(1);
    opacity: .5;
  }

  50% {
    transform: scale(1.12);
    opacity: .85;
  }
}

@keyframes db-ringExpand {
  0%, 100% {
    transform: translate(-50%, -50%)scale(.8);
    opacity: .6;
  }

  50% {
    transform: translate(-50%, -50%)scale(1.1);
    opacity: .2;
  }
}

@keyframes db-orbGlow {
  0%, 100% {
    box-shadow: 0 0 10px #8b5cf680, 0 0 24px #8b5cf633, 0 0 50px #8b5cf60f;
  }

  50% {
    box-shadow: 0 0 18px #8b5cf6cc, 0 0 44px #8b5cf659, 0 0 80px #8b5cf61f;
  }
}

@keyframes db-orbit {
  from {
    transform: rotate(0deg) translateX(var(--r)) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(var(--r)) rotate(-360deg);
  }
}

@keyframes db-rotateSlow {
  from {
    transform: translate(-50%, -50%)rotate(0);
  }

  to {
    transform: translate(-50%, -50%)rotate(-360deg);
  }
}

@keyframes db-drawLine {
  from {
    stroke-dashoffset: 200;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes db-barReveal {
  from {
    width: 0;
  }

  to {
    width: var(--bar-w);
  }
}

@keyframes db-statusPulse {
  0% {
    box-shadow: 0 0 #34d3998c;
  }

  70% {
    box-shadow: 0 0 0 6px #34d39900;
  }

  100% {
    box-shadow: 0 0 #34d39900;
  }
}

@keyframes db-breathe {
  0%, 100% {
    opacity: .28;
  }

  50% {
    opacity: 1;
  }
}

@keyframes db-scanDot {
  0% {
    left: -24px;
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  92% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes db-waveform {
  0%, 100% {
    height: var(--wave-min);
  }

  50% {
    height: var(--wave-max);
  }
}

.db-atmosphere {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  inset: 0;
}

.db-aurora-layer {
  position: absolute;
  animation: db-auroraShift 30s ease-in-out infinite;
  background-color: #0000;
  background-image: radial-gradient(at 30% 15%, #8b5cf609 0%, #0000 55%), radial-gradient(at 68% 58%, #60a5fa07 0%, #0000 45%), radial-gradient(at 42% 82%, #34d39906 0%, #0000 50%);
  background-position: 0 0, 0 0, 0 0;
  background-repeat: repeat, repeat, repeat;
  background-size: 200% 200%;
  background-attachment: scroll, scroll, scroll;
  background-origin: padding-box, padding-box, padding-box;
  background-clip: border-box, border-box, border-box;
  inset: 0;
}

.db-constellation-layer {
  position: absolute;
  inset: 0;
}

.db-const-node {
  position: absolute;
  border-radius: 50%;
}

.db-const-node.db-drift {
  animation: db-drift var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
}

.db-const-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}

.db-stream-channel {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
  width: 2px;
  top: 0;
  bottom: 0;
}

.db-stream-particle {
  position: absolute;
  animation: db-streamDown var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
  border-radius: 50%;
  width: 2px;
  height: 2px;
  left: 0;
}

.db-scroll {
  position: absolute;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-4) transparent;
  inset: 0;
}

.db-scroll::-webkit-scrollbar {
  width: 4px;
}

.db-scroll::-webkit-scrollbar-track {
  background: none;
}

.db-scroll::-webkit-scrollbar-thumb {
  background: var(--surface-4);
  border-radius: 2px;
}

.db-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 28px 40px;
}

.db-hero-row {
  display: flex;
  align-items:  center;
  gap: 20px;
}

.db-metrics-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 200px;
  min-width: 200px;
}

.db-metric-card {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: default;
  animation: db-materialize .5s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: var(--card-delay, 0s);
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 16px 18px;
  transition: transform .25s cubic-bezier(.4,0,.2,1), border-color .25s, box-shadow .25s;
}

.db-metric-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px #8b5cf60f, 0 2px 8px #0000004d;
}

.db-metric-label {
  letter-spacing: .1em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 600;
}

.db-metric-value {
  color: #ffffffeb;
  letter-spacing: -.03em;
  margin-bottom: 8px;
  font-family: JetBrains Mono, monospace;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
}

.db-sparkline {
  display: block;
  width: 100%;
  height: 32px;
}

.db-sparkline path.db-line {
  fill: none;
  stroke-width: 1.5;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: db-drawLine 1s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: var(--line-delay, 0s);
}

.db-sparkline path.db-fill {
  stroke: none;
  opacity: 0;
  transition: opacity .4s;
}

.db-metric-card:hover .db-sparkline path.db-fill {
  opacity: 1;
}

.db-metric-foot {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  margin-top: 8px;
}

.db-metric-trend {
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
  font-weight: 500;
}

.db-trend-up {
  color: var(--emerald);
}

.db-trend-flat {
  color: var(--text-3);
}

.db-metric-fresh {
  color: var(--text-3);
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

.db-core-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items:  center;
  gap: 10px;
}

.db-core-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items:  center;
  width: 180px;
  height: 180px;
}

.db-core-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
}

.db-core-ring-1 {
  animation: db-ringExpand 5s ease-in-out infinite;
  border: 1px solid #8b5cf62e;
  width: 60px;
  height: 60px;
}

.db-core-ring-2 {
  animation: db-ringExpand 5s ease-in-out infinite;
  animation-delay: 1.2s;
  border: 1px solid #8b5cf614;
  width: 110px;
  height: 110px;
}

.db-core-ring-3 {
  animation: db-rotateSlow 120s linear infinite;
  border: 1px dashed #8b5cf60a;
  width: 170px;
  height: 170px;
}

.db-core-orb {
  position: relative;
  z-index: 2;
  animation: db-coreBreath 5s ease-in-out infinite, db-orbGlow 5s ease-in-out infinite;
  background: radial-gradient(circle at 40% 35%, #c4b5fd 0%, #8b5cf6 40%, #6d28d9 100%);
  border-radius: 50%;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.db-orbital-wrap {
  position: absolute;
  width: 0;
  height: 0;
  top: 50%;
  left: 50%;
}

.db-orbital-dot {
  position: absolute;
  transform-origin: center;
  animation: db-orbit var(--speed) linear infinite;
  border-radius: 50%;
}

.db-orbital-dot:after {
  content: "";
  position: absolute;
  width: var(--sz);
  height: var(--sz);
  background: var(--col);
  top: calc(-1 * var(--sz) / 2);
  left: calc(-1 * var(--sz) / 2);
  border-radius: 50%;
}

.db-core-label {
  letter-spacing: .25em;
  color: #ffffff26;
  text-transform: uppercase;
  font-family: JetBrains Mono, monospace;
  font-size: 8px;
}

.db-panel-header {
  display: flex;
  align-items:  center;
  gap: 10px;
  margin-bottom: 16px;
}

.db-panel-title {
  color: var(--text-1);
  font-size: 15px;
  font-weight: 600;
}

.db-badge {
  border-radius: 20px;
  padding: 3px 10px;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
  font-weight: 500;
}

.db-badge-violet {
  background: var(--violet-aura);
  color: var(--violet-bright);
  border: 1px solid #8b5cf61f;
}

.db-badge-neutral {
  color: var(--text-2);
  border: 1px solid var(--border-1);
  background: #ffffff08;
}

.db-panel-link {
  color: var(--text-2);
  cursor: pointer;
  background: none;
  border: none;
  margin-left: auto;
  transition: color .15s;
  font-family: inherit;
  font-size: 12px;
}

.db-panel-link:hover {
  color: var(--text-1);
}

.db-fleet-panel {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  animation: db-materialize .5s cubic-bezier(.16, 1, .3, 1) .16s both;
  border-radius: 12px;
  padding: 20px 24px;
}

.db-agent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.db-agent-card {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 14px;
  transition: all .15s cubic-bezier(.4,0,.2,1);
}

.db-agent-card:hover {
  background: var(--surface-3);
  border-color: var(--border-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px #0003;
}

.db-agent-top {
  display: flex;
  align-items:  center;
  gap: 6px;
  margin-bottom: 6px;
}

.db-status-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.db-s-running {
  background: var(--emerald);
  animation: db-statusPulse 2s ease-out infinite;
}

.db-s-error {
  background: var(--rose);
  animation: db-breathe 2s ease-in-out infinite;
}

.db-s-idle {
  background: var(--text-3);
}

.db-agent-name {
  color: var(--text-1);
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}

.db-agent-role {
  color: var(--text-2);
  background: var(--surface-3);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.db-agent-task {
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
  font-size: 12px;
}

.db-agent-meta {
  color: var(--text-3);
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

.db-agent-flow-bar {
  position: absolute;
  background: var(--surface-3);
  overflow: hidden;
  height: 2px;
  bottom: 0;
  left: 0;
  right: 0;
}

.db-agent-flow-slab {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  animation: db-scanDot 3.5s ease-in-out infinite;
  animation-delay: var(--slab-delay, 0s);
  width: 24px;
  height: 2px;
  top: 0;
}

.db-voice-card {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  overflow: hidden;
  animation: db-materialize .5s cubic-bezier(.16, 1, .3, 1) .24s both;
  border-radius: 12px;
}

.db-voice-aurora {
  background: linear-gradient(90deg, var(--violet), var(--blue), var(--cyan), var(--emerald));
  opacity: .2;
  animation: db-auroraShift 8s ease-in-out infinite;
  background-size: 200% 100%;
  height: 2px;
}

.db-voice-inner {
  display: flex;
  gap: 24px;
  padding: 24px;
}

.db-voice-left {
  display: flex;
  flex-direction: column;
  flex: 0 0 60%;
  gap: 14px;
}

.db-voice-right {
  display: flex;
  flex-direction: column;
  flex: 0 0 40%;
}

.db-voice-title-row {
  display: flex;
  align-items:  center;
  gap: 10px;
}

.db-voice-title {
  color: var(--text-1);
  font-size: 15px;
  font-weight: 600;
}

.db-voice-status {
  color: var(--emerald);
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
}

.db-waveform {
  display: flex;
  justify-content: center;
  align-items:  center;
  gap: 2.5px;
  height: 48px;
}

.db-wave-bar {
  animation: db-waveform var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
  border-radius: 1.5px;
  flex-shrink: 0;
  width: 3px;
}

.db-voice-speaking {
  color: var(--text-2);
  letter-spacing: .02em;
  font-size: 11px;
  font-style: italic;
}

.db-voice-controls {
  display: flex;
  align-items:  center;
  gap: 10px;
}

.db-voice-btn {
  border: 1px solid var(--border-2);
  background: var(--surface-3);
  display: flex;
  cursor: pointer;
  color: var(--text-2);
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 34px;
  height: 34px;
  transition: all .15s;
  font-family: inherit;
  font-size: 14px;
}

.db-voice-btn:hover {
  border-color: var(--violet);
  color: var(--violet-bright);
  background: var(--violet-aura);
}

.db-voice-btn-end {
  color: var(--rose);
  background: #fb71850f;
  border-color: #fb718526;
}

.db-voice-btn-end:hover {
  background: #fb71851f;
}

.db-transcript-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 600;
}

.db-transcript-line {
  display: flex;
  align-items:  flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.db-transcript-ts {
  color: var(--text-3);
  flex-shrink: 0;
  min-width: 32px;
  padding-top: 1px;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

.db-transcript-text {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.55;
}

.db-transcript-jarvis {
  background: var(--violet-aura);
  color: var(--text-1);
  border-radius: 8px;
  padding: 8px 10px;
}

.db-two-col {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 16px;
}

.db-sub-panel {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  animation: db-materialize .5s cubic-bezier(.16, 1, .3, 1) both;
  border-radius: 12px;
  padding: 20px 24px;
}

.db-memory-panel {
  animation-delay: .32s;
}

.db-neural-panel {
  animation-delay: .36s;
}

.db-vault-viz {
  position: relative;
  overflow: hidden;
  height: 200px;
  margin: 12px 0;
}

.db-vault-viz svg {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}

.db-entity-dot {
  position: absolute;
  cursor: pointer;
  border-radius: 50%;
  transition: transform .3s, opacity .3s;
}

.db-entity-dot:hover {
  transform: scale(1.8);
}

.db-entity-dot.db-drift {
  animation: db-drift var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
}

.db-entity-label {
  position: absolute;
  color: var(--text-3);
  pointer-events: none;
  white-space: nowrap;
  font-family: JetBrains Mono, monospace;
  font-size: 9px;
}

.db-recent-memories {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.db-mem-item {
  display: flex;
  border-radius: 6px;
  align-items:  center;
  gap: 8px;
  margin: -4px -6px;
  padding: 4px 6px;
  transition: background .15s;
}

.db-mem-item:hover {
  background: var(--surface-2);
}

.db-mem-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 4px;
  height: 4px;
}

.db-mem-text {
  color: var(--text-2);
  flex: 1;
  font-size: 11px;
}

.db-mem-time {
  color: var(--text-3);
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

.db-neural-header {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.db-neural-pulse {
  background: var(--violet);
  animation: db-breathe 3s ease-in-out infinite;
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.db-neural-svg-wrap {
  margin: 12px 0;
}

.db-neural-pathway-label {
  color: #8b5cf680;
  margin-top: 8px;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
}

.db-node-label {
  font-family: JetBrains Mono, monospace;
  font-size: 8px;
}

.db-goals-panel {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  animation: db-materialize .5s cubic-bezier(.16, 1, .3, 1) .4s both;
  border-radius: 12px;
  padding: 20px 24px;
}

.db-goals-grid {
  display: flex;
  gap: 20px;
  margin-top: 14px;
}

.db-goal-item {
  display: flex;
  border-radius: 8px;
  flex-direction: column;
  flex: 1;
  gap: 7px;
  margin: -10px;
  padding: 10px;
  transition: background .15s;
}

.db-goal-item:hover {
  background: var(--surface-2);
}

.db-goal-name {
  color: var(--text-1);
  font-size: 13px;
  font-weight: 600;
}

.db-goal-track {
  background: var(--surface-3);
  overflow: hidden;
  border-radius: 3px;
  height: 5px;
}

.db-goal-fill {
  background: var(--violet);
  animation: db-barReveal .9s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: var(--delay, 0s);
  border-radius: 3px;
  width: 0;
  height: 100%;
}

.db-goal-foot {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.db-goal-pct {
  color: var(--text-2);
  font-family: JetBrains Mono, monospace;
  font-size: 11px;
}

.db-priority {
  border-radius: 4px;
  padding: 1px 6px;
  font-family: JetBrains Mono, monospace;
  font-size: 10px;
  font-weight: 600;
}

.db-p1 {
  color: var(--rose);
  background: #fb71851a;
}

.db-p2 {
  color: var(--amber);
  background: #fbbf2414;
}

.db-p3 {
  background: var(--surface-3);
  color: var(--text-3);
}

.db-path-idle {
  stroke: #ffffff0a;
  stroke-width: 1;
  fill: none;
}

.db-path-active {
  stroke: #8b5cf673;
  stroke-width: 1.2;
  fill: none;
  stroke-dasharray: 8 4;
  animation: db-flowPulse var(--fp) linear infinite;
}

.db-cl-idle {
  stroke: #8b5cf60d;
  stroke-width: .5;
  fill: none;
}

.db-cl-flow {
  stroke: #8b5cf60d;
  stroke-width: .5;
  fill: none;
  stroke-dasharray: 16;
  animation: db-flowPulse var(--fp) linear infinite;
}
