/* node_modules/.bun/tailwindcss@4.2.1/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;
}

/* apps/api/client/index.css */
:root {
  --bg: #0f0f23;
  --surface: #1a1a2e;
  --bubble: #16213e;
  --bubble-own: #1e1e4a;
  --text: #e0e0e0;
  --text-muted: #888;
  --accent: #3a76f0;
  --accent-hover: #5b86f0;
  --accent-glow: #3a76f040;
  --border: #ffffff12;
  --danger: #f55;
  --success: #50fa7b;
  --warning: #ffb86c;
  --sidebar-w: 220px;
  --members-w: 200px;
  --input-h: 56px;
  --radius: 10px;
  --radius-sm: 6px;
  --transition: .15s ease;
  --hover: #ffffff0d;
}

[data-theme="light"] {
  --bg: #fafbfc;
  --surface: #fff;
  --bubble: #f0f2f5;
  --bubble-own: #e8e5ff;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --accent: #2c6bed;
  --accent-hover: #2257cf;
  --accent-glow: #2c6bed38;
  --border: #00000014;
  --hover: #0000000a;
}

[data-font="mono"] {
  font-family: JetBrains Mono, Cascadia Code, Fira Mono, monospace;
}

[data-font="ligature"] {
  font-variant-ligatures: common-ligatures;
  font-family: Fira Code, Cascadia Code, monospace;
}

[data-font="readable"] {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
}

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

html, body, #root {
  height: 100dvh;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

::-webkit-scrollbar {
  width: 5px;
}

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

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

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

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  to {
    opacity: 1;
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }

  50% {
    box-shadow: 0 0 0 6px var(--accent-glow);
  }
}

@keyframes bounce-dot {
  0%, 60%, 100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-5px);
  }
}

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

.animate-slide-up {
  animation: slide-up .2s ease both;
}

.animate-fade-in {
  animation: fade-in .2s ease both;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--members-w);
  grid-template-rows: 100dvh;
  overflow: hidden;
  height: 100dvh;
}

.mobile-hamburger, .sidebar-overlay {
  display: none;
}

@media (max-width: 768px) {
  .app-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 100dvh;
  }

  .members-panel {
    display: none;
  }

  .sidebar {
    display: flex;
    position: fixed;
    width: var(--sidebar-w);
    z-index: 100;
    transition: transform .25s;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }

  .sidebar.sidebar--open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    z-index: 99;
    animation: fade-in .15s ease;
    background: #00000080;
    inset: 0;
  }

  .mobile-hamburger {
    display: flex;
    position: fixed;
    z-index: 50;
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition), background var(--transition);
    justify-content: center;
    align-items:  center;
    width: 36px;
    height: 36px;
    padding: 0;
    top: 8px;
    left: 8px;
  }

  .mobile-hamburger:hover {
    color: var(--text);
    background: var(--surface);
  }

  .chat-header {
    padding-left: 52px;
  }
}

.sidebar {
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid var(--border);
  display: flex;
  overflow: hidden;
  flex-direction: column;
}

.sidebar-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 14px 12px;
}

.sidebar-title {
  color: var(--accent);
  letter-spacing: -.3px;
  font-size: 16px;
  font-weight: 700;
}

.sidebar-subtitle {
  color: var(--text-muted);
  margin-top: 1px;
  font-size: 11px;
}

.room-list {
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
}

.room-item {
  display: flex;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  color: var(--text-muted);
  user-select: none;
  border-radius: 0;
  align-items:  center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 13px;
}

.room-item:hover {
  background: var(--bubble);
  color: var(--text);
}

.room-item.active {
  background: var(--bubble);
  color: var(--accent);
  font-weight: 600;
}

.room-item:before {
  content: "#";
  color: inherit;
  opacity: .6;
  font-size: 13px;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  display: flex;
  align-items:  center;
  gap: 8px;
  padding: 10px 14px;
}

.user-avatar {
  background: var(--accent);
  color: #fff;
  display: flex;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
  font-size: 11px;
  font-weight: 700;
}

.user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-size: 12px;
  font-weight: 600;
}

.btn-icon {
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  display: flex;
  background: none;
  border: none;
  justify-content: center;
  align-items:  center;
  padding: 4px;
}

.btn-icon:hover {
  color: var(--text);
  background: var(--bubble);
}

.chat-main {
  position: relative;
  z-index: 2;
  display: flex;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-direction: column;
}

.chat-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  display: flex;
  align-items:  center;
  gap: 10px;
  padding: 12px 16px;
}

.chat-header-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.chat-header-name:before {
  content: "# ";
  color: var(--text-muted);
  font-weight: 400;
}

.message-list {
  overflow-y: auto;
  display: flex;
  position: relative;
  flex-direction: column;
  flex: 1;
  gap: 2px;
  padding: 12px 16px;
}

.message-list > canvas {
  pointer-events: none;
  z-index: 0;
  position: fixed !important;
  width: 100vw !important;
  height: auto !important;
  inset: auto 0 0 !important;
}

.message-list > :not(canvas) {
  position: relative;
  z-index: 1;
}

.message-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.message-bubble {
  animation: slide-up .18s ease both;
  display: flex;
  flex-direction: column;
  max-width: 72%;
}

.message-bubble.own {
  align-self:  flex-end;
}

.message-bubble.other {
  align-self:  flex-start;
}

.message-bubble.system {
  align-self:  center;
}

.message-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 3px;
  padding: 0 4px;
}

