/* node_modules/tailwindcss/index.css */
@layer theme, base, components, utilities;

@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/tokens.css */
:root {
  --sans: "Familjen Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", monospace;
  --listen: #e63b2e;
  --speak: #2d78ff;
  --hold: #eaa40e;
  --ok: #2fa45e;
  --x-bg: #0b0d10;
  --x-panel: #14171c;
  --x-rule: #232730;
  --x-ink: #e7eaee;
  --x-ink2: #aeb4bd;
  --x-dim: #79808a;
  --corner: 14px 3px 14px 14px;
  --corner-sm: 9px 2px 9px 9px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --text-xs: 11px;
  --text-sm: 13px;
  --text-md: 15px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-2xl: 34px;
  --text-3xl: 48px;
  --lh-tight: 1.15;
  --lh-body: 1.45;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --r-0: 0;
  --r-1: 2px;
  --r-2: 4px;
  --r-pill: 999px;
  --dur-fast: .15s;
  --dur-med: .22s;
  --dur-slow: .36s;
  --z-rail: 10;
  --z-palette: 50;
  --z-room: 60;
  --z-toast: 70;
  --v2-rail-width: 260px;
  --v2-header-height: 52px;
}

:root, .plate {
  --bg: #fafbfc;
  --raise: #fff;
  --panel: #eff2f5;
  --panel2: #f6f8fa;
  --rule: #e2e7ec;
  --rule2: #edf0f3;
  --ink: #13161a;
  --ink2: #535b63;
  --ink3: #677077;
  --faint: #9aa2ab;
  --listen-tx: #c2301f;
  --speak-tx: #1e5fd8;
  --hold-tx: #8a6206;
  --ok-tx: #1f7a43;
  --sh-sm: 0 1px 2px #141e2d0f, 0 1px 1px #141e2d0a;
  --sh-md: 0 2px 6px #141e2d0f, 0 10px 24px -10px #141e2d2e;
  --sh-lg: 0 3px 8px #141e2d0d, 0 22px 48px -18px #141e2d3d;
}

:root[data-theme="dark"], .plate.dk, .dk {
  --bg: #121417;
  --raise: #1a1d22;
  --panel: #16191e;
  --panel2: #1e2128;
  --rule: #272c33;
  --rule2: #21252b;
  --ink: #eef1f4;
  --ink2: #a4abb3;
  --ink3: #8a919a;
  --faint: #5c636b;
  --listen-tx: #ff6a5c;
  --speak-tx: #6fa4ff;
  --hold-tx: #f0b53c;
  --ok-tx: #52c97f;
  --sh-sm: 0 1px 2px #0006;
  --sh-md: 0 10px 24px -10px #0009;
  --sh-lg: 0 22px 48px -18px #000000b3;
}

:root {
  --paper: var(--bg);
  --paper-2: var(--panel);
  --paper-3: var(--panel2);
  --rule-soft: var(--rule2);
  --rule-bold: var(--ink);
  --ink-2: var(--ink2);
  --ink-3: var(--ink3);
  --accent: var(--listen-tx);
  --accent-ink: #fff;
  --warn: var(--hold-tx);
  --font-sans: var(--sans);
  --font-mono: var(--mono);
  --font-display: var(--sans);
  --ease-out: var(--ease);
  --hair: 1px solid var(--rule);
  --hair-soft: 1px solid var(--rule2);
  --hair-2: 2px solid var(--rule);
}

/* ui/src/styles/globals.css */
:root {
  --j-warning: var(--hold);
  --j-error: var(--listen);
  --j-success: var(--ok);
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
  min-height: 100vh;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--faint);
}

::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(--ink);
  margin: 16px 0 8px;
  font-weight: 600;
  line-height: 1.3;
}

.markdown-content h1 {
  border-bottom: 1px solid var(--rule);
  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(--ink2);
  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(--ink3);
}

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

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

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

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

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

.hljs {
  color: var(--ink);
}

.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(--ink);
}

.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/v2/shell/Composer.css */
.v2-composer {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  background: var(--paper);
  border-top: var(--hair);
  padding: 16px 28px 22px;
}

.v2-composer__wrap {
  display: flex;
  align-items:  flex-end;
  gap: var(--s-3);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  border-radius: 14px;
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 14px;
  box-shadow: 0 1px 3px #2c282208;
}

.v2-composer__wrap:focus-within {
  background: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 1px 4px #2c28220f;
}

.v2-composer__input {
  outline: none;
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--ink);
  resize: none;
  overflow-y: auto;
  background: none;
  border: 0;
  flex: 1;
  min-width: 0;
  max-height: 150px;
  padding: 4px 0;
  line-height: 1.4;
}

.v2-composer__input::placeholder {
  color: var(--ink-3);
  font-style: italic;
}

.v2-composer__slash {
  font-family: var(--font-mono);
  color: var(--ink-3);
  background: var(--paper-3);
  border-radius: var(--r-2);
  cursor: pointer;
  letter-spacing: .04em;
  transition: background var(--dur-fast) var(--ease-out);
  border: 0;
  flex-shrink: 0;
  align-self:  center;
  padding: 4px 9px;
  font-size: 11px;
  line-height: 1.2;
}

.v2-composer__slash:hover {
  background: var(--rule-soft);
}

.v2-composer__slash:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.v2-composer__send {
  background: var(--accent);
  color: var(--accent-ink);
  display: inline-flex;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  border: 0;
  border-radius: 14px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
}

.v2-composer__send:hover:not(:disabled) {
  background: #a62f22;
}

.v2-composer__send:active:not(:disabled) {
  transform: scale(.92);
}

.v2-composer__send:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.v2-composer__send:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ui/src/v2/thread/ApprovalCard.css */
.v2-approval {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--accent);
  display: flex;
  gap: var(--s-3);
  border-radius: 10px;
  flex-direction: column;
  padding: 14px 16px;
  box-shadow: 4px 4px #c23a2a14;
}

.v2-approval__attribution {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.v2-approval__attribution-dot {
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
  width: 4px;
  height: 4px;
}

.v2-approval__attribution-tag {
  color: var(--ink-3);
  font-weight: 400;
}

.v2-approval__impact {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  margin-left: auto;
  padding: 2px 8px;
  line-height: 1.3;
}

.v2-approval__impact--read {
  color: var(--ok);
  border-color: var(--ok);
}

.v2-approval__impact--external {
  color: var(--ink);
  border-color: var(--rule);
}

.v2-approval__intent {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.v2-approval__intent mark {
  color: var(--accent);
  background: none;
  font-weight: 500;
}

.v2-approval__category {
  font-family: var(--font-mono);
  color: var(--ink-3);
  letter-spacing: .1em;
  font-size: 10.5px;
}

.v2-approval__actions {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.v2-approval__voice-hint {
  display: inline-flex;
  font-family: var(--font-mono);
  letter-spacing: .08em;
  color: var(--ink-3);
  align-items:  center;
  gap: 4px;
  margin-left: auto;
  font-size: 10.5px;
}

.v2-approval__voice-hint-text {
  letter-spacing: .08em;
}

/* ui/src/v2/thread/ClarifierCard.css */
.v2-clarifier {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--warn);
  display: flex;
  gap: var(--s-3);
  border-left-width: 4px;
  border-radius: 10px;
  flex-direction: column;
  padding: 14px 16px;
  box-shadow: 4px 4px #8a6a1f14;
}

.v2-clarifier__attribution {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--warn);
  font-weight: 700;
}

.v2-clarifier__attribution-dot {
  background: var(--warn);
  border-radius: 2px;
  flex-shrink: 0;
  width: 4px;
  height: 4px;
}

.v2-clarifier__attribution-tag {
  color: var(--ink-3);
  font-weight: 400;
}

.v2-clarifier__transcript {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.4;
}

.v2-clarifier__primary {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.v2-clarifier__primary em {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

.v2-clarifier__alts {
  list-style: none;
  display: flex;
  gap: var(--s-1);
  border-top: var(--hair-soft);
  padding: 0;
  padding-top: var(--s-3);
  flex-direction: column;
  margin: 0;
}

.v2-clarifier__alt {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
}

.v2-clarifier__alt-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.v2-clarifier__alt-meta {
  font-family: var(--font-mono);
  color: var(--ink-3);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 10.5px;
}

.v2-clarifier__actions {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.v2-clarifier__hint {
  font-family: var(--font-mono);
  letter-spacing: .08em;
  color: var(--ink-3);
  margin-left: auto;
  font-size: 10.5px;
}

/* ui/src/v2/thread/RepeatBackCard.css */
.v2-repeatback {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ink);
  border-radius: var(--r-2);
  display: flex;
  gap: var(--s-3);
  flex-direction: column;
  padding: 14px 16px;
}

.v2-repeatback__attribution {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 700;
}

.v2-repeatback__attribution-dot {
  background: var(--ink);
  border-radius: 2px;
  flex-shrink: 0;
  width: 4px;
  height: 4px;
}

.v2-repeatback__attribution-tag {
  color: var(--ink-3);
  font-weight: 400;
}

.v2-repeatback__conf {
  font-family: var(--font-mono);
  color: var(--ink-3);
  letter-spacing: .08em;
  margin-left: auto;
  font-size: 10.5px;
}

.v2-repeatback__heard {
  display: flex;
  align-items:  flex-start;
  gap: var(--s-2);
}

.v2-repeatback__heard-text {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

.v2-repeatback__heard-text em {
  color: var(--ink-2);
  font-style: italic;
}

.v2-repeatback__actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

/* ui/src/v2/thread/InlineCard.css */
.v2-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items:  flex-start;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--paper-2);
  border: var(--hair);
  border-radius: var(--r-2);
  transition: background var(--dur-fast) var(--ease-out);
}

.v2-card:hover {
  background: var(--paper-3);
}

.v2-card__icon {
  border-radius: var(--r-1);
  background: var(--paper);
  border: var(--hair);
  display: flex;
  color: var(--ink);
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 36px;
  height: 36px;
}

.v2-card__body {
  display: flex;
  gap: var(--s-1);
  flex-direction: column;
  min-width: 0;
}

.v2-card__head {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.v2-card__type {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}

.v2-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--ink);
  display: inline;
  margin: 0;
}

.v2-card__summary {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: var(--lh-body);
}

.v2-card__meta {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  margin-top: var(--s-1);
  flex-wrap: wrap;
}

.v2-card__meta-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .08em;
  color: var(--ink-3);
}

.v2-card__actions {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  flex-shrink: 0;
}

/* ui/src/v2/ui/roomkit.css */
.rk-chip {
  font-family: var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: inline-flex;
  white-space: nowrap;
  border-radius: 999px;
  align-items:  center;
  gap: 6px;
  padding: 2.5px 9px;
  font-size: 8.5px;
}

.rk-chip__dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.rk-chip--run {
  color: var(--speak-tx);
  background: color-mix(in srgb, var(--speak) 12%, transparent);
}

.rk-chip--run .rk-chip__dot {
  background: var(--speak);
}

.rk-chip--ok {
  color: var(--ok-tx);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
}

.rk-chip--ok .rk-chip__dot {
  background: var(--ok);
}

.rk-chip--hold {
  color: var(--hold-tx);
  background: color-mix(in srgb, var(--hold) 14%, transparent);
}

.rk-chip--hold .rk-chip__dot {
  background: var(--hold);
}

.rk-chip--fail {
  color: var(--listen-tx);
  background: color-mix(in srgb, var(--listen) 11%, transparent);
}

.rk-chip--fail .rk-chip__dot {
  background: var(--listen);
}

.rk-chip--mut {
  color: var(--ink2);
  background: var(--panel);
}

.rk-chip--mut .rk-chip__dot {
  background: var(--faint);
}

.rk-stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
  gap: 1px;
}

.rk-stats__cell {
  background: var(--panel2);
  padding: 9px 14px;
}

.rk-stats__k {
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  font-size: 7.5px;
}

.rk-stats__n {
  color: var(--ink);
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
}

.rk-stats__n small {
  color: var(--ink3);
  font-size: 9.5px;
  font-weight: 500;
}

.rk-stats__n--amber {
  color: var(--hold-tx);
}

.rk-stats__n--alert {
  color: var(--listen-tx);
}

.rk-stats__n--ok {
  color: var(--ok-tx);
}

.rk-tabs {
  display: flex;
  gap: 2px;
}

.rk-tab {
  color: var(--ink2);
  white-space: nowrap;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--sans);
  background: none;
  border: none;
  border-radius: 7px 2px 7px 7px;
  padding: 6px 11px;
}

.rk-tab:hover {
  color: var(--ink);
}

.rk-tab--on {
  background: var(--raise);
  color: var(--ink);
  box-shadow: var(--sh-sm);
  font-weight: 600;
}

.rk-tab:focus-visible {
  outline: 1.5px solid var(--speak);
  outline-offset: 1px;
}

.rk-toolbar {
  display: flex;
  border-bottom: 1px solid var(--rule);
  background: var(--panel2);
  flex-wrap: wrap;
  align-items:  center;
  gap: 8px;
  padding: 10px 16px;
}

.rk-toolbar__title {
  color: var(--ink);
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}

.rk-toolbar__spacer {
  margin-left: auto;
}

.rk-filterbar {
  display: flex;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
  align-items:  center;
  gap: 6px;
  padding: 9px 16px;
}

.rk-flabel {
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-right: 2px;
  font-size: 8px;
}

.rk-filterchip {
  font-family: var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  color: var(--ink2);
  white-space: nowrap;
  background: var(--raise);
  cursor: pointer;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 9px;
}

.rk-filterchip--on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.rk-seg {
  display: inline-flex;
  border: 1px solid var(--rule);
  overflow: hidden;
  border-radius: 999px;
}

.rk-seg button {
  font-family: var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink3);
  cursor: pointer;
  border: none;
  border-right: 1px solid var(--rule);
  background: none;
  padding: 4px 10px;
  font-size: 8.5px;
}

.rk-seg button:last-child {
  border-right: none;
}

.rk-seg button.rk-seg--on {
  background: var(--ink);
  color: var(--bg);
}

.rk-live {
  display: inline-flex;
  font-family: var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  color: var(--ink3);
  cursor: pointer;
  background: var(--raise);
  border-radius: 999px;
  align-items:  center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 8.5px;
}

.rk-live__dot {
  background: var(--faint);
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.rk-live--on {
  border-color: color-mix(in srgb, var(--listen) 40%, transparent);
  color: var(--listen-tx);
  background: color-mix(in srgb, var(--listen) 6%, transparent);
}

.rk-live--on .rk-live__dot {
  background: var(--listen);
  animation: rk-lpulse 1.6s infinite;
}

@keyframes rk-lpulse {
  0%, 100% {
    box-shadow: 0 0 #e63b2e66;
  }

  50% {
    box-shadow: 0 0 0 4px #e63b2e00;
  }
}

.rk-table {
  display: flex;
  flex-direction: column;
}

.rk-row {
  display: grid;
  border-bottom: 1px solid var(--rule2);
  color: var(--ink);
  align-items:  center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 12px;
}

.rk-row:hover:not(.rk-row--head) {
  background: var(--panel2);
}

.rk-row--head {
  font-family: var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink3);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  background: var(--panel2);
  z-index: 1;
  font-size: 8px;
  top: 0;
}

.rk-row--sel {
  background: var(--panel2);
  box-shadow: inset 2px 0 0 var(--ink);
}

.rk-row--link {
  cursor: pointer;
}

.rk-num {
  text-align: right;
  font-family: var(--mono);
  color: var(--ink2);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
}

.rk-num--tot {
  color: var(--ink);
  font-weight: 700;
}

.rk-cell-strong {
  font-weight: 600;
}

.rk-cell-mut {
  color: var(--ink3);
}

.rk-statico {
  display: flex;
  border-radius: 7px 1px 7px 7px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 24px;
  height: 24px;
}

.rk-statico i {
  display: block;
  border-radius: 3px;
  width: 11px;
  height: 11px;
}

.rk-statico--ok {
  background: color-mix(in srgb, var(--ok) 12%, transparent);
}

.rk-statico--ok i {
  background: var(--ok);
}

.rk-statico--run {
  background: color-mix(in srgb, var(--speak) 12%, transparent);
}

.rk-statico--run i {
  background: var(--speak);
}

.rk-statico--hold {
  background: color-mix(in srgb, var(--hold) 14%, transparent);
}

.rk-statico--hold i {
  background: var(--hold);
}

.rk-statico--fail {
  background: color-mix(in srgb, var(--listen) 12%, transparent);
}

.rk-statico--fail i {
  background: var(--listen);
}

.rk-statico--mut {
  background: var(--panel);
}

.rk-statico--mut i {
  background: var(--faint);
}

.rk-drawer {
  display: flex;
  overflow: hidden;
  background: var(--bg);
  flex-direction: column;
  height: 100%;
}

.rk-drawer__head {
  border-bottom: 1px solid var(--rule2);
  flex-shrink: 0;
  padding: 13px 16px 10px;
}

.rk-drawer__title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.rk-drawer__meta {
  display: flex;
  font-family: var(--mono);
  color: var(--ink3);
  align-items:  center;
  gap: 8px;
  margin-top: 7px;
  font-size: 9px;
}

.rk-drawer__body {
  overflow-y: auto;
  flex: 1;
  padding: 0 16px;
}

.rk-drawer__label {
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink3);
  padding: 12px 0 6px;
  font-size: 8px;
}

.rk-drawer__text {
  color: var(--ink2);
  font-size: 12px;
  line-height: 1.55;
}

.rk-drawer__raw {
  font-family: var(--mono);
  color: var(--ink2);
  background: var(--panel2);
  border: 1px solid var(--rule);
  overflow: auto;
  white-space: pre;
  border-radius: 8px 2px 8px 8px;
  max-height: 220px;
  margin-bottom: 12px;
  padding: 10px 12px;
  font-size: 10px;
  line-height: 1.7;
}

.rk-drawer__raw .k {
  color: var(--ink3);
}

.rk-drawer__actions {
  display: flex;
  border-top: 1px solid var(--rule2);
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 7px;
  padding: 11px 16px 14px;
}

.rk-deeplink {
  display: inline-flex;
  color: var(--ink);
  border: 1px solid var(--rule);
  cursor: pointer;
  background: var(--raise);
  border-radius: 7px 2px 7px 7px;
  align-items:  center;
  gap: 6px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 600;
}

.rk-deeplink:hover {
  border-color: var(--ink3);
}

.rk-drawer__empty {
  text-align: center;
  color: var(--ink3);
  padding: 30px 16px;
  font-size: 12px;
}

.rk-shape {
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.rk-shape--circle {
  background: var(--panel);
  box-shadow: inset 0 0 0 1.4px var(--ink2);
  border-radius: 50%;
}

.rk-shape--drop {
  background: var(--panel);
  box-shadow: inset 0 0 0 1.4px var(--ink2);
  border-radius: 50% 22% 50% 50%;
  transform: rotate(45deg);
}

.rk-shape--square {
  background: var(--panel);
  box-shadow: inset 0 0 0 1.4px var(--ink2);
  border-radius: 24% 6% 24% 24%;
}

.rk-shape--peak {
  clip-path: polygon(50% 4%, 96% 92%, 4% 92%);
  background: var(--ink2);
}

.rk-shape--ring {
  box-shadow: inset 0 0 0 2.6px var(--ink2);
  background: none;
  border-radius: 50%;
}

.rk-shape--diamond {
  background: var(--panel);
  box-shadow: inset 0 0 0 1.4px var(--ink2);
  border-radius: 14%;
  transform: rotate(45deg);
}

.rk-empty {
  border: 1px dashed var(--rule);
  border-radius: var(--corner);
  text-align: center;
  background: var(--panel2);
  padding: 26px;
}

.rk-empty__drop {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 50% 50% 50% 7px;
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  transform: rotate(45deg);
}

.rk-empty__t {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.rk-empty__s {
  color: var(--ink2);
  max-width: 44ch;
  margin: 6px auto 12px;
  font-size: 12.5px;
  line-height: 1.5;
}

.rk-skeleton {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.rk-skeleton__bar {
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel2) 45%, var(--panel) 65%);
  animation: rk-shimmer 1.6s linear infinite;
  background-size: 200% 100%;
  border-radius: 6px;
  height: 13px;
}

@keyframes rk-shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rk-skeleton__bar, .rk-live--on .rk-live__dot {
    animation: none;
  }
}

.rk-toast {
  display: inline-flex;
  font-family: var(--mono);
  color: var(--ink);
  background: color-mix(in srgb, var(--raise) 70%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--sh-md);
  border: .5px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 9px 2px 9px 9px;
  align-items:  center;
  gap: 9px;
  padding: 9px 14px;
  font-size: 10.5px;
}

.rk-toast__dot {
  background: var(--ok);
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.rk-input {
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--corner-sm);
  background: var(--raise);
  box-shadow: var(--sh-sm);
  font-size: 12.5px;
  font-family: var(--sans);
  padding: 8px 12px;
}

.rk-input::placeholder {
  color: var(--ink3);
}

.rk-input:focus {
  outline: none;
  border-color: var(--ink2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent);
}

.rk-input--mono {
  font-family: var(--mono);
  padding: 6px 11px;
  font-size: 11.5px;
}

.rk-select {
  font-family: var(--mono);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--corner-sm);
  background: var(--raise);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  padding: 6px 11px;
  font-size: 11.5px;
}

.rk-switch {
  background: var(--ink);
  position: relative;
  cursor: pointer;
  transition: background .18s var(--ease);
  border: none;
  border-radius: 999px;
  flex-shrink: 0;
  width: 28px;
  height: 16px;
  padding: 0;
}

.rk-switch i {
  position: absolute;
  background: var(--bg);
  transition: left .18s var(--ease), right .18s var(--ease);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  top: 2px;
  right: 2px;
}

.rk-switch--off {
  background: var(--rule);
}

.rk-switch--off i {
  left: 2px;
  right: auto;
}

.rk-switch:focus-visible {
  outline: 1.5px solid var(--speak);
  outline-offset: 2px;
}

.rk-check {
  display: inline-flex;
  color: var(--ink2);
  cursor: pointer;
  align-items:  center;
  gap: 6px;
  font-size: 11px;
}

.rk-check__bx {
  border: 1.5px solid var(--ink2);
  display: flex;
  border-radius: 4px 1px 4px 4px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 13px;
  height: 13px;
}

.rk-check--on .rk-check__bx {
  background: var(--ink);
  border-color: var(--ink);
}

.rk-check--on .rk-check__bx:after {
  content: "";
  background: var(--bg);
  border-radius: 2px;
  width: 6px;
  height: 6px;
}

/* ui/src/v2/rooms/RoomShell.css */
.v2-room-overlay {
  position: fixed;
  top: var(--v2-header-height);
  left: 0;
  right: var(--v2-rail-width);
  z-index: var(--z-room);
  display: flex;
  animation: v2-room-scrim-in var(--dur-med) var(--ease-out);
  background: #1a1a1a52;
  justify-content: stretch;
  align-items: stretch;
  bottom: 0;
}

.v2-room {
  background: var(--paper);
  display: flex;
  overflow: hidden;
  outline: none;
  animation: v2-room-slide-in var(--dur-slow) var(--ease-out);
  flex-direction: column;
  flex: 1;
}

.v2-room__header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:  center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-6);
  border-bottom: var(--hair);
  background: var(--paper);
  flex-shrink: 0;
}

.v2-room__header-left {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  min-width: 0;
}

.v2-room__back {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
  border-radius: var(--r-1);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  background: none;
  border: 0;
  padding: 6px 10px;
}

.v2-room__back:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.v2-room__back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.v2-room__breadcrumb {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-left: var(--s-3);
  border-left: var(--hair-soft);
}

.v2-room__breadcrumb-sep {
  color: var(--ink-3);
  opacity: .6;
}

.v2-room__breadcrumb-item[data-segment="source"] {
  opacity: .7;
}

.v2-room__breadcrumb-item[data-segment="context"] {
  text-transform: none;
  letter-spacing: .02em;
  color: var(--ink-2);
}

.v2-room__breadcrumb-item[data-segment="room"] {
  color: var(--ink-2);
}

.v2-room__header-center {
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items:  center;
  min-width: 0;
}

.v2-room__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
  line-height: 1.1;
}

.v2-room__subtitle {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}

.v2-room__header-right {
  display: flex;
  justify-content: flex-end;
  align-items:  center;
  gap: var(--s-2);
  min-width: 0;
}

.v2-room__close {
  display: inline-flex;
  cursor: pointer;
  color: var(--ink-2);
  border-radius: var(--r-pill);
  margin-left: var(--s-2);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  background: none;
  border: 0;
  justify-content: center;
  align-items:  center;
  width: 32px;
  height: 32px;
}

.v2-room__close:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.v2-room__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.v2-room__body {
  overflow: auto;
  background: var(--paper);
  flex: 1;
}

@keyframes v2-room-scrim-in {
  from {
    background: #1a1a1a00;
  }

  to {
    background: #1a1a1a52;
  }
}

@keyframes v2-room-slide-in {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2-room-overlay, .v2-room {
    animation: none;
  }
}

/* ui/src/v2/rooms/tools/ToolsRoom.css */
.rk-tools {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  height: 100%;
  min-height: 0;
}

.rk-tools--expanded {
  display: grid;
  grid-template-columns: 1fr 380px;
}

.rk-tools--inline {
  display: flex;
  flex-direction: column;
}

.rk-tools__list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.rk-tools--expanded .rk-tools__list {
  border-right: 1px solid var(--rule);
}

.rk-tools__bar {
  border-bottom: 1px solid var(--rule);
  background: var(--panel2);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 8px;
  padding: 10px 14px;
}

.rk-tools__search {
  display: flex;
  border: 1px solid var(--rule);
  border-radius: var(--corner-sm);
  background: var(--raise);
  color: var(--ink3);
  box-shadow: var(--sh-sm);
  align-items:  center;
  gap: 7px;
  padding: 6px 10px;
}

.rk-tools__search input {
  outline: none;
  font-family: var(--sans);
  color: var(--ink);
  background: none;
  border: none;
  flex: 1;
  font-size: 12px;
}

.rk-tools__search input::placeholder {
  color: var(--ink3);
}

.rk-tools__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rk-tools__scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.rk-tools__empty {
  padding: 22px 16px;
}

.rk-tools__msg {
  color: var(--ink3);
  padding: 22px 16px;
  font-size: 12px;
}

.rk-toolrow {
  display: grid;
  grid-template-columns: 26px 1fr;
  border-bottom: 1px solid var(--rule2);
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  align-items:  start;
  gap: 9px;
  width: 100%;
  padding: 9px 14px;
}

.rk-toolrow:hover {
  background: var(--panel2);
}

.rk-toolrow--sel {
  background: var(--panel2);
  box-shadow: inset 2px 0 0 var(--ink);
}

.rk-toolrow__icon {
  background: var(--panel);
  border: 1px solid var(--rule);
  display: flex;
  color: var(--ink3);
  border-radius: 7px 1px 7px 7px;
  justify-content: center;
  align-items:  center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
}

.rk-toolrow__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.rk-toolrow__head {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.rk-toolrow__name {
  font-family: var(--mono);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 500;
}

.rk-toolrow__desc {
  color: var(--ink3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
  font-size: 10.5px;
  line-height: 1.4;
}

.rk-toolrow__meta {
  font-family: var(--mono);
  letter-spacing: .04em;
  color: var(--ink3);
  display: flex;
  gap: 6px;
  font-size: 8px;
}

.rk-tools__detail {
  overflow: hidden;
  min-height: 0;
}

.rk-tool-params {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
}

.rk-tool-param__head {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 8px;
}

.rk-tool-param__name {
  font-family: var(--mono);
  color: var(--ink);
  background: var(--panel2);
  border: 1px solid var(--rule2);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 11.5px;
}

.rk-tool-param__type {
  font-family: var(--mono);
  color: var(--ink3);
  font-size: 9px;
}

.rk-tool-param__req {
  font-family: var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hold-tx);
  border: 1px solid color-mix(in srgb, var(--hold) 35%, transparent);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 8px;
}

.rk-tool-param__desc {
  color: var(--ink2);
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.45;
}

.rk-tool-noparams {
  color: var(--ink3);
  font-size: 12px;
}

/* ui/src/v2/rooms/logs/LogsRoom.css */
.rk-logs {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  height: 100%;
  min-height: 0;
}

.rk-logs--expanded {
  display: grid;
  grid-template-columns: 1fr 340px;
}

.rk-logs--inline {
  display: flex;
  flex-direction: column;
}

.rk-logs__list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.rk-logs--expanded .rk-logs__list {
  border-right: 1px solid var(--rule);
}

.rk-logs__bar {
  border-bottom: 1px solid var(--rule);
  background: var(--panel2);
  flex-shrink: 0;
  padding: 10px 14px;
}

.rk-logs__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rk-logs__src {
  display: inline-flex;
  align-items:  center;
  gap: 6px;
}

.rk-logs__src .v2-icon {
  width: 13px;
  height: 13px;
}

.rk-logs__count {
  font-family: var(--mono);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 6px;
  padding: 0 4px;
  font-size: 8px;
}

.rk-filterchip--on .rk-logs__count {
  background: color-mix(in srgb, var(--bg) 22%, transparent);
}

.rk-logs__controls {
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-top: 9px;
}

.rk-logs__refresh {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: var(--corner-sm);
  background: var(--raise);
  color: var(--ink3);
  cursor: pointer;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 26px;
}

.rk-logs__refresh:hover {
  color: var(--ink);
  border-color: var(--ink3);
}

.rk-logs__scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.rk-logs__scroll-pad {
  padding: 22px 16px;
}

.rk-logs__msg {
  color: var(--ink3);
  padding: 22px 16px;
  font-size: 12px;
}

.rk-logrow {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  border-bottom: 1px solid var(--rule2);
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  align-items:  start;
  gap: 9px;
  width: 100%;
  padding: 8px 14px;
}

.rk-logrow:hover {
  background: var(--panel2);
}

.rk-logrow--sel {
  background: var(--panel2);
  box-shadow: inset 2px 0 0 var(--ink);
}

.rk-logrow__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rk-logrow__title {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.rk-logrow__title b {
  font-weight: 700;
}

.rk-logrow__sum {
  color: var(--ink3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
  font-size: 10.5px;
  line-height: 1.4;
}

.rk-logrow__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 1px;
}

.rk-logrow__time {
  font-family: var(--mono);
  color: var(--ink3);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 9px;
}

.rk-logtag {
  font-family: var(--mono);
  letter-spacing: .02em;
  color: var(--ink3);
  border: 1px solid var(--rule);
  white-space: nowrap;
  border-radius: 999px;
  padding: 1.5px 7px;
  font-size: 8px;
}

.rk-logs__detail {
  overflow: hidden;
  min-height: 0;
}

.rk-logs__detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 4px;
}

/* ui/src/v2/rooms/agents/AgentsRoom.css */
.v2-agents {
  display: flex;
  position: relative;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.v2-agents__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6) var(--s-3);
}

@media (max-width: 720px) {
  .v2-agents__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.v2-agents__stat {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v2-agents__stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.v2-agents__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--ink);
  line-height: 1.1;
}

.v2-agents__stat-sub {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.v2-agents__tabs {
  display: flex;
  gap: var(--s-1);
  padding: 0 var(--s-6);
  border-bottom: var(--hair-soft);
}

.v2-agents__tab {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-3);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  margin-bottom: -1px;
}

.v2-agents__tab:hover {
  color: var(--ink);
}

.v2-agents__tab[data-active="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.v2-agents__tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-1);
}

.v2-agents__tab-badge {
  font-family: var(--font-mono);
  border-radius: var(--r-pill);
  background: var(--paper-3);
  color: var(--ink-3);
  letter-spacing: 0;
  padding: 1px 6px;
  font-size: 10px;
}

.v2-agents__tab[data-active="true"] .v2-agents__tab-badge {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.v2-agents__toolbar {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-6);
  border-bottom: var(--hair-soft);
}

.v2-agents__search {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  color: var(--ink-3);
  flex: 1;
  max-width: 360px;
  padding: 6px 10px;
}

.v2-agents__search:focus-within {
  border-color: var(--ink-3);
  color: var(--ink-2);
}

.v2-agents__search-input {
  outline: 0;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  background: none;
  border: 0;
  flex: 1;
}

.v2-agents__search-input::placeholder {
  color: var(--ink-3);
}

.v2-agents__spawn-btn {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  border: 0;
  padding: 6px 12px;
}

.v2-agents__spawn-btn:hover {
  background: var(--ink-2);
}

.v2-agents__spawn-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.v2-agents__command {
  overflow-y: auto;
  padding: var(--s-4) var(--s-6) var(--s-6);
  flex: 1;
}

.v2-agents__section {
  display: flex;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  flex-direction: column;
}

.v2-agents__section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.v2-agents__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-3);
}

.v2-agents__card {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  display: flex;
  gap: var(--s-3);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  flex-direction: column;
}

.v2-agents__card[data-active="true"] {
  border-color: var(--rule);
  background: var(--paper);
}

.v2-agents__card-head {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: var(--s-3);
  align-items:  flex-start;
}

.v2-agents__card-icon {
  border-radius: var(--r-2);
  background: var(--paper-3);
  color: var(--ink-2);
  display: inline-flex;
  justify-content: center;
  align-items:  center;
  width: 36px;
  height: 36px;
}

.v2-agents__card[data-active="true"] .v2-agents__card-icon {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}

.v2-agents__card-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.v2-agents__card-name {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.v2-agents__card-task {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.v2-agents__card-task[data-empty="true"] {
  color: var(--ink-3);
  font-style: italic;
}

.v2-agents__card-result {
  border-top: var(--hair-soft);
  padding-top: var(--s-2);
}

.v2-agents__card-result-summary {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  cursor: pointer;
  list-style: none;
}

.v2-agents__card-result-summary::-webkit-details-marker {
  display: none;
}

.v2-agents__card-result-summary:after {
  content: "▸";
  font-size: var(--text-xs);
  color: var(--ink-3);
  transition: transform var(--dur-fast) var(--ease-out);
  margin-left: auto;
}

.v2-agents__card-result[open] .v2-agents__card-result-summary:after {
  transform: rotate(90deg);
}

.v2-agents__card-result-hint {
  font-family: var(--font-mono);
  color: var(--ink-3);
  font-size: 10px;
}

.v2-agents__card-result-body {
  margin-top: var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-1);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-2);
  line-height: var(--lh-body);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
  user-select: text;
  max-height: 220px;
}

.v2-agents__card-foot {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.v2-agents__card-foot-spacer {
  flex: 1;
}

.v2-agents__authority {
  display: inline-flex;
  align-items:  center;
  gap: 3px;
}

.v2-agents__pip {
  background: var(--rule);
  border-radius: 1px;
  width: 4px;
  height: 10px;
}

.v2-agents__pip[data-filled="true"] {
  background: var(--ink-2);
}

.v2-agents__pip[data-filled="true"][data-active="true"] {
  background: var(--accent);
}

.v2-agents__authority-label {
  margin-left: var(--s-2);
  color: var(--ink-3);
}

.v2-agents__tools, .v2-agents__since {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.v2-agents__orbital {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.v2-agents__orbital-stage {
  position: relative;
  margin: var(--s-4) var(--s-6);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  background: var(--paper-2);
  overflow: hidden;
  flex: 1;
  min-height: 520px;
}

.v2-agents__orbital-viewport {
  position: absolute;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.v2-agents__orbital-canvas {
  position: relative;
  aspect-ratio: 1;
  flex-shrink: 0;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 720px;
}

.v2-agents__ring {
  position: absolute;
  border: 1px dashed var(--rule);
  pointer-events: none;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.v2-agents__ring--inner {
  aspect-ratio: 1;
  width: 44%;
}

.v2-agents__ring--outer {
  aspect-ratio: 1;
  width: 76%;
}

.v2-agents__orb {
  position: absolute;
  display: inline-flex;
  padding: var(--s-2) var(--s-3);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  font-family: var(--font-sans);
  text-align: center;
  flex-direction: column;
  align-items:  center;
  gap: 4px;
  max-width: 110px;
  font-size: 10px;
  line-height: 1.2;
  transform: translate(-50%, -50%);
}

.v2-agents__orb:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-agents__orb[data-active="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--paper));
}

.v2-agents__orb[data-selected="true"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.v2-agents__orb--center {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  padding: var(--s-3) var(--s-4);
}

.v2-agents__orb--center:hover {
  background: var(--ink-2);
}

.v2-agents__orb-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
  font-size: 10px;
}

.v2-agents__orbital-detail {
  position: absolute;
  bottom: var(--s-3);
  right: var(--s-3);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  display: flex;
  gap: var(--s-2);
  z-index: 2;
  pointer-events: auto;
  flex-direction: column;
  max-width: 280px;
  box-shadow: 0 4px 16px -8px #1a1a1a2e;
}

.v2-agents__orbital-detail-head {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: var(--s-2);
}

.v2-agents__orbital-detail-name {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  font-weight: 500;
}

.v2-agents__orbital-detail-task {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-2);
  line-height: var(--lh-body);
}

.v2-agents__orbital-detail-result {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-2);
  line-height: var(--lh-body);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
  padding: var(--s-2) var(--s-3);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-1);
  user-select: text;
  max-height: 160px;
}

.v2-agents__orbital-detail-result-label {
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-1);
  font-size: 10px;
}

.v2-agents__orbital-detail-meta {
  font-family: var(--font-mono);
  color: var(--ink-3);
  font-size: 10px;
}

.v2-agents__ticker {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-6);
  border-top: var(--hair-soft);
  background: var(--paper);
  overflow: hidden;
}

.v2-agents__ticker-label {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  flex-shrink: 0;
  font-size: 10px;
}

.v2-agents__ticker-label:before {
  content: "";
  border-radius: var(--r-pill);
  background: var(--accent);
  width: 6px;
  height: 6px;
}

.v2-agents__ticker-track {
  overflow: hidden;
  position: relative;
  flex: 1;
  height: 24px;
}

.v2-agents__ticker-scroll {
  display: flex;
  gap: var(--s-5);
  white-space: nowrap;
  animation: v2-agents-ticker 40s linear infinite;
}

@keyframes v2-agents-ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2-agents__ticker-scroll {
    animation: none;
  }
}

.v2-agents__ticker-event {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-2);
}

.v2-agents__ticker-dot {
  border-radius: var(--r-pill);
  background: var(--ink-3);
  width: 6px;
  height: 6px;
}

.v2-agents__ticker-dot[data-event="done"] {
  background: var(--ok);
}

.v2-agents__ticker-dot[data-event="tool_call"] {
  background: var(--accent);
}

.v2-agents__ticker-dot[data-event="text"] {
  background: var(--ink-3);
}

.v2-agents__ticker-time {
  font-family: var(--font-mono);
  color: var(--ink-3);
  font-size: 10px;
}

.v2-agents__ticker-agent {
  color: var(--ink);
  font-weight: 500;
}

.v2-agents__ticker-empty {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
  font-style: italic;
}

.v2-agents__builder-redirect {
  display: flex;
  justify-content: center;
  align-items:  center;
  gap: var(--s-3);
  padding: var(--s-8);
  text-align: center;
  flex-direction: column;
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
}