.message-author {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.message-time {
  color: var(--text-muted);
  font-size: 10px;
}

.message-content {
  background: var(--bubble);
  border-radius: var(--radius);
  color: var(--text);
  word-break: break-word;
  white-space: pre-wrap;
  padding: 8px 12px;
  font-size: 13.5px;
  line-height: 1.5;
}

.message-bubble.own .message-content {
  background: var(--bubble-own);
}

.message-bubble.system .message-content {
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: none;
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 12px;
  font-style: italic;
}

.members-panel {
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 1px solid var(--border);
  display: flex;
  overflow: hidden;
  flex-direction: column;
}

.members-header {
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding: 14px 12px 10px;
  font-size: 11px;
  font-weight: 700;
}

.members-list {
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
}

.member-item {
  display: flex;
  color: var(--text-muted);
  align-items:  center;
  gap: 8px;
  padding: 5px 12px;
  font-size: 12px;
}

.member-item.online {
  color: var(--text);
}

.presence-dot {
  background: var(--text-muted);
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.presence-dot.online {
  background: var(--success);
}

.typing-indicator {
  color: var(--text-muted);
  display: flex;
  align-items:  center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 16px 8px;
  font-size: 12px;
}

.typing-dots {
  display: flex;
  gap: 3px;
}

.typing-dot {
  background: var(--text-muted);
  animation: bounce-dot 1.2s ease infinite;
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.typing-dot:nth-child(2) {
  animation-delay: .15s;
}

.typing-dot:nth-child(3) {
  animation-delay: .3s;
}

.chat-input-wrap {
  padding: 0 16px max(16px, env(safe-area-inset-bottom));
  position: relative;
}

@media (max-width: 768px) {
  .chat-input {
    font-size: 16px;
  }
}

.chat-input-box {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  align-items:  flex-end;
}

.chat-input-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.chat-input {
  outline: none;
  color: var(--text);
  resize: none;
  background: none;
  border: none;
  flex: 1;
  min-height: 44px;
  max-height: 140px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.tab-more-btn {
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  opacity: .7;
  transition: opacity var(--transition);
  background: none;
  border: none;
  margin-left: 6px;
  padding: 0 2px;
  font-size: 12px;
}

.tab-more-btn:hover {
  opacity: 1;
  text-decoration: underline;
}

.chat-input-send {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
  flex-shrink: 0;
  margin: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}

.chat-input-send:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
}

.chat-input-send:active {
  transform: scale(.97);
}

.chat-input-send:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}

.command-hint {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  z-index: 10;
  padding: 6px 8px;
  font-size: 12px;
  bottom: calc(100% + 2px);
  left: 0;
  right: 0;
}

.login-page {
  display: flex;
  background: var(--bg);
  justify-content: center;
  align-items:  center;
  min-height: 100vh;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  animation: fade-in .25s ease;
  border-radius: 14px;
  width: 100%;
  max-width: 360px;
  padding: 36px 32px;
}

.login-logo {
  color: var(--accent);
  text-align: center;
  letter-spacing: -.5px;
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 800;
}

.login-tagline {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
  font-size: 12px;
}

.form-field {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
}

.form-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
  width: 100%;
  margin-top: 6px;
  padding: 11px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:active {
  transform: scale(.98);
}

.btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.form-error {
  color: var(--danger);
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
}

.empty-state {
  display: flex;
  color: var(--text-muted);
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items:  center;
  gap: 8px;
  font-size: 14px;
}

.empty-state-icon {
  opacity: .4;
  font-size: 36px;
}

.history-search {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  animation: slide-up .15s ease both;
  margin-bottom: 6px;
}

.history-search-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  align-items:  center;
  gap: 8px;
  padding: 7px 10px;
}

.history-search-icon {
  opacity: .7;
  flex-shrink: 0;
  font-size: 14px;
}

.history-search-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  flex: 1;
  min-width: 0;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 13px;
}

.history-search-input:focus {
  border-color: var(--accent);
}

.history-search-hint {
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 10px;
}

.history-search-results {
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  max-height: 180px;
}

.history-search-item {
  text-align: left;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background var(--transition), color var(--transition);
  background: none;
  border: none;
  padding: 6px 12px;
  font-family: monospace;
  font-size: 12px;
}

.history-search-item:hover, .history-search-item.active {
  background: var(--bubble);
  color: var(--text);
}

.history-search-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 10px 12px;
  font-size: 12px;
}

.palette-backdrop {
  position: fixed;
  display: flex;
  z-index: 200;
  animation: fade-in .1s ease;
  background: #0000008c;
  justify-content: center;
  align-items:  flex-start;
  padding-top: 15vh;
  inset: 0;
}

.palette {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 560px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 24px 64px #00000080;
}

.palette-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  align-items:  center;
  gap: 8px;
  padding: 12px 14px;
}

.palette-icon {
  color: var(--accent);
  flex-shrink: 0;
  font-size: 16px;
}

.palette-input {
  outline: none;
  color: var(--text);
  font: inherit;
  background: none;
  border: none;
  flex: 1;
  font-size: 15px;
}

.palette-input::placeholder {
  color: var(--text-muted);
}

kbd.palette-esc {
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  padding: 1px 5px;
  font-size: 10px;
}

.palette-list {
  overflow-y: auto;
  max-height: 360px;
  padding: 4px 0;
}

.palette-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font: inherit;
  transition: background var(--transition);
  background: none;
  border: none;
  align-items:  center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
}

.palette-item:hover, .palette-item.active {
  background: var(--hover);
}

.palette-item-cmd {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.palette-item-args {
  color: var(--text-muted);
  font-size: 12px;
}

.palette-item-desc {
  color: var(--text-muted);
  text-align: right;
  font-size: 12px;
}

.palette-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 24px;
  font-size: 13px;
}

.palette-footer {
  display: flex;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  gap: 16px;
  padding: 8px 14px;
  font-size: 11px;
}

.search-overlay-backdrop {
  position: fixed;
  display: flex;
  z-index: 200;
  animation: fade-in .1s ease;
  background: #0000008c;
  justify-content: center;
  align-items:  flex-start;
  padding-top: 10vh;
  inset: 0;
}

.search-overlay {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 600px;
  max-width: calc(100vw - 32px);
  max-height: 70vh;
  box-shadow: 0 24px 64px #00000080;
}

.search-overlay-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  align-items:  center;
  gap: 8px;
  padding: 12px 14px;
}

.search-overlay-icon {
  flex-shrink: 0;
  font-size: 14px;
}

.search-overlay-input {
  outline: none;
  color: var(--text);
  font: inherit;
  background: none;
  border: none;
  flex: 1;
  font-size: 15px;
}

.search-overlay-input::placeholder {
  color: var(--text-muted);
}

.search-overlay-close {
  cursor: pointer;
  color: var(--text-muted);
  transition: background var(--transition);
  background: none;
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 14px;
}

.search-overlay-close:hover {
  background: var(--hover);
}

.search-overlay-results {
  overflow-y: auto;
  flex: 1;
}

.search-overlay-status {
  text-align: center;
  color: var(--text-muted);
  padding: 24px;
  font-size: 13px;
}

.search-result-item {
  display: block;
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--border);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background var(--transition);
  background: none;
  width: 100%;
  padding: 10px 14px;
}

.search-result-item:hover {
  background: var(--hover);
}

.search-result-meta {
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-bottom: 3px;
}