.v2-agents__builder-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--ink);
  margin: 0;
}

.v2-agents__builder-body {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: var(--lh-body);
  margin: 0;
}

.v2-agents__builder-cta {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  cursor: pointer;
  margin-top: var(--s-2);
  transition: background var(--dur-fast) var(--ease-out);
  border: 0;
  padding: 8px 16px;
}

.v2-agents__builder-cta:hover {
  background: var(--ink-2);
}

.v2-agents__empty {
  padding: var(--s-8) var(--s-4);
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.v2-agents__error {
  padding: var(--s-3) var(--s-6);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  border-bottom: var(--hair-soft);
}

.v2-agents__toast {
  position: absolute;
  right: var(--s-4);
  bottom: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  border-radius: var(--r-2);
  z-index: 5;
  max-width: 360px;
  box-shadow: 0 6px 20px -10px #1a1a1a66;
}

.v2-agents__toast[data-tone="warn"] {
  background: var(--accent);
}

.v2-agents__overlay {
  position: fixed;
  display: flex;
  padding: var(--s-4);
  z-index: 65;
  background: #1a1a1a66;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.v2-agents__dialog {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  display: flex;
  outline: none;
  overflow: hidden;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
}

.v2-agents__dialog-head {
  display: flex;
  padding: var(--s-4) var(--s-5);
  border-bottom: var(--hair-soft);
  background: var(--paper-2);
  justify-content: space-between;
  align-items:  flex-start;
}

.v2-agents__dialog-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--ink);
}

.v2-agents__dialog-subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
  margin-top: 2px;
}

.v2-agents__dialog-close {
  display: inline-flex;
  color: var(--ink-3);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  background: none;
  border: 0;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
}

.v2-agents__dialog-close:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-agents__dialog-body {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-5);
  overflow-y: auto;
  flex-direction: column;
}

.v2-agents__field {
  display: flex;
  gap: var(--s-2);
  flex-direction: column;
}

.v2-agents__field-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.v2-agents__specialist-list {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.v2-agents__specialist-btn {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  padding: 4px 12px;
}

.v2-agents__specialist-btn:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-agents__specialist-btn[data-active="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.v2-agents__specialist-meta {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
  line-height: var(--lh-body);
  padding: var(--s-2) var(--s-3);
  background: var(--paper-2);
  border-radius: var(--r-1);
}

.v2-agents__textarea {
  padding: var(--s-2) var(--s-3);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-1);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  resize: vertical;
  width: 100%;
  min-height: 56px;
}

.v2-agents__textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.v2-agents__dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border-top: var(--hair-soft);
  background: var(--paper-2);
}

.v2-agents__btn-secondary, .v2-agents__btn-primary {
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  cursor: pointer;
  border: 1px solid var(--rule);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  padding: 6px 14px;
}

.v2-agents__btn-secondary {
  color: var(--ink-2);
  background: none;
}

.v2-agents__btn-secondary:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-agents__btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.v2-agents__btn-primary:hover {
  background: var(--ink-2);
}

.v2-agents__btn-primary:disabled, .v2-agents__btn-secondary:disabled {
  opacity: .5;
  cursor: default;
}

.v2-agents__empty-line {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
  font-style: italic;
}

.v2-agents--inline .v2-agents__stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: var(--s-3) var(--s-4) var(--s-2);
}

.v2-agents--inline .v2-agents__toolbar {
  padding: var(--s-2) var(--s-4);
}

.v2-agents--inline .v2-agents__command {
  padding: var(--s-3) var(--s-4) var(--s-4);
}

.v2-agents--inline .v2-agents__grid {
  grid-template-columns: 1fr;
}

.v2-agents__card, .v2-agents__stat, .v2-agents__orbital-stage {
  border-radius: var(--corner);
}

.v2-agents__card-icon {
  border-radius: var(--corner-sm);
}

.v2-agents__stat-value, .v2-agents__card-name {
  font-family: var(--sans);
  letter-spacing: -.015em;
  font-weight: 700;
}

.v2-agents__pip[data-filled="true"][data-active="true"] {
  background: var(--speak);
}

.v2-agents__orb[data-active="true"] {
  border-color: color-mix(in srgb, var(--speak) 55%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--speak) 20%, transparent);
}

.v2-agents__avatar-txt {
  font-family: var(--mono);
  letter-spacing: .02em;
  color: var(--ink2);
  font-size: 11px;
  font-weight: 700;
}

.v2-agents__orb .v2-agents__avatar-txt {
  font-size: 10px;
}

/* ui/src/v2/rooms/agentStrip/AgentStripRoom.css */
.agent-strip {
  display: flex;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.agent-strip__head {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: var(--s-3);
  border-bottom: var(--hair);
  background: var(--paper);
  flex: none;
  padding: 14px 16px 10px;
}

.agent-strip__head-left {
  display: flex;
  align-items:  center;
  gap: 8px;
  min-width: 0;
}

.agent-strip__head-pulse {
  border-radius: var(--r-pill);
  background: var(--ink-3);
  opacity: .45;
  flex: none;
  width: 7px;
  height: 7px;
  transition: background .2s, opacity .2s;
}

.agent-strip__head-pulse--on {
  opacity: 1;
  animation: agent-strip-pulse 1.6s ease-in-out infinite;
  background: #e5a91e;
}

.agent-strip__title {
  font-family: var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.agent-strip__count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  letter-spacing: .04em;
  white-space: nowrap;
  flex: none;
  font-size: 12px;
  font-weight: 500;
}

.agent-strip__count-sep {
  color: var(--ink-3);
  margin: 0 2px;
}

.agent-strip__list {
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  flex: auto;
  gap: 10px;
  padding: 10px 12px 4px;
}

.agent-strip__list::-webkit-scrollbar {
  width: 6px;
}

.agent-strip__list::-webkit-scrollbar-thumb {
  background: var(--ink-4, #0000001f);
  border-radius: 3px;
}

.agent-strip__list::-webkit-scrollbar-track {
  background: none;
}

.agent-strip__empty {
  display: flex;
  color: var(--ink-3);
  flex-direction: column;
  align-items:  center;
  gap: 6px;
  padding: 28px 16px;
}

.agent-strip__empty-dot {
  border-radius: var(--r-pill);
  background: var(--ink-3);
  opacity: .45;
  animation: agent-strip-breathe 2.4s ease-in-out infinite;
  width: 6px;
  height: 6px;
  margin-bottom: 4px;
}

@keyframes agent-strip-breathe {
  0%, 100% {
    opacity: .25;
    transform: scale(1);
  }

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

.agent-strip__empty-eyebrow {
  font-family: var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-size: 10px;
}

.agent-strip__empty-line {
  font-family: var(--font-sans);
  color: var(--ink-2);
  text-align: center;
  max-width: 220px;
  font-size: 12px;
  font-style: italic;
  line-height: 1.4;
}

.agent-strip__card {
  display: flex;
  position: relative;
  background: #fffdf7;
  border: 1px solid #00000014;
  border-radius: 6px;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 11px;
  box-shadow: 2px 2px #00000014;
}

.agent-strip__card--running {
  border-color: #e5a91e73;
  box-shadow: 2px 2px #e5a91e38;
}

.agent-strip__card--completed {
  border-color: #4a7c3f47;
}

.agent-strip__card--failed {
  background: #c23a2a0a;
  border-color: #c23a2a52;
  box-shadow: 2px 2px #c23a2a2e;
}

.agent-strip__row {
  display: flex;
  align-items:  center;
  gap: 9px;
}

.agent-strip__name {
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.01em;
  flex: auto;
  font-size: 13px;
  font-weight: 600;
}

.agent-strip__elapsed {
  font-family: var(--font-mono);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  flex: none;
  font-size: 11px;
}

.agent-strip__task {
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
  padding-left: 17px;
  font-size: 12px;
  line-height: 1.4;
}

.agent-strip__dot {
  border-radius: var(--r-pill);
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
}

.agent-strip__dot--running {
  animation: agent-strip-pulse 1.6s ease-in-out infinite;
  background: #e5a91e;
  box-shadow: 0 0 #e5a91e99;
}

@keyframes agent-strip-pulse {
  0%, 100% {
    box-shadow: 0 0 #e5a91e8c;
  }

  50% {
    box-shadow: 0 0 0 5px #e5a91e00;
  }
}

.agent-strip__dot--completed {
  background: #4a7c3f;
}

.agent-strip__dot--failed {
  background: var(--accent);
}

.agent-strip__dot--idle {
  border: 1px solid var(--ink-3);
  background: none;
  width: 7px;
  height: 7px;
}

.agent-strip__progress {
  overflow: hidden;
  position: relative;
  background: #e5a91e29;
  border-radius: 1px;
  height: 2px;
  margin-top: 2px;
  margin-left: 17px;
}

.agent-strip__progress-bar {
  position: absolute;
  animation: agent-strip-progress 1.6s linear infinite;
  background: linear-gradient(90deg, #e5a91e00 0%, #e5a91ef2 50%, #e5a91e00 100%);
  width: 40%;
  height: 100%;
  top: 0;
  left: 0;
}

@keyframes agent-strip-progress {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(350%);
  }
}

.agent-strip__result {
  background: #00000006;
  border-left: 2px solid #4a7c3f8c;
  border-radius: 0 4px 4px 0;
  margin-top: 4px;
  margin-left: 17px;
  padding: 8px 10px 9px;
}

.agent-strip__card--failed .agent-strip__result {
  border-left-color: var(--accent);
  background: #c23a2a0d;
}

.agent-strip__result--empty {
  border-left-color: var(--ink-3);
}

.agent-strip__result-eyebrow {
  font-family: var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3px;
  font-size: 9px;
}

.agent-strip__card--failed .agent-strip__result-eyebrow {
  color: var(--accent);
}

.agent-strip__result-body {
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  -webkit-box-orient: vertical;
  font-size: 12px;
  line-height: 1.45;
}

.agent-strip__result--expanded .agent-strip__result-body {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
  overflow-y: auto;
  max-height: 220px;
}

.agent-strip__result-body--muted {
  color: var(--ink-3);
  font-style: italic;
}

.agent-strip__result-toggle {
  font-family: var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
  background: none;
  border: none;
  margin-top: 5px;
  padding: 0;
  transition: color .12s;
  font-size: 10px;
}

.agent-strip__result-toggle:hover {
  color: var(--ink);
}

.agent-strip__idle-group {
  border-top: var(--hair);
  background: #00000005;
  flex: none;
}

.agent-strip__idle-toggle {
  display: flex;
  cursor: pointer;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  background: none;
  border: none;
  align-items:  center;
  gap: 6px;
  width: 100%;
  padding: 8px 14px;
  transition: color .12s;
  font-size: 10px;
}

.agent-strip__idle-toggle:hover {
  color: var(--ink-2);
}

.agent-strip__idle-chev {
  text-align: center;
  color: var(--ink-3);
  width: 10px;
  font-size: 11px;
}

.agent-strip__idle-label {
  text-align: left;
  flex: auto;
}

.agent-strip__last-update {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: lowercase;
  color: var(--ink-3);
  flex: none;
  font-size: 10px;
}

.agent-strip__idle-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 14px 10px;
}

.agent-strip__idle {
  display: flex;
  align-items:  center;
  gap: 8px;
  padding: 3px 0;
}

.agent-strip__idle-name {
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: none;
  font-size: 12px;
}

.agent-strip__idle-spec {
  font-family: var(--font-mono);
  color: var(--ink-3);
  letter-spacing: .04em;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: auto;
  font-size: 10px;
}

.agent-strip__last-update-bar {
  border-top: var(--hair);
  display: flex;
  background: #00000005;
  flex: none;
  justify-content: flex-end;
  padding: 6px 14px;
}

/* ui/src/v2/ui/ConfirmDialog.css */
.jconfirm {
  position: fixed;
  z-index: 400;
  display: flex;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: jconfirm-in .14s var(--ease-out, ease);
  justify-content: center;
  align-items:  center;
  padding: 24px;
  inset: 0;
}

@keyframes jconfirm-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.jconfirm__box {
  background: var(--raise);
  border: 1px solid var(--rule);
  box-shadow: 0 30px 70px -30px #0000008c, 0 0 0 1px color-mix(in srgb, var(--ink) 4%, transparent);
  animation: jconfirm-pop .16s var(--ease-out, ease);
  border-radius: 14px 3px 14px 14px;
  width: min(420px, 100%);
  padding: 20px 22px 18px;
}

@keyframes jconfirm-pop {
  from {
    opacity: 0;
    transform: translateY(6px)scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.jconfirm__title {
  font-family: var(--sans);
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
}

.jconfirm__body {
  color: var(--ink3);
  white-space: pre-line;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
}

.jconfirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

.jconfirm__btn {
  font-family: var(--sans);
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: 8px 2px 8px 8px;
  height: 36px;
  padding: 0 15px;
  transition: filter .15s, border-color .15s, background .15s;
  font-size: 13px;
  font-weight: 600;
}

.jconfirm__btn:focus-visible {
  outline: 2px solid var(--speak);
  outline-offset: 2px;
}

.jconfirm__btn--ghost {
  background: var(--raise);
  border-color: var(--rule);
  color: var(--ink);
}

.jconfirm__btn--ghost:hover {
  border-color: var(--ink3);
}

.jconfirm__btn--pri {
  background: var(--ink);
  color: var(--bg);
}

.jconfirm__btn--pri:hover {
  filter: brightness(1.08);
}

.jconfirm__btn--danger {
  background: var(--listen);
  color: #fff;
}

.jconfirm__btn--danger:hover {
  filter: brightness(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .jconfirm, .jconfirm__box {
    animation: none;
  }
}

/* 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/v2/rooms/workflows/WorkflowEditor.css */
.wf-editor {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: var(--v2-rail-width);
  background: var(--paper);
  display: flex;
  z-index: 100;
  --wf-edge-stroke: var(--ink-3);
  --wf-edge-stroke-selected: var(--accent);
  --wf-handle-bg: var(--paper-2);
  --wf-handle-border: var(--ink-3);
  --wf-handle-border-hover: var(--accent);
  --wf-handle-size: 24px;
  --wf-handle-dot: 10px;
  flex-direction: column;
}

.wf-editor__header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper-2);
  flex-shrink: 0;
}

.wf-editor__title h2 {
  color: var(--ink);
  margin: 0;
  font-size: 1rem;
}

.wf-editor__title-text {
  color: var(--ink);
  cursor: text;
  border-radius: var(--r-2);
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  margin: 0 0 0 -6px;
  padding: 2px 6px;
  font-size: 1rem;
}

.wf-editor__title-text:hover {
  background: var(--paper-3);
}

.wf-editor__title-text:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.wf-editor__title-text--locked {
  cursor: default;
}

.wf-editor__title-text--locked:hover {
  background: none;
}

.wf-editor__title-input {
  color: var(--ink);
  background: var(--paper-3);
  border: 1px solid var(--accent);
  border-radius: var(--r-2);
  outline: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 200px;
  max-width: 480px;
  margin: 0 0 0 -6px;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 1rem;
}

.wf-editor__title p {
  color: var(--ink-3);
  margin: 2px 0 0;
  font-size: .78rem;
}

.wf-editor__title code {
  background: var(--paper-3);
  border-radius: 3px;
  padding: 0 4px;
}

.wf-editor__actions {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
}

.wf-editor__toast {
  border-radius: var(--r-2);
  border: 1px solid var(--rule-soft);
  background: var(--paper-3);
  padding: 4px 10px;
  font-size: .8rem;
}

.wf-editor__toast--ok {
  color: var(--accent-ok, #5eead4);
  border-color: var(--accent-ok-soft, #134e4a);
}

.wf-editor__toast--warn {
  color: var(--accent-warn, #fbbf24);
  border-color: var(--accent-warn-soft, #713f12);
}

.wf-editor__overlay-banner {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  padding: 6px var(--s-5);
  border-bottom: 1px solid var(--rule-soft);
  background: color-mix(in srgb, var(--accent) 8%, var(--paper-2));
  border-bottom-color: color-mix(in srgb, var(--accent) 30%, var(--rule-soft));
  font-family: var(--font-sans);
  color: var(--ink);
  font-size: .8rem;
}

.wf-editor__overlay-banner code {
  background: var(--paper-3);
  border-radius: 3px;
  padding: 0 4px;
  font-size: .72rem;
}

.wf-editor__overlay-banner-icon {
  display: inline-flex;
  color: var(--accent);
  align-items:  center;
  width: 18px;
  height: 18px;
}

.wf-editor__overlay-banner--ok .wf-editor__overlay-banner-icon {
  color: var(--ok);
}

.wf-editor__overlay-banner--warn .wf-editor__overlay-banner-icon {
  color: var(--warn);
}

.wf-editor__overlay-banner--accent .wf-editor__overlay-banner-icon {
  color: var(--accent);
}

.wf-editor__overlay-banner-text {
  flex: auto;
}

.wf-editor__overlay-banner-clear {
  display: inline-flex;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  color: var(--ink-2);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: none;
  align-items:  center;
  gap: 4px;
  padding: 2px 10px;
  font-size: .72rem;
}

.wf-editor__overlay-banner-clear:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.wf-run-detail {
  position: fixed;
  z-index: 200;
  display: flex;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  overflow: hidden;
  flex-direction: column;
  width: 380px;
  max-height: min(70vh, 560px);
  box-shadow: 0 12px 40px -8px #00000080, 0 4px 12px -4px #00000040;
}

.wf-run-detail__header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items:  center;
  gap: var(--s-2);
  padding: 6px var(--s-3);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper-2);
  font-family: var(--font-sans);
  font-size: .78rem;
}

.wf-run-detail__header code {
  font-family: var(--font-mono);
  background: var(--paper-3);
  color: var(--ink);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: .72rem;
}

.wf-run-detail__header--ok {
  border-bottom-color: color-mix(in srgb, var(--ok) 35%, var(--rule-soft));
}

.wf-run-detail__header--warn {
  border-bottom-color: color-mix(in srgb, var(--warn) 35%, var(--rule-soft));
}

.wf-run-detail__header--accent {
  border-bottom-color: color-mix(in srgb, var(--accent) 35%, var(--rule-soft));
}

.wf-run-detail__status {
  font-family: var(--font-mono);
  letter-spacing: .05em;
  color: var(--ink-2);
  display: flex;
  align-items:  center;
  gap: 6px;
  font-size: .7rem;
  font-weight: 500;
}

.wf-run-detail__duration {
  color: var(--ink-3);
  font-weight: 400;
}

.wf-run-detail__close {
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-pill);
  display: inline-flex;
  color: var(--ink-3);
  cursor: pointer;
  background: none;
  justify-content: center;
  align-items:  center;
  width: 22px;
  height: 22px;
}

.wf-run-detail__close:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.wf-run-detail__body {
  overflow-y: auto;
  padding: var(--s-3);
  display: flex;
  gap: var(--s-3);
  flex-direction: column;
}

.wf-run-detail__empty {
  padding: var(--s-4);
  text-align: center;
  color: var(--ink-3);
  font-size: .82rem;
  font-style: italic;
}

.wf-run-detail__section h4 {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 4px;
  font-size: .72rem;
  font-weight: 600;
}

.wf-run-detail__section pre {
  padding: var(--s-2);
  font-family: var(--font-mono);
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  margin: 0;
  font-size: .72rem;
  line-height: 1.45;
}

.wf-run-detail__section--error pre {
  background: color-mix(in srgb, var(--accent) 6%, var(--paper-2));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--rule-soft));
  color: var(--accent);
}

.wf-node--run-succeeded {
  border-color: var(--ok);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ok) 30%, transparent);
}

.wf-node--run-failed {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.wf-node--run-paused {
  border-color: var(--warn);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--warn) 30%, transparent);
}

.wf-node--run-running {
  border-color: var(--warn);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--warn) 30%, transparent);
  animation: wf-node-run-pulse 1.6s ease-in-out infinite;
}

.wf-node--run-skipped {
  opacity: .6;
}

.wf-node--run-not-reached {
  opacity: .4;
  filter: grayscale(60%);
}

@keyframes wf-node-run-pulse {
  0%, 100% {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--warn) 30%, transparent);
  }

  50% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 30%, transparent);
  }
}

.wf-node__run-pip {
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-left: auto;
}

.wf-node__run-pip--succeeded {
  background: var(--ok);
}

.wf-node__run-pip--failed {
  background: var(--accent);
}

.wf-node__run-pip--paused {
  background: var(--warn);
}

.wf-node__run-pip--running {
  background: var(--warn);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 30%, transparent);
}

.wf-node__run-pip--skipped {
  background: var(--ink-3);
}

.wf-editor__running-banner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items:  center;
  gap: var(--s-3);
  padding: 6px var(--s-5);
  border: 0;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
  transition: background var(--dur-fast) var(--ease-out);
  width: 100%;
}

.wf-editor__running-banner:hover {
  background: var(--paper-3);
}

.wf-editor__running-banner:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.wf-editor__running-banner--warn {
  background: color-mix(in srgb, var(--warn) 10%, var(--paper-2));
  border-bottom-color: color-mix(in srgb, var(--warn) 35%, var(--rule-soft));
}

.wf-editor__running-banner--warn:hover {
  background: color-mix(in srgb, var(--warn) 16%, var(--paper-2));
}

.wf-editor__running-banner-icon {
  position: relative;
  display: inline-flex;
  color: var(--warn);
  justify-content: center;
  align-items:  center;
  width: 22px;
  height: 22px;
}

.wf-editor__running-banner-pulse {
  position: absolute;
  background: color-mix(in srgb, var(--warn) 45%, transparent);
  animation: wf-banner-pulse 1.4s ease-out infinite;
  pointer-events: none;
  border-radius: 50%;
  inset: 0;
}

@keyframes wf-banner-pulse {
  0% {
    transform: scale(.6);
    opacity: .7;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.wf-editor__running-banner-text {
  letter-spacing: .02em;
  font-size: .82rem;
  font-weight: 500;
}

.wf-editor__running-banner-duration {
  font-family: var(--font-mono);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
}

.wf-editor__running-banner-cta {
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .72rem;
}

.wf-editor__running-banner:hover .wf-editor__running-banner-cta {
  color: var(--ink);
}

.wf-editor__body {
  display: flex;
  overflow: hidden;
  flex-direction: row;
  flex: auto;
  align-items: stretch;
  min-height: 0;
}

.wf-editor__canvas {
  position: relative;
  background: var(--paper);
  overflow: hidden;
  flex: auto;
  min-width: 0;
  min-height: 0;
}

.wf-editor__runs-panel {
  display: flex;
  border-left: 1px solid var(--rule-soft);
  background: var(--paper-2);
  overflow: hidden;
  flex-direction: column;
  flex: 0 0 320px;
  width: 320px;
}

.wf-editor__runs-header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper);
}

.wf-editor__runs-title {
  display: flex;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .05em;
  align-items:  center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
}

.wf-editor__runs-meta {
  color: var(--ink-3);
  text-transform: none;
  letter-spacing: 0;
  font-size: .7rem;
  font-weight: 400;
}

.wf-editor__runs-actions {
  display: flex;
  gap: 4px;
}

.wf-editor__runs-error {
  padding: var(--s-2) var(--s-3);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  font-size: .75rem;
}

.wf-editor__runs-empty {
  padding: var(--s-4);
  text-align: center;
  color: var(--ink-3);
  font-size: .82rem;
}

.wf-editor__runs-list {
  list-style: none;
  overflow-y: auto;
  flex: auto;
  margin: 0;
  padding: 0;
}

.wf-editor__run {
  border-bottom: 1px solid var(--rule-soft);
}

.wf-editor__run-head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  padding: var(--s-2) var(--s-3);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  color: var(--ink);
  background: none;
  border: 0;
  align-items:  center;
  gap: 8px;
  width: 100%;
  font-size: .78rem;
}

.wf-editor__run-head:hover {
  background: var(--paper-3);
}

.wf-editor__run-icon {
  display: inline-flex;
  justify-content: center;
  align-items:  center;
  width: 18px;
  height: 18px;
}

.wf-editor__run-status {
  letter-spacing: .04em;
  font-weight: 500;
}

.wf-editor__run-failed {
  grid-column: 2 / 3;
  color: var(--accent);
  font-size: .7rem;
  font-style: italic;
}

.wf-editor__run-time, .wf-editor__run-duration {
  font-family: var(--font-mono);
  color: var(--ink-3);
  white-space: nowrap;
  font-size: .7rem;
}

.wf-editor__run--ok .wf-editor__run-icon {
  color: var(--ok);
}

.wf-editor__run--warn .wf-editor__run-icon {
  color: var(--warn);
}

.wf-editor__run--accent .wf-editor__run-icon {
  color: var(--accent);
}

.wf-editor__run--neutral .wf-editor__run-icon {
  color: var(--ink-3);
}

.wf-editor__run-error {
  padding: 0 var(--s-3) 6px;
  color: var(--accent);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
  margin: 0;
  font-size: .72rem;
  line-height: 1.35;
}

.wf-editor__run-actions {
  display: flex;
  padding: 0 var(--s-3) 6px;
  justify-content: flex-end;
  gap: 4px;
}

.wf-editor__run--overlay-active {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.wf-editor__run-body {
  padding: var(--s-2) var(--s-3) var(--s-3);
  border-top: 1px dashed var(--rule-soft);
  display: flex;
  gap: var(--s-2);
  background: var(--paper);
  flex-direction: column;
}

.wf-editor__run-kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px var(--s-2);
  margin: 0;
  font-size: .72rem;
}

.wf-editor__run-kv dt {
  color: var(--ink-3);
}

.wf-editor__run-kv dd {
  color: var(--ink-2);
  margin: 0;
}

.wf-editor__run-kv code {
  background: var(--paper-3);
  border-radius: 3px;
  padding: 0 4px;
  font-size: .68rem;
}

.wf-editor__run-output summary {
  cursor: pointer;
  color: var(--ink-2);
  padding: 2px 0;
  font-size: .72rem;
}

.wf-editor__run-output pre {
  padding: var(--s-2);
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  font-family: var(--font-mono);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  margin: 4px 0 0;
  font-size: .68rem;
}

.wf-editor__runs-badge, .wf-editor__runs-count {
  display: inline-flex;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  justify-content: center;
  align-items:  center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  font-size: .65rem;
  font-weight: 500;
}

.wf-editor__runs-badge {
  background: var(--accent);
  color: var(--paper);
}

.wf-editor__runs-count {
  background: var(--paper-3);
  color: var(--ink-2);
  border: 1px solid var(--rule-soft);
}

.wf-editor__placeholder {
  display: flex;
  color: var(--ink-3);
  justify-content: center;
  align-items:  center;
  height: 100%;
  font-size: .9rem;
}

.wf-editor__placeholder--error {
  color: var(--accent-warn, #fbbf24);
}

.wf-editor__hint code {
  background: var(--paper-3);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: .78rem;
}

.wf-popover {
  position: fixed;
  z-index: 200;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  display: flex;
  overflow: hidden;
  flex-direction: column;
  max-height: min(70vh, 600px);
  box-shadow: 0 12px 40px -8px #00000080, 0 4px 12px -4px #00000040;
}

.wf-popover__close {
  position: absolute;
  z-index: 1;
  color: var(--ink-3);
  border-radius: var(--r-1, 4px);
  cursor: pointer;
  display: inline-flex;
  background: none;
  border: none;
  justify-content: center;
  align-items:  center;
  padding: 4px;
  top: 6px;
  right: 6px;
}

.wf-popover__close:hover {
  color: var(--ink);
  background: var(--paper-3);
}

.wf-popover__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.wf-popover__body {
  padding: var(--s-4);
  padding-top: var(--s-3);
  overflow-y: auto;
  flex: auto;
  min-height: 0;
}

.wf-var-picker {
  position: fixed;
  z-index: 205;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  display: flex;
  overflow: hidden;
  flex-direction: column;
  width: 280px;
  max-height: 70vh;
  box-shadow: 0 12px 40px -8px #00000080, 0 4px 12px -4px #00000040;
}

.wf-var-picker__head {
  display: flex;
  padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--rule-soft);
  justify-content: space-between;
  align-items:  center;
}

.wf-var-picker__head h3 {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-3);
  margin: 0;
  font-size: .78rem;
}

.wf-var-picker__close {
  color: var(--ink-3);
  border-radius: var(--r-1, 4px);
  cursor: pointer;
  display: inline-flex;
  background: none;
  border: none;
  padding: 2px;
}

.wf-var-picker__close:hover {
  color: var(--ink);
  background: var(--paper-3);
}

.wf-var-picker__empty {
  padding: var(--s-3);
  color: var(--ink-3);
  font-size: .78rem;
  line-height: 1.4;
}

.wf-var-picker__groups {
  list-style: none;
  overflow-y: auto;
  flex: auto;
  margin: 0;
  padding: 0;
}

.wf-var-picker__group {
  border-bottom: 1px solid var(--rule-soft);
}

.wf-var-picker__group:last-child {
  border-bottom: none;
}

.wf-var-picker__group-head {
  display: flex;
  padding: 6px var(--s-3) 4px;
  background: var(--paper-3);
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.wf-var-picker__step {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 500;
}

.wf-var-picker__step-name {
  color: var(--ink-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
}

.wf-var-picker__rows {
  list-style: none;
  margin: 0;
  padding: 2px 0;
}

.wf-var-picker__row {
  text-align: left;
  padding: 4px var(--s-3);
  color: var(--ink);
  cursor: grab;
  display: block;
  background: none;
  border: none;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
}

.wf-var-picker__row:hover {
  background: var(--paper-3);
  outline: none;
}

.wf-var-picker__row:focus-visible {
  background: var(--paper-3);
  outline: none;
}

.wf-var-picker__row:active {
  cursor: grabbing;
}

.wf-var-picker__label {
  display: inline-block;
}

.wf-var-picker__footer {
  padding: 6px var(--s-3);
  border-top: 1px solid var(--rule-soft);
  color: var(--ink-3);
  background: var(--paper-3);
  font-size: .7rem;
}

.wf-var-picker__footer code {
  background: var(--paper);
  border-radius: 3px;
  padding: 1px 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.wf-chip-field {
  background: var(--paper-3);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  color: var(--ink);
  font-size: .82rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  cursor: text;
  box-sizing: border-box;
  width: 100%;
  min-height: 1.5em;
  padding: 6px 8px;
  line-height: 1.6;
}

.wf-chip-field:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

.wf-chip-field--singleline {
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

.wf-chip-field--multiline {
  white-space: pre-wrap;
  overflow-y: auto;
  resize: vertical;
  min-height: 3em;
}

.wf-chip-field:empty:before {
  content: attr(data-placeholder);
  color: var(--ink-3);
  pointer-events: none;
}

.wf-chip {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .75rem;
  font-family: var(--font-sans);
  user-select: none;
  vertical-align: baseline;
  white-space: nowrap;
  border-radius: 999px;
  margin: 0 1px;
  padding: 1px 6px;
  font-weight: 500;
}

.wf-canvas-menu {
  position: fixed;
  z-index: 210;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  min-width: 180px;
  padding: 4px;
  box-shadow: 0 10px 30px -6px #00000073, 0 3px 8px -2px #0003;
}

.wf-canvas-menu__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 0;
}

.wf-canvas-menu__item {
  display: flex;
  border-radius: var(--r-1, 4px);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  align-items:  center;
  gap: 8px;
  width: 100%;
  padding: 6px 10px;
  font-size: .85rem;
}

.wf-canvas-menu__item--active:not(.wf-canvas-menu__item--disabled), .wf-canvas-menu__item:hover:not(.wf-canvas-menu__item--disabled) {
  background: var(--paper-3);
}

.wf-canvas-menu__item--destructive.wf-canvas-menu__item--active, .wf-canvas-menu__item--destructive:hover {
  color: var(--accent);
}

.wf-canvas-menu__item--disabled {
  color: var(--ink-3);
  cursor: not-allowed;
  opacity: .7;
}

.wf-canvas-menu__label {
  flex: auto;
}

.wf-canvas-menu__shortcut {
  color: var(--ink-3);
  border: 1px solid var(--rule-soft);
  background: var(--paper);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
}

.wf-library {
  position: fixed;
  z-index: 210;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  display: flex;
  overflow: hidden;
  flex-direction: column;
  box-shadow: 0 12px 40px -8px #00000080, 0 4px 12px -4px #00000040;
}

.wf-library__search {
  padding: var(--s-2);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper-2);
  position: sticky;
  top: 0;
}

.wf-library__search input {
  background: var(--paper-3);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  color: var(--ink);
  box-sizing: border-box;
  width: 100%;
  padding: 6px 10px;
  font-size: .88rem;
}

.wf-library__search input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.wf-library__list {
  list-style: none;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
}

.wf-library__row {
  text-align: left;
  border-radius: var(--r-1, 4px);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  background: none;
  border: none;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 6px 10px;
}

.wf-library__row--active, .wf-library__row:hover {
  background: var(--paper-3);
}

.wf-library__row-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: .85rem;
}

.wf-library__piece {
  color: var(--ink-2);
}

.wf-library__sep {
  color: var(--ink-3);
}

.wf-library__action {
  color: var(--ink);
  font-weight: 500;
}

.wf-library__row-desc {
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: .74rem;
  line-height: 1.35;
}

.wf-library__empty {
  padding: var(--s-4) var(--s-3);
  color: var(--ink-3);
  text-align: center;
  font-size: .85rem;
}

.wf-library__notice {
  margin: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--warn);
  background: var(--paper-3);
  border-radius: var(--r-2);
  color: var(--ink-2);
  font-size: .78rem;
  line-height: 1.45;
}

.wf-library__notice strong {
  color: var(--ink);
}

.wf-library__notice code {
  background: var(--paper-2);
  border-radius: 3px;
  padding: 1px 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
}

.wf-library__categories {
  display: flex;
  padding: 0 var(--s-2) var(--s-2);
  border-bottom: 1px solid var(--rule-soft);
  gap: 4px;
}

.wf-library__category {
  border: 1px solid var(--rule-soft);
  color: var(--ink-2);
  cursor: pointer;
  background: none;
  border-radius: 999px;
  padding: 3px 10px;
  transition: background .12s, border-color .12s, color .12s;
  font-size: .75rem;
}

.wf-library__category:hover {
  color: var(--ink);
  border-color: var(--ink-3);
}

.wf-library__category--active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.wf-library__tag {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-3);
  background: var(--paper-3);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: .65rem;
  line-height: 1.5;
}

.wf-library__tag--install {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.wf-library__tag--installing {
  display: inline-flex;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  justify-content: center;
  align-items:  center;
  min-width: 20px;
  min-height: 16px;
}

.wf-library__spinner {
  display: inline-block;
  border: 1.5px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-top-color: var(--accent);
  animation: wf-library-spin .8s linear infinite;
  border-radius: 50%;
  width: 10px;
  height: 10px;
}

@keyframes wf-library-spin {
  to {
    transform: rotate(360deg);
  }
}

.wf-library__row--installing {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  cursor: progress;
}

.wf-library__row--locked {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: auto;
}

.wf-library__row--locked:hover {
  background: none;
}

.wf-library__tier {
  text-transform: lowercase;
  letter-spacing: .04em;
  color: var(--ink-3);
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-pill);
  margin-left: auto;
  padding: 0 6px;
  font-size: .65rem;
  line-height: 1.4;
}

.wf-editor__canvas .react-flow__renderer {
  background: var(--paper);
}

.wf-editor__canvas .react-flow__background {
  color: var(--rule-soft);
}

.wf-editor__canvas .react-flow__edge-path {
  stroke: var(--wf-edge-stroke);
  stroke-width: 1.5px;
  fill: none;
}

.wf-editor__canvas .react-flow__edge.wf-edge--branch .react-flow__edge-path {
  stroke-dasharray: 4 3;
}

.wf-editor__canvas .react-flow__edge.selected .react-flow__edge-path, .wf-editor__canvas .react-flow__edge:hover .react-flow__edge-path {
  stroke: var(--wf-edge-stroke-selected);
  stroke-width: 2px;
}

.wf-editor__canvas .react-flow__edge-text {
  fill: var(--ink-3);
  font-size: .72rem;
}

.wf-editor__canvas .react-flow__edge-textbg {
  fill: var(--paper);
}

.wf-editor__canvas .react-flow__controls {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
}

.wf-editor__canvas .react-flow__controls-button {
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-2);
  background: none;
}

.wf-editor__canvas .react-flow__handle.wf-handle {
  width: var(--wf-handle-size);
  height: var(--wf-handle-size);
  min-width: var(--wf-handle-size);
  min-height: var(--wf-handle-size);
  background: none;
  border: none;
  border-radius: 999px;
}

.wf-editor__canvas .react-flow__handle.wf-handle:after {
  content: "";
  position: absolute;
  width: var(--wf-handle-dot);
  height: var(--wf-handle-dot);
  margin-top: calc(var(--wf-handle-dot) / -2);
  margin-left: calc(var(--wf-handle-dot) / -2);
  background: var(--wf-handle-bg);
  border: 1.5px solid var(--wf-handle-border);
  border-radius: 999px;
  transition: border-color .12s, transform .12s, background .12s;
  top: 50%;
  left: 50%;
}

.wf-editor__canvas .react-flow__handle.wf-handle:hover:after, .wf-editor__canvas .react-flow__handle.wf-handle.connectingfrom:after, .wf-editor__canvas .react-flow__handle.wf-handle.connectingto:after {
  border-color: var(--wf-handle-border-hover);
  background: var(--wf-handle-border-hover);
  transform: scale(1.4);
}

.wf-editor__canvas .react-flow__handle.wf-handle--used:after {
  background: var(--wf-handle-border);
  opacity: .55;
}

.wf-editor__canvas .react-flow__handle.wf-handle--used {
  cursor: not-allowed;
}

.wf-node {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  padding: var(--s-2) var(--s-3);
  color: var(--ink);
  cursor: pointer;
  min-width: 220px;
  max-width: 260px;
  transition: border-color .15s, transform .15s;
  font-size: .85rem;
}

.wf-node:hover {
  border-color: var(--ink-3);
}

.wf-node--selected {
  border-color: var(--accent);
}