.search-result-author {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.search-result-time {
  color: var(--text-muted);
  font-size: 11px;
}

.search-result-content {
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.theme-popover {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 9999;
  animation: fade-in .1s ease;
  min-width: 260px;
  padding: 10px;
  bottom: calc(100% + 8px);
  left: 0;
  box-shadow: 0 8px 24px #0000004d;
}

.theme-popover-section {
  margin-bottom: 10px;
}

.theme-popover-section:last-child {
  margin-bottom: 0;
}

.theme-popover-label {
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
}

.theme-toggle-row, .font-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.theme-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex: 1;
  min-width: 64px;
  padding: 4px 10px;
  font-size: 12px;
}

.theme-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.theme-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.divider {
  background: var(--border);
  height: 1px;
  margin: 6px 0;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
}

.cowfly-backdrop {
  position: fixed;
  display: flex;
  z-index: 200;
  background: #0000008c;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.cowfly-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  width: 400px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 24px 64px #0006;
}

.cowfly-modal-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items:  center;
  padding: 14px 16px 12px;
}

.cowfly-modal-title {
  color: var(--text);
  letter-spacing: .2px;
  font-size: 15px;
  font-weight: 700;
}

.cowfly-modal-close {
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  transition: color .15s, background .15s;
  font-size: 14px;
  line-height: 1;
}

.cowfly-modal-close:hover {
  color: var(--text);
  background: var(--hover);
}

.bg-modal-preview-wrap {
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: #000;
  height: 84px;
}

.bg-modal-preview {
  position: absolute;
  inset: 0;
}

.bg-modal-preview > canvas {
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  inset: 0 !important;
}

.bg-modal-preview-label {
  position: absolute;
  z-index: 1;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
  background: #00000073;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  top: 8px;
  right: 10px;
}

.cowfly-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.cowfly-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cowfly-modal-field-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cowfly-modal-label {
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.cowfly-modal-value {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
}

.cowfly-text-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  box-sizing: border-box;
  width: 100%;
  padding: 8px 10px;
  transition: border-color .15s;
  font-size: 14px;
}

.cowfly-text-input:focus {
  border-color: var(--accent);
}

.cowfly-text-input::placeholder {
  color: var(--text-muted);
}

.cowfly-slider {
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  outline: none;
  cursor: pointer;
  accent-color: var(--accent);
  border-radius: 2px;
  width: 100%;
  height: 4px;
}

.cowfly-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: var(--accent);
  cursor: pointer;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  transition: transform .1s;
}

.cowfly-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.cowfly-slider::-moz-range-thumb {
  background: var(--accent);
  cursor: pointer;
  border: none;
  border-radius: 50%;
  width: 16px;
  height: 16px;
}

.cowfly-slider--disabled {
  opacity: .3;
  cursor: not-allowed;
  pointer-events: none;
}

.cowfly-toggle-label {
  display: flex;
  cursor: pointer;
  user-select: none;
  align-items:  center;
  gap: 6px;
}

.cowfly-checkbox {
  accent-color: var(--accent);
  cursor: pointer;
  width: 13px;
  height: 13px;
}

.cowfly-modal-value--random {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
}

.cowfly-dir-row {
  display: flex;
  gap: 8px;
}

.cowfly-dir-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  flex: 1;
  padding: 7px 0;
  transition: border-color .15s, color .15s, background .15s;
  font-size: 13px;
}

.cowfly-dir-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.cowfly-dir-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: #6c63ff1f;
  font-weight: 600;
}

.cowfly-modal-footer {
  display: flex;
  border-top: 1px solid var(--border);
  justify-content: space-between;
  align-items:  center;
  gap: 8px;
  padding: 12px 16px;
}

.cowfly-reset-btn {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  padding: 6px 12px;
  transition: border-color .15s, color .15s;
  font-size: 12px;
}

.cowfly-reset-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.cowfly-cancel-btn {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  padding: 7px 14px;
  transition: border-color .15s, color .15s;
  font-size: 13px;
}

.cowfly-cancel-btn:hover {
  border-color: var(--border);
  color: var(--text);
}

.cowfly-launch-btn {
  background: var(--accent);
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  border: none;
  padding: 7px 16px;
  transition: background .15s, transform .1s;
  font-size: 13px;
  font-weight: 600;
}

.cowfly-launch-btn:hover {
  background: var(--accent-hover);
}

.cowfly-launch-btn:active {
  transform: scale(.97);
}

.typer-game {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  position: relative;
  z-index: 2;
  animation: slide-up .15s ease both;
  padding: 10px 16px;
}

.typer-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.typer-title {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 13px;
  font-weight: 700;
}

.typer-hint {
  color: var(--text-muted);
  font-size: 11px;
}

.typer-words {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 8px;
  min-height: 32px;
}

.typer-word-pill {
  background: var(--bubble);
  border: 1px solid var(--border);
  display: flex;
  border-radius: 16px;
  flex-direction: column;
  gap: 3px;
  padding: 6px 12px;
  transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .24s, filter .24s, border-color .12s, box-shadow .12s;
}

.typer-word-text {
  color: var(--text);
  letter-spacing: .15px;
  font-size: 14px;
  font-weight: 600;
}

.typer-word-pill--long {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--bubble) 82%, var(--accent) 18%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}

.typer-word-pill--long .typer-word-text {
  font-size: 16px;
  font-weight: 700;
}

.typer-word-pill--matched {
  border-color: color-mix(in srgb, var(--success) 65%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--success) 35%, transparent), 0 0 18px color-mix(in srgb, var(--success) 35%, transparent);
  animation: typer-hit-pop .52s cubic-bezier(.22, 1, .36, 1) both;
}

.typer-word-pill--exiting {
  opacity: 0;
  filter: blur(.6px);
  pointer-events: none;
  transform: translateY(-8px)scale(.92);
}

.typer-word-hit {
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: .4px;
  font-size: 10px;
  font-weight: 700;
}

.typer-word-bar {
  background: var(--border);
  overflow: hidden;
  border-radius: 2px;
  height: 3px;
}

.typer-word-bar-fill {
  background: var(--accent);
  border-radius: 2px;
  height: 100%;
  transition: width .1s linear;
}

@keyframes typer-hit-pop {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1.02);
    opacity: .85;
  }
}

.typer-waiting {
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
}

.noter-playing {
  border-color: var(--accent);
  animation: pulse-glow 1.5s ease infinite;
}

.typer-last-score {
  color: var(--success);
  margin-top: 6px;
  font-size: 12px;
}

.typer-scoreboard {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
}

.typer-score-row {
  display: flex;
  align-items:  center;
  gap: 4px;
  font-size: 12px;
}

.typer-score-rank {
  color: var(--text-muted);
  min-width: 20px;
  font-weight: 600;
}

.typer-score-name {
  color: var(--text);
}

.typer-score-pts {
  color: var(--accent);
  font-weight: 700;
}