.wf-node--unconfigured {
  border-color: var(--accent-warn, #fbbf24);
}

.wf-node--nested {
  background: var(--paper-3);
  border-style: dashed;
}

.wf-node--orphan {
  border-style: dashed;
  border-color: var(--accent-warn, #fbbf24);
  opacity: .92;
}

.wf-node__branch-label {
  position: absolute;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: .68rem;
  top: -18px;
  left: 6px;
}

.wf-node {
  position: relative;
}

.wf-props__branch-list {
  list-style: none;
  margin: 0 0 var(--s-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.wf-props__branch-row {
  display: flex;
  gap: var(--s-2);
  background: var(--paper-3);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  flex-direction: column;
  padding: 6px;
}

.wf-props__branch-row-head {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: var(--s-2);
}

.wf-props__branch-name {
  display: flex;
  color: var(--ink);
  align-items:  center;
  gap: 6px;
  font-size: .85rem;
}

.wf-props__branch-tag {
  background: var(--paper);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-3);
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  padding: 1px 5px;
  font-size: .65rem;
}

.wf-props__branch-actions {
  display: flex;
  align-items:  center;
  gap: 4px;
}

.wf-props__conditions {
  display: flex;
  gap: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px dashed var(--rule-soft);
  flex-direction: column;
}

.wf-props__condition-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.wf-props__condition-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items:  center;
  gap: 4px;
}

.wf-props__condition-and {
  grid-column: 1 / -1;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-3);
  font-size: .65rem;
}

.wf-props__condition-field {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  color: var(--ink);
  font-size: .8rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  box-sizing: border-box;
  width: 100%;
  padding: 4px 6px;
}

.wf-props__condition-op {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  color: var(--ink);
  padding: 4px 6px;
  font-size: .8rem;
}

.wf-props__condition-case {
  grid-column: 1 / -1;
  display: inline-flex;
  color: var(--ink-3);
  align-items:  center;
  gap: 4px;
  font-size: .72rem;
}

.wf-props__condition-case input {
  width: 12px;
  height: 12px;
  margin: 0;
}

.wf-props__hint--inline {
  margin: 0;
  font-size: .74rem;
}

.wf-node__head {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  margin-bottom: 4px;
}

.wf-node__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.wf-node__body {
  display: flex;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-items: baseline;
  gap: 6px;
  font-size: .78rem;
}

.wf-node__sep {
  color: var(--ink-3);
}

.wf-node__action {
  color: var(--ink);
}

.wf-node__piece--missing {
  color: var(--accent-warn, #fbbf24);
  font-style: italic;
}

.wf-props__header h3 {
  color: var(--ink);
  margin: 0;
  font-size: .95rem;
}

.wf-props__title {
  color: var(--ink);
  cursor: text;
  border-radius: var(--r-2);
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  margin: 0 0 0 -6px;
  padding: 1px 6px;
  font-size: .95rem;
}

.wf-props__title:hover {
  background: var(--paper-3);
}

.wf-props__title:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.wf-props__title-input {
  color: var(--ink);
  background: var(--paper-3);
  border: 1px solid var(--accent);
  border-radius: var(--r-2);
  outline: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 120px;
  max-width: 100%;
  margin: 0 0 0 -6px;
  padding: 1px 6px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
}

.wf-props__header p {
  margin: 2px 0 var(--s-3);
  color: var(--ink-3);
  font-size: .75rem;
}

.wf-props__header code {
  background: var(--paper-3);
  border-radius: 3px;
  padding: 0 4px;
}

.wf-props__divider {
  background: var(--rule-soft);
  margin: var(--s-3) 0;
  height: 1px;
}

.wf-props__field {
  display: flex;
  margin-bottom: var(--s-3);
  flex-direction: column;
  gap: 4px;
}

.wf-props__field-label {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-3);
  font-size: .75rem;
}

.wf-props__field select {
  background: var(--paper-3);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  color: var(--ink);
  padding: 6px 8px;
  font-size: .85rem;
}

.wf-props__inputs h4 {
  margin: 0 0 var(--s-2);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-3);
  font-size: .78rem;
}

.wf-props__hint {
  margin: var(--s-1) 0;
  color: var(--ink-3);
  font-size: .8rem;
}

.wf-props__input-list {
  list-style: none;
  margin: 0 0 var(--s-2);
  display: flex;
  gap: var(--s-2);
  flex-direction: column;
  padding: 0;
}

.wf-props__input-row {
  display: flex;
  align-items:  flex-start;
  gap: 4px;
}

.wf-props__input-row label {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}

.wf-props__input-key {
  color: var(--ink-3);
  font-size: .75rem;
  font-family: var(--font-mono, ui-monospace, monospace);
}

.wf-props__input-row textarea {
  background: var(--paper-3);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  color: var(--ink);
  font-size: .82rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  resize: vertical;
  padding: 6px 8px;
}

.wf-props__input-remove {
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  color: var(--ink-3);
  cursor: pointer;
  background: none;
  margin-top: 18px;
  padding: 4px;
}

.wf-props__input-remove:hover {
  color: var(--accent-warn, #fbbf24);
  border-color: var(--accent-warn, #fbbf24);
}

.wf-props__add-row {
  display: flex;
  border-top: 1px dashed var(--rule-soft);
  padding-top: var(--s-2);
  align-items:  center;
  gap: 4px;
}

.wf-props__add-row input, .wf-props__field input[type="text"] {
  background: var(--paper-3);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  color: var(--ink);
  flex: 1;
  padding: 6px 8px;
  font-size: .82rem;
}

.wf-props__field input[type="text"] {
  box-sizing: border-box;
  width: 100%;
}

.wf-props__segmented {
  display: flex;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  gap: 4px;
  padding: 3px;
}

.wf-props__seg {
  border-radius: calc(var(--r-2)  - 2px);
  color: var(--ink-2);
  cursor: pointer;
  background: none;
  border: none;
  flex: 1;
  padding: 5px 8px;
  font-size: .78rem;
}

.wf-props__seg:hover {
  color: var(--ink);
}

.wf-props__seg--on {
  background: var(--paper-3);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.wf-props__step-actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.wf-props__schema-row {
  list-style: none;
}

.wf-props__field--inline {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items:  center;
  gap: var(--s-2);
}

.wf-props__field--inline input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
}

.wf-props__field--missing input, .wf-props__field--missing textarea, .wf-props__field--missing select {
  border-color: var(--accent-warn, #fbbf24);
}

.wf-props__field-label--missing {
  color: var(--accent-warn, #fbbf24);
}

.wf-props__req {
  color: var(--accent-warn, #fbbf24);
  font-weight: 500;
}

.wf-props__field-help {
  color: var(--ink-3);
  margin-top: 2px;
  font-size: .72rem;
  line-height: 1.4;
}

.wf-props__field-help--error {
  color: var(--accent-warn, #fbbf24);
}

.wf-props__field-helper {
  display: inline-flex;
  border: 1px solid var(--rule-soft);
  font-family: var(--font-sans);
  color: var(--ink-3);
  background: var(--paper-2);
  cursor: help;
  user-select: none;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  font-size: .62rem;
  font-weight: 600;
  line-height: 1;
}

.wf-props__field-helper:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.wf-props__field-helper:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.wf-props__field input[type="number"], .wf-props__field textarea {
  background: var(--paper-3);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  color: var(--ink);
  font-size: .82rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  box-sizing: border-box;
  resize: vertical;
  width: 100%;
  padding: 6px 8px;
}

.wf-props__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.wf-props__chip {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 999px;
  padding: 3px 10px;
  transition: border-color .15s;
  font-size: .78rem;
}

.wf-props__chip:hover {
  color: var(--ink);
}

.wf-props__chip--on {
  background: var(--paper-3);
  color: var(--ink);
  border-color: var(--accent);
}

.wf-props__error-handling {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wf-props__error-handling h4 {
  margin: 0 0 var(--s-2);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-3);
  font-size: .78rem;
}

.wf-props__error-handling .wf-props__field {
  margin-bottom: 0;
}

.wf-props__error-handling .wf-props__hint {
  margin: 0 0 var(--s-2) 22px;
}

.wf-props__connection {
  display: flex;
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px dashed var(--rule-soft);
  flex-direction: column;
  gap: 4px;
}

.wf-props__connection select {
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  padding: 4px 6px;
  font-family: inherit;
  font-size: .85rem;
}

.wf-props__connection-type {
  color: var(--ink-3);
  text-transform: lowercase;
  margin-left: 6px;
  font-size: .72rem;
}

.wf-props__connection-empty {
  color: var(--accent-warn, #fbbf24);
  font-style: italic;
}

.wf-props__advanced {
  margin-top: var(--s-3);
  border-top: 1px solid var(--rule-soft);
  padding-top: var(--s-3);
}

.wf-props__advanced-toggle {
  color: var(--ink-2);
  cursor: pointer;
  display: flex;
  border-radius: var(--r-2);
  background: none;
  border: 0;
  align-items:  center;
  gap: 6px;
  margin-left: -6px;
  padding: 4px 6px;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 500;
}

.wf-props__advanced-toggle:hover {
  color: var(--ink);
  background: var(--paper-3);
}

.wf-props__advanced-toggle--open {
  color: var(--ink);
}

.wf-props__advanced-caret {
  display: inline-block;
  width: 10px;
  font-size: .7rem;
}

.wf-props__advanced-body {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-2);
  flex-direction: column;
}

.wf-props__sample-data {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--rule-soft);
  display: flex;
  gap: var(--s-2);
  flex-direction: column;
}

.wf-props__sample-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wf-props__sample-title {
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
  font-size: .85rem;
  font-weight: 600;
}

.wf-props__sample-textarea {
  padding: var(--s-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-2, 6px);
  background: var(--surface-1);
  color: var(--ink);
  resize: vertical;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
}

.wf-props__sample-textarea:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.wf-props__sample-err {
  color: var(--accent);
  font-size: .72rem;
}

.wf-props__sample-status {
  font-size: .78rem;
}

.wf-props__sample-status--ok {
  color: var(--accent-ok, #5eead4);
}

.wf-props__sample-status--warn {
  color: var(--accent-warn, #fbbf24);
}

.wf-props__sample-actions {
  display: flex;
  gap: var(--s-1);
  flex-wrap: wrap;
}

.wf-flow-ref {
  display: flex;
  gap: var(--s-1);
  flex-direction: column;
}

.wf-flow-ref__trigger {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-2);
  background: var(--paper-1);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-1);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-size: .85rem;
}

.wf-flow-ref__trigger:hover {
  border-color: var(--rule);
}

.wf-flow-ref__trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.wf-flow-ref__trigger-caret {
  color: var(--ink-3);
  font-size: .7rem;
}

.wf-flow-ref__popover {
  position: fixed;
  z-index: 220;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  display: flex;
  overflow: hidden;
  flex-direction: column;
  max-height: 320px;
  box-shadow: 0 12px 40px -8px #00000080, 0 4px 12px -4px #00000040;
}

.wf-flow-ref__search {
  padding: var(--s-2) var(--s-3);
  border: none;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
  outline: none;
  background: none;
  width: 100%;
  font-size: .85rem;
}

.wf-flow-ref__search::placeholder {
  color: var(--ink-3);
}

.wf-flow-ref__list {
  list-style: none;
  padding: var(--s-1) 0;
  overflow-y: auto;
  flex: 1;
  margin: 0;
}

.wf-flow-ref__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-3);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  font-size: .82rem;
}

.wf-flow-ref__row:hover, .wf-flow-ref__row--active {
  background: var(--paper-1);
}

.wf-flow-ref__row--on {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.wf-flow-ref__row--on.wf-flow-ref__row--active {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}

.wf-flow-ref__row-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.wf-flow-ref__row-id {
  color: var(--ink-3);
  font-size: .7rem;
  font-family: var(--font-mono, monospace);
}

.wf-flow-ref__hint {
  padding: var(--s-2) var(--s-3);
  color: var(--ink-3);
  margin: 0;
  font-size: .78rem;
}

.wf-flow-ref__hint--error {
  color: var(--accent);
}

.wf-flow-ref__clear {
  padding: var(--s-1) var(--s-3);
  border: none;
  border-top: 1px solid var(--rule-soft);
  color: var(--ink-3);
  text-align: left;
  cursor: pointer;
  background: none;
  font-size: .78rem;
}

.wf-flow-ref__clear:hover {
  color: var(--accent);
}

.wf-editor {
  --accent-warn: var(--hold);
  right: 0;
}

.wf-node {
  background: var(--raise);
  border-color: var(--rule);
  box-shadow: var(--sh-md);
  border-radius: 11px 3px 11px 11px;
}

.wf-node:hover {
  border-color: var(--ink-3);
}

.wf-node--selected {
  border-color: var(--ink);
  box-shadow: var(--sh-lg), 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent);
}

.wf-node--unconfigured, .wf-node--orphan {
  border-style: dashed;
  border-color: var(--rule2);
}

.wf-node--unconfigured .wf-node__body, .wf-node--orphan .wf-node__body {
  color: var(--hold-tx);
}

.wf-node--nested {
  background: var(--panel);
  border-style: dashed;
  border-color: var(--rule2);
}

.wf-node__name {
  letter-spacing: -.01em;
  font-weight: 700;
}

.wf-node__piece--missing {
  color: var(--hold-tx);
}

.wf-node__branch-label {
  font-family: var(--mono);
  letter-spacing: .08em;
  border-radius: 999px;
  font-size: .6rem;
}

.wf-node__run-pip--succeeded {
  background: var(--ok);
}

.wf-node__run-pip--running {
  background: var(--speak);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--speak) 26%, transparent);
}

.wf-node__run-pip--paused {
  background: var(--hold);
}

.wf-node__run-pip--failed {
  background: var(--listen);
}

.wf-node__run-pip--skipped, .wf-node__run-pip--not-reached {
  background: var(--ink-3);
}

.react-flow__edge-path {
  stroke: var(--rule);
  stroke-width: 1.5;
}

.react-flow__edge.selected .react-flow__edge-path, .react-flow__edge:hover .react-flow__edge-path {
  stroke: var(--ink-2);
}

.react-flow__handle {
  background: var(--bg);
  border: 1.5px solid var(--rule2);
  width: 10px;
  height: 10px;
}

.react-flow__handle-connecting, .react-flow__handle-valid {
  border-color: var(--speak);
}

.react-flow__controls {
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--raise);
  box-shadow: var(--sh-sm);
  border-radius: 8px 2px 8px 8px;
}

.react-flow__controls-button {
  background: var(--raise);
  border-bottom: 1px solid var(--rule2);
  color: var(--ink-2);
}

.react-flow__controls-button:hover {
  background: var(--panel);
}

.react-flow__controls-button svg {
  fill: var(--ink-2);
}

.wf-editor__title-text {
  letter-spacing: -.01em;
  font-weight: 700;
}

.wf-editor__runs-panel, .wf-canvas-menu, .wf-var-picker {
  border-radius: var(--corner);
}

.wf-editor__run, .wf-chip, .wf-chip-field {
  border-radius: var(--corner-sm);
}

.wf-canvas-menu__item--destructive {
  color: var(--listen-tx);
}

.wf-props__field-label--missing {
  color: var(--hold-tx);
}

.wf-editor__running-banner--warn {
  background: color-mix(in srgb, var(--speak) 8%, var(--panel));
  border-bottom-color: color-mix(in srgb, var(--speak) 30%, var(--rule));
}

.wf-editor :focus-visible {
  outline-color: var(--speak);
}

.react-flow :focus-visible {
  outline-color: var(--speak);
}

/* ui/src/v2/rooms/workflows/WorkflowsRoom.css */
.wf-room {
  display: flex;
  container-type: inline-size;
  container-name: wfroom;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.wf-room__header {
  display: flex;
  padding: var(--s-4) var(--s-6) var(--s-3);
  justify-content: space-between;
  align-items:  center;
}

.wf-room__count {
  color: var(--ink-2);
  margin: 0;
  font-size: .85rem;
}

.wf-room__actions {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
}

@container wfroom (width <= 560px) {
  .wf-room__header {
    flex-wrap: wrap;
    gap: var(--s-2);
  }

  .wf-room__actions {
    flex-wrap: wrap;
  }
}

.wf-toast {
  margin: 0 var(--s-6) var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-2);
  border: 1px solid var(--rule-soft);
  background: var(--paper-2);
  font-size: .85rem;
}

.wf-toast--ok {
  border-color: var(--accent-ok-soft, #134e4a);
  color: var(--accent-ok, #5eead4);
}

.wf-toast--warn {
  border-color: var(--accent-warn-soft, #713f12);
  color: var(--accent-warn, #fbbf24);
}

.wf-room__layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--s-4);
  padding: 0 var(--s-6) var(--s-6);
  flex: auto;
  min-height: 0;
}

@container wfroom (width <= 680px) {
  .wf-room__layout {
    grid-template-columns: 1fr;
  }
}

.wf-room__list, .wf-room__detail {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  overflow: auto;
  min-height: 0;
}

.wf-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wf-list__row {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--rule-soft);
  cursor: pointer;
}

.wf-list__row:hover {
  background: var(--paper-3);
}

.wf-list__row--selected {
  background: var(--paper-3);
  border-left: 3px solid var(--accent-1, #5eead4);
}

.wf-list__row:last-child {
  border-bottom: none;
}

.wf-list__main {
  display: flex;
  gap: var(--s-1);
  flex-direction: column;
  min-width: 0;
}

.wf-list__title {
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.wf-list__meta {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  color: var(--ink-2);
  font-size: .78rem;
}

.wf-list__hint {
  color: var(--ink-3);
}

.wf-list__buttons {
  display: flex;
  gap: var(--s-1);
  flex-shrink: 0;
}

@container wfroom (width <= 560px) {
  .wf-list__row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-2);
  }

  .wf-list__buttons {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

.wf-empty, .wf-detail-placeholder {
  padding: var(--s-6);
  color: var(--ink-2);
  text-align: center;
}

.wf-empty p {
  margin: var(--s-1) 0;
}

.wf-empty__hint {
  color: var(--ink-3);
  font-size: .85rem;
}

.wf-empty__hint code, .wf-list__title code, .wf-detail__title code, .wf-runs__kv code {
  background: var(--paper-3);
  border-radius: 3px;
  padding: 0 4px;
  font-size: .78rem;
}

.wf-detail {
  padding: var(--s-4);
  display: flex;
  gap: var(--s-3);
  flex-direction: column;
}

.wf-detail__header {
  display: flex;
  justify-content: space-between;
  align-items:  flex-start;
  gap: var(--s-2);
}

.wf-detail__title h3 {
  margin: 0 0 var(--s-1);
  color: var(--ink-1);
  font-size: 1rem;
}

.wf-detail__title p {
  color: var(--ink-3);
  margin: 0;
  font-size: .78rem;
}

.wf-detail__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
}

.wf-stat {
  background: var(--paper-3);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  padding: var(--s-2) var(--s-3);
  text-align: center;
}

.wf-stat__value {
  color: var(--ink-1);
  font-size: 1.1rem;
  font-weight: 500;
}

.wf-stat__label {
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .72rem;
}

.wf-stat--ok .wf-stat__value {
  color: var(--accent-ok, #5eead4);
}

.wf-stat--accent .wf-stat__value {
  color: var(--accent-warn, #fbbf24);
}

.wf-detail__runs-header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
}

.wf-detail__runs-header h4 {
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0;
  font-size: .85rem;
}

.wf-detail__empty {
  padding: var(--s-3);
  color: var(--ink-3);
  margin: 0;
  font-size: .85rem;
}

.wf-runs {
  list-style: none;
  display: flex;
  gap: var(--s-1);
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.wf-runs__row {
  background: var(--paper-3);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
}

.wf-runs__head {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
  background: none;
  border: none;
  width: 100%;
}

.wf-runs__head:hover {
  background: var(--paper-2);
}

.wf-runs__head-left, .wf-runs__head-right {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
}

.wf-runs__head-left {
  min-width: 0;
}

.wf-runs__head-right {
  flex-shrink: 0;
}

.wf-runs__time, .wf-runs__duration {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
}

.wf-runs__failed-step {
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: .75rem;
  font-style: italic;
}

.wf-runs__paused {
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-2);
  padding: var(--s-2);
  font-size: .8rem;
  line-height: 1.45;
}

.wf-runs__paused code {
  background: var(--surface-3);
  border-radius: 3px;
  padding: 0 4px;
  font-size: .78rem;
}

.wf-runs__paused-err {
  color: var(--accent-1, #f87171);
}

.wf-runs__paused-list {
  list-style: disc inside;
  margin: 6px 0 0;
  padding: 0;
}

.wf-runs__paused-list li {
  margin: 2px 0;
}

.wf-runs__paused-step {
  color: var(--ink-1);
  font-weight: 600;
}

.wf-runs__body {
  padding: var(--s-2) var(--s-3) var(--s-3);
  border-top: 1px solid var(--rule-soft);
  display: flex;
  gap: var(--s-2);
  flex-direction: column;
}

.wf-runs__kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--s-1) var(--s-3);
  margin: 0;
  font-size: .8rem;
}

.wf-runs__kv dt {
  color: var(--ink-3);
}

.wf-runs__kv dd {
  color: var(--ink-2);
  margin: 0;
}

.wf-runs__steps summary {
  cursor: pointer;
  color: var(--ink-2);
  padding: var(--s-1) 0;
  font-size: .78rem;
}

.wf-runs__steps pre {
  margin: var(--s-1) 0 0;
  padding: var(--s-2);
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  font-family: var(--font-mono);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  font-size: .72rem;
}

.wf-room__tabs {
  display: flex;
  gap: var(--s-1);
}

.wf-room__tab {
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-2, 6px);
  color: var(--ink-2);
  cursor: pointer;
  background: none;
  padding: 4px 12px;
  font-size: .85rem;
}

.wf-room__tab:hover {
  background: var(--surface-2);
  color: var(--ink-1);
}

.wf-room__tab--active {
  background: var(--surface-3);
  color: var(--ink-1);
  border-color: var(--rule-strong, var(--rule-soft));
}

.wf-conn {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-6);
  flex-direction: column;
}

.wf-conn__header {
  display: flex;
  justify-content: space-between;
  align-items:  flex-start;
  gap: var(--s-3);
}