:root {
  --accent-2: var(--accent);
  --accent-glow: #3a76f040;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --rail-w: 76px;
  --sidebar-w: 272px;
  --members-w: 248px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-pop: 0 18px 48px #08081480;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --bg: #0b0b15;
  --bg-grad-a: #12122a;
  --bg-grad-b: #0a0a14;
  --panel: #14142a;
  --panel-solid: #14142a;
  --panel-2: #ffffff0a;
  --bubble-other: #26263c;
  --bubble-glass: #1c1c30;
  --border: #ffffff17;
  --border-strong: #ffffff29;
  --text: #e8e8f4;
  --text-muted: #9a9ab4;
  --text-dim: #5e5e78;
  --hover: #ffffff0f;
  --active: #6c63ff29;
  --scrim: #0808128c;
  --danger: #ff6b6b;
  --success: #4ade80;
}

[data-theme="light"] {
  --bg: #eef0f6;
  --bg-grad-a: #f6f7fc;
  --bg-grad-b: #e6e8f2;
  --panel: #fff;
  --panel-solid: #fff;
  --panel-2: #14143208;
  --bubble-other: #e9eaf0;
  --bubble-glass: #eef0f5;
  --border: #14143c17;
  --border-strong: #14143c29;
  --text: #1b1b30;
  --text-muted: #5d5d76;
  --text-dim: #9292a8;
  --hover: #14143c0d;
  --active: #6c63ff1f;
  --scrim: #ffffff8c;
  --danger: #e23b3b;
  --success: #1f9d54;
}

[data-font="geist"] {
  font-family: Geist, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
}

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--members-w);
  background: var(--bg);
  transition: grid-template-columns .32s var(--ease);
  width: 100vw;
  height: 100dvh;
}

.app.rail {
  grid-template-columns: var(--rail-w) 1fr var(--members-w);
}

.app.no-members {
  grid-template-columns: var(--sidebar-w) 1fr 0;
}

.app.rail.no-members {
  grid-template-columns: var(--rail-w) 1fr 0;
}

.app .sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  overflow: hidden;
  flex-direction: column;
  min-width: 0;
}

.sb-head {
  display: flex;
  align-items:  center;
  gap: 11px;
  padding: 17px 16px 15px;
}

.sb-mark {
  background: var(--accent);
  display: grid;
  color: #fff;
  border-radius: 11px;
  flex-shrink: 0;
  place-items:  center;
  width: 38px;
  height: 38px;
  font-size: 17px;
  font-weight: 700;
}

.sb-titles {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.sb-title {
  letter-spacing: -.2px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 650;
}

.sb-sub {
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: .2px;
  white-space: nowrap;
}

.sb-collapse {
  display: grid;
  color: var(--text-muted);
  cursor: pointer;
  transition: .16s var(--ease);
  background: none;
  border: 1px solid #0000;
  border-radius: 9px;
  flex-shrink: 0;
  place-items:  center;
  width: 30px;
  height: 30px;
  margin-left: auto;
}

.sb-collapse:hover {
  background: var(--hover);
  color: var(--text);
}

.rail .sb-head {
  flex-direction: column;
  gap: 9px;
  padding: 14px 8px 12px;
}

.rail .sb-titles {
  display: none;
}

.rail .sb-collapse {
  border-color: var(--border);
  color: var(--text);
  width: 100%;
  height: 30px;
  margin-left: 0;
}

.sb-search {
  display: flex;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 11px;
  align-items:  center;
  gap: 8px;
  margin: 0 14px 8px;
  padding: 8px 11px;
  font-size: 13px;
}

.rail .sb-search {
  justify-content: center;
  padding: 8px 0;
}

.sb-search input {
  outline: none;
  color: var(--text);
  background: none;
  border: none;
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 13px;
}

.sb-search input::placeholder {
  color: var(--text-dim);
}

.sb-section {
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-dim);
  padding: 12px 18px 5px;
  font-size: 10.5px;
  font-weight: 700;
}

.rail .sb-section {
  text-align: center;
  padding: 12px 0 5px;
  font-size: 9px;
}

.rooms {
  overflow-y: auto;
  flex: 1;
  padding: 2px 10px 10px;
}

.room {
  display: flex;
  cursor: pointer;
  color: var(--text-muted);
  transition: .15s var(--ease);
  text-align: left;
  position: relative;
  background: none;
  border: 1px solid #0000;
  border-radius: 12px;
  align-items:  center;
  gap: 11px;
  width: 100%;
  margin: 2px 0;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 13.5px;
}

.room:hover {
  background: var(--hover);
  color: var(--text);
}

.room.active {
  background: var(--active);
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.room.active .room-hash {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

.room-hash {
  display: grid;
  background: var(--panel-2);
  font-family: var(--mono);
  color: var(--text-dim);
  border-radius: 9px;
  flex-shrink: 0;
  place-items:  center;
  width: 30px;
  height: 30px;
  font-size: 14px;
  font-weight: 600;
}

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

.rail .room-body {
  display: none;
}

.rail .room {
  justify-content: center;
  padding: 8px 0;
}

.room-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  font-weight: 550;
}

.room-preview {
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  font-size: 12px;
}

.room-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.room-time {
  color: var(--text-dim);
  font-size: 11px;
  font-family: var(--mono);
  flex-shrink: 0;
}

.room.active .room-time {
  color: var(--text-muted);
}

.room-badge {
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--mono);
  display: grid;
  border-radius: 10px;
  flex-shrink: 0;
  place-items:  center;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
}

.rail .room-badge {
  position: absolute;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  font-size: 9px;
  top: 3px;
  right: 8px;
}

.room-new {
  color: var(--text-dim);
}

.room-new:hover {
  color: var(--text);
}

.room-discover {
  cursor: default;
}

.room-discover:hover {
  color: var(--text-muted);
  background: none;
}

.room-discover .room-body {
  margin-right: 8px;
}

.sb-foot {
  display: flex;
  border-top: 1px solid var(--border);
  align-items:  center;
  gap: 10px;
  padding: 11px 14px;
}

.me-av {
  flex-shrink: 0;
}

.sb-foot .me-meta {
  flex: 1;
  min-width: 0;
}

.rail .sb-foot .me-meta, .rail .sb-foot .me-actions {
  display: none;
}

.rail .sb-foot {
  justify-content: center;
}

.me-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 600;
}

.me-status {
  color: var(--success);
  display: flex;
  align-items:  center;
  gap: 5px;
  font-size: 11px;
}