.wf-conn__title {
  color: var(--ink-1);
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.wf-conn__subtitle {
  color: var(--ink-3);
  margin: 2px 0 0;
  font-size: .78rem;
}

.wf-conn__actions {
  display: flex;
  gap: var(--s-1);
}

.wf-conn__sources {
  display: flex;
  align-items:  center;
  gap: var(--s-1);
  padding: var(--s-2);
  background: var(--surface-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-2, 6px);
  color: var(--ink-2);
  flex-wrap: wrap;
  font-size: .78rem;
}

.wf-conn__sources-label {
  color: var(--ink-1);
  font-weight: 600;
}

.wf-conn__sources-help {
  color: var(--ink-3);
  flex-basis: 100%;
  font-style: italic;
}

.wf-conn__empty {
  padding: var(--s-4);
  text-align: center;
  color: var(--ink-3);
  border: 1px dashed var(--rule-soft);
  border-radius: var(--radius-2, 6px);
  font-size: .85rem;
}

.wf-conn__list {
  display: flex;
  gap: var(--s-2);
  list-style: none;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.wf-conn__row {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-2, 6px);
  background: var(--surface-1);
  flex-direction: column;
}

.wf-conn__row-summary {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.wf-conn__row-actions {
  display: flex;
  gap: var(--s-1);
}

.wf-conn__row-main {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.wf-conn__row-name {
  color: var(--ink-1);
  font-weight: 600;
}

.wf-conn__row-extid {
  color: var(--ink-3);
  font-family: monospace;
  font-size: .78rem;
}

.wf-conn__row-meta {
  display: flex;
  gap: var(--s-3);
  color: var(--ink-3);
  font-size: .72rem;
}

.wf-conn__row-meta code {
  font-size: .7rem;
}

.wf-conn__form--inline {
  background: var(--surface-1);
  border: 1px dashed var(--rule-soft);
}

.wf-conn__form {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-3);
  background: var(--surface-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-2, 6px);
  flex-direction: column;
}

.wf-conn__form-row {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.wf-conn__form label {
  display: flex;
  color: var(--ink-2);
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-width: 180px;
  font-size: .78rem;
}

.wf-conn__form input, .wf-conn__form select, .wf-conn__form textarea {
  background: var(--surface-1);
  border: 1px solid var(--rule-soft);
  color: var(--ink-1);
  border-radius: var(--radius-2, 6px);
  padding: 6px 8px;
  font-size: .85rem;
}

.wf-conn__form textarea {
  font-family: monospace;
  font-size: .78rem;
}

.wf-conn__form-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wf-conn__form-err {
  color: var(--accent-1, #f87171);
  font-size: .72rem;
}

.wf-conn__form-actions {
  display: flex;
  justify-content: flex-end;
}

.wf-lib {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-6);
  flex-direction: column;
}

.wf-lib__header {
  display: flex;
  justify-content: space-between;
  align-items:  flex-start;
  gap: var(--s-3);
}

.wf-lib__title {
  color: var(--ink-1);
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.wf-lib__subtitle {
  color: var(--ink-3);
  margin: 2px 0 0;
  font-size: .78rem;
}

.wf-lib__actions {
  display: flex;
  gap: var(--s-1);
}

.wf-lib__intro {
  margin: 0 0 var(--s-2);
  color: var(--ink-3);
  font-size: .78rem;
  line-height: 1.5;
}

.wf-lib__intro code {
  color: var(--ink-2);
  font-family: monospace;
  font-size: .74rem;
}

.wf-lib__empty {
  padding: var(--s-4);
  text-align: center;
  color: var(--ink-3);
  font-size: .85rem;
}

.wf-lib__empty-section {
  padding: var(--s-3);
  color: var(--ink-3);
  font-size: .82rem;
  font-style: italic;
}

.wf-lib__search {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  color: var(--ink);
  font-size: .85rem;
  font-family: var(--font-sans);
  box-sizing: border-box;
  width: 100%;
  padding: 6px 10px;
}

.wf-lib__search:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.wf-lib__section {
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  flex-direction: column;
}

.wf-lib__section-title {
  display: flex;
  color: var(--ink-1);
  text-transform: uppercase;
  letter-spacing: .05em;
  align-items:  center;
  gap: 6px;
  margin: 0;
  font-size: .85rem;
  font-weight: 600;
}

.wf-lib__section-toggle {
  display: flex;
  color: var(--ink-1);
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  background: none;
  border: none;
  align-items:  center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.wf-lib__section-toggle:hover {
  color: var(--ink);
}

.wf-lib__section-count {
  color: var(--ink-3);
  letter-spacing: 0;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-pill);
  background: var(--paper-2);
  text-transform: none;
  padding: 1px 6px;
  font-size: .7rem;
  font-weight: 400;
}

.wf-lib__section-hint {
  color: var(--ink-3);
  margin: 0;
  font-size: .76rem;
  line-height: 1.45;
}

.wf-lib__section-hint--warn {
  padding: var(--s-2) var(--s-3);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-2);
}

.wf-lib__list {
  display: flex;
  gap: var(--s-2);
  list-style: none;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.wf-lib__row {
  display: flex;
  justify-content: space-between;
  align-items:  flex-start;
  gap: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-2, 6px);
  background: var(--surface-1);
}

.wf-lib__row-main {
  display: flex;
  flex-direction: column;
  flex: auto;
  gap: 4px;
  min-width: 0;
}

.wf-lib__row-title {
  display: flex;
  align-items:  center;
  gap: var(--s-1);
  flex-wrap: wrap;
}

.wf-lib__row-name {
  color: var(--ink-1);
  font-weight: 600;
}

.wf-lib__row-desc {
  color: var(--ink-2);
  margin: 0;
  font-size: .82rem;
  line-height: 1.4;
}

.wf-lib__row-meta {
  display: flex;
  gap: var(--s-2);
  color: var(--ink-3);
  flex-wrap: wrap;
  align-items:  center;
  font-size: .72rem;
}

.wf-lib__row-pkg {
  color: var(--ink-3);
  font-family: monospace;
  font-size: .72rem;
}

.wf-lib__row-source {
  display: inline-flex;
  color: var(--ink-3);
  text-decoration: none;
  align-items:  center;
  gap: 3px;
}

.wf-lib__row-source:hover {
  color: var(--ink-1);
}

.wf-lib__row-actions {
  display: flex;
  gap: var(--s-1);
  flex-shrink: 0;
}

.wf-list__warning-wrap {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.wf-list__warning-wrap .chip {
  cursor: pointer;
}

.wf-list__warning-full {
  color: var(--ink-2);
  background: var(--paper-3);
  border-left: 2px solid var(--accent-warn, #fbbf24);
  border-radius: 0 var(--r-2) var(--r-2) 0;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
  padding: 4px 8px;
  font-size: .78rem;
  line-height: 1.4;
}

.wf-room {
  --accent-warn: var(--hold);
}

.wf-list, .wf-conn__row, .wf-lib__row, .wf-detail, .wf-empty, .wf-conn__form, .wf-list__warning-full {
  border-radius: var(--corner);
}

.wf-list__title, .wf-detail__title, .wf-conn__title, .wf-lib__header, .wf-room__header {
  letter-spacing: -.01em;
  font-weight: 700;
}

.wf-room__tabs button[aria-selected="true"], .wf-room__tabs button[data-active="true"] {
  border-radius: var(--corner-sm);
}

.wf-room :focus-visible {
  outline-color: var(--speak);
}

/* ui/src/v2/rooms/memory/MemoryRoom.css */
.v2-mem {
  display: flex;
  position: relative;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.v2-mem__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6) var(--s-3);
}

@media (max-width: 720px) {
  .v2-mem__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.v2-mem__stat {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.v2-mem__stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.v2-mem__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

.v2-mem__stat-sub {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-mem__tabs {
  display: flex;
  gap: var(--s-1);
  padding: 0 var(--s-6);
  border-bottom: var(--hair-soft);
}

.v2-mem__tab {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-3);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  margin-bottom: -1px;
}

.v2-mem__tab:hover {
  color: var(--ink);
}

.v2-mem__tab[data-active="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.v2-mem__tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-1);
}

.v2-mem__tab-badge {
  font-family: var(--font-mono);
  border-radius: var(--r-pill);
  background: var(--paper-3);
  color: var(--ink-3);
  padding: 1px 6px;
  font-size: 10px;
}

.v2-mem__tab[data-active="true"] .v2-mem__tab-badge {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.v2-mem__toolbar {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  border-bottom: var(--hair-soft);
  flex-wrap: wrap;
}

.v2-mem__search {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  color: var(--ink-3);
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  padding: 6px 10px;
}

.v2-mem__search:focus-within {
  border-color: var(--ink-3);
  color: var(--ink-2);
}

.v2-mem__search-input {
  outline: 0;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  background: none;
  border: 0;
  flex: 1;
}

.v2-mem__search-input::placeholder {
  color: var(--ink-3);
}

.v2-mem__filter-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 4px;
}

.v2-mem__filter-btn {
  display: inline-flex;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  align-items:  center;
  gap: 6px;
  padding: 4px 10px;
}

.v2-mem__filter-btn:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-mem__filter-btn[data-active="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.v2-mem__filter-count {
  font-family: var(--font-mono);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, currentColor 14%, transparent);
  padding: 0 4px;
  font-size: 10px;
}

.v2-mem__refresh {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
}

.v2-mem__refresh:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-mem__refresh:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.v2-mem__constellation {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 320px);
  flex: 1;
  min-height: 0;
}

@media (max-width: 900px) {
  .v2-mem__constellation {
    grid-template-columns: minmax(0, 1fr);
  }
}

.v2-mem__stage {
  position: relative;
  background: var(--paper-2);
  border-right: var(--hair-soft);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.v2-mem__stage[data-panning="true"] {
  cursor: grabbing;
}

.v2-mem__svg {
  display: block;
  user-select: none;
}

.v2-mem__viewport-controls {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out);
  z-index: 2;
}

.v2-mem__viewport-controls[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
}

.v2-mem__zoom-badge {
  font-family: var(--font-mono);
  letter-spacing: .05em;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  padding: 2px 8px;
  font-size: 10px;
}

.v2-mem__reset-btn {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  align-items:  center;
  gap: 4px;
  padding: 4px 10px;
}

.v2-mem__reset-btn:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-mem__reset-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.v2-mem__line {
  stroke: var(--rule);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.v2-mem__node {
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.v2-mem__node-disc {
  fill: var(--ink-2);
  transition: fill var(--dur-fast) var(--ease-out);
}

.v2-mem__node[data-type="person"] .v2-mem__node-disc {
  fill: var(--ink-2);
}

.v2-mem__node[data-type="project"] .v2-mem__node-disc {
  fill: var(--accent);
}

.v2-mem__node[data-type="tool"] .v2-mem__node-disc {
  fill: var(--warn);
}

.v2-mem__node[data-type="place"] .v2-mem__node-disc {
  fill: var(--ok);
}

.v2-mem__node[data-type="concept"] .v2-mem__node-disc {
  fill: var(--ink);
}

.v2-mem__node[data-type="event"] .v2-mem__node-disc {
  fill: var(--ink-3);
}

.v2-mem__node[data-selected="true"] .v2-mem__node-disc {
  fill: var(--accent);
}

.v2-mem__node-glow {
  fill: color-mix(in srgb, var(--accent) 18%, transparent);
}

.v2-mem__node-label {
  font-family: var(--font-sans);
  fill: var(--ink-2);
  pointer-events: none;
  user-select: none;
  font-size: 11px;
}

.v2-mem__node[data-selected="true"] .v2-mem__node-label {
  fill: var(--ink);
  font-weight: 600;
}

.v2-mem__explorer {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 320px);
  flex: 1;
  min-height: 0;
}

@media (max-width: 900px) {
  .v2-mem__explorer {
    grid-template-columns: minmax(0, 1fr);
  }
}

.v2-mem__grid {
  overflow-y: auto;
  padding: var(--s-4) var(--s-6);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-3);
  align-content:  start;
}

.v2-mem__card {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  display: flex;
  gap: var(--s-2);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  flex-direction: column;
}

.v2-mem__card:hover {
  border-color: var(--rule);
  background: var(--paper);
}

.v2-mem__card[data-active="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 4%, var(--paper));
}

.v2-mem__card-head {
  display: flex;
  align-items:  flex-start;
  gap: var(--s-2);
}

.v2-mem__card-icon {
  border-radius: var(--r-2);
  background: var(--paper-3);
  color: var(--ink-2);
  display: inline-flex;
  justify-content: center;
  align-items:  center;
  width: 32px;
  height: 32px;
}

.v2-mem__card-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.v2-mem__card-name {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.v2-mem__card-type {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.v2-mem__card-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.v2-mem__card-facts li {
  display: flex;
  gap: var(--s-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-mem__card-pred {
  color: var(--ink-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 10px;
}

.v2-mem__card-obj {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}

.v2-mem__card-rels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.v2-mem__card-rel-chip {
  font-family: var(--font-mono);
  border-radius: var(--r-pill);
  background: var(--paper-3);
  color: var(--ink-2);
  padding: 1px 6px;
  font-size: 10px;
}

.v2-mem__card-foot {
  font-family: var(--font-mono);
  color: var(--ink-3);
  border-top: var(--hair-soft);
  padding-top: var(--s-2);
  font-size: 10px;
}

.v2-mem__browser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}

@media (max-width: 900px) {
  .v2-mem__browser {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
  }
}

.v2-mem__col {
  display: flex;
  border-right: var(--hair-soft);
  flex-direction: column;
  min-height: 0;
}

.v2-mem__col:last-child {
  border-right: 0;
}

.v2-mem__col-head {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: var(--hair-soft);
  background: var(--paper-2);
}

.v2-mem__col-list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  margin: 0;
  padding: 0;
}

.v2-mem__col-row {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  text-align: left;
  cursor: pointer;
  border: 0;
  border-bottom: var(--hair-soft);
  color: var(--ink-2);
  transition: background var(--dur-fast) var(--ease-out);
  background: none;
  width: 100%;
}

.v2-mem__col-row:hover {
  background: var(--paper-2);
}

.v2-mem__col-row[data-active="true"] {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-mem__col-row-name {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.v2-mem__col-row-meta {
  font-family: var(--font-mono);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 10px;
}

.v2-mem__col-empty {
  padding: var(--s-6) var(--s-4);
  text-align: center;
  color: var(--ink-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
}

.v2-mem__rel-arrow {
  color: var(--ink-3);
  font-family: var(--font-mono);
}

.v2-mem__detail {
  display: flex;
  background: var(--paper);
  flex-direction: column;
  min-height: 0;
}

.v2-mem__detail--empty {
  justify-content: center;
  align-items:  center;
  gap: var(--s-3);
  padding: var(--s-8);
  text-align: center;
  color: var(--ink-3);
}

.v2-mem__detail--empty p {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  max-width: 220px;
  margin: 0;
}

.v2-mem__detail-head {
  display: flex;
  align-items:  flex-start;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: var(--hair-soft);
}

.v2-mem__detail-icon {
  border-radius: var(--r-2);
  background: var(--paper-3);
  color: var(--ink-2);
  display: inline-flex;
  justify-content: center;
  align-items:  center;
  width: 36px;
  height: 36px;
}

.v2-mem__detail-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--ink);
}

.v2-mem__detail-tabs {
  display: flex;
  gap: var(--s-1);
  padding: 0 var(--s-5);
  border-bottom: var(--hair-soft);
}

.v2-mem__detail-tab {
  padding: var(--s-2) var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  margin-bottom: -1px;
}

.v2-mem__detail-tab:hover {
  color: var(--ink);
}

.v2-mem__detail-tab[data-active="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.v2-mem__detail-body {
  overflow-y: auto;
  padding: var(--s-3) var(--s-5);
  flex: 1;
}

.v2-mem__detail-empty {
  padding: var(--s-5) 0;
  text-align: center;
  color: var(--ink-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
}

.v2-mem__detail-facts, .v2-mem__detail-rels {
  list-style: none;
  display: flex;
  gap: var(--s-2);
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.v2-mem__fact {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-1);
  padding: var(--s-2) var(--s-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v2-mem__fact-pred {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-size: 10px;
}

.v2-mem__fact-obj {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  word-wrap: break-word;
}

.v2-mem__fact-meta {
  font-family: var(--font-mono);
  color: var(--ink-3);
  font-size: 10px;
}

.v2-mem__detail-rel {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-1);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  width: 100%;
}

.v2-mem__detail-rel:hover {
  background: var(--paper-3);
}

.v2-mem__detail-rel-name {
  flex: 1;
}

.v2-mem__detail-rel-type {
  font-family: var(--font-mono);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 10px;
}

.v2-mem__empty {
  padding: var(--s-8) var(--s-4);
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.v2-mem__error {
  padding: var(--s-3) var(--s-6);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  border-bottom: var(--hair-soft);
}

.v2-mem__toast {
  position: absolute;
  right: var(--s-4);
  bottom: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  border-radius: var(--r-2);
  z-index: 5;
  max-width: 360px;
  box-shadow: 0 6px 20px -10px #1a1a1a66;
}

.v2-mem__toast[data-tone="warn"] {
  background: var(--accent);
}

.v2-mem--inline .v2-mem__stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: var(--s-3) var(--s-4) var(--s-2);
}

.v2-mem--inline .v2-mem__toolbar {
  padding: var(--s-2) var(--s-4);
}

.v2-mem--inline .v2-mem__constellation {
  grid-template-columns: minmax(0, 1fr);
}

.v2-mem--inline .v2-mem__detail {
  display: none;
}

.v2-mem__node[data-type="person"] .v2-mem__node-disc, .v2-mem__node[data-type="project"] .v2-mem__node-disc, .v2-mem__node[data-type="tool"] .v2-mem__node-disc, .v2-mem__node[data-type="place"] .v2-mem__node-disc, .v2-mem__node[data-type="event"] .v2-mem__node-disc {
  fill: var(--ink2);
  stroke: none;
}

.v2-mem__node[data-type="concept"] .v2-mem__node-disc {
  fill: none;
  stroke: var(--ink2);
  stroke-width: 2;
}

.v2-mem__node[data-selected="true"] .v2-mem__node-disc {
  fill: var(--ink);
  stroke: none;
}

.v2-mem__node[data-type="concept"][data-selected="true"] .v2-mem__node-disc {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
}

.v2-mem__node-glow {
  fill: color-mix(in srgb, var(--speak) 20%, transparent);
}

.v2-mem__node-label {
  font-family: var(--mono);
  fill: var(--ink3);
}

.v2-mem__node[data-selected="true"] .v2-mem__node-label {
  fill: var(--ink);
}

.v2-mem__line {
  stroke: var(--rule);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.v2-mem, .v2-mem__card, .v2-mem__detail {
  border-radius: var(--corner);
}

.v2-mem__card-name {
  font-family: var(--sans);
}

.v2-mem__card-icon .rk-shape {
  width: 15px;
  height: 15px;
}

.v2-mem__detail-icon .rk-shape {
  width: 16px;
  height: 16px;
}

.v2-mem__filter-btn .rk-shape {
  width: 11px;
  height: 11px;
}

.v2-mem__browser .rk-shape {
  width: 13px;
  height: 13px;
}

/* ui/src/v2/rooms/authority/AuthorityRoom.css */
.v2-auth {
  display: flex;
  position: relative;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.v2-auth__emergency {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-6);
  border-bottom: var(--hair);
  background: var(--paper-2);
  flex-wrap: wrap;
}

.v2-auth__emergency[data-state="paused"] {
  background: color-mix(in srgb, var(--warn) 10%, var(--paper-2));
  border-bottom-color: var(--warn);
}

.v2-auth__emergency[data-state="killed"] {
  background: color-mix(in srgb, var(--accent) 10%, var(--paper-2));
  border-bottom-color: var(--accent);
}

.v2-auth__emergency-meta {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
}

.v2-auth__emergency-dot {
  border-radius: var(--r-pill);
  background: var(--ok);
  width: 8px;
  height: 8px;
}

.v2-auth__emergency[data-state="paused"] .v2-auth__emergency-dot {
  background: var(--warn);
  animation: v2-auth-pulse 1.6s ease-in-out infinite;
}

.v2-auth__emergency[data-state="killed"] .v2-auth__emergency-dot {
  background: var(--accent);
  animation: v2-auth-pulse 1s ease-in-out infinite;
}

@keyframes v2-auth-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .5;
    transform: scale(1.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2-auth__emergency-dot {
    animation: none !important;
  }
}

.v2-auth__emergency-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.v2-auth__emergency[data-state="paused"] .v2-auth__emergency-label {
  color: var(--warn);
}

.v2-auth__emergency[data-state="killed"] .v2-auth__emergency-label {
  color: var(--accent);
}

.v2-auth__emergency-actions {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
}

.v2-auth__emergency-btn {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  align-items:  center;
  gap: 4px;
  padding: 4px 10px;
}

.v2-auth__emergency-btn:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-auth__emergency-btn--danger {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.v2-auth__emergency-btn--danger:hover {
  background: var(--accent);
  filter: brightness(.9);
}

.v2-auth__emergency-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.v2-auth__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6) var(--s-3);
}

@media (max-width: 720px) {
  .v2-auth__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.v2-auth__stat {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.v2-auth__stat[data-tone="accent"] {
  border-color: var(--accent);
}

.v2-auth__stat[data-tone="warn"] {
  border-color: var(--warn);
}

.v2-auth__stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.v2-auth__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

.v2-auth__stat[data-tone="accent"] .v2-auth__stat-value {
  color: var(--accent);
}

.v2-auth__stat-sub {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-auth__tabs {
  display: flex;
  gap: var(--s-1);
  padding: 0 var(--s-6);
  border-bottom: var(--hair-soft);
  align-items: stretch;
}

.v2-auth__tab {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-3);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  margin-bottom: -1px;
}

.v2-auth__tab:hover {
  color: var(--ink);
}

.v2-auth__tab[data-active="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.v2-auth__tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-1);
}

.v2-auth__tab-badge {
  font-family: var(--font-mono);
  border-radius: var(--r-pill);
  background: var(--paper-3);
  color: var(--ink-3);
  padding: 1px 6px;
  font-size: 10px;
}

.v2-auth__tab-badge[data-tone="accent"] {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.v2-auth__refresh {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  justify-content: center;
  align-self:  center;
  align-items:  center;
  width: 28px;
  height: 28px;
  margin-left: auto;
}

.v2-auth__refresh:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-auth__refresh:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.v2-auth__section {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-6);
  border-bottom: var(--hair-soft);
  flex-direction: column;
}

.v2-auth__section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
}

.v2-auth__section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--ink);
  margin: 0;
}

.v2-auth__section-count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.v2-auth__section-desc {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
  line-height: var(--lh-body);
  margin: 0;
}

.v2-auth__approvals {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.v2-auth__pending-list, .v2-auth__history-list, .v2-auth__suggestions {
  list-style: none;
  display: flex;
  gap: var(--s-2);
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.v2-auth__pending {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  display: flex;
  gap: var(--s-2);
  flex-direction: column;
}

.v2-auth__pending[data-tone="accent"] {
  border-color: var(--accent);
}

.v2-auth__pending[data-tone="warn"] {
  border-color: var(--warn);
}

.v2-auth__pending[data-urgency="urgent"] {
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.v2-auth__pending-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
}

.v2-auth__pending-meta {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
}

.v2-auth__pending-urgent {
  font-family: var(--font-mono);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  letter-spacing: .1em;
  padding: 2px 6px;
  font-size: 10px;
}

.v2-auth__pending-time {
  font-family: var(--font-mono);
  color: var(--ink-3);
  font-size: 10px;
}

.v2-auth__pending-agent {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.v2-auth__pending-intent {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--ink);
  line-height: 1.4;
}

.v2-auth__pending-meta-row {
  display: flex;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.v2-auth__pending-tool {
  color: var(--ink-2);
}

.v2-auth__pending-actions {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: var(--hair-soft);
  justify-content: flex-end;
}

.v2-auth__history-row {
  display: grid;
  grid-template-columns: 60px 1fr 1.4fr auto;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  background: var(--paper-2);
  border-radius: var(--r-1);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  align-items:  center;
}

.v2-auth__history-time {
  font-family: var(--font-mono);
  color: var(--ink-3);
}

.v2-auth__history-agent {
  color: var(--ink-2);
}

.v2-auth__history-tool {
  color: var(--ink);
  font-family: var(--font-mono);
}

.v2-auth__audit {
  overflow-y: auto;
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6);
  flex-direction: column;
  flex: 1;
}

.v2-auth__audit-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
}

@media (max-width: 720px) {
  .v2-auth__audit-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.v2-auth__filter-row {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.v2-auth__filter-btn {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  padding: 4px 12px;
}

.v2-auth__filter-btn:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-auth__filter-btn[data-active="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.v2-auth__filter-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
  margin-left: auto;
}

.v2-auth__audit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.v2-auth__audit-row {
  display: grid;
  grid-template-columns: 60px auto 1fr 1.4fr 1fr auto;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-bottom: var(--hair-soft);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  align-items:  center;
}

.v2-auth__audit-time {
  font-family: var(--font-mono);
  color: var(--ink-3);
}

.v2-auth__audit-agent {
  color: var(--ink-2);
}

.v2-auth__audit-tool {
  color: var(--ink);
  font-family: var(--font-mono);
}

.v2-auth__audit-cat, .v2-auth__audit-ms {
  color: var(--ink-3);
  font-family: var(--font-mono);
}

.v2-auth__grants {
  overflow-y: auto;
  flex: 1;
}

.v2-auth__slider {
  appearance: none;
  border-radius: var(--r-pill);
  background: var(--paper-3);
  outline: none;
  margin: var(--s-2) 0;
  width: 100%;
  height: 6px;
}

.v2-auth__slider::-webkit-slider-thumb {
  appearance: none;
  border-radius: var(--r-pill);
  background: var(--ink);
  border: 2px solid var(--paper);
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--ink);
  width: 16px;
  height: 16px;
}

.v2-auth__slider[data-zone="ok"]::-webkit-slider-thumb {
  background: var(--ok);
  box-shadow: 0 0 0 1px var(--ok);
}

.v2-auth__slider[data-zone="warn"]::-webkit-slider-thumb {
  background: var(--warn);
  box-shadow: 0 0 0 1px var(--warn);
}

.v2-auth__slider[data-zone="accent"]::-webkit-slider-thumb {
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.v2-auth__slider::-moz-range-thumb {
  border-radius: var(--r-pill);
  background: var(--ink);
  border: 2px solid var(--paper);
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.v2-auth__slider:disabled {
  opacity: .4;
  cursor: default;
}

.v2-auth__slider-scale {
  display: flex;
  font-family: var(--font-mono);
  color: var(--ink-3);
  letter-spacing: .05em;
  justify-content: space-between;
  font-size: 10px;
}

.v2-auth__chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.v2-auth__chip {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  padding: 4px 12px;
}

.v2-auth__chip:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-auth__chip[data-active="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.v2-auth__table {
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  margin-top: var(--s-2);
  width: 100%;
}

.v2-auth__table th, .v2-auth__table td {
  padding: var(--s-2) var(--s-3);
  border-bottom: var(--hair-soft);
  text-align: left;
}

.v2-auth__table th {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 500;
}

.v2-auth__table td {
  color: var(--ink-2);
  vertical-align: middle;
}

.v2-auth__table em {
  color: var(--ink-3);
  font-style: italic;
}

.v2-auth__icon-btn {
  display: inline-flex;
  border-radius: var(--r-1);
  color: var(--ink-3);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  background: none;
  border: 0;
  justify-content: center;
  align-items:  center;
  width: 24px;
  height: 24px;
}

.v2-auth__icon-btn:hover {
  background: var(--paper-3);
  color: var(--accent);
}

.v2-auth__add-row {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: var(--hair-soft);
}

.v2-auth__select {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  flex: 1;
  padding: 6px 10px;
}

.v2-auth__select:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.v2-auth__learning {
  overflow-y: auto;
  flex: 1;
}

.v2-auth__threshold-row {
  display: flex;
  gap: var(--s-2);
  flex-direction: column;
}

.v2-auth__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .05em;
  color: var(--ink-2);
}

.v2-auth__suggestion {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  display: flex;
  gap: var(--s-2);
  flex-direction: column;
}

.v2-auth__suggestion-meta {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
}

.v2-auth__suggestion-tool {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-2);
}

.v2-auth__suggestion-text {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  line-height: var(--lh-body);
}

.v2-auth__suggestion-text code {
  font-family: var(--font-mono);
  background: var(--paper-3);
  border-radius: var(--r-1);
  padding: 1px 6px;
  font-size: .92em;
}

.v2-auth__suggestion-actions {
  display: flex;
  gap: var(--s-2);
  justify-content: flex-end;
}

.v2-auth__btn {
  display: inline-flex;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  cursor: pointer;
  border: 1px solid var(--rule);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  align-items:  center;
  gap: 4px;
  padding: 5px 12px;
}

.v2-auth__btn--secondary {
  background: var(--paper);
  color: var(--ink-2);
}

.v2-auth__btn--secondary:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-auth__btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.v2-auth__btn--primary:hover {
  filter: brightness(.92);
}

.v2-auth__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.v2-auth__empty {
  padding: var(--s-6) var(--s-4);
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-3);
  background: var(--paper-2);
  border: 1px dashed var(--rule);
  border-radius: var(--r-2);
}

.v2-auth__empty-line {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
  padding: var(--s-2) 0;
  font-style: italic;
}

.v2-auth__error {
  padding: var(--s-3) var(--s-6);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  border-bottom: var(--hair-soft);
}

.v2-auth__toast {
  position: absolute;
  right: var(--s-4);
  bottom: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  border-radius: var(--r-2);
  z-index: 5;
  max-width: 360px;
  box-shadow: 0 6px 20px -10px #1a1a1a66;
}

.v2-auth__toast[data-tone="warn"] {
  background: var(--accent);
}

.v2-auth--inline .v2-auth__stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: var(--s-3) var(--s-4) var(--s-2);
}

.v2-auth--inline .v2-auth__emergency {
  padding: var(--s-2) var(--s-4);
}

.v2-auth--inline .v2-auth__section {
  padding: var(--s-3) var(--s-4);
}

.v2-auth__stat, .v2-auth__pending, .v2-auth__audit-row, .v2-auth__suggestion {
  border-radius: var(--corner);
}

.v2-auth__stat-value, .v2-auth__section-title {
  font-family: var(--sans);
  letter-spacing: -.015em;
  font-weight: 700;
}

.v2-auth__tab[data-active="true"], .v2-auth__emergency-btn, .v2-auth__btn {
  border-radius: 7px 2px 7px 7px;
}

.v2-auth__pending[data-tone="accent"] {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--listen) 22%, transparent), var(--sh-sm);
}

.v2-auth__pending[data-tone="warn"] {
  box-shadow: var(--sh-sm);
}

.v2-auth .v2-chip {
  font-family: var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--panel);
  border: none;
  padding: 3px 9px;
  font-size: 8.5px;
}

.v2-auth .v2-chip__dot {
  display: none;
}

.v2-auth .v2-chip--ok {
  color: var(--ok-tx);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
}

.v2-auth .v2-chip--warn {
  color: var(--hold-tx);
  background: color-mix(in srgb, var(--hold) 14%, transparent);
}

.v2-auth .v2-chip--accent {
  color: var(--listen-tx);
  background: color-mix(in srgb, var(--listen) 11%, transparent);
}

.v2-auth .v2-chip--neutral {
  color: var(--ink2);
  background: var(--panel);
}

/* ui/src/v2/rooms/calendar/CalendarRoom.css */
.rk-cal {
  display: flex;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  flex-direction: column;
  height: 100%;
  min-height: 0;
  font-size: 12.5px;
}

.rk-cal__tool {
  display: flex;
  border-bottom: 1px solid var(--rule);
  background: var(--panel2);
  flex-shrink: 0;
  align-items:  center;
  gap: 8px;
  padding: 10px 16px;
}

.rk-cal__title {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}

.rk-cal__search {
  display: flex;
  font-family: var(--mono);
  color: var(--ink3);
  border: 1px solid var(--rule);
  border-radius: var(--corner-sm);
  background: var(--raise);
  align-items:  center;
  gap: 6px;
  width: 160px;
  margin-left: auto;
  padding: 5px 10px;
  font-size: 10px;
}

.rk-cal__search input {
  outline: none;
  font-family: var(--mono);
  color: var(--ink);
  background: none;
  border: none;
  width: 100%;
  font-size: 10px;
}

.rk-cal__new {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--sh-sm);
  white-space: nowrap;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  border-radius: 7px 2px 7px 7px;
  padding: 7px 13px;
}

.rk-cal__icbtn {
  border: 1px solid var(--rule);
  background: var(--raise);
  display: inline-flex;
  color: var(--ink3);
  cursor: pointer;
  border-radius: 6px 1px 6px 6px;
  justify-content: center;
  align-items:  center;
  width: 26px;
  height: 26px;
}

.rk-cal__icbtn:hover {
  color: var(--ink);
  border-color: var(--ink3);
}

.rk-cal__nav {
  display: flex;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
  align-items:  center;
  gap: 8px;
  padding: 9px 16px;
}

.rk-cal__nb {
  border: 1px solid var(--rule);
  background: var(--raise);
  display: inline-flex;
  color: var(--ink2);
  cursor: pointer;
  border-radius: 6px 1px 6px 6px;
  justify-content: center;
  align-items:  center;
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.rk-cal__nb:hover {
  color: var(--ink);
  border-color: var(--ink3);
}

.rk-cal__wk {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.rk-cal__tw {
  border: 1px solid var(--rule);
  color: var(--ink2);
  background: var(--raise);
  cursor: pointer;
  border-radius: 6px 1px 6px 6px;
  margin-left: auto;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
}

.rk-cal__tw:hover {
  color: var(--ink);
}

.rk-cal__strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
  gap: 1px;
}

.rk-cal__cell {
  background: var(--bg);
  display: flex;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  border: none;
  border-top: 2px solid #0000;
  flex-direction: column;
  gap: 6px;
  min-height: 64px;
  padding: 9px 8px 10px;
}

.rk-cal__cell:hover {
  background: var(--panel2);
}

.rk-cal__cell--sel {
  border-top-color: var(--ink);
  background: var(--panel2);
}

.rk-cal__cell-top {
  display: flex;
  align-items:  center;
  gap: 7px;
}

.rk-cal__dow {
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  font-size: 8px;
}

.rk-cal__date {
  color: var(--ink2);
  font-size: 13px;
  font-weight: 600;
}

.rk-cal__cell--today .rk-cal__date {
  display: inline-flex;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50% 22% 50% 50%;
  justify-content: center;
  align-items:  center;
  min-width: 22px;
  height: 22px;
  font-weight: 700;
}

.rk-cal__dots {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 4px;
}

.rk-cal__plus {
  font-family: var(--mono);
  color: var(--ink3);
  font-size: 8px;
}

.cdot {
  background: var(--ink2);
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.cdot--content {
  box-shadow: inset 0 0 0 1.5px var(--ink2);
  background: none;
}

.cdot--google {
  background: var(--faint);
  border-radius: 1.5px;
}

.cdot--overdue {
  background: var(--hold);
}

.rk-cal__body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.rk-cal__msg {
  font-family: var(--mono);
  color: var(--listen-tx);
  flex: 1;
  padding: 26px 16px;
  font-size: 12px;
}

.rk-cal__lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--rule);
  overflow: hidden;
  flex: 1;
  gap: 1px;
}

.rk-cal__lane {
  background: var(--bg);
  display: flex;
  overflow: hidden;
  flex-direction: column;
  min-height: 0;
}

.rk-cal__lh {
  display: flex;
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink3);
  border-bottom: 1px solid var(--rule2);
  flex-shrink: 0;
  align-items:  center;
  gap: 7px;
  padding: 10px 14px 7px;
  font-size: 8.5px;
}

.rk-cal__lh .c {
  color: var(--ink2);
  margin-left: auto;
}

.rk-cal__lane-scroll {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  padding: 8px;
}

.rk-cal__lane-empty {
  color: var(--ink3);
  padding: 14px;
  font-size: 11.5px;
}

.rk-cal__card {
  border: 1px solid var(--rule);
  background: var(--raise);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  display: flex;
  border-radius: 10px 2px 10px 10px;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 9px 11px;
}

.rk-cal__card:hover {
  border-color: var(--ink3);
}

.rk-cal__card--sel {
  box-shadow: inset 2px 0 0 var(--ink), var(--sh-sm);
  border-color: var(--ink3);
}

.rk-cal__card-time {
  font-family: var(--mono);
  color: var(--ink3);
  font-size: 9px;
}

.rk-cal__card-title {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

.rk-cal__card-chips {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 6px;
}

.rk-cal__day {
  display: grid;
  grid-template-columns: 1fr 300px;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.rk-cal__hours {
  position: relative;
  overflow-y: auto;
  border-right: 1px solid var(--rule);
}

.rk-cal__hour {
  display: grid;
  grid-template-columns: 46px 1fr;
  height: 44px;
}

.rk-cal__hour-label {
  font-family: var(--mono);
  color: var(--ink3);
  border-bottom: 1px solid var(--rule2);
  border-right: 1px solid var(--rule2);
  padding: 2px 6px;
  font-size: 8px;
}

.rk-cal__hour-slot {
  border-bottom: 1px solid var(--rule2);
}

.rk-cal__blocks {
  position: absolute;
  top: 0;
  left: 46px;
  right: 8px;
}

.rk-cal__block {
  position: absolute;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px 1px 8px 8px;
  padding: 4px 8px;
  font-size: 11px;
  left: 0;
  right: 0;
}

.rk-cal__block--task {
  border: 1px solid var(--rule);
  background: var(--raise);
  color: var(--ink);
}

.rk-cal__block--content {
  border: 1px dashed var(--rule);
  background: var(--bg);
  color: var(--ink2);
}

.rk-cal__block--sel {
  box-shadow: inset 2px 0 0 var(--ink);
  border-color: var(--ink3);
}

.rk-cal__block-t {
  font-family: var(--mono);
  color: var(--ink3);
  font-size: 8px;
}

.rk-cal__nowline {
  position: absolute;
  background: var(--ink);
  opacity: .75;
  z-index: 3;
  height: 1.5px;
  left: 46px;
  right: 0;
}

.rk-cal__nowline i {
  position: absolute;
  font-family: var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--panel);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 6.5px;
  font-style: normal;
  top: -7px;
  left: 8px;
}

.rk-cal__tray {
  border-bottom: 1px solid var(--rule2);
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 6px;
  padding: 8px 12px;
}

.rk-cal__tray-lab {
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  font-size: 8px;
}

.rk-cal__side {
  border-left: 1px solid var(--rule);
  background: var(--bg);
  display: flex;
  overflow: hidden;
  flex-direction: column;
  flex-shrink: 0;
  width: 300px;
  min-height: 0;
}

.rk-cal__day .rk-cal__detail-inner, .rk-cal__side-inner {
  overflow-y: auto;
  padding: 14px 16px;
}

.rk-cal__eyebrow {
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink3);
  font-size: 7.5px;
}

.rk-cal__side-title {
  color: var(--ink);
  margin: 4px 0 10px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}

.rk-cal__kv {
  display: flex;
  border-bottom: 1px solid var(--rule2);
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  font-size: 12px;
}

.rk-cal__kv .k {
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  flex-shrink: 0;
  width: 64px;
  font-size: 8px;
}

.rk-cal__kv .v {
  color: var(--ink);
}

.rk-cal__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.rk-cal__sbtn {
  border: 1px solid var(--rule);
  color: var(--ink);
  background: var(--raise);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--sans);
  border-radius: 6px 1px 6px 6px;
  padding: 5px 11px;
}

.rk-cal__sbtn--pri {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.rk-cal__note {
  color: var(--ink3);
  margin-top: 8px;
  font-size: 10.5px;
  font-style: italic;
}

.rk-cal__side-empty {
  color: var(--ink3);
  text-align: center;
  padding: 24px 16px;
  font-size: 12px;
}

.rk-cal__overlay {
  position: absolute;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex;
  z-index: 20;
  justify-content: center;
  align-items:  flex-start;
  padding-top: 11vh;
  inset: 0;
}

.rk-cal__dialog {
  background: var(--raise);
  border: 1px solid var(--rule);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  border-radius: 14px 4px 14px 14px;
  width: min(420px, 92%);
}

.rk-cal__dialog-head {
  padding: 14px 18px 6px;
}

.rk-cal__dialog-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.rk-cal__dialog-sub {
  color: var(--ink3);
  margin-top: 3px;
  font-size: 11.5px;
}

.rk-cal__dialog-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 18px 16px;
}

.rk-cal__field-lab {
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 4px;
  font-size: 8px;
}

.rk-cal__dialog-input {
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--corner-sm);
  background: var(--bg);
  font-size: 13px;
  font-family: var(--sans);
  box-sizing: border-box;
  width: 100%;
  padding: 8px 11px;
}

.rk-cal__parse {
  font-family: var(--mono);
  color: var(--ink3);
  margin-top: 5px;
  font-size: 10px;
}

.rk-cal__dialog-acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.rk-cal__toast {
  position: absolute;
  z-index: 30;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
}

/* ui/src/v2/rooms/goals/GoalsRoom.css */
.v2-goals {
  display: flex;
  position: relative;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.v2-goals__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6) var(--s-3);
}

@media (max-width: 720px) {
  .v2-goals__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.v2-goals__stat {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.v2-goals__stat[data-tone="warn"] {
  border-color: var(--warn);
}

.v2-goals__stat[data-tone="accent"] {
  border-color: var(--accent);
}

.v2-goals__stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.v2-goals__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--ink);
  line-height: 1.1;
}

.v2-goals__stat[data-tone="accent"] .v2-goals__stat-value {
  color: var(--accent);
}

.v2-goals__stat-sub {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-goals__tabs {
  display: flex;
  gap: var(--s-1);
  padding: 0 var(--s-6);
  border-bottom: var(--hair-soft);
}

.v2-goals__tab {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-3);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  margin-bottom: -1px;
}

.v2-goals__tab:hover {
  color: var(--ink);
}

.v2-goals__tab[data-active="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.v2-goals__tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-1);
}

.v2-goals__toolbar {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  border-bottom: var(--hair-soft);
  flex-wrap: wrap;
}

.v2-goals__search {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  color: var(--ink-3);
  flex: 1;
  min-width: 180px;
  max-width: 320px;
  padding: 6px 10px;
}

.v2-goals__search:focus-within {
  border-color: var(--ink-3);
  color: var(--ink-2);
}

.v2-goals__search-input {
  outline: 0;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  background: none;
  border: 0;
  flex: 1;
}

.v2-goals__search-input::placeholder {
  color: var(--ink-3);
}

.v2-goals__filter-row {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--paper);
}

.v2-goals__filter-btn {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 4px 10px;
}

.v2-goals__filter-btn:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-goals__filter-btn[data-active="true"] {
  background: var(--ink);
  color: var(--paper);
}

.v2-goals__refresh, .v2-goals__new-btn {
  display: inline-flex;
  justify-content: center;
  align-items:  center;
  gap: var(--s-2);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  height: 28px;
}

.v2-goals__refresh {
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-2);
  width: 28px;
}

.v2-goals__refresh:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-goals__new-btn {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 0 12px;
}

.v2-goals__new-btn:hover {
  background: var(--ink-2);
}

.v2-goals__tree {
  overflow-y: auto;
  padding: var(--s-3) var(--s-4) var(--s-6);
  flex: 1;
}

.v2-goals__tree-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.v2-goals__tree-list .v2-goals__tree-list {
  margin-top: 2px;
}

.v2-goals__tree-row {
  display: grid;
  grid-template-columns: 24px auto 1fr 120px auto auto;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3) var(--s-2) 0;
  border-radius: var(--r-2);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  border: 1px solid #0000;
  align-items:  center;
}

.v2-goals__tree-row:hover {
  background: var(--paper-2);
}

.v2-goals__tree-row[data-selected="true"] {
  background: var(--paper-2);
  border-color: var(--accent);
}

.v2-goals__tree-toggle {
  display: inline-flex;
  color: var(--ink-3);
  cursor: pointer;
  border-radius: var(--r-1);
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  background: none;
  border: 0;
  justify-content: center;
  align-items:  center;
  width: 20px;
  height: 20px;
}

.v2-goals__tree-toggle:hover {
  color: var(--ink);
}

.v2-goals__tree-toggle[data-expanded="true"] {
  transform: rotate(90deg);
}

.v2-goals__tree-spacer {
  width: 20px;
}

.v2-goals__tree-level {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  background: var(--paper-3);
  color: var(--ink-3);
  padding: 2px 6px;
  font-size: 10px;
}

.v2-goals__tree-level[data-level="objective"] {
  background: var(--ink);
  color: var(--paper);
}

.v2-goals__tree-level[data-level="key_result"] {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.v2-goals__tree-title {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.v2-goals__score-bar {
  position: relative;
  background: var(--paper-3);
  border-radius: var(--r-pill);
  overflow: hidden;
  display: flex;
  align-items:  center;
  min-width: 80px;
  height: 16px;
  padding: 0 6px;
}

.v2-goals__score-bar-fill {
  position: absolute;
  background: var(--ink-2);
  transition: width var(--dur-fast) var(--ease-out);
  top: 0;
  bottom: 0;
  left: 0;
}

.v2-goals__score-bar-fill[data-tone="ok"] {
  background: color-mix(in srgb, var(--ok) 50%, transparent);
}

.v2-goals__score-bar-fill[data-tone="warn"] {
  background: color-mix(in srgb, var(--warn) 55%, transparent);
}

.v2-goals__score-bar-fill[data-tone="accent"] {
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}

.v2-goals__score-bar-label {
  position: relative;
  font-family: var(--font-mono);
  color: var(--ink);
  z-index: 1;
  font-size: 10px;
}

.v2-goals__timeline {
  overflow-y: auto;
  padding: var(--s-4) var(--s-6);
  display: flex;
  gap: var(--s-5);
  flex-direction: column;
  flex: 1;
}

.v2-goals__time-band {
  display: flex;
  gap: var(--s-2);
  flex-direction: column;
}

.v2-goals__time-band-head {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: var(--s-2);
  border-bottom: var(--hair-soft);
}

.v2-goals__time-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.v2-goals__time-row {
  display: grid;
  grid-template-columns: 70px 1fr auto auto 100px;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  background: var(--paper-2);
  border-radius: var(--r-2);
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  border: 1px solid #0000;
  align-items:  center;
  width: 100%;
}

.v2-goals__time-row:hover {
  background: var(--paper);
  border-color: var(--rule);
}

.v2-goals__time-row[data-selected="true"] {
  border-color: var(--accent);
}

.v2-goals__time-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
  letter-spacing: .05em;
}

.v2-goals__time-title {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-goals__metrics {
  overflow-y: auto;
  padding: var(--s-4) var(--s-6);
  display: flex;
  gap: var(--s-5);
  flex-direction: column;
  flex: 1;
}

.v2-goals__metrics-section {
  display: flex;
  gap: var(--s-3);
  flex-direction: column;
}

.v2-goals__metrics-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--ink);
  margin: 0;
}

.v2-goals__metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--s-3);
}

.v2-goals__metric-tile {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v2-goals__metric-tile[data-tone="ok"] {
  border-color: color-mix(in srgb, var(--ok) 40%, var(--rule-soft));
}

.v2-goals__metric-tile[data-tone="warn"] {
  border-color: color-mix(in srgb, var(--warn) 40%, var(--rule-soft));
}

.v2-goals__metric-tile[data-tone="accent"] {
  border-color: var(--accent);
}

.v2-goals__metric-label {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-size: 10px;
}

.v2-goals__metric-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--ink);
}

.v2-goals__metric-tile[data-tone="accent"] .v2-goals__metric-value {
  color: var(--accent);
}

.v2-goals__overdue-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.v2-goals__overdue-row {
  display: grid;
  grid-template-columns: 24px 1fr auto 120px;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  background: color-mix(in srgb, var(--warn) 6%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--rule));
  border-radius: var(--r-2);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease-out);
  align-items:  center;
  width: 100%;
}

.v2-goals__overdue-row:hover {
  background: color-mix(in srgb, var(--warn) 10%, var(--paper));
}

.v2-goals__overdue-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-goals__overdue-due {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--warn);
}

.v2-goals__side {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  bottom: var(--s-4);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  display: flex;
  z-index: 4;
  overflow: hidden;
  flex-direction: column;
  width: 360px;
  box-shadow: 0 6px 20px -10px #1a1a1a2e;
}

@media (max-width: 900px) {
  .v2-goals__side {
    display: none;
  }
}

.v2-goals__side-head {
  display: flex;
  justify-content: space-between;
  align-items:  flex-start;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: var(--hair-soft);
  background: var(--paper-2);
}

.v2-goals__side-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.v2-goals__side-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--ink);
  margin: 4px 0 0;
  line-height: 1.3;
}

.v2-goals__side-parent {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
  margin-top: 4px;
}

.v2-goals__side-body {
  overflow-y: auto;
  padding: var(--s-4) var(--s-5);
  display: flex;
  gap: var(--s-4);
  flex-direction: column;
  flex: 1;
}

.v2-goals__side-section {
  display: flex;
  gap: var(--s-2);
  flex-direction: column;
}

.v2-goals__side-label {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-size: 10px;
}

.v2-goals__side-desc {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: var(--lh-body);
  margin: 0;
}

.v2-goals__side-text {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  margin: 0;
}

.v2-goals__score-slider {
  appearance: none;
  border-radius: var(--r-pill);
  background: var(--paper-3);
  outline: none;
  width: 100%;
  height: 6px;
}

.v2-goals__score-slider::-webkit-slider-thumb {
  appearance: none;
  border-radius: var(--r-pill);
  background: var(--accent);
  border: 2px solid var(--paper);
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--accent);
  width: 16px;
  height: 16px;
}

.v2-goals__score-slider::-moz-range-thumb {
  border-radius: var(--r-pill);
  background: var(--accent);
  border: 2px solid var(--paper);
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.v2-goals__chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.v2-goals__chip {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  padding: 4px 10px;
}

.v2-goals__chip:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-goals__chip[data-active="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.v2-goals__side-children {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.v2-goals__side-child {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: var(--s-2);
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-1);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink);
  padding: 6px 10px;
}

.v2-goals__icon-btn {
  display: inline-flex;
  color: var(--ink-3);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  background: none;
  border: 0;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
}

.v2-goals__icon-btn:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-goals__btn {
  display: inline-flex;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  cursor: pointer;
  border: 1px solid var(--rule);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  align-items:  center;
  gap: 4px;
  padding: 6px 14px;
}

.v2-goals__btn--secondary {
  color: var(--ink-2);
  background: none;
}

.v2-goals__btn--secondary:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-goals__btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.v2-goals__btn--primary:hover {
  background: var(--ink-2);
}

.v2-goals__btn:disabled {
  opacity: .5;
  cursor: default;
}

.v2-goals__overlay {
  position: fixed;
  display: flex;
  padding: var(--s-4);
  z-index: 65;
  background: #1a1a1a66;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.v2-goals__dialog {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  display: flex;
  overflow: hidden;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
}

.v2-goals__dialog-head {
  display: flex;
  padding: var(--s-4) var(--s-5);
  border-bottom: var(--hair-soft);
  background: var(--paper-2);
  justify-content: space-between;
  align-items:  flex-start;
}

.v2-goals__dialog-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--ink);
}

.v2-goals__dialog-subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
  margin-top: 2px;
}

.v2-goals__dialog-body {
  padding: var(--s-5);
  display: flex;
  gap: var(--s-4);
  flex-direction: column;
}

.v2-goals__field {
  display: flex;
  gap: var(--s-2);
  flex-direction: column;
}

.v2-goals__field-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.v2-goals__input {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-1);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  width: 100%;
  padding: 8px 12px;
}

.v2-goals__input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.v2-goals__dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border-top: var(--hair-soft);
  background: var(--paper-2);
}

.v2-goals__empty {
  padding: var(--s-8) var(--s-4);
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.v2-goals__empty-line {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
  padding: var(--s-2) 0;
  font-style: italic;
}

.v2-goals__error {
  padding: var(--s-3) var(--s-6);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  border-bottom: var(--hair-soft);
}

.v2-goals__toast {
  position: absolute;
  right: var(--s-4);
  bottom: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  border-radius: var(--r-2);
  z-index: 6;
  max-width: 360px;
  box-shadow: 0 6px 20px -10px #1a1a1a66;
}

.v2-goals__toast[data-tone="warn"] {
  background: var(--accent);
}

.v2-goals--inline .v2-goals__stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: var(--s-3) var(--s-4) var(--s-2);
}

.v2-goals--inline .v2-goals__toolbar {
  padding: var(--s-2) var(--s-4);
}

.v2-goals--inline .v2-goals__tree {
  padding: var(--s-3) var(--s-4);
}

.v2-goals--inline .v2-goals__side {
  display: none;
}

.v2-goals__stat, .v2-goals__side, .v2-goals__dialog, .v2-goals__error, .v2-goals__sky, .v2-goals__gantt, .v2-goals__mcard {
  border-radius: var(--corner);
}

.v2-goals__tab[data-active="true"], .v2-goals__new-btn, .v2-goals__filter-btn, .v2-goals__chip, .v2-goals__btn {
  border-radius: var(--corner-sm);
}

.v2-goals__stat-value, .v2-goals__side-title, .v2-goals__dialog-title, .v2-goals__metrics-title {
  font-family: var(--sans);
  letter-spacing: -.015em;
  font-weight: 700;
}

.v2-goals :focus-visible {
  outline: 2px solid var(--speak);
  outline-offset: 2px;
}

@keyframes v2-goals-breathe {
  0%, 100% {
    opacity: .55;
  }

  50% {
    opacity: 1;
  }
}

.v2-goals__sky {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: radial-gradient(440px 340px at 38% 44%, color-mix(in srgb, var(--ink) 3%, transparent), transparent 70%), var(--bg);
  flex: auto;
  min-height: 440px;
}

.v2-goals__edges {
  position: absolute;
  pointer-events: none;
  width: 100%;
  height: 100%;
  inset: 0;
}

.v2-goals__edges line {
  stroke: var(--rule);
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
  transition: stroke .25s;
}

.v2-goals__edges line.hot {
  stroke: var(--ink2);
  stroke-dasharray: none;
}

.v2-goals__gnode {
  position: absolute;
  display: flex;
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  flex-direction: column;
  align-items:  center;
  gap: 6px;
  padding: 4px;
  transform: translate(-50%, -50%);
}

.v2-goals__gnode:focus-visible {
  outline: 1.5px solid var(--speak);
  outline-offset: 3px;
  border-radius: 10px;
}

.v2-goals__gring {
  position: relative;
  width: var(--rs);
  height: var(--rs);
  background: conic-gradient(var(--hl) calc(var(--sc) * 1%), var(--rule) 0);
  display: flex;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  transition: box-shadow .2s;
}

.v2-goals__gring:after {
  content: "";
  position: absolute;
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--rule2);
  border-radius: 50%;
  inset: 3.5px;
}

.v2-goals__scin {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  color: var(--ink2);
  font-size: 9px;
}

.v2-goals__gnode[data-level="milestone"] .v2-goals__scin {
  font-size: 7.5px;
}

.v2-goals__glb {
  color: var(--ink3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
  font-size: 10px;
}

.v2-goals__gnode[data-selected="true"] .v2-goals__gring {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 9%, transparent);
}

.v2-goals__gnode[data-selected="true"] .v2-goals__scin, .v2-goals__gnode[data-selected="true"] .v2-goals__glb {
  color: var(--ink);
  font-weight: 600;
}

.v2-goals__gnode[data-critical="true"] .v2-goals__gring {
  animation: v2-goals-breathe 2s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .v2-goals__gnode[data-critical="true"] .v2-goals__gring {
    animation: none;
  }
}

.v2-goals__gantt {
  overflow: auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 1px solid var(--rule);
  flex: auto;
  height: clamp(440px, 58vh, 640px);
  min-height: 0;
}

.v2-goals__gantt-labels {
  position: relative;
  height: var(--gantt-h);
  border-right: 1px solid var(--rule);
}

.v2-goals__gantt-bars {
  position: relative;
  height: var(--gantt-h);
  background: linear-gradient(90deg, var(--rule2) 1px, transparent 1px) 0 0 / 20% 100%;
}

.v2-goals__gantt-spacer, .v2-goals__gmon {
  position: sticky;
  z-index: 2;
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
  height: 30px;
  top: 0;
}

.v2-goals__gantt-spacer {
  display: flex;
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink3);
  align-items:  center;
  padding: 0 14px;
  font-size: 7.5px;
}

.v2-goals__gmon {
  display: flex;
  font-family: var(--mono);
  color: var(--ink3);
  font-size: 8px;
}

.v2-goals__gmon span {
  border-right: 1px solid var(--rule2);
  flex: 1;
  padding: 9px 10px;
}

.v2-goals__glvl {
  position: absolute;
  display: flex;
  font-family: var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink3);
  align-items:  flex-end;
  padding: 0 14px 4px;
  font-size: 7.5px;
  left: 0;
  right: 0;
}

.v2-goals__grow {
  position: absolute;
  display: flex;
  font: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  background: none;
  border: none;
  align-items:  center;
  gap: 8px;
  padding: 0 14px;
  left: 0;
  right: 0;
}

.v2-goals__grow:hover {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}

.v2-goals__grow[data-selected="true"] {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.v2-goals__grow[data-dead="true"] {
  text-decoration: line-through;
  color: var(--ink3);
}

.v2-goals__grow-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
}

.v2-goals__grow-sc {
  font-family: var(--mono);
  color: var(--ink3);
  margin-left: auto;
  font-size: 9px;
}

.v2-goals__stdot {
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.v2-goals__today {
  position: absolute;
  background: var(--ink);
  opacity: .7;
  z-index: 1;
  width: 1.5px;
  top: 30px;
  bottom: 0;
}

.v2-goals__today i {
  position: absolute;
  font-family: var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 7px;
  font-style: normal;
  top: 3px;
  left: 4px;
}

.v2-goals__gbar {
  position: absolute;
  background: color-mix(in srgb, var(--hl) 12%, transparent);
  cursor: pointer;
  border: none;
  border-radius: 7px 2px 7px 7px;
  height: 13px;
  padding: 0;
}

.v2-goals__gbar i {
  position: absolute;
  width: calc(var(--sc) * 1%);
  border-radius: inherit;
  background: var(--hl);
  top: 0;
  bottom: 0;
  left: 0;
}

.v2-goals__gbar[data-undated="true"] {
  box-shadow: inset 0 0 0 1px var(--rule);
  background: none;
}

.v2-goals__gbar[data-selected="true"] {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 14%, transparent);
}

.v2-goals__gbar-dl {
  position: absolute;
  font-family: var(--mono);
  color: var(--ink3);
  white-space: nowrap;
  font-size: 7.5px;
  top: 15px;
  right: -2px;
}

.v2-goals__mgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  overflow: auto;
  flex: auto;
  align-content:  start;
  gap: 10px;
}

.v2-goals__mcard {
  border: 1px solid var(--rule);
  background: var(--raise);
  box-shadow: var(--sh-sm);
  padding: 13px 15px;
}

.v2-goals__mk {
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 10px;
  font-size: 7.5px;
}

.v2-goals__mscore {
  display: flex;
  align-items:  center;
  gap: 12px;
}

.v2-goals__bigring {
  position: relative;
  background: conic-gradient(var(--hl) calc(var(--sc) * 1%), var(--rule) 0);
  display: flex;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 52px;
  height: 52px;
}

.v2-goals__bigring:after {
  content: "";
  position: absolute;
  background: var(--raise);
  border-radius: 50%;
  inset: 5px;
}

.v2-goals__bigring b {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  color: var(--ink);
  font-size: 10px;
}

.v2-goals__mbig {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--sans);
}

.v2-goals__mnote {
  font-family: var(--mono);
  color: var(--ink3);
  margin-top: 3px;
  font-size: 8px;
  line-height: 1.5;
}

.v2-goals__mfoot {
  font-family: var(--mono);
  color: var(--ink3);
  margin-top: 8px;
  font-size: 8.5px;
}

.v2-goals__hrow {
  display: flex;
  color: var(--ink2);
  align-items:  center;
  gap: 8px;
  padding: 3px 0;
  font-size: 11px;
}

.v2-goals__hlabel {
  min-width: 58px;
}

.v2-goals__hlabel--wide {
  min-width: 78px;
  font-size: 10.5px;
}

.v2-goals__hbar {
  background: var(--panel);
  overflow: hidden;
  border-radius: 3px;
  flex: 1;
  height: 5px;
}

.v2-goals__hbar i {
  display: block;
  border-radius: 3px;
  height: 100%;
}

.v2-goals__hc {
  font-family: var(--mono);
  text-align: right;
  width: 26px;
  font-size: 9px;
}

.v2-goals__histo {
  display: flex;
  align-items:  flex-end;
  gap: 5px;
  height: 54px;
  padding-top: 4px;
}

.v2-goals__histo i {
  border-radius: 3px 1px 0 0;
  flex: 1;
}

.v2-goals__histo-axis {
  display: flex;
  font-family: var(--mono);
  color: var(--ink3);
  justify-content: space-between;
  margin-top: 3px;
  font-size: 7px;
}

.v2-goals__spark {
  display: block;
  margin-top: 6px;
}

.v2-goals__esrow {
  display: flex;
  color: var(--ink2);
  align-items:  center;
  gap: 8px;
  padding: 4px 0;
  font-size: 11px;
}

.v2-goals__esb {
  font-family: var(--mono);
  letter-spacing: .06em;
  border-radius: 999px;
  margin-left: auto;
  padding: 2.5px 9px;
  font-size: 8px;
}

.v2-goals__esb[data-tone="amb"] {
  background: color-mix(in srgb, var(--hold) 14%, transparent);
  color: var(--hold-tx);
}

.v2-goals__esb[data-tone="red"] {
  background: color-mix(in srgb, var(--listen) 11%, transparent);
  color: var(--listen-tx);
}

.v2-goals__esb[data-tone="mut"] {
  background: var(--panel);
  color: var(--ink2);
}

/* ui/src/v2/rooms/tasks/TasksRoom.css */
.rk-tasks {
  display: flex;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  position: relative;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  font-size: 12.5px;
}

.rk-tasks__tool {
  display: flex;
  border-bottom: 1px solid var(--rule);
  background: var(--panel2);
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items:  center;
  gap: 8px;
  padding: 10px 16px;
}

.rk-tasks__title {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}

.rk-tasks__search {
  display: flex;
  font-family: var(--mono);
  color: var(--ink3);
  border: 1px solid var(--rule);
  border-radius: var(--corner-sm);
  background: var(--raise);
  align-items:  center;
  gap: 6px;
  width: 160px;
  margin-left: auto;
  padding: 5px 10px;
  font-size: 10px;
}

.rk-tasks__search input {
  outline: none;
  font-family: var(--mono);
  color: var(--ink);
  background: none;
  border: none;
  width: 100%;
  font-size: 10px;
}

.rk-tasks__icbtn {
  border: 1px solid var(--rule);
  background: var(--raise);
  display: inline-flex;
  color: var(--ink3);
  cursor: pointer;
  border-radius: 6px 1px 6px 6px;
  justify-content: center;
  align-items:  center;
  width: 26px;
  height: 26px;
}

.rk-tasks__icbtn:hover {
  color: var(--ink);
  border-color: var(--ink3);
}

.rk-tasks__new {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--sh-sm);
  white-space: nowrap;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  border-radius: 7px 2px 7px 7px;
  padding: 7px 13px;
}

.rk-tasks__stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
  gap: 1px;
}

.rk-tasks__stat {
  background: var(--panel2);
  padding: 9px 14px;
}

.rk-tasks__stat-k {
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  font-size: 7.5px;
}

.rk-tasks__stat-n {
  color: var(--ink);
  margin-top: 1px;
  font-size: 16px;
  font-weight: 700;
}

.rk-tasks__stat-n--amber {
  color: var(--hold-tx);
}

.rk-tasks__fbar {
  display: flex;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items:  center;
  gap: 6px;
  padding: 9px 16px;
}

.rk-tasks__flabel {
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-right: 2px;
  font-size: 8px;
}

.rk-tasks__body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.rk-tasks__board {
  display: flex;
  overflow-x: auto;
  flex: 1;
  gap: 10px;
  min-width: 0;
  padding: 12px 16px;
}

.rk-tasks__col {
  display: flex;
  background: var(--bg);
  border-radius: 11px 3px 11px 11px;
  flex-direction: column;
  flex: 1;
  min-width: 158px;
  min-height: 0;
}

.rk-tasks__col--active {
  background: color-mix(in srgb, var(--speak) 4%, transparent);
}

.rk-tasks__col--completed {
  background: color-mix(in srgb, var(--ok) 4%, transparent);
}

.rk-tasks__col--failed {
  background: color-mix(in srgb, var(--listen) 4%, transparent);
}

.rk-tasks__col--escalated {
  background: color-mix(in srgb, var(--hold) 4%, transparent);
}

.rk-tasks__colh {
  display: flex;
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  flex-shrink: 0;
  align-items:  center;
  gap: 7px;
  padding: 9px 11px 7px;
  font-size: 8.5px;
}

.rk-tasks__col--escalated .rk-tasks__colh {
  color: var(--hold-tx);
}

.rk-tasks__colh .c {
  color: var(--ink2);
  margin-left: auto;
}

.rk-tasks__col-scroll {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 0 8px 8px;
}

.rk-tasks__card {
  position: relative;
  border: 1px solid var(--rule);
  background: var(--raise);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  display: flex;
  border-radius: 10px 2px 10px 10px;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 9px 11px;
}

.rk-tasks__card:hover {
  box-shadow: var(--sh-md);
}

.rk-tasks__card--sel {
  border-color: var(--ink);
  box-shadow: var(--sh-md), inset 2px 0 0 var(--ink);
}

.rk-tasks__card--over {
  border-color: color-mix(in srgb, var(--hold) 45%, transparent);
}

.rk-tasks__card--terminal {
  opacity: .65;
}

.rk-tasks__card-what {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.rk-tasks__card-cx {
  color: var(--ink3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
  font-size: 10.5px;
  line-height: 1.4;
}

.rk-tasks__card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 7px;
}

.rk-tasks__due {
  font-family: var(--mono);
  color: var(--ink3);
  font-size: 8.5px;
}

.rk-tasks__due--over {
  color: var(--hold-tx);
  font-weight: 600;
}

.rk-tasks__asg {
  font-family: var(--mono);
  color: var(--ink2);
  border: 1px solid var(--rule);
  white-space: nowrap;
  border-radius: 999px;
  padding: 1.5px 7px;
  font-size: 8px;
}

.rk-tasks__card-result {
  color: var(--ink3);
  font-size: 10px;
  font-style: italic;
}

.rk-tasks__msg {
  font-family: var(--mono);
  color: var(--listen-tx);
  padding: 26px 16px;
  font-size: 12px;
}

.rk-tasks__prio {
  border: 1px solid var(--rule);
  background: var(--raise);
  font-family: var(--mono);
  color: var(--ink3);
  cursor: pointer;
  border-radius: 6px;
  height: 22px;
  padding: 0 3px;
  font-size: 10.5px;
}

.rk-tasks__card-acts {
  position: absolute;
  display: none;
  gap: 4px;
  top: 7px;
  right: 7px;
}

.rk-tasks__card:hover .rk-tasks__card-acts {
  display: flex;
}

.rk-tasks__act {
  border: 1px solid var(--rule);
  background: var(--raise);
  display: inline-flex;
  cursor: pointer;
  color: var(--ink3);
  border-radius: 6px 1px 6px 6px;
  justify-content: center;
  align-items:  center;
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.rk-tasks__act--ok:hover {
  color: var(--ok-tx);
  border-color: color-mix(in srgb, var(--ok) 40%, transparent);
}

.rk-tasks__act--no:hover {
  color: var(--listen-tx);
  border-color: color-mix(in srgb, var(--listen) 40%, transparent);
}

.rk-tasks__list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.rk-tasks__row {
  display: flex;
  border-bottom: 1px solid var(--rule2);
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  align-items:  center;
  gap: 10px;
  width: 100%;
  padding: 9px 16px;
}

.rk-tasks__row:hover {
  background: var(--panel2);
}

.rk-tasks__row--sel {
  background: var(--panel2);
  box-shadow: inset 2px 0 0 var(--ink);
}

.rk-tasks__row--over {
  background: color-mix(in srgb, var(--hold) 4%, transparent);
}

.rk-tasks__row--dim {
  opacity: .6;
}

.rk-tasks__row-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.rk-tasks__row-t {
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  font-weight: 600;
}

.rk-tasks__row-due {
  font-family: var(--mono);
  color: var(--ink3);
  flex-shrink: 0;
  font-size: 9px;
}

.rk-tasks__row--over .rk-tasks__row-due {
  color: var(--hold-tx);
  font-weight: 600;
}

.rk-tasks__row-end {
  display: flex;
  flex-shrink: 0;
  align-items:  center;
  gap: 7px;
}

.rk-tasks__drawer {
  border-left: 1px solid var(--rule);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 320px;
  min-height: 0;
}

.rk-tasks__dh {
  border-bottom: 1px solid var(--rule2);
  display: flex;
  flex-shrink: 0;
  align-items:  flex-start;
  gap: 8px;
  padding: 13px 16px 9px;
}

.rk-tasks__dn {
  color: var(--ink);
  flex: 1;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
}

.rk-tasks__dm {
  font-family: var(--mono);
  color: var(--ink3);
  margin-top: 5px;
  font-size: 9px;
}

.rk-tasks__dbody {
  overflow-y: auto;
  flex: 1;
  padding: 0 16px;
}

.rk-tasks__dlabel {
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink3);
  padding: 11px 0 6px;
  font-size: 8px;
}

.rk-tasks__dtext {
  color: var(--ink2);
  font-size: 11.5px;
  line-height: 1.5;
}

.rk-tasks__drow {
  display: flex;
  align-items:  center;
  gap: 8px;
  padding: 5px 0;
  font-size: 12px;
}

.rk-tasks__da {
  display: flex;
  border-top: 1px solid var(--rule2);
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 7px;
  padding: 11px 16px 14px;
}

.rk-tasks__sbtn {
  border: 1px solid var(--rule);
  color: var(--ink);
  background: var(--raise);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--sans);
  border-radius: 6px 1px 6px 6px;
  padding: 5px 11px;
}

.rk-tasks__sbtn--pri {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.rk-tasks__sbtn--red {
  color: var(--listen-tx);
  border-color: color-mix(in srgb, var(--listen) 28%, transparent);
}

.rk-tasks__empty {
  padding: 26px 16px;
}

.rk-tasks__overlay {
  position: absolute;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex;
  z-index: 20;
  justify-content: center;
  align-items:  flex-start;
  padding-top: 9vh;
  inset: 0;
}

.rk-tasks__dialog {
  background: var(--raise);
  border: 1px solid var(--rule);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  border-radius: 14px 4px 14px 14px;
  width: min(420px, 92%);
}

.rk-tasks__dialog-head {
  padding: 14px 18px 6px;
}

.rk-tasks__dialog-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.rk-tasks__dialog-sub {
  color: var(--ink3);
  margin-top: 3px;
  font-size: 11.5px;
}

.rk-tasks__dialog-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 18px 16px;
}

.rk-tasks__flab {
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 4px;
  font-size: 8px;
}

.rk-tasks__input {
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--corner-sm);
  background: var(--bg);
  font-size: 13px;
  font-family: var(--sans);
  box-sizing: border-box;
  width: 100%;
  padding: 8px 11px;
}

.rk-tasks__parse {
  font-family: var(--mono);
  color: var(--ink3);
  margin-top: 5px;
  font-size: 10px;
}

.rk-tasks__chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rk-tasks__dialog-acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 18px 16px;
}

.rk-tasks__toast {
  position: absolute;
  z-index: 30;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
}

/* ui/src/v2/rooms/content/ContentRoom.css */
.rk-content {
  display: flex;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  position: relative;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  font-size: 12.5px;
}

.rk-content__tool {
  display: flex;
  border-bottom: 1px solid var(--rule);
  background: var(--panel2);
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items:  center;
  gap: 8px;
  padding: 10px 16px;
}

.rk-content__title {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}

.rk-content__typefilter {
  font-family: var(--mono);
  text-transform: uppercase;
  border: 1px solid var(--rule);
  color: var(--ink2);
  background: var(--raise);
  cursor: pointer;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 9px;
}

.rk-content__search {
  display: flex;
  font-family: var(--mono);
  color: var(--ink3);
  border: 1px solid var(--rule);
  border-radius: var(--corner-sm);
  background: var(--raise);
  align-items:  center;
  gap: 6px;
  width: 180px;
  margin-left: auto;
  padding: 5px 10px;
  font-size: 10px;
}

.rk-content__search input {
  outline: none;
  font-family: var(--mono);
  color: var(--ink);
  background: none;
  border: none;
  width: 100%;
  font-size: 10px;
}

.rk-content__icbtn {
  border: 1px solid var(--rule);
  background: var(--raise);
  display: inline-flex;
  color: var(--ink3);
  cursor: pointer;
  border-radius: 6px 1px 6px 6px;
  justify-content: center;
  align-items:  center;
  width: 26px;
  height: 26px;
}

.rk-content__icbtn:hover {
  color: var(--ink);
  border-color: var(--ink3);
}

.rk-content__new {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--sh-sm);
  white-space: nowrap;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  border-radius: 7px 2px 7px 7px;
  padding: 7px 13px;
}

.rk-content__stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
  gap: 1px;
}

.rk-content__stat {
  background: var(--panel2);
  padding: 9px 14px;
}

.rk-content__stat-k {
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  font-size: 7.5px;
}

.rk-content__stat-n {
  color: var(--ink);
  margin-top: 1px;
  font-size: 16px;
  font-weight: 700;
}

.rk-content__stat-n--blue {
  color: var(--speak-tx);
}

.rk-content__stat-n--green {
  color: var(--ok-tx);
}

.rk-content__stat-sub {
  font-family: var(--mono);
  color: var(--ink3);
  margin-top: 1px;
  font-size: 7.5px;
}

.rk-content__body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.rk-content__msg {
  font-family: var(--mono);
  color: var(--listen-tx);
  flex: 1;
  padding: 26px 16px;
  font-size: 12px;
}

.rk-content__board {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  min-width: 0;
}

.rk-content__col {
  border-right: 1px solid var(--rule2);
  display: flex;
  flex-direction: column;
  flex: 1 0 158px;
  min-width: 158px;
  min-height: 0;
}

.rk-content__colh {
  display: flex;
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  border-bottom: 1px solid var(--rule2);
  flex-shrink: 0;
  align-items:  center;
  gap: 7px;
  padding: 10px 11px 7px;
  font-size: 8.5px;
}

.rk-content__colh .c {
  color: var(--ink2);
  margin-left: auto;
}

.rk-content__colh .dot {
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.rk-content__col-scroll {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  padding: 8px;
}

.rk-content__col-empty {
  font-family: var(--mono);
  color: var(--faint);
  padding: 14px 11px;
  font-size: 11px;
}

.rk-content__card {
  border: 1px solid var(--rule);
  background: var(--raise);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  display: flex;
  border-radius: 8px 2px 8px 8px;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 8px 10px;
}

.rk-content__card:hover {
  box-shadow: var(--sh-md);
}

.rk-content__card--sel {
  border-color: var(--ink);
  box-shadow: var(--sh-md), inset 2px 0 0 var(--ink);
}

.rk-content__card-head {
  display: flex;
  align-items:  center;
  gap: 7px;
}

.rk-content__tbadge {
  font-family: var(--mono);
  letter-spacing: .04em;
  color: var(--ink2);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  flex-shrink: 0;
  padding: 1px 5px;
  font-size: 8px;
  font-weight: 600;
}

.rk-content__card-title {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
}

.rk-content__card-foot {
  font-family: var(--mono);
  color: var(--ink3);
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 6px;
  font-size: 7.5px;
}

.rk-content__card-foot .sched {
  color: var(--ok-tx);
}

.rk-content__list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.rk-content__row {
  display: grid;
  grid-template-columns: 30px 1fr auto auto;
  border-bottom: 1px solid var(--rule2);
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  align-items:  center;
  gap: 10px;
  width: 100%;
  padding: 9px 16px;
}

.rk-content__row:hover {
  background: var(--panel2);
}

.rk-content__row--sel {
  background: var(--panel2);
  box-shadow: inset 2px 0 0 var(--ink);
}

.rk-content__row-title {
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12.5px;
  font-weight: 600;
}

.rk-content__row-upd {
  font-family: var(--mono);
  color: var(--ink3);
  font-size: 9px;
}

.rk-content__side {
  border-left: 1px solid var(--rule);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 380px;
  min-height: 0;
}

.rk-content__side-head {
  display: flex;
  border-bottom: 1px solid var(--rule2);
  flex-shrink: 0;
  align-items:  center;
  gap: 8px;
  padding: 12px 16px;
}

.rk-content__side-body {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 14px 16px;
}

.rk-content__title-input {
  color: var(--ink);
  outline: none;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--sans);
  box-sizing: border-box;
  background: none;
  border: none;
  border-bottom: 1px solid #0000;
  width: 100%;
  padding: 2px 0;
}

.rk-content__title-input:focus {
  border-bottom-color: var(--rule);
}

.rk-content__field-lab {
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 4px;
  font-size: 8px;
}

.rk-content__input {
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--corner-sm);
  background: var(--raise);
  font-size: 12px;
  font-family: var(--sans);
  box-sizing: border-box;
  width: 100%;
  padding: 7px 10px;
}

.rk-content__textarea {
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--corner-sm);
  background: var(--raise);
  font-size: 12px;
  font-family: var(--sans);
  resize: vertical;
  box-sizing: border-box;
  width: 100%;
  padding: 8px 10px;
  line-height: 1.5;
}

.rk-content__row-acts {
  display: flex;
  align-items:  center;
  gap: 7px;
}

.rk-content__sbtn {
  border: 1px solid var(--rule);
  color: var(--ink);
  background: var(--raise);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--sans);
  display: inline-flex;
  border-radius: 6px 1px 6px 6px;
  align-items:  center;
  gap: 4px;
  padding: 6px 11px;
}

.rk-content__sbtn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.rk-content__sbtn--pri {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.rk-content__sbtn--danger {
  color: var(--listen-tx);
  border-color: color-mix(in srgb, var(--listen) 30%, transparent);
}

.rk-content__sbtn--danger:hover {
  background: color-mix(in srgb, var(--listen) 8%, transparent);
}

.rk-content__spacer {
  flex: 1;
}

.rk-content__section-lab {
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink3);
  font-size: 8px;
}

.rk-content__notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 7px 0 0;
  padding: 0;
}

.rk-content__note {
  font-size: 11px;
}

.rk-content__note-meta {
  display: flex;
  font-family: var(--mono);
  color: var(--ink3);
  gap: 7px;
  font-size: 8px;
}

.rk-content__note-meta b {
  color: var(--ink2);
}

.rk-content__note-text {
  color: var(--ink2);
  margin-top: 2px;
  line-height: 1.4;
}

.rk-content__note-add {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.rk-content__att {
  display: flex;
  color: var(--ink2);
  align-items:  center;
  gap: 7px;
  padding: 5px 0;
  font-size: 11px;
}

.rk-content__att-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.rk-content__att-size {
  font-family: var(--mono);
  color: var(--ink3);
  font-size: 8px;
}

.rk-content__empty-line {
  color: var(--ink3);
  font-size: 11px;
}

.rk-content__overlay {
  position: absolute;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex;
  z-index: 20;
  justify-content: center;
  align-items:  flex-start;
  padding-top: 11vh;
  inset: 0;
}

.rk-content__dialog {
  background: var(--raise);
  border: 1px solid var(--rule);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  border-radius: 14px 4px 14px 14px;
  width: min(420px, 92%);
}

.rk-content__dialog-head {
  padding: 14px 18px 6px;
}

.rk-content__dialog-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.rk-content__dialog-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 18px 16px;
}

.rk-content__dialog-acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 18px 16px;
}

.rk-content__chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rk-content__toast {
  position: absolute;
  z-index: 30;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
}

/* ui/src/v2/rooms/workspaces/WorkspacesRoom.css */
.v2-ws {
  display: flex;
  position: relative;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.v2-ws__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6) var(--s-3);
}

@media (max-width: 720px) {
  .v2-ws__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.v2-ws__stat {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.v2-ws__stat[data-tone="ok"] {
  border-color: color-mix(in srgb, var(--ok) 40%, var(--rule-soft));
}

.v2-ws__stat[data-tone="warn"] {
  border-color: var(--warn);
}

.v2-ws__stat[data-tone="accent"] {
  border-color: var(--accent);
}

.v2-ws__stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.v2-ws__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--ink);
  line-height: 1.1;
}

.v2-ws__stat[data-tone="warn"] .v2-ws__stat-value {
  color: var(--warn);
}

.v2-ws__stat[data-tone="ok"] .v2-ws__stat-value {
  color: var(--ok);
}

.v2-ws__stat[data-tone="accent"] .v2-ws__stat-value {
  color: var(--accent);
}

.v2-ws__stat-sub {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-ws__toolbar {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  border-bottom: var(--hair-soft);
  flex-wrap: wrap;
}

.v2-ws__search {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  color: var(--ink-3);
  flex: 1;
  min-width: 180px;
  max-width: 360px;
  padding: 6px 10px;
}

.v2-ws__search:focus-within {
  border-color: var(--ink-3);
  color: var(--ink-2);
}

.v2-ws__search-input {
  outline: 0;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  background: none;
  border: 0;
  flex: 1;
}

.v2-ws__search-input::placeholder {
  color: var(--ink-3);
}

.v2-ws__refresh, .v2-ws__new-btn {
  display: inline-flex;
  justify-content: center;
  align-items:  center;
  gap: var(--s-2);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  height: 28px;
}

.v2-ws__refresh {
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-2);
  width: 28px;
}

.v2-ws__refresh:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-ws__new-btn {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 0 12px;
}

.v2-ws__new-btn:hover {
  background: var(--ink-2);
}

.v2-ws__grid {
  list-style: none;
  padding: var(--s-4) var(--s-6) var(--s-6);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s-3);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  margin: 0;
}

@media (max-width: 720px) {
  .v2-ws__grid {
    grid-template-columns: 1fr;
    padding: var(--s-3) var(--s-4);
  }
}

.v2-ws__card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  display: flex;
  gap: var(--s-3);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  flex-direction: column;
}

.v2-ws__card:hover {
  background: var(--paper);
  border-color: var(--ink-3);
}

.v2-ws__card[data-status="running"] {
  border-color: color-mix(in srgb, var(--ok) 40%, var(--rule));
}

.v2-ws__card[data-status="error"] {
  border-color: var(--accent);
}

.v2-ws__card-head {
  display: flex;
  align-items:  flex-start;
  gap: var(--s-3);
}

.v2-ws__card-icon {
  border-radius: var(--r-2);
  background: var(--paper-3);
  color: var(--ink-2);
  display: inline-flex;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 36px;
  height: 36px;
}

.v2-ws__card-id {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.v2-ws__card-name {
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--ink);
  cursor: pointer;
  word-break: break-word;
  background: none;
  border: 0;
  padding: 0;
  line-height: 1.2;
}

.v2-ws__card-name:hover {
  text-decoration: underline;
  text-decoration-color: var(--ink-3);
  text-underline-offset: 3px;
}

.v2-ws__card-meta {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.v2-ws__framework {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
  letter-spacing: .05em;
}

.v2-ws__card-info {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
  flex-wrap: wrap;
}

.v2-ws__card-branch, .v2-ws__card-port {
  display: inline-flex;
  color: var(--ink-2);
  align-items:  center;
  gap: 4px;
}

.v2-ws__card-port {
  color: var(--ok);
}

.v2-ws__dirty {
  color: var(--warn);
  font-size: 14px;
  line-height: 1;
}

.v2-ws__card-github {
  color: var(--ink-3);
  display: inline-flex;
  text-decoration: none;
  align-items:  center;
}

.v2-ws__card-github:hover {
  color: var(--ink);
}

.v2-ws__card-time {
  white-space: nowrap;
  margin-left: auto;
}

.v2-ws__card-actions {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  padding-top: var(--s-2);
  border-top: var(--hair-soft);
}

.v2-ws__card-actions-spacer {
  flex: 1;
}

.v2-ws__btn {
  display: inline-flex;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  cursor: pointer;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  background: none;
  align-items:  center;
  gap: 4px;
  padding: 6px 12px;
}

.v2-ws__btn--secondary:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-ws__btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.v2-ws__btn--primary:hover {
  background: var(--ink-2);
}

.v2-ws__btn--icon {
  color: var(--ink-3);
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
}

.v2-ws__btn--icon:hover {
  background: var(--paper-3);
  color: var(--accent);
  border-color: var(--accent);
}

.v2-ws--detail {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.v2-ws__detail-chrome {
  display: flex;
  align-items:  center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-6);
  border-bottom: var(--hair-soft);
  background: var(--paper-2);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.v2-ws__back-btn {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  background: none;
  align-items:  center;
  gap: 4px;
  padding: 4px 10px 4px 6px;
}

.v2-ws__back-btn:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-ws__detail-title {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.v2-ws__project-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--ink);
  word-break: break-word;
}

.v2-ws__branch, .v2-ws__port {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-2);
  align-items:  center;
  gap: 4px;
}

.v2-ws__port {
  color: var(--ok);
}