.me-status:before {
  content: "";
  background: var(--success);
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.me-actions {
  display: flex;
  gap: 2px;
}

.av {
  display: grid;
  color: #fff;
  font-weight: 650;
  font-family: var(--font, inherit);
  position: relative;
  border-radius: 50%;
  flex-shrink: 0;
  place-items:  center;
}

.chat {
  display: flex;
  overflow: hidden;
  position: relative;
  flex-direction: column;
  min-width: 0;
}

.chat-head {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  z-index: 5;
  align-items:  center;
  gap: 12px;
  padding: 13px 18px;
}

.hamburger {
  display: none;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  border-radius: 10px;
  place-items:  center;
  width: 36px;
  height: 36px;
}

.ch-icon {
  display: grid;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent-2) 18%, transparent));
  color: var(--accent);
  font-family: var(--mono);
  border-radius: 12px;
  flex-shrink: 0;
  place-items:  center;
  width: 40px;
  height: 40px;
  font-size: 18px;
  font-weight: 700;
}

.ch-titles {
  flex: 1;
  min-width: 0;
}

.ch-name {
  letter-spacing: -.2px;
  font-size: 16px;
  font-weight: 650;
}

.ch-sub {
  color: var(--text-muted);
  font-size: 12px;
}

.ch-sub b {
  color: var(--success);
  font-weight: 600;
}

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

.icon-btn {
  display: grid;
  color: var(--text-muted);
  cursor: pointer;
  transition: .15s var(--ease);
  background: none;
  border: 1px solid #0000;
  border-radius: 11px;
  place-items:  center;
  width: 38px;
  height: 38px;
}

.icon-btn:hover {
  background: var(--hover);
  color: var(--text);
}

.icon-btn.on {
  background: var(--active);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.scroll-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
}

.scroll {
  position: absolute;
  overflow-y: auto;
  z-index: 1;
  inset: 0;
}

.wallpaper {
  display: none;
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  inset: 0;
}

.mesh {
  display: none;
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 1px 1px, var(--scrim) 1px, transparent 0), linear-gradient(to bottom, var(--scrim), transparent 18%, transparent 82%, var(--scrim));
  opacity: .9;
  background-size: 22px 22px, 100% 100%;
  inset: 0;
}

.mesh.off {
  display: none;
}

.feed {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 24px 8px;
}

.feed.dens-compact {
  gap: 0;
}

.feed.dens-compact .msg-row {
  padding: 1px 0;
}

.feed.dens-comfy {
  gap: 7px;
}

.feed.dens-comfy .msg-row {
  padding: 4px 0;
}

.feed.dens-comfy .bubble {
  padding: 11px 15px;
}

[data-tip] {
  position: relative;
}

[data-tip]:after {
  content: attr(data-tip);
  position: absolute;
  background: var(--panel-3, #11151c);
  color: var(--text, #e8edf4);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pop, 0 8px 24px #0006);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .14s var(--ease), transform .14s var(--ease);
  z-index: 60;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%)translateY(3px);
}

[data-tip]:hover:after {
  opacity: 1;
  transform: translateX(-50%)translateY(0);
}

[data-tip]:focus-visible:after {
  opacity: 1;
  transform: translateX(-50%)translateY(0);
}

[data-tip][data-tip-side="bottom"]:after {
  top: calc(100% + 7px);
  bottom: auto;
}

.app .divider {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
  background: var(--bubble-glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  align-self:  center;
  margin: 14px 0 10px;
  padding: 4px 13px;
}

.msg-row {
  display: flex;
  position: relative;
  gap: 11px;
  padding: 2px 0;
}

.msg-row:not(.cont) {
  margin-top: 12px;
}

.feed.dens-compact .msg-row:not(.cont) {
  margin-top: 7px;
}

.feed.dens-comfy .msg-row:not(.cont) {
  margin-top: 18px;
}

.msg-row.own {
  flex-direction: row-reverse;
}

.msg-row .av {
  align-self:  flex-end;
  margin-bottom: 2px;
}

.msg-row.cont .av {
  visibility: hidden;
  height: 0;
}

.msg-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: min(560px, 74%);
}

.own .msg-col {
  align-items:  flex-end;
}

.msg-meta {
  display: flex;
  white-space: nowrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 6px 3px;
}

.own .msg-meta {
  flex-direction: row-reverse;
}

.msg-author {
  color: var(--author, var(--accent));
  font-size: 12.5px;
  font-weight: 650;
}

.msg-time {
  color: var(--text-dim);
  font-size: 10.5px;
  font-family: var(--mono);
}

.bubble {
  position: relative;
  background: var(--bubble-other);
  border: 1px solid var(--border);
  color: var(--text);
  word-break: break-word;
  white-space: pre-wrap;
  box-shadow: none;
  border-radius: 18px 18px 18px 6px;
  padding: 9px 13px;
  font-size: 14px;
  line-height: 1.5;
}

.cont .bubble {
  border-radius: 18px;
}

.cont.first-cont .bubble {
  border-top-left-radius: 6px;
}

.own .bubble {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  box-shadow: none;
  border-radius: 18px 18px 6px;
}

.own.cont .bubble {
  border-radius: 18px;
}

.app[data-personmode="tint"] .msg-row:not(.own) .bubble {
  background: color-mix(in srgb, var(--author) 14%, var(--bubble-other));
  border-color: color-mix(in srgb, var(--author) 30%, var(--border));
}

.app[data-personmode="bar"] .bubble {
  border-left-width: 1px;
  border-left-color: var(--border);
}

.app[data-personmode="bar"] .msg-row:not(.own) .bubble {
  border-left: 2.5px solid var(--author);
}

.bubble.deleted {
  color: var(--text-dim);
  background: var(--panel-2);
  display: flex;
  border-style: dashed;
  align-items:  center;
  gap: 7px;
  font-style: italic;
  border-left-color: var(--border) !important;
}

.edited {
  color: var(--text-dim);
  margin-left: 6px;
  font-size: 10.5px;
  font-style: italic;
}

.own .edited {
  color: #ffffffb3;
}

.reply-quote {
  display: flex;
  border-left: 2.5px solid var(--qauthor, var(--accent));
  background: var(--panel-2);
  cursor: pointer;
  transition: .15s var(--ease);
  border-radius: 7px;
  flex-direction: column;
  gap: 1px;
  max-width: 100%;
  margin-bottom: 6px;
  padding: 5px 9px;
}

.own .reply-quote {
  background: #ffffff29;
  border-left-color: #ffffffb3;
}

.reply-quote:hover {
  filter: brightness(1.08);
}

.rq-author {
  color: var(--qauthor, var(--accent));
  font-size: 11.5px;
  font-weight: 650;
}

.own .rq-author {
  color: #fff;
}

.rq-text {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
  font-size: 12px;
}

.own .rq-text {
  color: #ffffffd1;
}

.rq-media {
  display: flex;
  align-items:  center;
  gap: 5px;
}

.fwd-tag {
  display: flex;
  color: var(--text-dim);
  align-items:  center;
  gap: 5px;
  margin-bottom: 5px;
  font-size: 11px;
  font-style: italic;
}

.own .fwd-tag {
  color: #ffffffbf;
}

.msg-img {
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  display: block;
  border-radius: 12px;
  max-width: 320px;
  margin: 2px 0;
}

.msg-img img, .img-fill {
  display: block;
  width: 100%;
  height: auto;
}

.bubble.media {
  padding: 5px;
}

.bubble.media .bubble-text {
  padding: 4px 8px 6px;
}

.audio-bar {
  display: flex;
  align-items:  center;
  gap: 11px;
  min-width: 230px;
  padding: 3px 2px;
}

.audio-play {
  display: grid;
  cursor: pointer;
  background: color-mix(in srgb, var(--author, var(--accent)) 90%, transparent);
  color: #fff;
  transition: transform .12s var(--ease);
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  place-items:  center;
  width: 38px;
  height: 38px;
}

.own .audio-play {
  color: var(--accent);
  background: #ffffffeb;
}

.audio-play:active {
  transform: scale(.92);
}

.audio-wave {
  display: flex;
  flex: 1;
  align-items:  center;
  gap: 2.5px;
  height: 30px;
}

.audio-wave .bar {
  background: var(--author, var(--accent));
  opacity: .35;
  border-radius: 2px;
  flex: 1;
  min-width: 2px;
  max-width: 4px;
  transition: opacity .1s linear, height .1s linear;
}

.own .audio-wave .bar {
  background: #ffffffe6;
}

.audio-wave .bar.played {
  opacity: 1;
}

.audio-dur {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-muted);
  flex-shrink: 0;
}

.own .audio-dur {
  color: #ffffffd9;
}

.msg-tools {
  position: absolute;
  display: flex;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  pointer-events: none;
  transition: .14s var(--ease);
  z-index: 4;
  border-radius: 10px;
  gap: 1px;
  padding: 2px;
  top: -10px;
  transform: translateY(4px);
}

.msg-row:hover .msg-tools {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.own .msg-tools {
  right: 52px;
}

.msg-row:not(.own) .msg-tools {
  left: 52px;
}

.tool {
  display: grid;
  cursor: pointer;
  color: var(--text-muted);
  transition: .12s var(--ease);
  background: none;
  border: none;
  border-radius: 8px;
  place-items:  center;
  width: 30px;
  height: 30px;
}

.tool:hover {
  background: var(--hover);
  color: var(--text);
}

.tool.danger:hover {
  background: color-mix(in srgb, var(--danger) 16%, transparent);
  color: var(--danger);
}

.reacts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 6px 0;
}

.own .reacts {
  flex-direction: row-reverse;
}

.react {
  display: flex;
  background: var(--bubble-glass);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: .12s var(--ease);
  border-radius: 999px;
  align-items:  center;
  gap: 4px;
  padding: 1px 8px 1px 6px;
  font-size: 12px;
}

.react:hover {
  border-color: var(--border-strong);
}

.react.mine {
  background: var(--active);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.react .n {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-muted);
}

.composer-wrap {
  position: relative;
  z-index: 3;
  padding: 10px 24px max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 30%, transparent);
}

.composer {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  overflow: hidden;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
  max-width: 920px;
  margin: 0 auto;
}

.composer:focus-within {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.compose-ctx {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
  align-items:  center;
  gap: 10px;
  padding: 9px 14px;
}

.cc-bar {
  background: var(--accent);
  border-radius: 3px;
  align-self: stretch;
  width: 3px;
}

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

.cc-label {
  color: var(--accent);
  display: flex;
  align-items:  center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 650;
}

.cc-text {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.cc-thumb {
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
}

.cc-close {
  display: grid;
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 7px;
  flex-shrink: 0;
  place-items:  center;
  width: 26px;
  height: 26px;
}

.cc-close:hover {
  background: var(--hover);
  color: var(--text);
}

.compose-main {
  display: flex;
  align-items:  flex-end;
  gap: 6px;
  padding: 7px 9px 7px 12px;
}

.compose-input {
  outline: none;
  color: var(--text);
  resize: none;
  background: none;
  border: none;
  flex: 1;
  min-height: 22px;
  max-height: 140px;
  padding: 9px 4px;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.45;
}

.compose-input::placeholder {
  color: var(--text-dim);
}

.compose-btns {
  display: flex;
  flex-shrink: 0;
  align-items:  center;
  gap: 2px;
}

.emoji-picker-pop {
  position: absolute;
  z-index: 60;
  box-shadow: var(--shadow-lg, 0 12px 40px #0006);
  overflow: hidden;
  border-radius: 12px;
  bottom: calc(100% + 10px);
  right: 0;
}

.voice-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
  flex-wrap: wrap;
  align-items:  center;
  gap: 10px;
  padding: 8px 16px;
}

.voice-bar-live {
  display: inline-flex;
  color: var(--text);
  align-items:  center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 650;
}

.voice-dot {
  background: var(--success, #4ade80);
  box-shadow: 0 0 0 0 var(--success, #4ade80);
  animation: voicePulse 1.6s infinite;
  border-radius: 50%;
  width: 9px;
  height: 9px;
}

@keyframes voicePulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--success, #4ade80) 60%, transparent);
  }

  70% {
    box-shadow: 0 0 0 7px #0000;
  }

  100% {
    box-shadow: 0 0 #0000;
  }
}

.voice-bar-people {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  align-items:  center;
  gap: 6px;
  min-width: 0;
}

.voice-chip {
  background: var(--panel-2);
  color: var(--text-muted);
  white-space: nowrap;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
}

.voice-chip.you {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--text);
}

.send-btn {
  display: grid;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  box-shadow: none;
  transition: transform .12s var(--ease), opacity .12s;
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  place-items:  center;
  width: 40px;
  height: 40px;
}

.send-btn:hover {
  transform: scale(1.06);
}

.send-btn:active {
  transform: scale(.94);
}

.send-btn:disabled {
  opacity: .4;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.recording {
  display: flex;
  align-items:  center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
}

.rec-dot {
  background: var(--danger);
  animation: recpulse 1s infinite;
  border-radius: 50%;
  width: 11px;
  height: 11px;
}

@keyframes recpulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .3;
  }
}

.rec-time {
  font-family: var(--mono);
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
}

.rec-wave {
  display: flex;
  flex: 1;
  align-items:  center;
  gap: 3px;
  height: 28px;
}