.v2-ws__detail-ide {
  display: flex;
  overflow: hidden;
  background: var(--paper);
  --j-warning: var(--warn);
  --j-error: var(--accent);
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.v2-ws__detail-ide iframe {
  background: var(--paper);
}

.v2-ws__detail-ide .cm-editor {
  background: var(--paper);
  color: var(--ink);
}

.v2-ws__detail-ide .cm-editor .cm-gutters {
  background: var(--paper-2);
  color: var(--ink-3);
  border-right: 1px solid var(--rule-soft);
}

.v2-ws__detail-ide .cm-editor .cm-activeLineGutter, .v2-ws__detail-ide .cm-editor .cm-activeLine {
  background: var(--paper-3);
}

.v2-ws__detail-ide .cm-editor .cm-cursor {
  border-left-color: var(--ink);
}

.v2-ws__detail-ide .cm-editor .cm-selectionBackground, .v2-ws__detail-ide .cm-editor ::selection {
  background: color-mix(in srgb, var(--accent) 18%, transparent) !important;
}

.v2-ws__detail-split {
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

@media (max-width: 900px) {
  .v2-ws__detail-split {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 720px) {
  .v2-ws__detail-split {
    grid-template-columns: 1fr;
  }
}

.v2-ws__empty {
  padding: var(--s-8) var(--s-4);
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.v2-ws__error {
  padding: var(--s-3) var(--s-6);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  border-bottom: var(--hair-soft);
}

.v2-ws__toast {
  position: absolute;
  right: var(--s-4);
  bottom: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  border-radius: var(--r-2);
  z-index: 6;
  max-width: 360px;
  box-shadow: 0 6px 20px -10px #1a1a1a66;
}

.v2-ws__toast[data-tone="warn"] {
  background: var(--accent);
}

.v2-ws--inline .v2-ws__stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: var(--s-3) var(--s-4) var(--s-2);
}

.v2-ws--inline .v2-ws__toolbar {
  padding: var(--s-2) var(--s-4);
}

.v2-ws--inline .v2-ws__grid {
  grid-template-columns: 1fr;
  padding: var(--s-3) var(--s-4);
  gap: var(--s-2);
}

.v2-ws--inline .v2-ws__card {
  padding: var(--s-2) var(--s-3);
}

.v2-ws__stat, .v2-ws__card {
  border-radius: var(--corner);
}

.v2-ws__card-icon {
  border-radius: var(--corner-sm);
}

.v2-ws__stat-value, .v2-ws__project-name, .v2-ws__card-name {
  font-family: var(--sans);
  letter-spacing: -.015em;
  font-weight: 700;
}

.v2-ws__port {
  color: var(--ok-tx);
  font-family: var(--mono);
}

.v2-ws__dirty {
  color: var(--hold-tx);
}

/* ui/src/v2/rooms/usage/UsageRoom.css */
.rk-usage {
  display: flex;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.rk-usage__bar {
  border-bottom: 1px solid var(--rule);
  background: var(--panel2);
  flex-shrink: 0;
}

.rk-usage__row {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 8px;
  padding: 9px 16px;
}

.rk-usage__row + .rk-usage__row {
  border-top: 1px solid var(--rule2);
}

.rk-usage__title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.rk-usage__sub {
  font-family: var(--mono);
  color: var(--ink3);
  font-size: 8.5px;
}

.rk-usage__lab {
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  font-size: 8px;
}

.rk-usage__period {
  font-family: var(--mono);
  color: var(--ink3);
  margin-left: 4px;
  font-size: 9px;
}

.rk-usage__refresh {
  display: inline-flex;
  font-family: var(--mono);
  text-transform: uppercase;
  border: 1px solid var(--rule);
  border-radius: var(--corner-sm);
  color: var(--ink2);
  background: var(--raise);
  cursor: pointer;
  align-items:  center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 9px;
}

.rk-usage__refresh:hover {
  color: var(--ink);
  border-color: var(--ink3);
}

.rk-usage__date {
  font-family: var(--mono);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--corner-sm);
  background: var(--raise);
  padding: 5px 9px;
  font-size: 11px;
}

.rk-usage .rk-stats__cell--hi {
  background: var(--panel);
}

.rk-usage .rk-stats__cell--hi .rk-stats__n {
  color: var(--ink);
}

.rk-usage__main {
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.rk-usage__empty {
  color: var(--ink3);
  text-align: center;
  padding: 26px 16px;
  font-size: 12.5px;
}

.rk-usage__hint {
  font-family: var(--mono);
  color: var(--ink3);
  border-bottom: 1px solid var(--rule2);
  background: var(--panel2);
  padding: 9px 16px;
  font-size: 10px;
}

.rk-usage__key {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.rk-usage__key-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rk-usage__key-name b {
  font-weight: 600;
}

.rk-usage__share {
  background: color-mix(in srgb, var(--ink) 28%, transparent);
  border-radius: 2px;
  height: 3px;
}

.rk-usage__err {
  color: var(--hold-tx);
}

.rk-usage__raw-mono {
  font-family: var(--mono);
  color: var(--ink2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10.5px;
}

/* ui/src/v2/billing/billing.css */
.bl-chip {
  font-family: var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: inline-flex;
  white-space: nowrap;
  border-radius: 999px;
  align-items:  center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 9px;
}

.bl-chip .d {
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.bl-chip.ok {
  color: var(--ok-tx);
  background: color-mix(in srgb, var(--ok) 13%, transparent);
}

.bl-chip.ok .d {
  background: var(--ok);
}

.bl-chip.warn {
  color: var(--hold-tx);
  background: color-mix(in srgb, var(--hold) 15%, transparent);
}

.bl-chip.warn .d {
  background: var(--hold);
}

.bl-chip.danger {
  color: var(--listen-tx);
  background: color-mix(in srgb, var(--listen) 12%, transparent);
}

.bl-chip.danger .d {
  background: var(--listen);
}

.bl-chip.info {
  color: var(--speak-tx);
  background: color-mix(in srgb, var(--speak) 12%, transparent);
}

.bl-chip.info .d {
  background: var(--speak);
}

.bl-chip.neutral {
  color: var(--ink2);
  background: var(--panel);
}

.bl-chip.neutral .d {
  background: var(--faint);
}

.bl-plan {
  border: 1px solid var(--rule);
  background: var(--raise);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  border-radius: 13px 3px 13px 13px;
}

.bl-plan__head {
  display: flex;
  align-items:  center;
  gap: 11px;
  padding: 15px 17px 12px;
}

.bl-plan__name {
  font-family: var(--sans);
  color: var(--ink);
  letter-spacing: -.01em;
  font-size: 15.5px;
  font-weight: 700;
}

.bl-plan__price {
  font-family: var(--mono);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 600;
}

.bl-plan__meta {
  color: var(--ink3);
  padding: 0 17px 14px;
  font-size: 12.5px;
  line-height: 1.55;
}

.bl-plan__meta b {
  color: var(--ink2);
  font-weight: 600;
}

.bl-plan__act {
  display: flex;
  border-top: 1px solid var(--rule);
  background: var(--panel2);
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 17px;
}

.bl-btn {
  font-family: var(--sans);
  border: 1px solid var(--rule);
  color: var(--ink);
  background: var(--raise);
  cursor: pointer;
  border-radius: 8px 2px 8px 8px;
  padding: 8px 14px;
  transition: filter .15s, border-color .15s;
  font-size: 12.5px;
  font-weight: 600;
}

.bl-btn:hover {
  border-color: var(--ink3);
}

.bl-btn:focus-visible {
  outline: 2px solid var(--speak);
  outline-offset: 2px;
}

.bl-btn--pri {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.bl-btn--pri:hover {
  filter: brightness(1.08);
  border-color: var(--ink);
}

.bl-btn--red {
  color: var(--listen-tx);
  border-color: color-mix(in srgb, var(--listen) 30%, transparent);
  background: var(--raise);
}

.bl-btn--red:hover {
  border-color: var(--listen);
}

.bl-allgood {
  display: flex;
  font-family: var(--mono);
  color: var(--ink3);
  align-items:  center;
  gap: 7px;
  margin-top: 10px;
  font-size: 10.5px;
}

.bl-allgood .dot {
  background: var(--ok);
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.bl-receipt {
  border: 1px solid var(--rule);
  background: var(--panel2);
  overflow: hidden;
  border-radius: 11px 2px 11px 11px;
  margin-top: 10px;
}

.bl-receipt__row {
  display: flex;
  color: var(--ink2);
  border-bottom: 1px solid var(--rule);
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  font-size: 12.5px;
}

.bl-receipt__row:last-child {
  border-bottom: none;
}

.bl-receipt__row .v {
  color: var(--ink);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.bl-receipt__row .link {
  font-family: var(--sans);
  color: var(--speak-tx);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
}

.bl-receipt__row .link:hover {
  text-decoration: underline;
}

.bl-sublabel {
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink3);
  margin: 20px 2px 8px;
  font-size: 9px;
}

.bl-soon {
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items:  center;
  max-width: 380px;
  margin: 12px auto 0;
  padding: 40px 24px;
}

.bl-soon__mark {
  background: var(--panel);
  border: 1px solid var(--rule);
  display: grid;
  color: var(--ink2);
  border-radius: 12px 3px 12px 12px;
  place-items:  center;
  width: 46px;
  height: 46px;
}

.bl-soon__title {
  font-family: var(--sans);
  letter-spacing: -.02em;
  color: var(--ink);
  margin-top: 16px;
  font-size: 17px;
  font-weight: 700;
}

.bl-soon__sub {
  color: var(--ink3);
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.55;
}

.bl-soon .bl-chip {
  margin-top: 15px;
}

.bl-bnr {
  display: flex;
  border-bottom: 1px solid var(--rule);
  align-items:  center;
  gap: 11px;
  padding: 11px 15px;
}

.bl-bnr .bi {
  display: grid;
  border-radius: 7px 1px 7px 7px;
  flex-shrink: 0;
  align-self:  flex-start;
  place-items:  center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
}

.bl-bnr .bi svg {
  width: 14px;
  height: 14px;
}

.bl-bnr .bm {
  color: var(--ink2);
  flex: 1;
  font-size: 12.5px;
  line-height: 1.45;
}

.bl-bnr .bm strong {
  color: var(--ink);
  font-weight: 600;
}

.bl-bnr .ba {
  flex-shrink: 0;
}

.bl-bnr.info {
  background: color-mix(in srgb, var(--speak) 7%, var(--panel2));
  border-bottom-color: color-mix(in srgb, var(--speak) 22%, var(--rule));
}

.bl-bnr.info .bi {
  background: color-mix(in srgb, var(--speak) 14%, transparent);
  color: var(--speak-tx);
}

.bl-bnr.warn {
  background: color-mix(in srgb, var(--hold) 9%, var(--panel2));
  border-bottom-color: color-mix(in srgb, var(--hold) 28%, var(--rule));
}

.bl-bnr.warn .bi {
  background: color-mix(in srgb, var(--hold) 16%, transparent);
  color: var(--hold-tx);
}

.bl-bnr.danger {
  background: color-mix(in srgb, var(--listen) 8%, var(--panel2));
  border-bottom-color: color-mix(in srgb, var(--listen) 26%, var(--rule));
}

.bl-bnr.danger .bi {
  background: color-mix(in srgb, var(--listen) 14%, transparent);
  color: var(--listen-tx);
}

.bl-bnr.neutral {
  background: var(--panel2);
  border-bottom-color: var(--rule);
}

.bl-bnr.neutral .bi {
  background: var(--panel);
  color: var(--ink2);
}

.bl-modal {
  position: fixed;
  z-index: 400;
  display: flex;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: bl-fade .14s var(--ease, ease);
  justify-content: center;
  align-items:  center;
  padding: 24px;
  inset: 0;
}

@keyframes bl-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.bl-modal__box {
  background: var(--raise);
  border: 1px solid var(--rule);
  overflow: hidden;
  animation: bl-pop .16s var(--ease, ease);
  border-radius: 14px 3px 14px 14px;
  width: min(360px, 100%);
  box-shadow: 0 30px 70px -30px #0000008c;
}

@keyframes bl-pop {
  from {
    opacity: 0;
    transform: translateY(6px)scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.bl-modal__head {
  padding: 16px 18px 8px;
}

.bl-modal__title {
  font-family: var(--sans);
  color: var(--ink);
  letter-spacing: -.02em;
  font-size: 16px;
  font-weight: 700;
}

.bl-modal__sub {
  color: var(--ink3);
  margin-top: 3px;
  font-size: 12px;
}

.bl-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 18px 4px;
}

.bl-opt {
  display: flex;
  border: 1px solid var(--rule);
  cursor: pointer;
  background: var(--raise);
  text-align: left;
  border-radius: 10px 2px 10px 10px;
  align-items:  center;
  gap: 11px;
  width: 100%;
  padding: 11px 13px;
  transition: border-color .14s, box-shadow .14s;
}

.bl-opt[aria-checked="true"] {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.bl-opt:focus-visible {
  outline: 2px solid var(--speak);
  outline-offset: 2px;
}

.bl-opt .rad {
  border: 1.5px solid var(--rule);
  position: relative;
  border-radius: 50%;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.bl-opt[aria-checked="true"] .rad {
  border-color: var(--ink);
}

.bl-opt[aria-checked="true"] .rad:after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 50%;
  inset: 3px;
}

.bl-opt .ot {
  flex: 1;
  min-width: 0;
}

.bl-opt .otn {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.bl-opt .otd {
  display: block;
  color: var(--ink3);
  margin-top: 1px;
  font-size: 11px;
}

.bl-opt .op {
  font-family: var(--mono);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 600;
}

.bl-prorate {
  background: var(--panel2);
  border: 1px solid var(--rule);
  color: var(--ink2);
  border-radius: 9px 2px 9px 9px;
  margin: 11px 18px 0;
  padding: 11px 13px;
  font-size: 12px;
  line-height: 1.5;
}

.bl-prorate strong {
  color: var(--ink);
  font-weight: 600;
}

.bl-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 18px;
}

@media (prefers-reduced-motion: reduce) {
  .bl-modal, .bl-modal__box {
    animation: none;
  }
}

/* ui/src/v2/rooms/settings/SettingsRoom.css */
.v2-set {
  display: flex;
  position: relative;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.v2-set__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6) var(--s-3);
}

@media (max-width: 720px) {
  .v2-set__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.v2-set__stat {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.v2-set__stat[data-tone="ok"] {
  border-color: color-mix(in srgb, var(--ok) 40%, var(--rule-soft));
}

.v2-set__stat[data-tone="warn"] {
  border-color: var(--warn);
}

.v2-set__stat[data-tone="accent"] {
  border-color: var(--accent);
}

.v2-set__stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.v2-set__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--ink);
  line-height: 1.1;
}

.v2-set__stat[data-tone="warn"] .v2-set__stat-value {
  color: var(--warn);
}

.v2-set__stat[data-tone="ok"] .v2-set__stat-value {
  color: var(--ok);
}

.v2-set__stat[data-tone="accent"] .v2-set__stat-value {
  color: var(--accent);
}

.v2-set__stat-sub {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-set__banner {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  margin: 0 var(--s-6) var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: color-mix(in srgb, var(--warn) 12%, var(--paper));
  border: 1px solid var(--warn);
  border-radius: var(--r-2);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
}

.v2-set__banner > svg {
  color: var(--warn);
  flex-shrink: 0;
}

.v2-set__banner > span {
  flex: 1;
}

.v2-set__banner-btn {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  cursor: pointer;
  border: 0;
  padding: 4px 12px;
  font-weight: 600;
}

.v2-set__banner-btn:hover {
  background: var(--ink-2);
}

.v2-set__banner-dismiss {
  color: var(--ink-3);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  background: none;
  border: 0;
  padding: 0 4px;
  line-height: 1;
}

.v2-set__banner-dismiss:hover {
  color: var(--ink);
}

.v2-set__tabs {
  display: flex;
  padding: 0 var(--s-6);
  border-bottom: var(--hair-soft);
  overflow-x: auto;
  flex-shrink: 0;
  align-items:  center;
  gap: 0;
}

.v2-set__tab {
  display: inline-flex;
  padding: var(--s-3) var(--s-4);
  color: var(--ink-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  align-items:  center;
  gap: 6px;
}

.v2-set__tab:hover {
  color: var(--ink);
}

.v2-set__tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.v2-set__tab[data-active="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.v2-set__body {
  overflow-y: auto;
  padding: var(--s-5) var(--s-6) var(--s-8);
  flex: 1;
  min-height: 0;
}

.v2-set__section {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-4);
  display: flex;
  gap: var(--s-3);
  flex-direction: column;
}

.v2-set__section-head {
  display: flex;
  justify-content: space-between;
  align-items:  flex-start;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.v2-set__section-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

.v2-set__section-sub {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
  margin-top: 2px;
}

.v2-set__field {
  display: flex;
  gap: var(--s-2);
  flex-direction: column;
}

.v2-set__field-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.v2-set__row {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
}

.v2-set__row-label {
  color: var(--ink-2);
}

.v2-set__row-value {
  color: var(--ink);
}

.v2-set__input, .v2-set__textarea, .v2-set__select {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-1);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  outline: 0;
  box-sizing: border-box;
  width: 100%;
  padding: 8px 12px;
}

.v2-set__textarea {
  resize: vertical;
  font-family: var(--font-display);
  line-height: var(--lh-body);
  min-height: 100px;
}

.v2-set__select {
  cursor: pointer;
}

.v2-set__input:focus, .v2-set__textarea:focus, .v2-set__select:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.v2-set__hint {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
  margin: 0;
  line-height: 1.5;
}

.v2-set__hint a {
  color: var(--accent);
}

.v2-set__hint code, .v2-set__code {
  display: inline-block;
  background: var(--paper-3);
  border-radius: var(--r-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-2);
  padding: 2px 6px;
}

.v2-set__code--block {
  display: block;
  padding: var(--s-2) var(--s-3);
  word-break: break-all;
  margin-top: 4px;
}

.v2-set__btn {
  display: inline-flex;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  cursor: pointer;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  background: none;
  justify-content: center;
  align-items:  center;
  gap: 4px;
  padding: 6px 14px;
}

.v2-set__btn:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-set__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.v2-set__btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.v2-set__btn--primary:hover {
  background: var(--ink-2);
}

.v2-set__btn--danger {
  color: var(--accent);
  border-color: var(--accent);
}

.v2-set__btn--danger:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.v2-set__btn:disabled {
  opacity: .5;
  cursor: default;
}

.v2-set__toggle {
  position: relative;
  background: var(--rule);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  border: 0;
  border-radius: 10px;
  flex-shrink: 0;
  width: 36px;
  height: 20px;
  padding: 0;
}

.v2-set__toggle[data-checked="true"] {
  background: var(--ink);
}

.v2-set__toggle:after {
  content: "";
  position: absolute;
  background: var(--paper);
  transition: left var(--dur-fast) var(--ease-out);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  top: 2px;
  left: 2px;
}

.v2-set__toggle[data-checked="true"]:after {
  left: 18px;
}

.v2-set__toggle-row {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.v2-set__dot {
  background: var(--ink-3);
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.v2-set__dot--ok {
  background: var(--ok);
}

.v2-set__dot--warn {
  background: var(--warn);
}

.v2-set__dot--accent {
  background: var(--accent);
}

.v2-set__chip {
  display: inline-flex;
  border-radius: var(--r-pill);
  background: var(--paper-3);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  align-items:  center;
  gap: 4px;
  padding: 2px 8px;
}

.v2-set__chip--ok {
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  color: var(--ok);
}

.v2-set__chip--warn {
  background: color-mix(in srgb, var(--warn) 14%, transparent);
  color: var(--warn);
}

.v2-set__chip--accent {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.v2-set__provider {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  display: flex;
  gap: var(--s-3);
  flex-direction: column;
}

.v2-set__provider-head {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  cursor: pointer;
  user-select: none;
  text-align: left;
  background: none;
  border: 0;
  width: 100%;
  padding: 0;
}

.v2-set__provider-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--ink);
  flex: 1;
}

.v2-set__provider[data-primary="true"] {
  border-color: var(--ink);
}

.v2-set__provider-fields {
  display: flex;
  gap: var(--s-3);
  padding-top: var(--s-2);
  border-top: var(--hair-soft);
  flex-direction: column;
}

.v2-set__provider-actions {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.v2-set__provider-actions-spacer {
  flex: 1;
}

.v2-set__test-result {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.v2-set__test-result[data-ok="true"] {
  color: var(--ok);
}

.v2-set__test-result[data-ok="false"] {
  color: var(--accent);
}

.v2-set__sidecar-list {
  list-style: none;
  display: flex;
  gap: var(--s-2);
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.v2-set__sidecar {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.v2-set__sidecar-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--ink);
}

.v2-set__sidecar-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.v2-set__sidecar-actions {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
}

.v2-set__token-box {
  background: color-mix(in srgb, var(--ok) 8%, var(--paper));
  border: 1px dashed var(--ok);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  display: flex;
  gap: var(--s-2);
  flex-direction: column;
}

.v2-set__token-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ok);
}

.v2-set__wizard-progress {
  background: var(--paper-3);
  border-radius: var(--r-pill);
  overflow: hidden;
  height: 6px;
}

.v2-set__wizard-progress-fill {
  background: var(--ink);
  transition: width var(--dur-base) var(--ease-out);
  height: 100%;
}

.v2-set__wizard-step {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.v2-set__profile-snapshot {
  display: grid;
  gap: var(--s-3);
}

.v2-set__profile-group {
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  background: var(--paper);
}

.v2-set__profile-group-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-2);
}

.v2-set__profile-question {
  font-size: var(--text-sm);
  color: var(--ink);
}

.v2-set__profile-answer {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: var(--lh-body);
  white-space: pre-wrap;
  margin-top: 4px;
}

.v2-set__pers-bar {
  background: var(--paper-3);
  overflow: hidden;
  border-radius: 2px;
  height: 4px;
  margin-top: 2px;
}

.v2-set__pers-bar-fill {
  background: var(--ink);
  height: 100%;
}

.v2-set__chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.v2-set__empty {
  padding: var(--s-8) var(--s-4);
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.v2-set__error {
  padding: var(--s-3) var(--s-4);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  border-radius: var(--r-2);
}

.v2-set__toast {
  position: absolute;
  right: var(--s-4);
  bottom: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  border-radius: var(--r-2);
  z-index: 6;
  max-width: 360px;
  box-shadow: 0 6px 20px -10px #1a1a1a66;
}

.v2-set__toast[data-tone="warn"] {
  background: var(--accent);
}

.v2-set__overlay {
  position: fixed;
  display: flex;
  padding: var(--s-4);
  z-index: 65;
  background: #1a1a1a66;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.v2-set__dialog {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  display: flex;
  overflow: hidden;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
}

.v2-set__dialog-head {
  padding: var(--s-4) var(--s-5);
  border-bottom: var(--hair-soft);
  background: var(--paper-2);
}

.v2-set__dialog-body {
  padding: var(--s-5);
  display: flex;
  gap: var(--s-4);
  overflow-y: auto;
  flex-direction: column;
}

.v2-set__dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border-top: var(--hair-soft);
  background: var(--paper-2);
}

.v2-set__legacy-embed {
  --j-warning: var(--warn);
  --j-error: var(--accent);
}

.v2-set--inline .v2-set__stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: var(--s-3) var(--s-4) var(--s-2);
}

.v2-set--inline .v2-set__tabs {
  padding: 0 var(--s-4);
}

.v2-set--inline .v2-set__tab {
  padding: var(--s-2) var(--s-3);
}

.v2-set--inline .v2-set__body {
  padding: var(--s-3) var(--s-4);
}

.v2-set--inline .v2-set__banner {
  margin: 0 var(--s-4) var(--s-3);
}

.v2-set__mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}

.v2-set__mode-card {
  text-align: left;
  background: var(--paper);
  border: var(--hair);
  border-radius: var(--r-1);
  padding: var(--s-3);
  cursor: pointer;
  color: inherit;
  font: inherit;
  display: flex;
  gap: var(--s-1);
  flex-direction: column;
}

.v2-set__mode-card:hover:not(:disabled) {
  background: var(--paper-2);
}

.v2-set__mode-card:disabled {
  opacity: .5;
  cursor: wait;
}

.v2-set__mode-card[data-active="true"] {
  border-color: var(--accent);
  background: var(--paper-2);
}

.v2-set__mode-title {
  color: var(--ink);
  font-weight: 600;
}

.v2-set__mode-card[data-active="true"] .v2-set__mode-title {
  color: var(--accent);
}

.v2-set__mode-sub {
  font-size: var(--text-xs);
  color: var(--ink-3);
  line-height: 1.4;
}

.v2-set__section, .v2-set__stat {
  border-radius: var(--corner);
}

.v2-set__tab[data-active="true"] {
  border-radius: 7px 2px 7px 7px;
}

.v2-set__stat-value, .v2-set__section-title {
  font-family: var(--sans);
  letter-spacing: -.015em;
  font-weight: 700;
}

.v2-set :focus-visible {
  outline-color: var(--speak);
}

/* ui/src/v2/rooms/RoomWindow.css */
.v2-roomwin {
  display: flex;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  overflow: hidden;
  flex-direction: column;
  box-shadow: 0 1px #1a1a1a0a, 4px 4px #1a1a1a0a;
}

.v2-roomwin--focus-pulse {
  animation: v2-roomwin-pulse .6s var(--ease-out);
}

@keyframes v2-roomwin-pulse {
  0%, 100% {
    box-shadow: 0 1px #1a1a1a0a, 4px 4px #1a1a1a0a;
  }

  50% {
    box-shadow: 0 0 0 3px #c23a2a2e, 4px 4px #1a1a1a0a;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2-roomwin--focus-pulse {
    animation: none;
    box-shadow: 0 0 0 2px var(--accent), 4px 4px 0 0 #1a1a1a0a;
  }
}

.v2-roomwin__chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items:  center;
  gap: var(--s-3);
  background: var(--paper-2);
  border-bottom: var(--hair-soft);
  user-select: none;
  cursor: default;
  padding: 8px 12px;
}

.v2-roomwin--minimized .v2-roomwin__chrome {
  cursor: pointer;
  border-bottom: 0;
}

.v2-roomwin__lights {
  display: inline-flex;
  align-items:  center;
  gap: 6px;
}

.v2-roomwin__light {
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: filter var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  border: 1px solid #1a1a1a2e;
  width: 12px;
  height: 12px;
  padding: 0;
}

.v2-roomwin__light--close {
  background: #d88b85;
}

.v2-roomwin__light--minimize {
  background: #d4b47a;
}

.v2-roomwin__light--expand {
  background: #95b89a;
}

.v2-roomwin__light:hover {
  filter: brightness(1.08) saturate(1.1);
  transform: scale(1.05);
}

.v2-roomwin__light:active {
  transform: scale(.92);
}

.v2-roomwin__light:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.v2-roomwin__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--ink);
  text-align: center;
  letter-spacing: -.005em;
}

.v2-roomwin__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.v2-roomwin__body {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: clamp(280px, 50vh, 600px);
}

.v2-roomwin__body > * {
  overflow: auto;
  flex: 1;
  min-height: 0;
}

@media (max-width: 700px) {
  .v2-roomwin__body {
    height: clamp(240px, 60vh, 480px);
  }
}

.v2-roomwin--floating {
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  z-index: 30;
  display: flex;
  overflow: hidden;
  background: var(--paper);
  flex-direction: column;
  box-shadow: 0 1px #1a1a1a0a, 6px 8px #1a1a1a14, 0 0 #1a1a1a00;
}

.v2-roomwin--floating.v2-roomwin--focused {
  z-index: 35;
  box-shadow: 0 1px #1a1a1a0a, 6px 8px #1a1a1a1f;
}

.v2-roomwin--floating .v2-roomwin__body {
  flex: 1;
  height: auto;
  min-height: 0;
}

.v2-roomwin--floating.v2-roomwin--minimized {
  height: auto !important;
}

.v2-roomwin__resize {
  position: absolute;
  cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 0 50%, var(--ink-3) 50% 60%, transparent 60% 70%, var(--ink-3) 70% 80%, transparent 80% 100%);
  opacity: .5;
  transition: opacity var(--dur-fast) var(--ease-out);
  width: 16px;
  height: 16px;
  bottom: 0;
  right: 0;
}

.v2-roomwin__resize:hover {
  opacity: 1;
}

/* ui/src/v2/thread/MarkdownBody.css */
.v2-md {
  font: inherit;
  color: inherit;
}

.v2-md > :first-child {
  margin-top: 0;
}

.v2-md > :last-child {
  margin-bottom: 0;
}

.v2-md__p {
  font: inherit;
  margin: 0 0 .75em;
}

.v2-md__p:last-child {
  margin-bottom: 0;
}

.v2-md strong {
  color: var(--ink);
  font-weight: 600;
}

.v2-md em {
  font-style: italic;
}

.v2-md del {
  color: var(--ink-3);
}

.v2-md h1, .v2-md h2, .v2-md h3, .v2-md h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 1em 0 .4em;
}

.v2-md h1 {
  font-size: 1.25em;
}

.v2-md h2 {
  font-size: 1.15em;
}

.v2-md h3 {
  font-size: 1.05em;
}

.v2-md h4 {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
  font-size: 1em;
}

.v2-md ul, .v2-md ol {
  margin: 0 0 .75em;
  padding-left: 1.25em;
}

.v2-md li {
  margin-bottom: .25em;
}

.v2-md li > p {
  margin: 0;
}

.v2-md blockquote {
  border-left: 2px solid var(--rule);
  color: var(--ink-2);
  margin: .5em 0 .75em;
  padding: .2em 0 .2em .9em;
  font-style: italic;
}

.v2-md hr {
  border: 0;
  border-top: var(--hair);
  margin: 1em 0;
}

.v2-md__link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.v2-md__link:hover {
  text-decoration-thickness: 2px;
}

.v2-md__code-inline {
  font-family: var(--font-mono);
  background: var(--paper-2);
  border: var(--hair-soft);
  border-radius: var(--r-1);
  white-space: break-spaces;
  padding: 1px 5px;
  font-size: .9em;
}

.v2-md pre {
  padding: var(--s-3) var(--s-4);
  background: var(--paper-2);
  border: var(--hair);
  border-radius: var(--r-2);
  overflow-x: auto;
  overscroll-behavior: contain;
  font-family: var(--font-mono);
  margin: .5em 0 .75em;
  font-size: .88em;
  line-height: 1.5;
}

.v2-md pre code, .v2-md__code-block {
  font-family: var(--font-mono);
  font-size: inherit;
  white-space: pre;
  background: none;
  border: 0;
  padding: 0;
}

.v2-md table {
  border-collapse: collapse;
  font-size: .95em;
  font-family: var(--font-sans);
  width: 100%;
  margin: .5em 0 .75em;
}

.v2-md th, .v2-md td {
  border: var(--hair-soft);
  text-align: left;
  padding: 4px 10px;
}

.v2-md th {
  background: var(--paper-2);
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-size: .9em;
}

.v2-md input[type="checkbox"] {
  margin-right: 6px;
  transform: translateY(1px);
}

/* ui/src/v2/thread/items.css */
.v2-item {
  display: flex;
  gap: var(--s-1);
  padding: var(--s-1) 0;
  position: relative;
  flex-direction: column;
}

.v2-item__meta {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  line-height: 1.2;
}

.v2-item__meta-dot {
  background: var(--accent);
  display: inline-block;
  border-radius: 2px;
  flex-shrink: 0;
  width: 4px;
  height: 4px;
}

.v2-item__who, .v2-item__who--jarvis {
  color: var(--ink-3);
}

.v2-item__tag {
  color: var(--ink-3);
  font-weight: 500;
}

.v2-item__time {
  color: var(--ink-3);
  letter-spacing: .06em;
  text-transform: none;
  font-weight: 400;
}

.v2-item__body {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.v2-item--user .v2-item__body {
  font-family: var(--font-display);
  color: var(--ink-2);
  white-space: pre-wrap;
  font-style: italic;
}

.v2-item__mic {
  display: inline-flex;
  vertical-align: -1px;
  align-items:  center;
  gap: 4px;
  margin-right: 4px;
}

.v2-item--speech .v2-item__body {
  font-family: var(--font-display);
  color: var(--ink);
}

.v2-item__speaking-dot {
  display: inline-block;
  border-radius: var(--r-pill);
  background: var(--accent);
  vertical-align: 2px;
  animation: v2-speaking 1.2s ease-in-out infinite;
  width: 6px;
  height: 6px;
  margin-left: 6px;
}

@keyframes v2-speaking {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2-item__speaking-dot {
    animation: none;
    opacity: .7;
  }
}

.v2-item--thought {
  padding-left: var(--s-4);
  border-left: 2px dotted var(--rule);
  margin-left: 2px;
}

.v2-item--thought .v2-item__body {
  font-family: var(--font-display);
  color: var(--ink-3);
  font-style: italic;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.v2-item--result {
  padding: var(--s-3) var(--s-4);
  background: var(--paper-2);
  border: var(--hair);
  border-radius: var(--r-2);
  gap: var(--s-2);
}

.v2-item--result .v2-item__body {
  font-family: var(--font-display);
  font-size: var(--text-md);
  line-height: var(--lh-body);
}

.v2-item__detail {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: var(--lh-body);
  margin-top: var(--s-1);
}

/* ui/src/v2/thread/Thread.css */
.v2-thread {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.v2-thread__scroll {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  flex: 1;
}

.v2-thread__inner {
  padding: var(--s-8) var(--s-8) var(--s-12);
  display: flex;
  gap: var(--s-6);
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.v2-thread__item {
  scroll-margin-top: var(--s-8);
  scroll-margin-bottom: var(--s-8);
  border-radius: var(--r-2);
  transition: box-shadow var(--dur-med) var(--ease-out);
}

.v2-thread__item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.v2-thread__item--flash {
  animation: v2-thread-flash 1.6s var(--ease-out);
}

@keyframes v2-thread-flash {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent);
  }

  20% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent);
  }

  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2-thread__item--flash {
    animation: none;
    box-shadow: 0 0 0 2px var(--accent);
  }
}

.v2-thread__empty {
  display: flex;
  gap: var(--s-5);
  padding: var(--s-10) 0;
  flex-direction: column;
}

.v2-thread__empty-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.v2-thread__empty-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: -.01em;
  max-width: 18ch;
  font-weight: 500;
}

.v2-thread__empty-title em {
  color: var(--accent);
  font-style: italic;
}

.v2-thread__empty-lede {
  font-size: var(--text-md);
  color: var(--ink-2);
  line-height: var(--lh-body);
  max-width: 54ch;
}

.v2-thread__jump {
  position: absolute;
  left: 50%;
  bottom: var(--s-5);
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  background: var(--raise);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--corner-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--sh-md);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  animation: v2-jump-in var(--dur-med) var(--ease-out);
  padding: 7px 11px;
  transform: translateX(-50%);
}

.v2-thread__jump-dot {
  border-radius: var(--r-pill);
  background: var(--listen);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--listen) 16%, transparent);
  width: 6px;
  height: 6px;
}

.v2-thread__jump svg {
  color: var(--ink3);
  margin-left: 2px;
}

.v2-thread__jump:hover {
  background: var(--panel2);
  border-color: var(--ink3);
}

.v2-thread__jump:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@keyframes v2-jump-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }

  to {
    opacity: 1;
    transform: translate(-50%);
  }
}

.v2-thread__dev {
  position: absolute;
  right: var(--s-5);
  top: var(--s-3);
  display: flex;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.v2-thread__dev-btn {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  padding: 4px 10px;
}

.v2-thread__dev-btn:hover {
  background: var(--paper-3);
}

.v2-thread__dev-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .v2-thread__scroll {
    scroll-behavior: auto;
  }

  .v2-thread__jump {
    animation: none;
  }
}

/* ui/src/v2/palette/CommandPalette.css */
.v2-palette__scrim {
  position: fixed;
  z-index: var(--z-palette);
  display: flex;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: pal-scrim-in .16s var(--ease) both;
  justify-content: center;
  align-items:  flex-start;
  padding-top: 11vh;
  inset: 0;
}

@keyframes pal-scrim-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.v2-palette__scrim-catcher {
  position: absolute;
  z-index: -1;
  cursor: default;
  background: none;
  border: 0;
  inset: 0;
}