.rec-wave .b {
  background: var(--accent);
  border-radius: 2px;
  flex: 1;
  max-width: 4px;
}

.rec-btn {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}

.rec-cancel {
  background: var(--hover);
  color: var(--text-muted);
}

.rec-send {
  background: var(--accent);
  color: #fff;
}

.app .members {
  background: var(--panel);
  border-left: 1px solid var(--border);
  display: flex;
  overflow: hidden;
  flex-direction: column;
  min-width: 0;
}

.mb-head {
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding: 16px 18px 12px;
  font-size: 11px;
  font-weight: 700;
}

.mb-head b {
  color: var(--success);
}

.mb-list {
  overflow-y: auto;
  flex: 1;
  padding: 10px;
}

.mb-group {
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-dim);
  padding: 8px 8px 4px;
  font-size: 10px;
  font-weight: 700;
}

.mb-item {
  display: flex;
  cursor: pointer;
  transition: .13s var(--ease);
  border-radius: 11px;
  align-items:  center;
  gap: 10px;
  padding: 7px 8px;
}

.mb-item:hover {
  background: var(--hover);
}

.mb-meta {
  flex: 1;
  min-width: 0;
}

.mb-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 550;
}

.mb-role {
  color: var(--text-dim);
  font-size: 11px;
}

.mb-item.off {
  opacity: .5;
}

.dot-on {
  position: absolute;
  background: var(--success);
  border: 2px solid var(--panel-solid);
  border-radius: 50%;
  width: 11px;
  height: 11px;
  bottom: -1px;
  right: -1px;
}

.backdrop {
  position: fixed;
  z-index: 200;
  display: grid;
  animation: fade .14s ease;
  background: #06061080;
  place-items:  center;
  padding: 20px;
  inset: 0;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.cs-modal {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  animation: pop .2s var(--ease);
  border-radius: 20px;
  width: 420px;
  max-width: 100%;
}

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

.modal-head {
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items:  center;
  gap: 10px;
  padding: 17px 20px 13px;
}

.modal-title {
  flex: 1;
  font-size: 16px;
  font-weight: 650;
}

.modal-body {
  overflow-y: auto;
  max-height: 50vh;
  padding: 12px;
}

.fwd-preview {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-left: 2.5px solid var(--qauthor, var(--accent));
  border-radius: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
}

.fwd-section {
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-dim);
  padding: 2px 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

.fwd-target {
  display: flex;
  cursor: pointer;
  transition: .13s var(--ease);
  text-align: left;
  color: var(--text);
  background: none;
  border: 1px solid #0000;
  border-radius: 12px;
  align-items:  center;
  gap: 11px;
  width: 100%;
  padding: 9px 11px;
  font-family: inherit;
}

.fwd-target:hover {
  background: var(--hover);
}

.fwd-target.sel {
  background: var(--active);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.fwd-check {
  color: var(--accent);
  opacity: 0;
  margin-left: auto;
}

.fwd-target.sel .fwd-check {
  opacity: 1;
}

.modal-foot {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 16px;
}

.cs-btn {
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text);
  transition: .13s var(--ease);
  background: none;
  border-radius: 11px;
  padding: 9px 17px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
}

.cs-btn:hover {
  background: var(--hover);
}

.cs-btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
  border-color: #0000;
}

.cs-btn.primary:disabled {
  opacity: .4;
  cursor: default;
}

.cs-btn.danger {
  background: var(--danger);
  color: #fff;
  border-color: #0000;
}