.v2-palette {
  position: relative;
  display: flex;
  overflow: hidden;
  background: color-mix(in srgb, var(--raise) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: .5px solid color-mix(in srgb, var(--ink) 9%, transparent);
  box-shadow: inset 0 1px 1px #ffffff80, var(--sh-lg);
  animation: pal-card-in .2s var(--ease) both;
  border-radius: 14px 4px 14px 14px;
  flex-direction: column;
  width: min(560px, 92vw);
  max-height: 64vh;
}

@keyframes pal-card-in {
  from {
    opacity: 0;
    transform: translateY(-8px)scale(.985);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.v2-palette__head {
  display: flex;
  border-bottom: .5px solid color-mix(in srgb, var(--ink) 9%, transparent);
  color: var(--ink3);
  align-items:  center;
  gap: 10px;
  padding: 13px 16px;
}

.v2-palette__input {
  outline: none;
  font-family: var(--mono);
  color: var(--ink);
  background: none;
  border: 0;
  flex: 1;
  padding: 2px 0;
  font-size: 13px;
}

.v2-palette__input::placeholder {
  color: var(--ink3);
  font-style: normal;
}

.v2-palette__list {
  overflow-y: auto;
  flex: 1;
  padding: 6px 0 4px;
}

.v2-palette__empty {
  font-family: var(--sans);
  color: var(--ink3);
  text-align: center;
  padding: 22px 18px;
  font-size: 13px;
}

.v2-palette__group {
  padding: 4px 0;
}

.v2-palette__group + .v2-palette__group {
  border-top: .5px solid color-mix(in srgb, var(--ink) 7%, transparent);
}

.v2-palette__group-label {
  font-family: var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink3);
  padding: 8px 16px 4px;
  font-size: 8px;
  font-weight: 500;
}

.v2-palette__group-rows {
  display: flex;
  flex-direction: column;
}

.v2-palette__row {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  cursor: pointer;
  background: none;
  border: 0;
  align-items:  center;
  gap: 11px;
  padding: 8px 16px;
}

.v2-palette__row--active {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.v2-palette__row-icon {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--corner-sm);
  display: flex;
  color: var(--ink2);
  justify-content: center;
  align-items:  center;
  width: 24px;
  height: 24px;
}

.v2-palette__row--active .v2-palette__row-icon {
  background: var(--raise);
  color: var(--ink);
}

.v2-palette__row-body {
  min-width: 0;
}

.v2-palette__row-title {
  font-family: var(--sans);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12.5px;
  font-weight: 500;
}

.v2-palette__row-hint {
  font-family: var(--sans);
  color: var(--ink3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11.5px;
}

.v2-palette__row-type {
  font-family: var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink3);
  font-size: 8px;
}

.v2-palette__row-enter {
  display: inline-flex;
  color: var(--ink3);
  visibility: hidden;
  align-items:  center;
}

.v2-palette__row--active .v2-palette__row-enter {
  visibility: visible;
  color: var(--speak-tx);
}

.v2-palette__foot {
  display: flex;
  border-top: .5px solid color-mix(in srgb, var(--ink) 8%, transparent);
  font-family: var(--mono);
  letter-spacing: .04em;
  color: var(--ink3);
  background: color-mix(in srgb, var(--panel) 55%, transparent);
  align-items:  center;
  gap: 16px;
  padding: 9px 16px;
  font-size: 8.5px;
}

.v2-palette__hint {
  display: inline-flex;
  align-items:  center;
  gap: 5px;
}

.v2-palette__hint--right {
  margin-left: auto;
}

@media (prefers-reduced-motion: reduce) {
  .v2-palette__scrim, .v2-palette {
    animation: none;
  }
}

/* ui/src/v2/shell/SystemStates.css */
.sys-drop {
  position: relative;
  background: #ffffff14;
  border: .5px solid #ffffff80;
  border-radius: 50% 50% 50% 12px;
  transform: rotate(45deg);
  box-shadow: inset 1.5px 1.5px 1.5px #ffffffe6, 0 6px 18px -4px #141e2d4d;
}

:root[data-theme="dark"] .sys-drop {
  border-color: #fff6;
  box-shadow: inset 1.5px 1.5px 1.5px #ffffff8c, 0 8px 22px -4px #0009;
}

.sys-drop .in {
  position: absolute;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 40%, #ff6e60, var(--listen) 58%, #b81e16);
  animation: sys-brS 2.6s var(--ease, cubic-bezier(.2, .7, .2, 1)) infinite;
  inset: 0;
}

.sys-drop .ring {
  position: absolute;
  border-radius: inherit;
  opacity: 0;
  background: conic-gradient(from 0deg, transparent 0 200deg, #fffffffa 300deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, #0000 38%, #000 46% 56%, #0000 64%);
  mask: radial-gradient(circle, #0000 38%, #000 46% 56%, #0000 64%);
  inset: -2px;
}

.sys-drop.think .in {
  opacity: .5;
  animation: none;
  background: radial-gradient(circle at 50% 40%, #fff, #e6eaef 70%);
}

.sys-drop.think .ring {
  opacity: .95;
  animation: sys-spin 1.5s linear infinite;
}

.sys-drop.hold .in {
  background: radial-gradient(circle at 50% 40%, #f4c24e, var(--hold) 60%, #b97f08);
}

.sys-drop.done .in {
  background: radial-gradient(circle at 50% 40%, #56c98a, var(--ok) 60%, #1f7e45);
}

.sys-drop.muted {
  background: #e1e6ee52;
  border-style: dashed;
  border-color: #8c96a2b3;
}

:root[data-theme="dark"] .sys-drop.muted {
  background: #3c424a66;
  border-color: #78808a99;
}

.sys-drop.muted .in {
  opacity: 1;
  animation: none;
  background: linear-gradient(135deg, #0000 45%, #78808ab3 45% 55%, #0000 55%);
}

@keyframes sys-brS {
  0%, 100% {
    opacity: .62;
    transform: scale(.96);
  }

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

@keyframes sys-spin {
  to {
    transform: rotate(360deg);
  }
}

.sys-dropwrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.sys-bloom {
  position: absolute;
  filter: blur(10px);
  pointer-events: none;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
}

.sys-bloom.r {
  background: radial-gradient(circle, color-mix(in srgb, var(--listen) 22%, transparent), transparent 66%);
}

.sys-bloom.a {
  background: radial-gradient(circle, color-mix(in srgb, var(--hold) 22%, transparent), transparent 66%);
}

.sys-bloom.w {
  background: radial-gradient(circle, #e1e8f22e, #0000 66%);
}

.sys-bloom.n {
  background: radial-gradient(circle, #78808a2e, #0000 66%);
}

.sys-overlay {
  position: fixed;
  z-index: 320;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  text-align: center;
  opacity: 1;
  transition: opacity .24s var(--ease, cubic-bezier(.2, .7, .2, 1));
  -webkit-font-smoothing: antialiased;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  padding: 30px;
  inset: 0;
}

.sys-overlay.out {
  opacity: 0;
  pointer-events: none;
}

.sys-wrap {
  width: 100%;
  max-width: 380px;
}

.sys-h2 {
  font-family: var(--sans);
  letter-spacing: -.028em;
  color: var(--ink);
  text-wrap: balance;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.18;
}

.sys-sub {
  color: var(--ink3);
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
}

.sys-sub b {
  color: var(--ink2);
  font-weight: 600;
}

.sys-fine {
  color: var(--faint);
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.5;
}

.sys-fine a {
  color: var(--ink3);
}

.sys-btnrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.sys-btn {
  font-family: var(--sans);
  display: inline-flex;
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: 9px 2px 9px 9px;
  justify-content: center;
  align-items:  center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  transition: filter .15s, border-color .15s;
  font-size: 13.5px;
  font-weight: 600;
}

.sys-btn:focus-visible {
  outline: 2px solid var(--speak);
  outline-offset: 2px;
}

.sys-btn--pri {
  background: var(--ink);
  color: var(--bg);
}

.sys-btn--pri:hover {
  filter: brightness(1.08);
}

.sys-btn--ghost {
  background: var(--raise);
  border-color: var(--rule);
  color: var(--ink);
}

.sys-btn--ghost:hover {
  border-color: var(--ink3);
}

.sys-statuslist {
  border: 1px solid var(--rule);
  background: var(--panel2);
  overflow: hidden;
  text-align: left;
  border-radius: 11px 2px 11px 11px;
  margin: 16px 0 0;
}

.sys-statuslist .sr {
  display: flex;
  color: var(--ink2);
  border-bottom: 1px solid var(--rule);
  align-items:  center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 12.5px;
}

.sys-statuslist .sr:last-child {
  border-bottom: none;
}

.sys-statuslist .sr .si {
  display: grid;
  flex-shrink: 0;
  place-items:  center;
  width: 15px;
  height: 15px;
}

.sys-statuslist .sr .si svg {
  width: 14px;
  height: 14px;
}

.sys-statuslist .sr.ok .si {
  color: var(--ok-tx);
}

.sys-statuslist .sr.wait .si, .sys-statuslist .sr.no {
  color: var(--ink3);
}

.sys-statuslist .sr.no .si {
  color: var(--listen-tx);
}

.sys-statuslist .sr b {
  color: var(--ink);
  font-weight: 600;
}

.sys-statuslist .sr.wait .si svg {
  animation: sys-spin2 1.2s linear infinite;
}

@keyframes sys-spin2 {
  to {
    transform: rotate(360deg);
  }
}

.sys-pbar {
  background: var(--panel);
  overflow: hidden;
  border-radius: 3px;
  width: 100%;
  max-width: 220px;
  height: 4px;
  margin: 14px auto 0;
}

.sys-pbar i {
  display: block;
  background: var(--ink);
  border-radius: 3px;
  width: 8%;
  height: 100%;
}

.sys-pbar.run i {
  animation: sys-fill 2.6s var(--ease, cubic-bezier(.2, .7, .2, 1)) forwards;
}

@keyframes sys-fill {
  0% {
    width: 8%;
  }

  80% {
    width: 88%;
  }

  100% {
    width: 96%;
  }
}

.sys-opts {
  display: flex;
  text-align: left;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 0;
}

.sys-opt {
  display: flex;
  border: 1px solid var(--rule);
  background: var(--raise);
  border-radius: 11px 2px 11px 11px;
  align-items:  center;
  gap: 12px;
  padding: 12px 14px;
}

.sys-opt .ot {
  flex: 1;
}

.sys-opt .otn {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.sys-opt .otd {
  color: var(--ink3);
  margin-top: 1px;
  font-size: 11px;
}

.sys-opt .op {
  font-family: var(--mono);
  color: var(--ink2);
  margin: 0 4px;
  font-size: 11px;
}

.sys-opt.free .op {
  color: var(--ok-tx);
  font-weight: 600;
}

.sys-opt .ob {
  border: 1px solid var(--rule);
  color: var(--ink);
  background: var(--raise);
  cursor: pointer;
  border-radius: 7px 2px 7px 7px;
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
}

.sys-opt .ob.pri {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.sys-opt .ob:focus-visible {
  outline: 2px solid var(--speak);
  outline-offset: 2px;
}

.sys-bnr {
  display: flex;
  border-bottom: 1px solid var(--rule);
  align-items:  flex-start;
  gap: 11px;
  padding: 11px 15px;
}

.sys-bnr .bi {
  display: grid;
  border-radius: 7px 1px 7px 7px;
  flex-shrink: 0;
  place-items:  center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
}

.sys-bnr .bi svg {
  width: 14px;
  height: 14px;
}

.sys-bnr .bm {
  color: var(--ink2);
  flex: 1;
  align-self:  center;
  font-size: 12.5px;
  line-height: 1.45;
}

.sys-bnr .bm b {
  color: var(--ink);
  font-weight: 600;
}

.sys-bnr .ba {
  display: flex;
  flex-shrink: 0;
  align-self:  center;
  align-items:  center;
  gap: 7px;
}

.sys-bnr.info {
  background: color-mix(in srgb, var(--speak) 7%, var(--panel2));
  border-bottom-color: color-mix(in srgb, var(--speak) 22%, var(--rule));
}

.sys-bnr.info .bi {
  background: color-mix(in srgb, var(--speak) 14%, transparent);
  color: var(--speak-tx);
}

.sys-bnr.warn {
  background: color-mix(in srgb, var(--hold) 9%, var(--panel2));
  border-bottom-color: color-mix(in srgb, var(--hold) 28%, var(--rule));
}

.sys-bnr.warn .bi {
  background: color-mix(in srgb, var(--hold) 16%, transparent);
  color: var(--hold-tx);
}

.sys-bnr .ratespin {
  display: inline-flex;
  animation: sys-spin2 1.2s linear infinite;
}

.sys-sbtn {
  border: 1px solid var(--rule);
  color: var(--ink);
  background: var(--raise);
  cursor: pointer;
  border-radius: 7px 2px 7px 7px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
}

.sys-sbtn.pri {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.sys-sbtn:focus-visible {
  outline: 2px solid var(--speak);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .sys-drop .in, .sys-drop .ring, .sys-statuslist .sr.wait .si svg, .sys-pbar.run i, .sys-bnr .ratespin {
    animation: none !important;
  }

  .sys-drop .in {
    opacity: 1 !important;
  }

  .sys-drop.think .ring {
    opacity: .95 !important;
  }

  .sys-pbar.run i {
    width: 88% !important;
  }

  .sys-overlay {
    transition: none;
  }
}

/* ui/src/v2/rooms/FloatingWindowsLayer.css */
.v2-floating-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: var(--v2-rail-width);
  z-index: 30;
  pointer-events: none;
  bottom: 0;
}

.v2-floating-layer > .v2-roomwin {
  pointer-events: auto;
}

@media (max-width: 900px) {
  .v2-floating-layer {
    display: none;
  }
}

/* ui/src/v2/notifications/NotificationDrawer.css */
.v2-notif-drawer {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
  display: flex;
  z-index: 65;
  overflow: hidden;
  animation: v2-notif-drawer-in var(--dur-fast) var(--ease-out);
  flex-direction: column;
  width: 360px;
  max-height: min(70vh, 560px);
  top: calc(100% + 6px);
  right: 0;
  box-shadow: 0 12px 32px -16px #1a1a1a2e;
}

@keyframes v2-notif-drawer-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2-notif-drawer {
    animation: none;
  }
}

.v2-notif-drawer__head {
  display: flex;
  padding: var(--s-3) var(--s-4);
  border-bottom: var(--hair);
  background: var(--paper-2);
  justify-content: space-between;
  align-items:  center;
}

.v2-notif-drawer__title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.v2-notif-drawer__markall {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  cursor: pointer;
  border-radius: var(--r-1);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  background: none;
  border: 0;
  padding: 4px 8px;
}

.v2-notif-drawer__markall:hover:not(:disabled) {
  background: var(--paper-3);
  color: var(--ink);
}

.v2-notif-drawer__markall:disabled {
  opacity: .4;
  cursor: default;
}

.v2-notif-drawer__markall:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.v2-notif-drawer__empty {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  padding: var(--s-8) var(--s-4);
  text-align: center;
  color: var(--ink-3);
  flex-direction: column;
}

.v2-notif-drawer__empty p {
  font-size: var(--text-sm);
  color: var(--ink-2);
  margin: 0;
}

.v2-notif-drawer__empty-hint {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: var(--lh-body);
  max-width: 220px;
  color: var(--ink-3) !important;
}

.v2-notif-drawer__list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  margin: 0;
  padding: 0;
}

.v2-notif-drawer__list li + li .v2-notif-drawer__row {
  border-top: var(--hair-soft);
}

.v2-notif-drawer__row {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr 16px;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  background: none;
  border: 0;
  align-items:  flex-start;
  width: 100%;
}

.v2-notif-drawer__row:hover {
  background: var(--paper-2);
}

.v2-notif-drawer__row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.v2-notif-drawer__row[data-unread="true"] {
  background: var(--paper-2);
}

.v2-notif-drawer__row[data-unread="true"]:hover {
  background: var(--paper-3);
}

.v2-notif-drawer__row-icon {
  display: inline-flex;
  border-radius: var(--r-pill);
  background: var(--paper-3);
  color: var(--ink-2);
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
}

.v2-notif-drawer__row[data-tone="accent"] .v2-notif-drawer__row-icon {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.v2-notif-drawer__row[data-tone="warn"] .v2-notif-drawer__row-icon {
  background: color-mix(in srgb, var(--warn) 14%, transparent);
  color: var(--warn);
}

.v2-notif-drawer__row[data-tone="ok"] .v2-notif-drawer__row-icon {
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  color: var(--ok);
}

.v2-notif-drawer__row-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.v2-notif-drawer__row-meta {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.v2-notif-drawer__row-kind {
  color: var(--ink-2);
}

.v2-notif-drawer__row-time {
  color: var(--ink-3);
  text-transform: none;
  letter-spacing: 0;
}

.v2-notif-drawer__row-title {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  line-height: var(--lh-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.v2-notif-drawer__row[data-unread="true"] .v2-notif-drawer__row-title {
  font-weight: 600;
}

.v2-notif-drawer__row-text {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--ink-3);
  line-height: var(--lh-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.v2-notif-drawer__row-cta {
  display: inline-flex;
  color: var(--ink-3);
  justify-content: center;
  align-items:  center;
  margin-top: 2px;
}

.v2-notif-drawer__row-dot {
  position: absolute;
  top: 12px;
  right: var(--s-2);
  border-radius: var(--r-pill);
  background: var(--accent);
  width: 6px;
  height: 6px;
}

@media (max-width: 540px) {
  .v2-notif-drawer {
    position: fixed;
    top: 56px;
    right: var(--s-2);
    left: var(--s-2);
    width: auto;
    max-height: 70vh;
  }
}

/* ui/src/v2/shell/PausedTasksBanner.css */
.v2-paused {
  background: var(--paper);
  border-bottom: var(--hair);
  border-left: 3px solid var(--warn);
  font-size: var(--text-sm);
  color: var(--ink);
}

.v2-paused__head {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-6);
  cursor: pointer;
  color: inherit;
  text-align: left;
  font: inherit;
  background: none;
  border: 0;
  width: 100%;
}

.v2-paused__head:hover {
  background: var(--paper-2);
}

.v2-paused__head-icon {
  color: var(--warn);
  display: inline-flex;
  align-items:  center;
}

.v2-paused__headline {
  font-weight: 600;
}

.v2-paused__sub {
  color: var(--ink-3);
  font-size: var(--text-xs);
  flex: 1;
}

.v2-paused__list {
  list-style: none;
  padding: 0 var(--s-6) var(--s-3);
  display: flex;
  gap: var(--s-2);
  overflow-y: auto;
  flex-direction: column;
  max-height: 240px;
  margin: 0;
}

.v2-paused__item {
  padding: var(--s-2) var(--s-3);
  background: var(--paper-2);
  border: var(--hair);
  border-radius: var(--r-1);
  display: flex;
  align-items:  flex-start;
  gap: var(--s-3);
}

.v2-paused__item-body {
  flex: 1;
  min-width: 0;
}

.v2-paused__q {
  margin-bottom: 2px;
  font-weight: 500;
}

.v2-paused__meta {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  color: var(--ink-3);
  font-size: var(--text-xs);
}

.v2-paused__tag {
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: var(--r-1);
  background: var(--paper-3);
  color: var(--ink-3);
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
}

.v2-paused__intent {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.v2-paused__reply {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-1);
  font: inherit;
  font-size: var(--text-xs);
  color: var(--ink);
  background: var(--paper);
  border: var(--hair);
  border-radius: var(--r-1);
  cursor: pointer;
  flex-shrink: 0;
  padding: 4px 10px;
}

.v2-paused__reply:hover {
  background: var(--paper-3);
  border-color: var(--ink-3);
}

/* ui/src/v2/shell/AppShell.css */
.v2-shell {
  display: grid;
  grid-template-columns: 1fr var(--v2-rail-width);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "header   rail" "thread   rail" "composer rail";
  overflow: hidden;
  background: var(--paper);
  width: 100%;
  height: 100%;
}

.v2-shell__header {
  grid-area: header;
  border-bottom: var(--hair);
}

.v2-shell__thread {
  grid-area: thread;
  overflow-y: auto;
  overflow-x: hidden;
}

.v2-shell__composer {
  grid-area: composer;
  border-top: var(--hair);
}

.v2-shell__rail {
  grid-area: rail;
  border-left: var(--hair);
  background: var(--paper-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ui/src/v2/shell/roomShell.css */
.rshell {
  display: grid;
  grid-template-columns: 212px 1fr;
  grid-template-rows: 44px 1fr;
  grid-template-areas: "side top" "side main";
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
  transition: grid-template-columns .24s var(--ease);
  width: 100vw;
  height: 100vh;
  font-size: 12.5px;
}

.rshell.slim {
  grid-template-columns: 64px 1fr;
}

.rs-side {
  grid-area: side;
  background: var(--panel);
  border-right: 1px solid var(--rule);
  display: flex;
  overflow: hidden;
  flex-direction: column;
  padding: 12px 9px;
}

.rshell.slim .rs-side {
  align-items:  center;
  padding: 12px 6px;
}

.rs-side .rs-full {
  display: flex;
  overflow-y: auto;
  scrollbar-width: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.rs-side .rs-full::-webkit-scrollbar {
  display: none;
}

.rshell.slim .rs-side .rs-full, .rs-side .rs-slim {
  display: none;
}

.rshell.slim .rs-side .rs-slim {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items:  center;
}

.rs-brand {
  display: flex;
  flex-shrink: 0;
  align-items:  center;
  gap: 8px;
  padding: 2px 9px 12px;
}

.rshell.slim .rs-brand {
  padding: 2px 0 10px;
}

.rs-brand .lg {
  position: relative;
  flex-shrink: 0;
  width: 19px;
  height: 19px;
}

.rs-brand .lg .r {
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 50% 4px 50% 50%;
  inset: 0;
}

.rs-brand .w {
  letter-spacing: -.03em;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.rs-brand .w span {
  color: var(--ink3);
}

.rs-gh {
  font-family: var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink3);
  flex-shrink: 0;
  padding: 12px 9px 4px;
  font-size: 8px;
}

.rs-item {
  display: flex;
  color: var(--ink2);
  text-align: left;
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
  background: none;
  border: none;
  border-radius: 8px 2px 8px 8px;
  flex-shrink: 0;
  align-items:  center;
  gap: 9px;
  width: 100%;
  padding: 6.5px 9px;
}

.rs-item:hover {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  color: var(--ink);
}

.rs-item.on {
  background: var(--raise);
  color: var(--ink);
  box-shadow: var(--sh-sm);
  font-weight: 600;
}

.rs-item:focus-visible {
  outline: 1.5px solid var(--speak);
  outline-offset: -1px;
}

.rs-item kbd {
  font-family: var(--mono);
  color: var(--faint);
  margin-left: auto;
  font-size: 8px;
}

.rs-item .rs-badge {
  margin-left: auto;
}

.rs-item .rs-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.rs-badge {
  font-family: var(--mono);
  display: inline-flex;
  border-radius: 8px;
  justify-content: center;
  align-items:  center;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  font-size: 8px;
}

.rs-badge.amber {
  background: color-mix(in srgb, var(--hold) 18%, transparent);
  color: var(--hold-tx);
}

.rs-badge.red {
  background: color-mix(in srgb, var(--listen) 14%, transparent);
  color: var(--listen-tx);
}

.rs-clps {
  display: flex;
  color: var(--ink3);
  border-top: 1px solid var(--rule);
  font-size: 11px;
  font-family: var(--mono);
  cursor: pointer;
  background: none;
  border-bottom: none;
  border-left: none;
  border-right: none;
  justify-content: center;
  align-items:  center;
  gap: 8px;
  width: auto;
  margin: 8px -9px 0;
  padding: 10px 9px 7px;
}

.rs-clps:hover {
  color: var(--ink);
}

.rshell.slim .rs-clps {
  margin: 8px -6px 0;
}

.rs-ct {
  display: flex;
  color: var(--ink3);
  position: relative;
  cursor: pointer;
  font-family: var(--sans);
  background: none;
  border: none;
  border-radius: 9px 2px 9px 9px;
  flex-direction: column;
  align-items:  center;
  gap: 3px;
  width: 48px;
  margin-bottom: 3px;
  padding: 7px 0 5px;
}

.rs-ct:hover {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  color: var(--ink);
}

.rs-ct.on {
  background: var(--raise);
  color: var(--ink);
  box-shadow: var(--sh-sm);
}

.rs-ct .ic {
  font-family: var(--mono);
  font-size: 10px;
}

.rs-ct .lb {
  font-size: 8.5px;
  font-weight: 600;
}

.rs-ct .bd {
  position: absolute;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  top: 4px;
  right: 6px;
}

.rs-ct .bd.amber {
  background: var(--hold);
}

.rs-ct .bd.red {
  background: var(--listen);
}

.rs-peek {
  position: fixed;
  z-index: var(--z-rail);
  overflow: hidden;
  background: color-mix(in srgb, var(--raise) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: .5px solid color-mix(in srgb, var(--ink) 9%, transparent);
  animation: rs-peek-in .14s var(--ease) both;
  border-radius: 12px 3px 12px 12px;
  width: 178px;
  left: 64px;
  box-shadow: 0 16px 36px -14px #141e2d66;
}

@keyframes rs-peek-in {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.rs-peek .fh {
  font-family: var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink3);
  padding: 9px 13px 5px;
  font-size: 8px;
}

.rs-peek button {
  display: flex;
  color: var(--ink);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--sans);
  text-align: left;
  background: none;
  border: none;
  align-items:  center;
  gap: 8px;
  width: 100%;
  padding: 8px 13px;
}

.rs-peek button:hover {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.rs-peek button .rs-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.rs-top {
  grid-area: top;
  display: flex;
  border-bottom: 1px solid var(--rule);
  background: var(--panel2);
  align-items:  center;
  gap: 10px;
  padding: 0 16px;
}

.rs-top .rm {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}

.rs-top.off .rm {
  color: var(--ink3);
}

.rs-top .right {
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-left: auto;
}

.rs-abtn {
  border: 1px solid var(--rule);
  color: var(--ink2);
  background: var(--raise);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--sans);
  border-radius: 7px 2px 7px 7px;
  padding: 5px 12px;
}

.rs-abtn:hover {
  color: var(--ink);
}

.rs-abtn.on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.rs-abtn:focus-visible {
  outline: 1.5px solid var(--speak);
  outline-offset: 1px;
}

.rs-chip {
  font-family: var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  color: var(--ink3);
  display: inline-flex;
  white-space: nowrap;
  cursor: default;
  background: none;
  border-radius: 999px;
  align-items:  center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 9px;
  font-weight: 400;
}

button.rs-chip {
  cursor: pointer;
}

button.rs-chip:hover {
  color: var(--ink);
  border-color: var(--ink3);
}

.rs-chip.hold {
  color: var(--hold-tx);
  border-color: color-mix(in srgb, var(--hold) 40%, transparent);
}

.rs-chip.bad {
  color: var(--listen-tx);
  border-color: color-mix(in srgb, var(--listen) 35%, transparent);
}

.rs-chip .rs-dot {
  background: var(--faint);
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.rs-bell {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.rs-bell .bb {
  font-family: var(--mono);
  border: 1px solid var(--rule);
  color: var(--ink3);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 9px;
}

.rs-bell:hover .bb {
  color: var(--ink);
  border-color: var(--ink3);
}

.rs-bell.on .bb {
  color: var(--ink);
  border-color: var(--ink3);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.rs-bell .bn {
  position: absolute;
  background: var(--listen);
  color: #fff;
  font-family: var(--mono);
  display: flex;
  border-radius: 8px;
  justify-content: center;
  align-items:  center;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  font-size: 8px;
  top: -5px;
  right: -5px;
}

.rs-stl {
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink3);
  font-size: 9px;
}

.rshell[data-state="listening"] .rs-stl {
  color: var(--listen-tx);
}

.rshell[data-state="speaking"] .rs-stl {
  color: var(--speak-tx);
}

.rshell[data-state="asking"] .rs-stl {
  color: var(--hold-tx);
}

.rshell[data-state="thinking"] .rs-stl, .rshell[data-state="muted"] .rs-stl {
  color: var(--ink2);
}

.rs-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.rs-main > .rs-surface {
  flex: auto;
  min-height: 0;
}

.rs-surface {
  grid-area: main;
  overflow: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content:  start;
  gap: 14px;
  padding: 16px 18px;
}

.rs-surface.rs-room {
  display: block;
  background: var(--bg);
  position: relative;
  padding: 0;
}

.rs-surface.rs-room > * {
  min-height: 100%;
}

.rs-wid {
  border: 1px solid var(--rule);
  border-radius: var(--corner);
  background: var(--raise);
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
}

.rs-wid.w2 {
  grid-column: span 2;
}

.rs-ch {
  display: flex;
  border-bottom: 1px solid var(--rule2);
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink3);
  align-items:  center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 9px;
}

.rs-ch.hold {
  color: var(--hold-tx);
}

.rs-ch .lnk {
  color: var(--ink3);
  letter-spacing: .04em;
  cursor: pointer;
  font-family: var(--mono);
  text-transform: uppercase;
  background: none;
  border: none;
  margin-left: auto;
  font-size: 9px;
}

.rs-ch .lnk:hover {
  color: var(--ink);
}

.rs-row {
  display: flex;
  border-bottom: 1px solid var(--rule2);
  color: var(--ink2);
  text-align: left;
  font-size: 12.5px;
  font-family: var(--sans);
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  align-items:  center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
}

.rs-row:last-child {
  border-bottom: none;
}

.rs-row:hover {
  background: color-mix(in srgb, var(--ink) 3%, transparent);
}

.rs-row b {
  color: var(--ink);
  font-weight: 600;
}

.rs-row .tm {
  font-family: var(--mono);
  color: var(--ink3);
  flex-shrink: 0;
  margin-left: auto;
  font-size: 9.5px;
}

.rs-row .rs-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.rs-row .tx {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rs-empty {
  color: var(--ink2);
  padding: 16px 14px;
  font-size: 12px;
  line-height: 1.55;
}

.rs-empty b {
  color: var(--ink);
  font-weight: 600;
}

.rs-empty .dim {
  color: var(--ink3);
}

.rs-apr {
  border-bottom: 1px solid var(--rule2);
  padding: 11px 14px;
}

.rs-apr:last-child {
  border-bottom: none;
}

.rs-apr .t1 {
  display: flex;
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hold-tx);
  align-items:  center;
  gap: 8px;
  font-size: 8.5px;
}

.rs-apr .t1 .rs-dot {
  background: var(--hold);
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.rs-apr .t2 {
  color: var(--ink);
  margin: 5px 0 8px;
  font-size: 13px;
  font-weight: 600;
}

.rs-apr .bs {
  display: flex;
  gap: 7px;
}

.rs-apr .b1 {
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  border-radius: 7px 2px 7px 7px;
  padding: 5px 12px;
}

.rs-apr .b2 {
  border: 1px solid var(--rule);
  color: var(--ink);
  background: var(--raise);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--sans);
  border-radius: 7px 2px 7px 7px;
  padding: 5px 12px;
}

.rs-vit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--rule2);
  gap: 1px;
}

.rs-vit .v {
  background: var(--raise);
  padding: 10px 12px;
}

.rs-vit .v .k {
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  font-size: 8px;
}

.rs-vit .v .n {
  color: var(--ink);
  margin-top: 3px;
  font-size: 15px;
  font-weight: 700;
}

.rs-vit .v .n span {
  color: var(--ink3);
  font-size: 10px;
  font-weight: 500;
}

.rs-wstat {
  padding: 13px 14px 15px;
}

.rs-wstat-n {
  letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
}

.rs-wstat-n span {
  letter-spacing: 0;
  color: var(--ink3);
  font-variant-numeric: normal;
  font-size: 12px;
  font-weight: 500;
}

.rs-wstat-s {
  color: var(--ink2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
}

.rs-wstat-s b {
  color: var(--ink);
  font-weight: 600;
}

.rs-notice {
  border: 1px solid var(--rule);
  border-radius: var(--corner);
  background: var(--raise);
  box-shadow: var(--sh-md);
  text-align: center;
  grid-column: span 2;
  max-width: 340px;
  margin: 28px auto;
  padding: 22px;
}

.rs-notice .gd2 {
  border: 1.5px dashed var(--faint);
  background: var(--panel);
  border-radius: 50% 50% 50% 7px;
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  transform: rotate(45deg);
}

.rs-notice .t {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.rs-notice .s {
  color: var(--ink2);
  margin: 6px 0 12px;
  font-size: 12px;
  line-height: 1.5;
}

.rs-notice .mono2 {
  font-family: var(--mono);
  color: var(--ink3);
  background: var(--panel);
  display: inline-block;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 10.5px;
}

.rs-surface.dim .rs-wid {
  opacity: .45;
  filter: saturate(.6);
  pointer-events: none;
}

.rs-surface.editing .rs-wid {
  border-style: dashed;
  border-color: var(--ink3);
  box-shadow: none;
  cursor: grab;
}

.rs-surface.editing .rs-wid:active {
  cursor: grabbing;
}

.rs-surface.editing .rs-ch .lnk {
  display: none;
}

.rs-wid.dragging {
  opacity: .4;
}

.rs-wid.dragover {
  border-color: var(--speak);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--speak) 30%, transparent);
}

.rs-wtools {
  position: absolute;
  display: flex;
  z-index: 3;
  gap: 4px;
  top: 6px;
  right: 6px;
}

.rs-wtool {
  font-family: var(--mono);
  border: 1px solid var(--rule);
  background: var(--raise);
  color: var(--ink3);
  cursor: pointer;
  border-radius: 6px 1px 6px 6px;
  padding: 3px 6px;
  font-size: 10px;
  line-height: 1;
}

.rs-wtool:hover {
  color: var(--ink);
}

.rs-wtool.rm:hover {
  color: var(--listen-tx);
  border-color: color-mix(in srgb, var(--listen) 35%, transparent);
  background: color-mix(in srgb, var(--listen) 8%, transparent);
}

.rs-wtool[disabled] {
  opacity: .4;
  cursor: not-allowed;
}

.rs-addtile {
  border: 1.5px dashed var(--rule);
  border-radius: var(--corner);
  display: flex;
  color: var(--ink3);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--sans);
  background: none;
  justify-content: center;
  align-items:  center;
  min-height: 88px;
}

.rs-addtile:hover {
  color: var(--ink);
  border-color: var(--ink3);
}

.rs-catalog {
  grid-column: span 2;
  border: 1px solid var(--rule);
  border-radius: var(--corner);
  background: var(--panel2);
  box-shadow: var(--sh-sm);
  padding: 14px 16px;
}

.rs-catalog-h {
  display: flex;
  font-family: var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink3);
  align-items:  center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 9px;
}

.rs-catalog-h .x {
  cursor: pointer;
  color: var(--ink3);
  font-family: var(--mono);
  background: none;
  border: none;
  margin-left: auto;
  font-size: 11px;
}

.rs-catalog-h .x:hover {
  color: var(--ink);
}

.rs-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--rule);
  border: 1px solid var(--rule);
  overflow: hidden;
  border-radius: 11px;
  gap: 1px;
}

.rs-cwidget {
  background: var(--bg);
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  border: none;
  padding: 11px 13px;
}

.rs-cwidget:hover {
  background: var(--raise);
}

.rs-cwidget .ct {
  color: var(--ink);
  display: flex;
  align-items:  center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
}

.rs-cwidget .ct small {
  font-family: var(--mono);
  color: var(--ink3);
  text-transform: uppercase;
  margin-left: auto;
  font-size: 8px;
}

.rs-cwidget .cs {
  color: var(--ink2);
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.4;
}

.rs-cwidget .rs-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.rs-catalog-foot {
  color: var(--ink3);
  display: flex;
  align-items:  center;
  margin-top: 10px;
  font-size: 11px;
}

.rs-catalog-foot .none {
  color: var(--ink3);
}

.rs-catalog-foot button {
  border: 1px solid var(--rule);
  background: var(--raise);
  color: var(--ink2);
  cursor: pointer;
  font-family: var(--sans);
  border-radius: 6px 1px 6px 6px;
  margin-left: auto;
  padding: 4px 10px;
  font-size: 11px;
}

.rs-catalog-foot button:hover {
  color: var(--ink);
}

@media (max-width: 860px) {
  .rs-catalog {
    grid-column: span 1;
  }

  .rs-catalog-grid {
    grid-template-columns: 1fr;
  }
}

.rs-peb {
  position: fixed;
  z-index: var(--z-rail);
  display: flex;
  cursor: pointer;
  font: inherit;
  background: none;
  border: none;
  flex-direction: column;
  align-items:  center;
  gap: 5px;
  bottom: 16px;
  right: 18px;
}

.rs-peb:focus-visible {
  outline: 1.5px solid var(--speak);
  outline-offset: 3px;
  border-radius: 10px;
}

.rs-peb .rs-stl {
  color: var(--ink3);
}

.rshell[data-state="listening"] .rs-peb .rs-stl {
  color: var(--listen-tx);
}

.rshell[data-state="speaking"] .rs-peb .rs-stl {
  color: var(--speak-tx);
}

.rshell[data-state="asking"] .rs-peb .rs-stl {
  color: var(--hold-tx);
}

.gdrop {
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(2px) brightness(1.04) saturate(1.15);
  backdrop-filter: blur(2px) brightness(1.04) saturate(1.15);
  background: #ffffff1a;
  border: .5px solid #ffffff8c;
  border-radius: 50% 50% 50% 8px;
  width: 42px;
  height: 42px;
  transition: border .3s, background .3s;
  transform: rotate(45deg);
  box-shadow: inset 1.5px 1.5px 1.5px #ffffffeb, inset -1px -1px 2px #fff6, 0 4px 14px -3px #141e2d4d;
}

.rs-peb:hover .gdrop {
  box-shadow: inset 1.5px 1.5px 1.5px #ffffffeb, inset -1px -1px 2px #fff6, 0 6px 18px -4px #141e2d66;
}

.gdrop .in {
  position: absolute;
  border-radius: inherit;
  opacity: 0;
  inset: 0;
}

.gdrop .ring {
  position: absolute;
  border-radius: inherit;
  opacity: 0;
  background: conic-gradient(from 0deg, transparent 0 200deg, #fffffffa 300deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, #0000 38%, #000 45% 56%, #0000 63%);
  mask: radial-gradient(circle, #0000 38%, #000 45% 56%, #0000 63%);
  inset: -2px;
}

@keyframes rs-br {
  0%, 100% {
    opacity: .55;
  }

  50% {
    opacity: 1;
  }
}

@keyframes rs-brS {
  0%, 100% {
    opacity: .7;
    transform: scale(.94);
  }

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

@keyframes rs-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rs-askGlow {
  0%, 100% {
    box-shadow: inset 1.5px 1.5px 1.5px #ffffffeb, 0 0 #eaa40e73, 0 4px 14px -3px #141e2d4d;
  }

  50% {
    box-shadow: inset 1.5px 1.5px 1.5px #ffffffeb, 0 0 0 7px #eaa40e00, 0 4px 14px -3px #141e2d4d;
  }
}

.rshell[data-state="listening"] .gdrop.live .in {
  opacity: 1;
  animation: rs-br 1.4s infinite;
  background: radial-gradient(circle, #e63b2eeb, #e63b2e47 55%, #0000 72%);
}

.rshell[data-state="speaking"] .gdrop.live .in {
  opacity: 1;
  animation: rs-brS 1.6s infinite;
  background: radial-gradient(circle, #2d78ff, #2d78ff80 48%, #0000 72%);
}

.rshell[data-state="thinking"] .gdrop.live .ring {
  opacity: 1;
  animation: rs-spin 1.4s linear infinite;
}

.rshell[data-state="asking"] .gdrop.live .in {
  opacity: 1;
  animation: rs-br 2s infinite;
  background: radial-gradient(circle, #eaa40ed9, #eaa40e40 55%, #0000 72%);
}

.rshell[data-state="asking"] .gdrop.live {
  animation: rs-askGlow 2s var(--ease) infinite;
}

.rshell[data-state="muted"] .gdrop.live {
  background: #e1e6ee61;
  border: 1px dashed #8c96a2d9;
}

.rshell[data-state="muted"] .gdrop.live .in {
  opacity: 1;
  background: linear-gradient(135deg, #0000 46.5%, #78808abf 46.5% 53.5%, #0000 53.5%);
}

.rs-talk {
  position: fixed;
  z-index: var(--z-palette);
  display: flex;
  overflow: hidden;
  background: color-mix(in srgb, var(--raise) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 1px #ffffff80, inset 0 0 0 .5px color-mix(in srgb, var(--ink) 10%, transparent), 0 22px 48px -18px #141e2d73;
  border: .5px solid color-mix(in srgb, var(--ink) 8%, transparent);
  transform-origin: 100% 100%;
  opacity: 0;
  transition: opacity .42s var(--ease), transform .42s var(--ease);
  border-radius: 14px 4px 14px 14px;
  flex-direction: column;
  width: 372px;
  max-width: calc(100vw - 32px);
  top: 60px;
  bottom: 70px;
  right: 16px;
  transform: translateY(12px)scale(.62);
}

.rs-talk.in {
  opacity: 1;
  transform: none;
}

.rs-talk .th {
  display: flex;
  border-bottom: .5px solid color-mix(in srgb, var(--ink) 9%, transparent);
  flex-shrink: 0;
  align-items:  center;
  gap: 10px;
  padding: 12px 15px;
}

.rs-talk-mic {
  cursor: pointer;
  display: flex;
  background: none;
  border: none;
  border-radius: 10px;
  flex-shrink: 0;
  padding: 2px;
}

.rs-talk-mic:hover {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.rs-talk-mic:focus-visible {
  outline: 1.5px solid var(--speak);
  outline-offset: 1px;
}

.rs-talk-mic .gdrop {
  border-radius: 50% 50% 50% 5px;
  width: 26px;
  height: 26px;
}

.rs-talk-title {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.rs-talk .th .tt {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
}

.rs-talk-sub {
  font-family: var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 8.5px;
}

.rs-talk .th .esc {
  font-family: var(--mono);
  color: var(--ink3);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  margin-left: auto;
  padding: 3px 6px;
  font-size: 9px;
}

.rs-talk .th .esc:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.rs-talk .rs-talk-thread {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.rs-talk .rs-talk-foot {
  border-top: .5px solid color-mix(in srgb, var(--ink) 9%, transparent);
  flex-shrink: 0;
}

.rs-talk .hint {
  color: var(--ink3);
  display: flex;
  align-items:  center;
  gap: 8px;
  padding: 8px 15px 12px;
  font-size: 11px;
}

.rs-talk .hint .rs-stl {
  flex-shrink: 0;
}

.rs-talk .vu {
  display: flex;
  align-items:  flex-end;
  gap: 2px;
  height: 12px;
  margin-left: auto;
}

.rs-talk .vu i {
  background: var(--ink3);
  border-radius: 1px;
  width: 2.5px;
  transition: height .1s linear;
}

.rshell[data-state="listening"] .rs-talk .vu i {
  background: var(--listen);
}

@media (max-width: 860px) {
  .rshell, .rshell.slim {
    grid-template-columns: 64px 1fr;
  }

  .rs-surface {
    grid-template-columns: 1fr;
  }

  .rs-wid.w2, .rs-notice {
    grid-column: span 1;
  }

  .rs-talk {
    width: calc(100vw - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rshell, .rs-talk, .rs-peek, .rs-talk {
    transition: none;
  }

  .gdrop.live .in, .gdrop.live .ring {
    opacity: 1;
    animation: none !important;
  }

  .rs-peek {
    animation: none;
  }
}

/* ui/src/v2/shell/BootSplash.css */
.jboot {
  position: fixed;
  z-index: 300;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  opacity: 1;
  transition: opacity .24s var(--ease-out, cubic-bezier(.2, .7, .2, 1));
  -webkit-font-smoothing: antialiased;
  justify-content: center;
  align-items:  center;
  font-size: clamp(15px, 2.1vmin, 25px);
  inset: 0;
}

.jboot.out {
  opacity: 0;
  pointer-events: none;
}

.jboot .lstage {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.jboot .dropwrap {
  position: relative;
  display: grid;
  place-items:  center;
}

.jboot .lword {
  font-family: var(--sans);
  letter-spacing: -.045em;
  color: var(--ink);
  margin-top: 1.1em;
  font-size: 1.3em;
  font-weight: 700;
}

.jboot .lword .u {
  color: var(--ink3);
}

.jboot .lstat {
  font-family: var(--mono);
  letter-spacing: .04em;
  color: var(--ink3);
  margin-top: .5em;
  transition: opacity .18s;
  font-size: .62em;
}

.jboot .lbar {
  position: relative;
  background: var(--rule);
  overflow: hidden;
  border-radius: 2px;
  width: 8em;
  height: 2px;
  margin-top: .95em;
}

.jboot .lbar i {
  position: absolute;
  background: var(--ink);
  transition: width .35s var(--ease-out, ease);
  border-radius: 2px;
  top: 0;
  bottom: 0;
  left: 0;
}

.jboot .lbloom {
  position: absolute;
  background: radial-gradient(circle, color-mix(in srgb, var(--listen) 26%, transparent), transparent 66%);
  filter: blur(8px);
  pointer-events: none;
  border-radius: 50%;
}

.jboot .ldrop {
  position: relative;
  -webkit-backdrop-filter: blur(2px) brightness(1.05) saturate(1.15);
  backdrop-filter: blur(2px) brightness(1.05) saturate(1.15);
  background: #ffffff14;
  border: .5px solid #ffffff80;
  border-radius: 50% 50% 50% 12px;
  transform: rotate(45deg);
  box-shadow: inset 1.5px 1.5px 1.5px #ffffffe6, inset -1px -1px 2px #fff6, 0 6px 18px -4px #141e2d4d;
}

:root[data-theme="dark"] .jboot .ldrop {
  border-color: #fff6;
  box-shadow: inset 1.5px 1.5px 1.5px #ffffff8c, 0 8px 22px -4px #0009;
}

.jboot .ldrop .in {
  position: absolute;
  border-radius: inherit;
  opacity: .85;
  inset: 0;
}

.jboot .ldrop .ring {
  position: absolute;
  border-radius: inherit;
  opacity: 0;
  background: conic-gradient(from 0deg, transparent 0 200deg, #fffffffa 300deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, #0000 38%, #000 45% 56%, #0000 63%);
  mask: radial-gradient(circle, #0000 38%, #000 45% 56%, #0000 63%);
  inset: -2px;
}

@keyframes jb-br {
  0%, 100% {
    opacity: .6;
  }

  50% {
    opacity: 1;
  }
}

@keyframes jb-brS {
  0%, 100% {
    opacity: .62;
    transform: scale(.96);
  }

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

@keyframes jb-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes jb-formdrop {
  0% {
    opacity: 0;
    transform: rotate(45deg)scale(.2);
  }

  55% {
    opacity: 1;
    transform: rotate(45deg)scale(1.12);
  }

  75% {
    transform: rotate(45deg)scale(.96);
  }

  100% {
    transform: rotate(45deg)scale(1);
  }
}

@keyframes jb-bloomin {
  0% {
    opacity: 0;
    transform: scale(.4);
  }

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

@keyframes jb-sonar {
  0% {
    transform: scale(.78);
    opacity: .55;
  }

  80% {
    opacity: 0;
  }

  100% {
    transform: scale(2.7);
    opacity: 0;
  }
}

@keyframes jb-blcycle {
  0% {
    opacity: 0;
    transform: translateY(.35em);
  }

  7% {
    opacity: 1;
    transform: none;
  }

  88% {
    opacity: 1;
  }

  96% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes jb-pmark {
  0% {
    opacity: .32;
    color: var(--faint);
    border-color: var(--rule);
  }

  5% {
    opacity: 1;
    color: var(--c);
    border-color: var(--c);
  }

  20% {
    opacity: 1;
    color: var(--c);
    border-color: var(--c);
  }

  30% {
    opacity: .5;
    color: var(--faint);
    border-color: var(--rule);
  }

  100% {
    opacity: .32;
  }
}

@keyframes jb-twinkle {
  0% {
    opacity: 0;
    transform: scale(.4);
  }

  30% {
    opacity: .75;
    transform: scale(1);
  }

  60% {
    opacity: .2;
  }

  100% {
    opacity: 0;
    transform: scale(.4);
  }
}

.jboot .st-summon .lbloom {
  animation: jb-bloomin .9s var(--ease-out, ease) both .2s, jb-br 2.5s var(--ease-out, ease) infinite .95s;
  width: 9.5em;
  height: 9.5em;
}

.jboot .st-summon .ldrop {
  animation: jb-formdrop 1.1s var(--ease-out, ease) both;
  width: 3.7em;
  height: 3.7em;
}

.jboot .st-summon .ldrop .in {
  animation: jb-brS 2.5s var(--ease-out, ease) infinite .95s;
  background: radial-gradient(circle at 50% 40%, #ff6e60, #e63b2e 58%, #b81e16);
}

.jboot .st-summon .lword {
  animation: jb-rise .6s var(--ease-out, ease) both .55s;
}

.jboot .st-summon .lstat, .jboot .st-summon .lbar {
  animation: jb-rise .6s var(--ease-out, ease) both .72s;
}

@keyframes jb-rise {
  0% {
    opacity: 0;
    transform: translateY(.6em);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

.jboot .st-pulse .dropwrap {
  width: 6em;
  height: 6em;
}

.jboot .st-pulse .ldrop {
  width: 3.4em;
  height: 3.4em;
}

.jboot .st-pulse .ldrop .in {
  animation: jb-brS 2.6s var(--ease-out, ease) infinite;
  background: radial-gradient(circle at 50% 40%, #ff6e60, #e63b2e 58%, #b81e16);
}

.jboot .st-pulse .sonar {
  position: absolute;
  border: 1px solid var(--listen);
  opacity: 0;
  animation: jb-sonar 2.7s var(--ease-out, ease) infinite;
  border-radius: 50%;
  width: 3.4em;
  height: 3.4em;
}

.jboot .st-pulse .sonar.d2 {
  animation-delay: .9s;
}

.jboot .st-pulse .sonar.d3 {
  animation-delay: 1.8s;
}

.jboot .st-pulse .lword {
  opacity: .9;
  font-size: 1.05em;
}

.jboot .st-pulse .lstat {
  margin-top: .9em;
}

.jboot .st-boot {
  justify-content: center;
  align-items:  flex-start;
  padding-left: 14%;
}

.jboot .st-boot .blhead {
  display: flex;
  align-items:  center;
  gap: .7em;
  margin-bottom: 1em;
}

.jboot .st-boot .ldrop {
  width: 1.9em;
  height: 1.9em;
}

.jboot .st-boot .ldrop .in {
  animation: jb-brS 2.5s var(--ease-out, ease) infinite;
  background: radial-gradient(circle at 50% 40%, #ff6e60, #e63b2e 58%, #b81e16);
}

.jboot .st-boot .blhead .lword {
  margin: 0;
  font-size: 1.05em;
}

.jboot .st-boot .bootlog {
  font-family: var(--mono);
  color: var(--ink3);
  font-size: .66em;
  line-height: 2;
}

.jboot .st-boot .bl {
  opacity: 0;
  animation: jb-blcycle 5.5s var(--ease-out, ease) both;
  animation-delay: calc(var(--i) * .55s);
}

.jboot .st-boot .bl.ok {
  color: var(--ok);
  font-weight: 600;
}

.jboot .st-boot .bl .mut {
  color: var(--faint);
}

.jboot .st-pillars .dropwrap {
  width: 9.4em;
  height: 9.4em;
}

.jboot .st-pillars .lbloom {
  background: radial-gradient(circle, color-mix(in srgb, var(--ink) 16%, transparent), transparent 66%);
  animation: jb-br 2.6s var(--ease-out, ease) infinite;
  width: 5em;
  height: 5em;
}

.jboot .st-pillars .ldrop {
  animation: jb-formdrop 1s var(--ease-out, ease) both;
  width: 3em;
  height: 3em;
}

.jboot .st-pillars .ldrop .in {
  animation: jb-brS 2.6s var(--ease-out, ease) infinite;
  background: radial-gradient(circle at 50% 40%, #fff, #e6eaef 70%);
}

.jboot .st-pillars .ldrop .ring {
  animation: jb-spin 3.6s linear infinite;
  opacity: .9;
}

.jboot .st-pillars .pmark {
  position: absolute;
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--rule);
  opacity: .4;
  animation: jb-pmark 4.6s var(--ease-out, ease) infinite;
  border-radius: 6px 1px 6px 6px;
  padding: .3em .55em;
  font-size: .52em;
}

.jboot .st-pillars .m-mem {
  --c: var(--listen);
  animation-delay: 0s;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.jboot .st-pillars .m-awr {
  --c: var(--speak);
  animation-delay: .7s;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.jboot .st-pillars .m-act {
  --c: var(--hold);
  animation-delay: 1.4s;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.jboot .st-pillars .m-orc {
  --c: var(--ok);
  animation-delay: 2.1s;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.jboot .st-stars .dropwrap {
  width: 12em;
  height: 8.5em;
}

.jboot .st-stars .lbloom {
  animation: jb-bloomin .9s var(--ease-out, ease) both .3s, jb-br 2.6s var(--ease-out, ease) infinite 1s;
  width: 5.5em;
  height: 5.5em;
}

.jboot .st-stars .ldrop {
  animation: jb-formdrop 1.1s var(--ease-out, ease) both .25s;
  width: 3em;
  height: 3em;
}

.jboot .st-stars .ldrop .in {
  animation: jb-brS 2.6s var(--ease-out, ease) infinite 1.1s;
  background: radial-gradient(circle at 50% 40%, #ff6e60, #e63b2e 58%, #b81e16);
}

.jboot .st-stars .star {
  position: absolute;
  background: var(--ink3);
  opacity: 0;
  animation: jb-twinkle 3.6s var(--ease-out, ease) infinite;
  border-radius: 50%;
  width: .2em;
  height: .2em;
}

@media (prefers-reduced-motion: reduce) {
  .jboot .lstage *, .jboot .ldrop .in {
    animation: none !important;
  }

  .jboot .ldrop .in {
    opacity: 1 !important;
  }

  .jboot .st-pillars .ldrop .ring {
    opacity: .9 !important;
  }

  .jboot .st-boot .bl {
    opacity: 1 !important;
  }
}

/* ui/src/v2/pages/primitives.css */
.v2-primitives {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  height: 100%;
}

.v2-primitives__topbar {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: var(--s-6);
  padding: var(--s-5) var(--s-8);
  border-bottom: var(--hair);
  background: var(--paper);
}

.v2-primitives__brand {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
}

.v2-primitives__brand-dot {
  border-radius: var(--r-pill);
  background: var(--accent);
  display: inline-block;
  width: 10px;
  height: 10px;
}

.v2-primitives__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: -.01em;
  font-weight: 500;
}

.v2-primitives__content {
  overflow-y: auto;
  padding: var(--s-10) var(--s-8);
}

.v2-primitives__grid {
  display: flex;
  gap: var(--s-12);
  flex-direction: column;
  max-width: 960px;
  margin: 0 auto;
}

.v2-section {
  display: flex;
  gap: var(--s-5);
  flex-direction: column;
}

.v2-section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
}

.v2-section__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: -.01em;
  font-weight: 500;
}

.v2-section__note {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: var(--lh-body);
  max-width: 52ch;
}

.v2-demo {
  padding: var(--s-5) var(--s-6);
  background: var(--paper-2);
  border: var(--hair);
  border-radius: var(--r-2);
  display: flex;
  align-items:  center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.v2-demo--col {
  align-items:  flex-start;
  gap: var(--s-3);
  flex-direction: column;
}

.v2-demo__row {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.v2-demo__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  min-width: 60px;
}

/* ui/src/v2/onboarding/OnboardingWizard.css */
.obw {
  position: fixed;
  z-index: 200;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  display: flex;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  flex-direction: column;
  inset: 0;
}

.obw-bar {
  display: flex;
  border-bottom: 1px solid var(--rule);
  background: var(--panel2);
  flex-shrink: 0;
  align-items:  center;
  gap: 6px;
  height: 38px;
  padding: 0 15px;
}

.obw-bar i {
  background: var(--rule);
  border-radius: 50%;
  width: 8px;
  height: 8px;
}

.obw-bar .obw-wt {
  font-family: var(--mono);
  color: var(--ink3);
  letter-spacing: .02em;
  margin-left: 8px;
  font-size: 10px;
}

.obw-steps {
  display: flex;
  align-items:  center;
  gap: 6px;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 16px 28px 0;
}

.obw-steps i {
  background: var(--rule);
  transition: background .3s var(--ease-out, ease);
  border-radius: 2px;
  flex: 1;
  height: 3px;
}

.obw-steps i.done {
  background: var(--ink2);
}

.obw-steps i.cur {
  background: var(--listen);
}

.obw-steplab {
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 8px 28px 0;
  font-size: 9.5px;
}

.obw-scroll {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.obw-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 28px 30px;
}

.obw-body.mid {
  text-align: center;
  justify-content: center;
  align-items:  center;
}

.obw-wrap {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.obw-wrap.wide {
  max-width: 560px;
}

.obw h2 {
  letter-spacing: -.028em;
  color: var(--ink);
  text-wrap: balance;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.obw-sub {
  color: var(--ink3);
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
}

.obw-sub b {
  color: var(--ink2);
  font-weight: 600;
}

.obw-word {
  letter-spacing: -.045em;
  color: var(--ink);
  font-weight: 700;
}

.obw-word .u {
  color: var(--ink3);
}

.obw-signed {
  font-family: var(--mono);
  color: var(--faint);
  margin-top: 18px;
  font-size: 9.5px;
}

.obw-recap {
  display: flex;
  font-family: var(--mono);
  color: var(--ink3);
  flex-direction: column;
  align-items:  center;
  gap: 6px;
  margin-top: 15px;
  font-size: 10px;
}

.obw-recap .ok {
  color: var(--ok);
}

.obw-drop {
  position: relative;
  background: #ffffff14;
  border: .5px solid #ffffff80;
  border-radius: 50% 50% 50% 12px;
  transform: rotate(45deg);
  box-shadow: inset 1.5px 1.5px 1.5px #ffffffe6, 0 6px 18px -4px #141e2d4d;
}

:root[data-theme="dark"] .obw-drop {
  border-color: #fff6;
  box-shadow: inset 1.5px 1.5px 1.5px #ffffff8c, 0 8px 22px -4px #0009;
}

.obw-drop .in {
  position: absolute;
  border-radius: inherit;
  animation: obw-brS 2.6s var(--ease-out, ease) infinite;
  background: radial-gradient(circle at 50% 40%, #ff6e60, #e63b2e 58%, #b81e16);
  inset: 0;
}

.obw-drop .ring {
  position: absolute;
  border-radius: inherit;
  opacity: 0;
  background: conic-gradient(from 0deg, transparent 0 200deg, #fffffffa 300deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, #0000 38%, #000 46% 56%, #0000 64%);
  mask: radial-gradient(circle, #0000 38%, #000 46% 56%, #0000 64%);
  inset: -2px;
}

.obw-drop.s-think .in {
  background: radial-gradient(circle at 50% 40%, #fff, #e6eaef 70%);
}

.obw-drop.s-think .ring {
  opacity: .95;
  animation: obw-spin 3.4s linear infinite;
}

.obw-drop.s-speak .in {
  animation: obw-brS 1.1s var(--ease-out, ease) infinite;
  background: radial-gradient(circle at 50% 40%, #5e97ff, #2d78ff 60%, #1b5bd0);
}

.obw-drop.s-done .in {
  background: radial-gradient(circle at 50% 40%, #56c98a, #2fa45e 60%, #1f7e45);
}

@keyframes obw-brS {
  0%, 100% {
    opacity: .62;
    transform: scale(.96);
  }

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

@keyframes obw-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes obw-br {
  0%, 100% {
    opacity: .55;
  }

  50% {
    opacity: 1;
  }
}

@keyframes obw-mic {
  0%, 100% {
    height: 18%;
  }

  50% {
    height: 100%;
  }
}

.obw-bloom {
  position: absolute;
  filter: blur(10px);
  pointer-events: none;
  background: radial-gradient(circle, #e63b2e3d, #0000 66%);
  border-radius: 50%;
}

.obw-bloom.ok {
  background: radial-gradient(circle, #2fa45e42, #0000 66%);
}

.obw-btn {
  font-family: var(--sans);
  display: inline-flex;
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: 9px 2px 9px 9px;
  justify-content: center;
  align-items:  center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  transition: filter .15s, border-color .15s, background .15s;
  font-size: 13.5px;
  font-weight: 600;
}

.obw-btn:disabled {
  opacity: .45;
  cursor: default;
}

.obw-btn-pri {
  background: var(--ink);
  color: var(--bg);
}

.obw-btn-pri:not(:disabled):hover {
  filter: brightness(1.08);
}

.obw-btn-ghost {
  background: var(--raise);
  border-color: var(--rule);
  color: var(--ink);
}

.obw-btn-ghost:not(:disabled):hover {
  border-color: var(--ink3);
}

.obw-btn.sm {
  border-radius: 8px 2px 8px 8px;
  height: 32px;
  padding: 0 13px;
  font-size: 12px;
}

.obw-btnrow {
  display: flex;
  align-items:  center;
  gap: 10px;
  margin-top: 20px;
}

.obw-btnrow .grow {
  flex: 1;
}

.obw-skip {
  color: var(--ink3);
  text-decoration: none;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--sans);
  background: none;
  border: none;
  border-bottom: 1px solid #0000;
  padding: 0;
}

.obw-skip:hover {
  color: var(--ink2);
  border-color: var(--rule);
}

.obw-field {
  text-align: left;
  margin-bottom: 11px;
}

.obw-field label {
  display: block;
  color: var(--ink3);
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 500;
}

.obw-inp {
  background: var(--panel2);
  border: 1px solid var(--rule);
  font-family: var(--sans);
  color: var(--ink);
  border-radius: 8px 2px 8px 8px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  transition: border-color .15s, box-shadow .15s;
  font-size: 13.5px;
}

select.obw-inp {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.obw-inp::placeholder {
  color: var(--faint);
}

.obw-inp:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px #78829129;
}

.obw-hint {
  color: var(--faint);
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.5;
}

.obw-choices {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 6px;
}

.obw-choice {
  display: flex;
  border: 1px solid var(--rule);
  background: var(--raise);
  cursor: pointer;
  text-align: left;
  border-radius: 11px 2px 11px 11px;
  align-items:  flex-start;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s;
}

.obw-choice:hover {
  border-color: var(--ink3);
}

.obw-choice.on {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.obw-choice .gi {
  background: var(--panel);
  display: grid;
  color: var(--ink2);
  border-radius: 9px 2px 9px 9px;
  flex-shrink: 0;
  place-items:  center;
  width: 34px;
  height: 34px;
}

.obw-choice.on .gi {
  background: var(--ink);
  color: var(--bg);
}

.obw-choice .ct {
  flex: 1;
}

.obw-choice .cn {
  color: var(--ink);
  display: flex;
  align-items:  center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.obw-choice .cb {
  color: var(--ink3);
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.45;
}

.obw-choice .rad {
  border: 1.5px solid var(--rule);
  position: relative;
  border-radius: 50%;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.obw-choice.on .rad {
  border-color: var(--ink);
}

.obw-choice.on .rad:after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 50%;
  inset: 3px;
}

.obw-subctl {
  display: flex;
  align-items:  center;
  gap: 10px;
  margin: 9px 0 2px;
  padding-left: 46px;
}

.obw-pill {
  display: inline-flex;
  font-family: var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink3);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 5px;
  align-items:  center;
  gap: 5px;
  padding: 2px 6px;
  font-size: 8.5px;
}

.obw-provgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.obw-prov {
  display: flex;
  border: 1px solid var(--rule);
  background: var(--raise);
  cursor: pointer;
  text-align: left;
  border-radius: 9px 2px 9px 9px;
  align-items:  center;
  gap: 10px;
  padding: 10px 11px;
  transition: border-color .15s, box-shadow .15s;
}

.obw-prov:hover {
  border-color: var(--ink3);
}

.obw-prov.on {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.obw-prov .pd {
  background: var(--panel);
  display: grid;
  font-family: var(--mono);
  color: var(--ink2);
  border-radius: 7px 1px 7px 7px;
  flex-shrink: 0;
  place-items:  center;
  width: 26px;
  height: 26px;
  font-size: 11px;
  font-weight: 600;
}

.obw-prov.on .pd {
  background: var(--ink);
  color: var(--bg);
}

.obw-prov.reco {
  border-color: color-mix(in srgb, var(--listen) 50%, transparent);
}

.obw-prov.soon {
  cursor: default;
  opacity: .6;
  background: var(--panel2);
}

.obw-prov.soon:hover {
  border-color: var(--rule);
}

.obw-prov.soon .pn {
  color: var(--ink2);
}

.obw-soon {
  font-family: var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--speak-tx);
  background: color-mix(in srgb, var(--speak) 13%, transparent);
  vertical-align: middle;
  border-radius: 999px;
  margin-left: 7px;
  padding: 2px 6px;
  font-size: 8px;
}

.obw-prov .pn {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.1;
}

.obw-prov .pk {
  font-family: var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 2px;
  font-size: 8.5px;
}

.obw-provdetail {
  border-top: 1px solid var(--rule);
  margin-top: 12px;
  padding-top: 14px;
}

.obw-testrow {
  display: flex;
  align-items:  center;
  gap: 10px;
  margin-top: 4px;
}

.obw-testres {
  font-family: var(--mono);
  display: flex;
  align-items:  center;
  gap: 6px;
  font-size: 11px;
}

.obw-testres.ok {
  color: var(--ok);
}

.obw-testres.err {
  color: var(--listen);
}

.obw-testres .dot {
  background: currentColor;
  border-radius: 50% 50% 50% 1px;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
}

.obw-advlink {
  display: inline-block;
  color: var(--speak);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 500;
  font-family: var(--sans);
  background: none;
  border: none;
  margin-top: 12px;
  padding: 0;
}

.obw-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.obw-prow {
  display: flex;
  border: 1px solid var(--rule);
  background: var(--raise);
  border-radius: 11px 2px 11px 11px;
  align-items:  center;
  gap: 13px;
  padding: 13px 14px;
}

.obw-prow .pg {
  background: var(--panel);
  display: grid;
  color: var(--ink2);
  border-radius: 9px 2px 9px 9px;
  flex-shrink: 0;
  place-items:  center;
  width: 36px;
  height: 36px;
}

.obw-prow .pt {
  flex: 1;
  min-width: 0;
}

.obw-prow .pt .pn {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.obw-prow .pt .pn .req {
  font-family: var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--listen);
  margin-left: 7px;
  font-size: 8px;
}

.obw-prow .pt .pb {
  color: var(--ink3);
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.4;
}

.obw-grant {
  border: 1px solid var(--rule);
  background: var(--raise);
  color: var(--ink);
  font-family: var(--sans);
  cursor: pointer;
  border-radius: 8px 2px 8px 8px;
  flex-shrink: 0;
  height: 30px;
  padding: 0 13px;
  transition: border-color .15s;
  font-size: 12px;
  font-weight: 600;
}

.obw-grant:hover {
  border-color: var(--ink3);
}

.obw-grant:disabled {
  opacity: .5;
  cursor: default;
}

.obw-granted {
  display: inline-flex;
  color: var(--ok);
  flex-shrink: 0;
  align-items:  center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.obw-granted svg {
  width: 15px;
  height: 15px;
}

.obw-micbars {
  display: flex;
  align-items:  flex-end;
  gap: 4px;
  height: 34px;
  margin: 2px 0;
}

.obw-micbars b {
  background: var(--ink2);
  animation: obw-mic 1.1s var(--ease-out, ease) infinite;
  border-radius: 2px;
  width: 5px;
}

.obw-micbars.live b {
  animation: none;
  opacity: .35;
  height: 22%;
  transition: height 90ms linear, opacity 90ms linear, background 90ms linear;
}

.obw-micbars.live b.on {
  opacity: 1;
  background: var(--ok);
  height: 92%;
}

.obw-miccheck {
  display: flex;
  border: 1px solid var(--rule);
  border-radius: 11px 2px 11px 11px;
  align-items:  center;
  gap: 13px;
  margin-top: 13px;
  padding: 11px 13px;
}

.obw-wave {
  display: inline-flex;
  align-items:  center;
  gap: 3px;
  height: 22px;
}

.obw-wave b {
  background: var(--speak);
  animation: obw-mic 1s var(--ease-out, ease) infinite;
  border-radius: 2px;
  width: 3px;
}

.obw-iv {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0;
}

.obw-ivhead {
  display: flex;
  border-bottom: 1px solid var(--rule);
  justify-content: space-between;
  align-items:  center;
  padding: 14px 22px;
}

.obw-ivhead .l {
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  font-size: 10px;
}

.obw-ivhead .r {
  display: flex;
  align-items:  center;
  gap: 14px;
}

.obw-ivhead .facts {
  font-family: var(--mono);
  color: var(--ink2);
  font-size: 10px;
}

.obw-ivhead .facts b {
  color: var(--ink);
}

.obw-ivstage {
  display: flex;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items:  center;
  gap: 14px;
  padding: 18px;
}

.obw-ivstage .obw-bloom {
  width: 160px;
  height: 160px;
}

.obw-ivphase {
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink3);
  font-size: 10px;
}

.obw-ivq {
  color: var(--ink);
  text-align: center;
  letter-spacing: -.01em;
  max-width: 30ch;
  min-height: 46px;
  transition: opacity .18s;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.obw-ivtrans {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  max-width: 430px;
  margin-top: 2px;
}

.obw-bub {
  max-width: 78%;
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.4;
}

.obw-bub.jv {
  background: var(--panel);
  color: var(--ink2);
  border-radius: 11px 11px 11px 2px;
  align-self:  flex-start;
}

.obw-bub.me {
  background: var(--ink);
  color: var(--bg);
  border-radius: 11px 11px 2px;
  align-self:  flex-end;
}

.obw-ivcomposer {
  display: flex;
  border-top: 1px solid var(--rule);
  align-items:  center;
  gap: 9px;
  padding: 13px 22px;
}

.obw-ivcomposer .obw-inp {
  flex: 1;
}

.obw-voicepill {
  display: inline-flex;
  font-family: var(--mono);
  color: var(--ink3);
  border: 1px solid var(--rule);
  border-radius: 7px;
  flex-shrink: 0;
  align-items:  center;
  gap: 7px;
  padding: 8px 11px;
  font-size: 10px;
}

.obw-voicepill .ld {
  background: var(--listen);
  animation: obw-br 1.6s var(--ease-out, ease) infinite;
  border-radius: 50% 50% 50% 1px;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
}

.obw-tourstage {
  position: relative;
  overflow: hidden;
  display: flex;
  background: radial-gradient(65% 60% at 50% 42%, color-mix(in srgb, var(--ink) 5%, transparent), transparent), var(--panel2);
  flex: 1;
  justify-content: center;
  align-items:  center;
  min-height: 0;
  padding: 30px;
}

.obw-tourframe {
  position: relative;
  border: 1px solid var(--rule);
  overflow: hidden;
  background: var(--bg);
  border-radius: 14px 3px 14px 14px;
  width: min(880px, 100%);
  height: min(520px, 100%);
  box-shadow: 0 30px 70px -34px #000000a6;
}

.obw-miniapp {
  position: absolute;
  display: grid;
  grid-template-columns: 118px 1fr;
  inset: 0;
}

.obw-miniapp .mrail {
  border-right: 1px solid var(--rule);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 10px;
}

.obw-miniapp .mrail .mh {
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 7px 0 2px;
  font-size: 8px;
}

.obw-miniapp .mrail .mr {
  color: var(--ink2);
  display: flex;
  border-radius: 5px;
  align-items:  center;
  gap: 6px;
  padding: 3px 6px;
  font-size: 10.5px;
}

.obw-miniapp .mrail .mr.on {
  background: var(--panel);
  color: var(--ink);
  font-weight: 600;
}

.obw-miniapp .mrail .mr .bd {
  font-family: var(--mono);
  color: var(--hold);
  margin-left: auto;
  font-size: 8px;
}

.obw-miniapp .mmain {
  position: relative;
  padding: 14px;
}

.obw-miniapp .mtop {
  border: 1px solid var(--rule);
  background: var(--bg);
  display: flex;
  font-family: var(--mono);
  color: var(--ink3);
  border-radius: 8px;
  align-items:  center;
  gap: 8px;
  height: 30px;
  padding: 0 11px;
  font-size: 9px;
}

.obw-miniapp .mgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 11px;
}

.obw-miniapp .mcard {
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 9px;
  height: 60px;
}

.obw-miniapp .mpeb {
  position: absolute;
  bottom: 14px;
  right: 16px;
}

.obw-tourdim {
  position: absolute;
  z-index: 40;
  background: #080a0e85;
  inset: 0;
}

:root[data-theme="dark"] .obw-tourdim {
  background: #0000009e;
}

.obw-spot {
  position: absolute;
  z-index: 60;
  background: var(--raise);
  border: 1px solid var(--rule);
  border-radius: 13px 3px 13px 13px;
  width: 248px;
  padding: 15px 16px;
  box-shadow: 0 16px 40px -18px #00000080;
}

.obw-spot .sh {
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-bottom: 8px;
}

.obw-spot .sh .sd {
  position: relative;
  border-radius: 50% 50% 50% 2px;
  width: 13px;
  height: 13px;
  transform: rotate(45deg);
}

.obw-spot .sh .sd .in {
  position: absolute;
  border-radius: inherit;
  background: var(--listen);
  animation: obw-brS 2s var(--ease-out, ease) infinite;
  inset: 0;
}

.obw-spot .sh .sl {
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  font-size: 8.5px;
}

.obw-spot .sh .sc {
  font-family: var(--mono);
  color: var(--faint);
  margin-left: auto;
  font-size: 8.5px;
}

.obw-spot > .sm {
  color: var(--ink);
  letter-spacing: -.005em;
  font-size: 13px;
  line-height: 1.45;
}

.obw-spot .stry {
  font-family: var(--mono);
  color: var(--speak);
  margin-top: 8px;
  font-size: 9.5px;
}

.obw-spot .sb {
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-top: 13px;
}

.obw-spot .sb .grow {
  flex: 1;
}

.obw-themeseg {
  display: inline-flex;
  border: 1px solid var(--rule);
  overflow: hidden;
  border-radius: 8px 2px 8px 8px;
  margin-top: 4px;
}

.obw-themeseg button {
  font-family: var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink3);
  background: var(--raise);
  cursor: pointer;
  border: none;
  padding: 8px 16px;
  transition: background .15s, color .15s;
  font-size: 10px;
}

.obw-themeseg button.on {
  background: var(--ink);
  color: var(--bg);
}

.obw-themelab {
  color: var(--ink3);
  margin-bottom: 7px;
  font-size: 11px;
}

@media (max-width: 760px) {
  .obw-provgrid {
    grid-template-columns: 1fr;
  }

  .obw-miniapp {
    grid-template-columns: 84px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .obw-drop .in, .obw-drop .ring, .obw-spot .sh .sd .in, .obw-micbars b, .obw-wave b, .obw-voicepill .ld {
    animation: none !important;
  }

  .obw-drop .in {
    opacity: 1 !important;
  }

  .obw-drop.s-think .ring {
    opacity: .95 !important;
  }

  .obw-micbars b {
    height: 60% !important;
  }
}

/* ui/src/v2/pages/SystemStatesShowcase.css */
.sysx {
  background: var(--panel2);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
  padding: 32px clamp(20px, 5vw, 64px) 80px;
}

.sysx-head {
  display: flex;
  flex-wrap: wrap;
  align-items:  flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.sysx-head h1 {
  letter-spacing: -.03em;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
}

.sysx-head p {
  color: var(--ink3);
  max-width: 66ch;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
}

.sysx-seg {
  display: flex;
  border: 1px solid var(--rule);
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.sysx-seg button {
  font-family: var(--mono);
  letter-spacing: .06em;
  color: var(--ink3);
  cursor: pointer;
  background: none;
  border: none;
  padding: 7px 15px;
  font-size: 11px;
}

.sysx-seg button.on {
  background: var(--ink);
  color: var(--bg);
}

.sysx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 22px;
}

.sysx-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--rule);
  box-shadow: var(--sh-md);
  display: flex;
  border-radius: 14px;
  flex-direction: column;
  min-height: 150px;
}

.sysx-frame[data-tall="true"] {
  text-align: center;
  justify-content: center;
  align-items:  center;
  min-height: 440px;
  padding: 24px;
}

.sysx-ctx {
  display: grid;
  grid-template-columns: 1fr 1fr;
  opacity: .5;
  flex: 1;
  align-content:  start;
  gap: 11px;
  padding: 16px 18px;
}

.sysx-ctx .cc {
  border: 1px solid var(--rule);
  background: var(--raise);
  border-radius: 10px;
  height: 54px;
}

.sysx-ctx .cc.wide {
  grid-column: 1 / -1;
  height: 30px;
}

.sysx-lab {
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin: 9px 2px 0;
  font-size: 10px;
}

/* ui/src/v2/pages/BillingShowcase.css */
.blx {
  background: var(--panel2);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
  padding: 32px clamp(20px, 5vw, 64px) 80px;
}

.blx-head {
  display: flex;
  flex-wrap: wrap;
  align-items:  flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.blx-head h1 {
  letter-spacing: -.03em;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
}

.blx-head p {
  color: var(--ink3);
  max-width: 68ch;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
}

.blx-seg {
  display: flex;
  border: 1px solid var(--rule);
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.blx-seg button {
  font-family: var(--mono);
  letter-spacing: .06em;
  color: var(--ink3);
  cursor: pointer;
  background: none;
  border: none;
  padding: 7px 15px;
  font-size: 11px;
}

.blx-seg button.on {
  background: var(--ink);
  color: var(--bg);
}

.blx-sec {
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink3);
  margin: 30px 2px 12px;
  font-size: 10px;
}

.blx-sec:first-of-type {
  margin-top: 8px;
}

.blx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items:  start;
  gap: 20px;
}

.blx-lab {
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin: 9px 2px 0;
  font-size: 10px;
}

.blx-banners {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blx-bnrframe {
  border: 1px solid var(--rule);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--sh-sm);
  border-radius: 11px;
}

.blx-bnrframe .bl-bnr {
  border-bottom: none;
}

.blx-modalframe {
  display: flex;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--ink) 8%, var(--bg));
  box-shadow: var(--sh-sm) inset;
  border-radius: 14px;
  justify-content: center;
  padding: 26px;
}

.blx-soonframe {
  border: 1px solid var(--rule);
  background: var(--bg);
  box-shadow: var(--sh-sm);
  border-radius: 14px;
}

/* ui/src/v2/rooms/taskResult/TaskResultRoom.css */
.task-result {
  display: flex;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  flex-direction: column;
  gap: 18px;
  width: 100vw;
  height: 100vh;
  padding: 22px 24px 24px;
}

.task-result--loading, .task-result--error {
  justify-content: center;
  align-items:  center;
  gap: 12px;
}

.task-result__loading-dot {
  background: var(--ink3);
  opacity: .6;
  animation: task-result-breathe 1.6s var(--ease, ease-in-out) infinite;
  border-radius: 50%;
  width: 9px;
  height: 9px;
}

@keyframes task-result-breathe {
  0%, 100% {
    opacity: .25;
    transform: scale(1);
  }

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

.task-result__loading-line {
  font-family: var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink3);
  font-size: 11px;
}

.task-result__error {
  text-align: center;
  max-width: 320px;
}

.task-result__error-eyebrow {
  font-family: var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--listen-tx);
  margin-bottom: 6px;
  font-size: 10px;
}

.task-result__error-msg {
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 13px;
}

.task-result__error-hint {
  color: var(--ink3);
  font-size: 12px;
}

.task-result__head {
  display: flex;
  border-bottom: 1px solid var(--rule);
  flex-direction: column;
  flex: none;
  gap: 8px;
  padding-bottom: 16px;
}

.task-result__eyebrow {
  display: flex;
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink3);
  flex-wrap: wrap;
  align-items:  center;
  gap: 8px;
  font-size: 10px;
}

.task-result__agent {
  color: var(--ink);
  font-weight: 600;
}

.task-result__sep {
  color: var(--faint);
}

.task-result__dot {
  border-radius: 50%;
  width: 8px;
  height: 8px;
}

.task-result__dot--running {
  background: var(--hold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hold) 22%, transparent);
  animation: task-result-pulse 1.6s var(--ease, ease-in-out) infinite;
}

.task-result__dot--completed {
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}

.task-result__dot--failed {
  background: var(--listen);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--listen) 22%, transparent);
}

@keyframes task-result-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--hold) 55%, transparent);
  }

  50% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--hold) 0%, transparent);
  }
}

.task-result__title {
  font-family: var(--sans);
  color: var(--ink);
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.25;
}

.task-result__section-eyebrow {
  font-family: var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 8px;
  font-size: 10px;
}

.task-result__summary {
  background: var(--panel2);
  border: 1px solid var(--rule);
  border-radius: var(--corner-sm);
  padding: 13px 15px;
}

.task-result__summary-body {
  color: var(--ink2);
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.task-result__response-head {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
}

.task-result__raw-toggle {
  background: var(--raise);
  border: 1px solid var(--rule);
  border-radius: var(--corner-sm);
  font-family: var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink3);
  cursor: pointer;
  padding: 4px 11px;
  transition: color .12s, border-color .12s, background .12s;
  font-size: 10px;
}

.task-result__raw-toggle:hover {
  color: var(--ink);
  border-color: var(--rule-hi, #d2d9e0);
  background: var(--panel);
}

.task-result__response-body {
  background: var(--raise);
  border: 1px solid var(--rule);
  border-radius: var(--corner);
  box-shadow: var(--sh-sm);
  font-family: var(--mono);
  color: var(--ink2);
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 8px;
  padding: 16px 18px;
  font-size: 12.5px;
  line-height: 1.55;
}

.task-result__footer {
  display: flex;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
  padding-top: 14px;
}

.task-result__tools {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 6px;
}

.task-result__tool-chip {
  font-family: var(--mono);
  letter-spacing: .04em;
  color: var(--ink2);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px 1px 6px 6px;
  padding: 3px 8px;
  font-size: 10px;
}

.task-result__tokens {
  font-family: var(--mono);
  color: var(--ink3);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}

.task-result__markdown {
  font-family: var(--sans);
  color: var(--ink);
  white-space: normal;
  word-break: normal;
  font-size: 13.5px;
  line-height: 1.6;
}

.task-result__markdown p {
  margin: 0 0 12px;
}

.task-result__markdown p:last-child {
  margin-bottom: 0;
}

.task-result__markdown h1, .task-result__markdown h2, .task-result__markdown h3 {
  font-family: var(--sans);
  color: var(--ink);
  letter-spacing: -.01em;
  margin: 18px 0 8px;
  font-weight: 650;
  line-height: 1.3;
}

.task-result__markdown h1 {
  font-size: 19px;
}

.task-result__markdown h2 {
  font-size: 16px;
}

.task-result__markdown h3 {
  font-size: 14px;
}

.task-result__markdown h4 {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink3);
  margin: 16px 0 6px;
  font-size: 11px;
  font-weight: 500;
}

.task-result__markdown ul, .task-result__markdown ol {
  margin: 8px 0 12px;
  padding-left: 22px;
}

.task-result__markdown li {
  margin: 4px 0;
}

.task-result__markdown li::marker {
  color: var(--ink3);
}

.task-result__markdown a {
  color: var(--speak-tx);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.task-result__markdown a:hover {
  color: var(--ink);
}

.task-result__markdown code {
  font-family: var(--mono);
  background: var(--panel);
  border: 1px solid var(--rule2);
  color: var(--ink);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: .92em;
}

.task-result__markdown pre {
  background: var(--panel2);
  border: 1px solid var(--rule);
  border-radius: var(--corner-sm);
  overflow-x: auto;
  white-space: pre;
  word-break: normal;
  margin: 12px 0;
  padding: 12px 14px;
}

.task-result__markdown pre code {
  color: var(--ink2);
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.55;
}

.task-result__markdown blockquote {
  border-left: 2px solid var(--rule-hi, #d2d9e0);
  color: var(--ink2);
  margin: 12px 0;
  padding: 2px 0 2px 14px;
}

.task-result__markdown table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
  font-size: 12.5px;
}

.task-result__markdown th, .task-result__markdown td {
  border: 1px solid var(--rule);
  text-align: left;
  padding: 6px 10px;
}

.task-result__markdown th {
  background: var(--panel);
  font-family: var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink2);
  font-size: 11px;
  font-weight: 500;
}

.task-result__markdown hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 16px 0;
}

.task-result__markdown strong {
  color: var(--ink);
  font-weight: 650;
}

.task-result__response-empty {
  font-family: var(--sans);
  color: var(--ink3);
  text-align: center;
  padding: 14px 0;
}

/* ui/src/v2/v2.css */
.jarvis-v2-root {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--lh-body);
  overflow: hidden;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100vw;
  height: 100vh;
}

.jarvis-v2-root *, .jarvis-v2-root *:before, .jarvis-v2-root *:after {
  box-sizing: border-box;
}

.v2-shell-frame {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.jarvis-v2-panel-mode {
  overflow: auto;
  padding: 16px 20px;
}

.jarvis-v2-palette-mode {
  overflow: hidden;
  background: none;
  width: 100vw;
  height: 100vh;
}

.jarvis-v2-palette-mode .v2-palette__scrim {
  position: absolute;
  backdrop-filter: none;
  background: none;
  justify-content: stretch;
  align-items: stretch;
  padding: 0;
  inset: 0;
}

.jarvis-v2-palette-mode .v2-palette {
  box-shadow: none;
  border: 0;
  border-radius: 0;
  width: 100%;
  max-height: 100%;
}

.v2-sr-only {
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
}

.jarvis-v2-root h1, .jarvis-v2-root h2, .jarvis-v2-root h3 {
  font-family: var(--font-display);
  letter-spacing: -.01em;
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--ink);
}

.jarvis-v2-root code, .jarvis-v2-root pre, .jarvis-v2-root kbd {
  font-family: var(--font-mono);
}

.jarvis-v2-root ::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.v2-placeholder {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--s-10) var(--s-12);
  height: 100%;
}

.v2-placeholder__brand {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.v2-placeholder__brand-dot {
  border-radius: var(--r-pill);
  background: var(--accent);
  display: inline-block;
  width: 10px;
  height: 10px;
}

.v2-placeholder__body {
  display: flex;
  justify-content: center;
  gap: var(--s-6);
  flex-direction: column;
  max-width: 720px;
}

.v2-placeholder__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.v2-placeholder__title {
  font-size: var(--text-3xl);
  max-width: 18ch;
  font-weight: 500;
}

.v2-placeholder__title em {
  color: var(--accent);
  font-style: italic;
}

.v2-placeholder__lede {
  font-size: var(--text-lg);
  color: var(--ink-2);
  line-height: var(--lh-body);
  max-width: 52ch;
}

.v2-placeholder__actions {
  display: flex;
  align-items:  center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.v2-placeholder__hint {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.v2-placeholder__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
  padding-top: var(--s-6);
  border-top: var(--hair);
  max-width: 640px;
}

.v2-placeholder__meta-cell dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-1);
}

.v2-placeholder__meta-cell dd {
  font-size: var(--text-md);
  color: var(--ink);
}

.v2-placeholder__footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.v2-placeholder__back {
  border: var(--hair);
  padding: var(--s-2) var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--r-0);
  transition: background var(--dur-fast) var(--ease-out);
  background: none;
}

.v2-placeholder__back:hover {
  background: var(--paper-3);
}

.v2-placeholder__back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ui/src/v2/ui/primitives.css */
.v2-btn {
  display: inline-flex;
  justify-content: center;
  align-items:  center;
  gap: var(--s-2);
  font-family: var(--sans);
  cursor: pointer;
  border-radius: var(--corner-sm);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
  user-select: none;
  font-weight: 600;
  line-height: 1;
}

.v2-btn:focus-visible {
  outline: 2px solid var(--ink2);
  outline-offset: 2px;
}

.v2-chip:focus-visible {
  outline: 2px solid var(--ink2);
  outline-offset: 2px;
}

.v2-kbd:focus-visible {
  outline: 2px solid var(--ink2);
  outline-offset: 2px;
}

.v2-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.v2-btn--sm {
  font-size: var(--text-xs);
  min-height: 26px;
  padding: 6px 11px;
}

.v2-btn--md {
  font-size: var(--text-sm);
  min-height: 32px;
  padding: 8px 15px;
}

.v2-btn--primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  box-shadow: var(--sh-sm);
}

.v2-btn--primary:hover:not(:disabled) {
  box-shadow: var(--sh-md);
}

.v2-btn--ghost {
  background: var(--raise);
  color: var(--ink);
  border: 1px solid var(--rule);
}

.v2-btn--ghost:hover:not(:disabled) {
  background: var(--panel);
  border-color: var(--ink3);
}

.v2-btn--danger {
  color: var(--listen-tx);
  border: 1px solid color-mix(in srgb, var(--listen) 45%, var(--rule));
  background: none;
}

.v2-btn--danger:hover:not(:disabled) {
  background: color-mix(in srgb, var(--listen) 8%, transparent);
  border-color: var(--listen-tx);
}

.v2-chip {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  font-family: var(--sans);
  font-size: var(--text-xs);
  border-radius: var(--r-pill);
  background: var(--panel);
  border: 1px solid var(--rule);
  white-space: nowrap;
  padding: 4px 10px;
  font-weight: 500;
  line-height: 1;
}

.v2-chip__dot {
  border-radius: var(--r-pill);
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.v2-chip--neutral {
  color: var(--ink2);
  border-color: var(--rule);
}

.v2-chip--neutral .v2-chip__dot {
  background: var(--ink3);
}

.v2-chip--ok {
  color: var(--ok-tx);
  border-color: color-mix(in srgb, var(--ok) 38%, var(--rule));
}

.v2-chip--ok .v2-chip__dot {
  background: var(--ok);
}

.v2-chip--warn {
  color: var(--hold-tx);
  border-color: color-mix(in srgb, var(--hold) 40%, var(--rule));
}

.v2-chip--warn .v2-chip__dot {
  background: var(--hold);
}

.v2-chip--accent {
  color: var(--listen-tx);
  border-color: color-mix(in srgb, var(--listen) 42%, var(--rule));
  background: color-mix(in srgb, var(--listen) 8%, var(--panel));
}

.v2-chip--accent .v2-chip__dot {
  background: var(--listen);
}

.v2-kbd {
  display: inline-flex;
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--ink2);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--corner-sm);
  vertical-align: middle;
  justify-content: center;
  align-items:  center;
  min-width: 20px;
  padding: 2px 6px;
  line-height: 1.2;
}

.v2-rule {
  display: block;
  border: 0;
  border-top: 1px solid var(--rule);
  width: 100%;
  height: 0;
  margin: 0;
}

.v2-rule--bold {
  border-top: 1px solid var(--ink3);
}

.v2-meta {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink3);
  line-height: 1.4;
}

.v2-meta--inline {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
}

.v2-icon {
  display: inline-flex;
  color: currentColor;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
}