.cs-btn.danger:hover {
  background: color-mix(in srgb, var(--danger) 85%, #000);
}

.toast {
  position: fixed;
  z-index: 300;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-pop);
  display: flex;
  animation: toastin .25s var(--ease);
  border-radius: 13px;
  align-items:  center;
  gap: 9px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 550;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes toastin {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
}

.lightbox {
  position: fixed;
  z-index: 250;
  display: grid;
  cursor: zoom-out;
  animation: fade .16s ease;
  place-items:  center;
  padding: 40px;
  inset: 0;
}

.lightbox img {
  box-shadow: var(--shadow-pop);
  border-radius: 14px;
  max-width: 100%;
  max-height: 100%;
}

.scrim-m {
  display: none;
}

@media (max-width: 860px) {
  .app, .app.rail, .app.no-members, .app.rail.no-members {
    grid-template-columns: 1fr;
  }

  .app .members {
    display: none;
  }

  .app .sidebar {
    position: fixed;
    z-index: 120;
    width: var(--sidebar-w);
    transition: transform .28s var(--ease);
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-104%);
  }

  .app.nav-open .sidebar {
    box-shadow: var(--shadow-pop);
    transform: translateX(0);
  }

  .app.rail .sidebar {
    width: var(--sidebar-w);
  }

  .scrim-m {
    display: block;
    position: fixed;
    z-index: 110;
    animation: fade .15s ease;
    background: #04040c80;
    inset: 0;
  }

  .hamburger {
    display: grid;
  }

  .sb-collapse {
    display: none;
  }

  .feed, .composer {
    max-width: 100%;
  }

  .feed {
    padding: 16px 12px 8px;
  }

  .composer-wrap {
    padding: 8px 12px max(12px, env(safe-area-inset-bottom));
  }

  .chat-head {
    padding: 11px 13px;
  }

  .msg-col {
    max-width: 80%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app, .msg-tools, .composer, .send-btn, .room, .icon-btn {
    transition: none !important;
  }

  .rec-dot {
    animation: none;
  }
}

.inline-code {
  font-family: var(--mono);
  background: var(--scrim, #7f7f7f29);
  border: 1px solid var(--border);
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 5px;
  padding: 1px 5px;
  font-size: .86em;
}

.own .inline-code {
  background: #ffffff29;
  border-color: #ffffff38;
}

.code-block {
  position: relative;
  border: 1px solid var(--border);
  overflow-x: auto;
  white-space: pre;
  background: #0d1117;
  border-radius: 9px;
  max-width: 100%;
  margin: 6px 0;
  padding: 10px 12px;
}

.code-block code.hljs {
  font-family: var(--mono);
  color: #c9d1d9;
  display: block;
  white-space: pre;
  background: none;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.55;
}

.code-lang {
  position: absolute;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-size: 9.5px;
  font-family: var(--mono);
  user-select: none;
  background: #0000004d;
  border-radius: 5px;
  padding: 1px 6px;
  top: 5px;
  right: 8px;
}

.hljs-comment, .hljs-quote {
  color: #8b949e;
  font-style: italic;
}

.hljs-keyword, .hljs-selector-tag, .hljs-type, .hljs-literal {
  color: #ff7b72;
}

.hljs-string, .hljs-attr, .hljs-template-tag, .hljs-addition {
  color: #a5d6ff;
}

.hljs-number, .hljs-symbol, .hljs-meta {
  color: #79c0ff;
}

.hljs-title, .hljs-name, .hljs-section, .hljs-title.function_ {
  color: #d2a8ff;
}

.hljs-built_in, .hljs-class .hljs-title, .hljs-title.class_ {
  color: #ffa657;
}

.hljs-tag {
  color: #7ee787;
}

.hljs-attribute, .hljs-variable, .hljs-property {
  color: #79c0ff;
}

.hljs-regexp, .hljs-link {
  color: #a5d6ff;
}

.hljs-deletion {
  color: #ffa198;
}

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

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

.emoji-pop {
  position: absolute;
  display: flex;
  z-index: 70;
  background: var(--panel, #161b22);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pop, 0 10px 30px #00000073);
  border-radius: 11px;
  gap: 2px;
  padding: 5px 6px;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
}

.emoji-opt {
  cursor: pointer;
  transition: transform .12s var(--ease), background .12s var(--ease);
  background: none;
  border: none;
  border-radius: 8px;
  padding: 4px;
  font-size: 18px;
  line-height: 1;
}

.emoji-opt:hover {
  background: var(--hover);
  transform: scale(1.25);
}

.edited-btn {
  text-decoration: none;
}

.edited-btn[data-tip]:hover {
  text-decoration: underline;
}

.edit-history-pop {
  position: absolute;
  z-index: 70;
  text-align: left;
  background: var(--panel, #161b22);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pop, 0 10px 30px #00000073);
  overflow-y: auto;
  border-radius: 10px;
  min-width: 220px;
  max-width: 320px;
  max-height: 300px;
  padding: 9px 11px;
  bottom: calc(100% + 6px);
  left: 0;
}

.ehp-title {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
}

.ehp-row {
  border-top: 1px solid var(--border);
  padding: 5px 0;
}

.ehp-row:first-of-type {
  border-top: none;
}

.ehp-time {
  color: var(--text-dim);
  font-size: 10.5px;
  font-family: var(--mono);
  margin-bottom: 2px;
}

.ehp-content {
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
}

.mb-invite-btn {
  display: flex;
  cursor: pointer;
  background: var(--panel-2);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  transition: .14s var(--ease);
  border-radius: 10px;
  align-items:  center;
  gap: 7px;
  width: calc(100% - 24px);
  margin: 6px 12px 4px;
  padding: 8px 11px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 550;
}

.mb-invite-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--hover);
}

.mb-invite {
  margin: 6px 12px 4px;
}

.mb-invite-row {
  display: flex;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 10px;
  align-items:  center;
  gap: 7px;
  padding: 6px 9px;
}

.mb-invite-row input {
  outline: none;
  color: var(--text);
  background: none;
  border: none;
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 13px;
}

.mb-invite-results {
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  gap: 2px;
  max-height: 260px;
  margin-top: 6px;
}

.mb-invite-empty {
  color: var(--text-dim);
  padding: 8px 4px;
  font-size: 12px;
}

.call-menu {
  position: absolute;
  z-index: 80;
  background: var(--panel, #161b22);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pop, 0 10px 30px #00000073);
  border-radius: 11px;
  min-width: 180px;
  padding: 6px;
  top: calc(100% + 6px);
  right: 0;
}

.call-menu-title {
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--text-dim);
  padding: 4px 8px 6px;
  font-size: 10.5px;
}

.call-menu-item {
  display: block;
  text-align: left;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  width: 100%;
  padding: 8px 10px;
  font-size: 13.5px;
}

.call-menu-item:hover {
  background: var(--hover);
}

.call-overlay {
  position: fixed;
  z-index: 400;
  display: flex;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fade .18s ease;
  background: #06080eeb;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  gap: 22px;
  inset: 0;
}

.call-overlay.video {
  background: #05060a;
}

.call-stage {
  position: absolute;
  inset: 0;
}

.call-video {
  object-fit: cover;
  background: #05060a;
  width: 100%;
  height: 100%;
}

.call-video.audio-only {
  display: none;
}

.call-video.mirror {
  transform: scaleX(-1);
}

.call-pip {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #05060a;
  border-radius: 14px;
  width: 180px;
  height: 240px;
  bottom: 110px;
  right: 22px;
  box-shadow: 0 10px 30px #00000080;
}

.call-pip .call-video {
  border-radius: 14px;
}

.call-center {
  position: relative;
  z-index: 1;
  display: flex;
  color: #fff;
  flex-direction: column;
  align-items:  center;
  gap: 12px;
}

.call-name {
  font-size: 22px;
  font-weight: 650;
}

.call-status {
  color: #ffffffa6;
  font-size: 14px;
  font-family: var(--mono);
}

.call-dim {
  display: none;
}

.call-controls {
  position: absolute;
  display: flex;
  z-index: 2;
  gap: 16px;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
}

.call-btn {
  display: grid;
  cursor: pointer;
  color: #fff;
  transition: .14s var(--ease);
  background: #ffffff24;
  border: 1px solid #ffffff2e;
  border-radius: 50%;
  place-items:  center;
  width: 56px;
  height: 56px;
}

.call-btn:hover {
  background: #ffffff3d;
}

.call-btn.on {
  color: #11151c;
  background: #fff;
}

.call-btn.accept {
  background: var(--success, #28c76f);
  border-color: #0000;
}

.call-btn.accept:hover {
  filter: brightness(1.1);
}

.call-btn.decline {
  background: var(--danger, #f55);
  border-color: #0000;
}

.call-btn.decline:hover {
  filter: brightness(1.1);
}

.call-btn.decline .icon, .call-btn.decline svg {
  transform: rotate(135deg);
}

.call-ring {
  position: fixed;
  z-index: 400;
  display: grid;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fade .18s ease;
  background: #06080ed1;
  place-items:  center;
  inset: 0;
}

.call-ring-card {
  display: flex;
  background: var(--panel, #161b22);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pop, 0 20px 60px #0009);
  border-radius: 20px;
  flex-direction: column;
  align-items:  center;
  gap: 12px;
  padding: 32px 40px;
}

.call-ring-name {
  color: var(--text);
  font-size: 20px;
  font-weight: 650;
}

.call-ring-sub {
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--mono);
}

.call-ring-actions {
  display: flex;
  gap: 28px;
  margin-top: 10px;
}

.call-ring-actions .call-btn.accept svg {
  transform: none;
}
