/* Ember supports plain CSS out of the box. More info: https://cli.emberjs.com/release/advanced-use/stylesheets/ */
/* Geist Font Family - Vercel's official font */
@import "https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&display=swap";
@import "https://fonts.googleapis.com/css2?family=Geist+Mono:wght@300;400;500;600;700&display=swap";
:root {
  --font-geist:
    "Geist", -apple-system, blinkmacsystemfont, "Segoe UI", roboto,
    "Helvetica Neue", arial, sans-serif;
  --font-geist-mono:
    "Geist Mono", "SF Mono", monaco, "Cascadia Code", "Roboto Mono", consolas,
    "Courier New", monospace;
  --font-sans: var(--font-geist);
  --font-mono: var(--font-geist-mono);
  --default-font-family: var(--font-sans);
  --default-mono-font-family: var(--font-mono);
  --color-red-50: oklch(97.1% 0.013 17.38deg);
  --color-red-100: oklch(93.6% 0.032 17.717deg);
  --color-red-200: oklch(88.5% 0.062 18.334deg);
  --color-red-300: oklch(80.8% 0.114 19.571deg);
  --color-red-400: oklch(70.4% 0.191 22.216deg);
  --color-red-500: oklch(63.7% 0.237 25.331deg);
  --color-red-600: oklch(57.7% 0.245 27.325deg);
  --color-red-700: oklch(50.5% 0.213 27.518deg);
  --color-red-800: oklch(44.4% 0.177 26.899deg);
  --color-red-950: oklch(25.8% 0.092 26.042deg);
  --color-yellow-200: oklch(94.5% 0.129 101.54deg);
  --color-yellow-600: oklch(68.1% 0.162 75.834deg);
  --color-green-100: oklch(96.2% 0.044 156.743deg);
  --color-green-300: oklch(87.1% 0.15 154.449deg);
  --color-green-500: oklch(72.3% 0.219 149.579deg);
  --color-green-600: oklch(62.7% 0.194 149.214deg);
  --color-green-700: oklch(52.7% 0.154 150.069deg);
  --color-emerald-500: oklch(69.6% 0.17 162.48deg);
  --color-sky-400: oklch(74.6% 0.16 232.661deg);
  --color-blue-50: oklch(97% 0.014 254.604deg);
  --color-blue-200: oklch(88.2% 0.059 254.128deg);
  --color-blue-300: oklch(80.9% 0.105 251.813deg);
  --color-blue-400: oklch(70.7% 0.165 254.624deg);
  --color-blue-500: oklch(62.3% 0.214 259.815deg);
  --color-blue-600: oklch(54.6% 0.245 262.881deg);
  --color-blue-user-bubble: rgb(0 108 255);
  --color-indigo-900: oklch(35.9% 0.144 278.697deg);
  --color-purple-900: oklch(38.1% 0.176 304.987deg);
  --color-slate-900: oklch(20.8% 0.042 265.755deg);
  --color-gray-200: oklch(92.8% 0.006 264.531deg);
  --color-gray-500: oklch(55.1% 0.027 264.364deg);
  --color-gray-600: oklch(44.6% 0.03 256.802deg);
  --color-gray-800: oklch(27.8% 0.033 256.848deg);
  --color-zinc-50: oklch(98.5% 0 0deg);
  --color-zinc-100: oklch(96.7% 0.001 286.375deg);
  --color-zinc-200: oklch(92% 0.004 286.32deg);
  --color-zinc-300: oklch(84% 0.008 286.2deg);
  --color-zinc-400: oklch(70.5% 0.015 286.067deg);
  --color-zinc-500: oklch(55.2% 0.016 285.938deg);
  --color-zinc-600: oklch(44.2% 0.017 285.786deg);
  --color-zinc-700: oklch(37% 0.013 285.805deg);
  --color-zinc-800: oklch(27.4% 0.006 286.033deg);
  --color-zinc-900: oklch(21% 0.006 285.885deg);
  --color-zinc-950: oklch(14.1% 0.005 285.823deg);
  --color-black: #000;
  --color-white: #fff;
  --spacing: 0.25rem;
  --space-0: 0;
  --space-1: calc(var(--spacing) * 1);
  --space-2: calc(var(--spacing) * 2);
  --space-3: calc(var(--spacing) * 3);
  --space-4: calc(var(--spacing) * 4);
  --space-5: calc(var(--spacing) * 5);
  --space-6: calc(var(--spacing) * 6);
  --space-8: calc(var(--spacing) * 8);
  --space-10: calc(var(--spacing) * 10);
  --space-12: calc(var(--spacing) * 12);
  --space-16: calc(var(--spacing) * 16);
  --space-20: calc(var(--spacing) * 20);
  --container-sm: 24rem;
  --container-md: 28rem;
  --container-lg: 32rem;
  --container-3xl: 48rem;
  --container-4xl: 56rem;
  --text-xs: 0.75rem;
  --text-xs-line-height: calc(1 / 0.75);
  --text-sm: 0.875rem;
  --text-sm-line-height: calc(1.25 / 0.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-5xl: 3rem;
  --text-5xl-line-height: 1;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --tracking-tight: -0.025em;
  --tracking-wide: 0.025em;
  --tracking-widest: 0.1em;
  --leading-tight: 1.25;
  --leading-relaxed: 1.625;
  --font-light: var(--font-weight-light);
  --font-normal: var(--font-weight-normal);
  --font-medium: var(--font-weight-medium);
  --font-semibold: var(--font-weight-semibold);
  --font-bold: 700;
  --leading-none: 1;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-loose: 2;
  --radius: 0.5rem;
  --radius-none: 0;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
  --radius-base: var(--radius-md);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --default-transition-duration: 0.15s;
  --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  --animate-spin: spin 1s linear infinite;
  --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  --transition-base: all var(--default-transition-duration)
    var(--default-transition-timing-function);
  --transition-colors: color var(--default-transition-duration)
    var(--default-transition-timing-function);
  --transition-transform: transform var(--default-transition-duration)
    var(--default-transition-timing-function);
  --transition-fast: all 0.1s var(--default-transition-timing-function);
  --transition-slow: all 0.3s var(--default-transition-timing-function);
  --blur-sm: 8px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 8%);
  --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 12%), 0 1px 2px -1px rgb(0 0 0 / 12%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 15%), 0 2px 4px -2px rgb(0 0 0 / 15%);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 18%), 0 4px 6px -4px rgb(0 0 0 / 18%);
  --shadow-xl:
    0 20px 25px -5px rgb(0 0 0 / 20%), 0 8px 10px -6px rgb(0 0 0 / 20%);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 30%);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 8%);
  --background: var(--color-white);
  --foreground: var(--color-zinc-950);
  --card: var(--color-white);
  --card-foreground: var(--color-zinc-950);
  --popover: var(--color-white);
  --popover-foreground: var(--color-zinc-950);
  --primary: var(--color-zinc-900);
  --primary-foreground: var(--color-zinc-50);
  --secondary: var(--color-zinc-100);
  --secondary-foreground: var(--color-zinc-900);
  --muted: var(--color-zinc-100);
  --muted-foreground: var(--color-zinc-500);
  --accent: var(--color-zinc-100);
  --accent-foreground: var(--color-zinc-900);
  --destructive: var(--color-red-600);
  --destructive-foreground: var(--color-zinc-50);
  --border: var(--color-zinc-200);
  --input: var(--color-zinc-200);
  --ring: var(--color-zinc-950);
  --chart-1: #2662d9;
  --chart-2: #2eb88a;
  --chart-3: #e88c30;
  --chart-4: #af57db;
  --chart-5: #e23670;
  --sidebar-background: var(--color-zinc-50);
  --sidebar-foreground: var(--color-zinc-900);
  --sidebar-primary: #1d4ed8;
  --sidebar-primary-foreground: var(--color-white);
  --sidebar-accent: var(--color-zinc-100);
  --sidebar-accent-foreground: var(--color-zinc-900);
  --sidebar-border: var(--color-zinc-200);
  --sidebar-ring: #3b82f6;
  --sidebar: var(--color-zinc-50);
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-text-primary: var(--foreground);
  --color-text-secondary: var(--muted-foreground);
  --color-text-tertiary: var(--color-zinc-400);
  --color-text-disabled: var(--color-zinc-400);
  --color-text-placeholder: var(--color-zinc-400);
  --color-text-on-brand: var(--primary-foreground);
  --color-text-inverted: var(--color-white);
  --color-surface: var(--color-zinc-50);
  --color-surface-secondary: var(--color-zinc-100);
  --color-surface-tertiary: var(--color-zinc-200);
  --color-border-primary: var(--border);
  --color-border-secondary: var(--color-zinc-100);
  --color-border-tertiary: var(--color-zinc-50);
  --color-border-hover: var(--color-zinc-300);
  --color-input-background: var(--background);
  --color-input-background-hover: var(--color-zinc-50);
  --color-input-border: var(--input);
  --color-input-border-hover: var(--color-zinc-300);
  --color-input-border-focus: var(--ring);
  --color-interactive: var(--primary);
  --color-interactive-hover: var(--color-zinc-800);
  --color-interactive-active: var(--color-zinc-950);
  --color-ui-subtle: var(--muted);
  --color-ui-hover: var(--color-zinc-200);
  --color-ui-active: var(--accent);
  --color-ui-focus-ring: var(--ring);
  --color-ui-accent: var(--accent);
  --color-focus-ring: var(--ring);
  --color-selection: var(--color-zinc-200);
  --color-overlay-backdrop: rgb(0 0 0 / 50%);
  --color-code-background: var(
    --color-zinc-200
  );
  --color-code-border: var(--color-zinc-300);
  --color-code-text: var(
    --color-zinc-900
  );
  --color-bubble-user: var(--color-blue-user-bubble);
  --color-bubble-user-border: var(--color-blue-600);
  --color-badge-text: var(--foreground);
  --color-badge-background: var(--muted);
  --color-badge-border: var(--border);
  --color-slider-track: var(--color-zinc-300);
  --color-slider-thumb: var(--color-zinc-600);
  --color-slider-track-enabled: var(--color-zinc-700);
  --color-slider-thumb-enabled: var(--color-white);
  --color-heroku-logo: #7526e3;
  --color-heroku-logo-hover: #d7bff2;
  --color-brand-50: oklch(97.5% 0.025 295deg);
  --color-brand-100: oklch(94% 0.05 295deg);
  --color-brand-200: oklch(88% 0.08 295deg);
  --color-brand-300: oklch(78% 0.12 295deg);
  --color-brand-400: oklch(68% 0.16 295deg);
  --color-brand-500: oklch(58% 0.19 295deg);
  --color-brand-600: oklch(48% 0.17 295deg);
  --color-brand-700: oklch(40% 0.14 295deg);
  --color-brand-800: oklch(32% 0.11 295deg);
  --color-brand-900: oklch(25% 0.08 295deg);
  --color-error: var(--destructive);
  --color-error-secondary: var(--color-red-700);
  --color-error-surface: var(--color-red-50);
  --color-error-surface-secondary: var(--color-red-100);
  --color-error-border: var(--color-red-200);
  --color-error-text: var(--color-red-800);
  --color-warning: var(--color-yellow-600);
  --color-warning-secondary: #d97706;
  --color-warning-surface: var(--color-yellow-200);
  --breakpoint-toast-mobile: 600px;
}

[data-theme=dark] {
  --background: #09090b;
  --foreground: #fafafa;
  --card: #09090b;
  --card-foreground: #fafafa;
  --popover: #09090b;
  --popover-foreground: #fafafa;
  --primary: #fafafa;
  --primary-foreground: #18181b;
  --secondary: #27272a;
  --secondary-foreground: #fafafa;
  --muted: #27272a;
  --muted-foreground: #a1a1aa;
  --accent: #27272a;
  --accent-foreground: #fafafa;
  --destructive: #7f1d1d;
  --destructive-foreground: #fafafa;
  --border: #27272a;
  --input: #27272a;
  --ring: #d4d4d8;
  --chart-1: #2662d9;
  --chart-2: #2eb88a;
  --chart-3: #e88c30;
  --chart-4: #af57db;
  --chart-5: #e23670;
  --sidebar-background: #18181b;
  --sidebar-foreground: #f4f4f5;
  --sidebar-primary: #1d4ed8;
  --sidebar-primary-foreground: #fff;
  --sidebar-accent: #27272a;
  --sidebar-accent-foreground: #f4f4f5;
  --sidebar-border: #27272a;
  --sidebar-ring: #3b82f6;
  --sidebar: #18181b;
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-text-primary: var(--foreground);
  --color-text-secondary: var(--muted-foreground);
  --color-text-tertiary: var(--color-zinc-500);
  --color-text-disabled: var(--color-zinc-600);
  --color-text-placeholder: var(--color-zinc-600);
  --color-text-on-brand: var(--primary-foreground);
  --color-text-inverted: var(--foreground);
  --color-surface: #18181b;
  --color-surface-secondary: #27272a;
  --color-surface-tertiary: #3f3f46;
  --color-border-primary: var(--border);
  --color-border-secondary: #3f3f46;
  --color-border-tertiary: #52525b;
  --color-border-hover: #52525b;
  --color-input-background: #18181b;
  --color-input-background-hover: #27272a;
  --color-input-border: var(--input);
  --color-input-border-hover: #3f3f46;
  --color-input-border-focus: var(--ring);
  --color-interactive: var(--primary);
  --color-interactive-hover: var(--color-zinc-200);
  --color-interactive-active: var(--color-white);
  --color-ui-subtle: var(--muted);
  --color-ui-hover: #3f3f46;
  --color-ui-active: var(--accent);
  --color-ui-focus-ring: var(--ring);
  --color-ui-accent: var(--accent);
  --color-focus-ring: var(--ring);
  --color-selection: #3f3f46;
  --color-overlay-backdrop: rgb(0 0 0 / 50%);
  --color-code-background: var(
    --color-zinc-800
  );
  --color-code-border: var(--color-zinc-700);
  --color-code-text: var(
    --color-zinc-100
  );
  --color-bubble-user: var(--color-blue-user-bubble);
  --color-bubble-user-border: var(--color-blue-600);
  --color-badge-text: var(--foreground);
  --color-badge-background: var(--muted);
  --color-badge-border: var(--border);
  --color-slider-track: var(--color-zinc-600);
  --color-slider-thumb: var(--color-zinc-200);
  --color-slider-track-enabled: var(--color-zinc-400);
  --color-slider-thumb-enabled: #18181b;
  --color-heroku-logo: #9050e9;
  --color-heroku-logo-hover: #c29ef1;
  --color-brand-50: oklch(25% 0.08 295deg);
  --color-brand-100: oklch(32% 0.11 295deg);
  --color-brand-200: oklch(40% 0.14 295deg);
  --color-brand-300: oklch(48% 0.17 295deg);
  --color-brand-400: oklch(58% 0.19 295deg);
  --color-brand-500: oklch(65% 0.2 295deg);
  --color-brand-600: oklch(72% 0.18 295deg);
  --color-brand-700: oklch(78% 0.15 295deg);
  --color-brand-800: oklch(85% 0.12 295deg);
  --color-brand-900: oklch(92% 0.08 295deg);
  --color-error: var(--color-red-400);
  --color-error-secondary: var(--color-red-500);
  --color-error-surface: #1f1f23;
  --color-error-surface-secondary: #2d1b1b;
  --color-error-border: #7f1d1d;
  --color-error-text: var(--color-red-300);
  --color-warning: #f59e0b;
  --color-warning-secondary: #fbbf24;
  --color-warning-surface: #422006;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

/* Global Font Stack - Geist with system fallbacks */
* {
  font-family: var(--default-font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizelegibility;
}

/* Base Typography */
body {
  font-family: var(--default-font-family);
  font-weight: var(--font-weight-normal);
  font-size: var(--text-base);
  line-height: var(--text-base-line-height);
  letter-spacing: var(--tracking-tight);
  color: var(--color-foreground);
  background-color: var(--color-background);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--default-font-family);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--color-foreground);
}

/* Code elements */
code,
pre,
kbd,
samp {
  font-family: var(--default-mono-font-family);
}

/* Buttons and UI Elements */
button,
input,
textarea,
select {
  font-family: inherit;
  letter-spacing: inherit;
}

.btn-icon, .btn-soft, .btn-outline, .btn-ghost, .btn-secondary, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  line-height: var(--leading-none);
  position: relative;
  overflow: hidden;
  background: var(--color-background);
  color: var(--color-text-primary);
  border-radius: var(--radius-xl);
  white-space: nowrap;
  gap: 0.5rem;
}
.btn-icon:disabled, .btn-soft:disabled, .btn-outline:disabled, .btn-ghost:disabled, .btn-secondary:disabled, .btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}
.btn-icon:focus-visible, .btn-soft:focus-visible, .btn-outline:focus-visible, .btn-ghost:focus-visible, .btn-secondary:focus-visible, .btn-primary:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}
.btn-icon svg, .btn-soft svg, .btn-outline svg, .btn-ghost svg, .btn-secondary svg, .btn-primary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--color-interactive);
  color: var(--color-text-on-brand);
  border-color: var(--color-interactive);
}
.btn-primary:hover:not(:disabled) {
  background: var(--color-interactive-hover);
  border-color: var(--color-interactive-hover);
}
.btn-primary:active:not(:disabled) {
  background: var(--color-interactive-active);
  border-color: var(--color-interactive-active);
}

.btn-secondary {
  background: var(--color-background);
  color: var(--color-text-primary);
  border-color: var(--color-border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--color-ui-subtle);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}
.btn-secondary:active:not(:disabled) {
  background: var(--color-ui-hover);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}
.btn-secondary:disabled {
  opacity: 1;
  color: var(--color-text-secondary);
  background: var(--color-ui-subtle);
  border-color: var(--color-border-secondary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: none;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--color-ui-subtle);
  color: var(--color-text-primary);
  border-color: var(--color-border-primary);
}
.btn-ghost:active:not(:disabled) {
  background: var(--color-ui-hover);
  color: var(--color-text-primary);
  border-color: var(--color-border-hover);
}

.btn-outline {
  background: var(--color-background);
  color: var(--color-text-primary);
  border-color: var(--color-border);
}
.btn-outline:hover:not(:disabled) {
  background: var(--color-ui-subtle);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}
.btn-outline:active:not(:disabled) {
  background: var(--color-ui-hover);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}

.btn-soft {
  background: var(--color-ui-subtle);
  color: var(--color-text-primary);
  border-color: transparent;
}
.btn-soft:hover:not(:disabled) {
  background: var(--color-ui-hover);
  color: var(--color-text-primary);
}
.btn-soft:active:not(:disabled) {
  background: var(--color-ui-hover);
  color: var(--color-text-primary);
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--color-border-primary);
  background: var(--color-background);
  color: var(--color-border-primary);
  border-radius: var(--radius-xl);
}
.btn-icon:hover:not(:disabled) {
  background: var(--color-ui-subtle);
  border-color: var(--color-border-hover);
  color: var(--color-border-hover);
}
.btn-icon:active:not(:disabled) {
  background: var(--color-ui-hover);
  border-color: var(--color-border-hover);
  color: var(--color-border-hover);
}
.btn-icon.btn-icon-sm {
  width: 28px;
  height: 28px;
}
.btn-icon.btn-icon-sm svg {
  width: 14px;
  height: 14px;
}
.btn-icon.btn-icon-lg {
  width: 36px;
  height: 36px;
}
.btn-icon.btn-icon-lg svg {
  width: 18px;
  height: 18px;
}

.btn-sm {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
}

.btn-md {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-xl);
  font-size: var(--text-base);
}

.number-input-widget, .select-widget, .textarea-widget, .input-widget {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-lg);
  background: var(--color-input-background);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  font-family: inherit;
  line-height: var(--leading-normal);
  transition: all 0.2s ease;
}
.number-input-widget::placeholder, .select-widget::placeholder, .textarea-widget::placeholder, .input-widget::placeholder {
  color: var(--color-text-placeholder);
  font-weight: 400;
}
.number-input-widget:focus, .select-widget:focus, .textarea-widget:focus, .input-widget:focus {
  outline: none;
  border-color: var(--color-interactive);
  box-shadow: 0 0 0 3px var(--color-ui-focus-ring);
  background: var(--color-input-background-hover);
}
.number-input-widget:hover:not(:focus), .select-widget:hover:not(:focus), .textarea-widget:hover:not(:focus), .input-widget:hover:not(:focus) {
  border-color: var(--color-input-border-hover);
}
.number-input-widget:disabled, .select-widget:disabled, .textarea-widget:disabled, .input-widget:disabled {
  background: var(--color-surface-secondary);
  color: var(--color-text-disabled);
  cursor: not-allowed;
}

.textarea-widget {
  resize: vertical;
  min-height: 100px;
}

.select-widget {
  cursor: pointer;
}

.number-input-widget {
  text-align: right;
}
.number-input-widget::-webkit-outer-spin-button, .number-input-widget::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}
.number-input-widget[type=number] {
  appearance: textfield;
}

.slider-widget {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-sm);
  background: var(--color-slider-track);
  outline: none;
  cursor: pointer;
  margin: 0.75rem 0;
}
.slider-widget::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-slider-thumb);
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.slider-widget::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.slider-widget::-webkit-slider-thumb:active {
  transform: scale(1.05);
  box-shadow: 0 0 0 1px var(--color-focus-ring), 0 0 0 3px var(--color-ui-focus-ring);
}
.slider-widget::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-slider-thumb);
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.slider-widget::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.slider-widget::-moz-range-thumb:active {
  transform: scale(1.05);
  box-shadow: 0 0 0 1px var(--color-focus-ring), 0 0 0 3px var(--color-ui-focus-ring);
}
.slider-widget:focus {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.toggle-switch-widget {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.toggle-switch-widget .switch-track {
  position: absolute;
  inset: 0;
  background: var(--color-slider-track);
  border-radius: var(--radius-xl);
  transition: background 0.2s ease;
}
.toggle-switch-widget .switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--color-slider-thumb);
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.toggle-switch-widget:hover .switch-track {
  background: var(--color-slider-track);
}
.toggle-switch-widget.active .switch-track {
  background: var(--color-slider-track);
}
.toggle-switch-widget.active .switch-thumb {
  transform: translateX(20px);
}
.toggle-switch-widget:focus {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--color-overlay-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-backdrop--visible {
  opacity: 1;
  visibility: visible;
}
.modal-backdrop--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-container {
  background: var(--color-background);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 800px;
  width: 90vw;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-container--visible {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.modal-container--hidden {
  transform: scale(0.95) translateY(20px);
  opacity: 0;
}
@media (width <= 768px) {
  .modal-container {
    max-width: 100%;
    max-height: 95vh;
    margin: var(--space-2);
    border-radius: var(--radius-xl);
  }
}

.modal-header {
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--color-border-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: var(--color-surface);
}
@media (width <= 768px) {
  .modal-header {
    padding: var(--space-4) var(--space-6);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

.modal-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.modal-title .icon {
  color: var(--color-brand-600);
  font-size: var(--text-2xl);
}
[data-theme=dark] .modal-title .icon {
  color: #d7bff2;
}
@media (prefers-color-scheme: dark) {
  [data-theme=system] .modal-title .icon {
    color: #d7bff2;
  }
}

.modal-close {
  background: var(--color-background);
  border: none;
  padding: var(--space-2);
  border-radius: var(--radius-xl);
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: var(--color-ui-subtle);
  color: var(--color-text-primary);
}
.modal-close:focus {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}
.modal-close .icon {
  font-size: var(--text-xl);
}
@media (width <= 768px) {
  .modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-6);
  }
}

.modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--space-8) var(--space-6);
  min-height: 0;
  background: var(--color-background);
}
@media (width <= 768px) {
  .modal-content {
    padding: 0 var(--space-6) var(--space-4);
  }
}

.modal-footer {
  padding: var(--space-6) var(--space-8);
  border-top: 1px solid var(--color-border-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: var(--color-surface);
}
@media (width <= 768px) {
  .modal-footer {
    padding: var(--space-4) var(--space-6);
    flex-direction: column;
    gap: var(--space-3);
    align-items: stretch;
  }
}

.dropdown-menu {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  min-width: 200px;
  z-index: 1000;
  overflow: hidden;
}

.card-elevated {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.card-elevated {
  box-shadow: var(--shadow-base);
}
.card-elevated:hover {
  box-shadow: var(--shadow-md);
}

.card-padding {
  padding: var(--space-6);
}

.card-padding-sm {
  padding: var(--space-4);
}

.card-base {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.badge-category, .badge-info, .badge-warning, .badge-error, .badge-success, .badge-count, .badge-optional, .badge-widget {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: var(--radius-base);
  border: 1px solid;
  white-space: nowrap;
}

.badge-optional {
  color: var(--color-text-tertiary);
  background: var(--color-ui-subtle);
  border-color: var(--color-border-secondary);
}

.badge-count {
  background: var(--color-interactive);
  color: var(--color-text-on-brand);
  border-color: var(--color-interactive);
  min-width: 16px;
  height: 16px;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.badge-success {
  background: var(--color-success-50);
  color: var(--color-success-600);
  border-color: var(--color-success-200);
}

.badge-error {
  background: var(--color-error-50);
  color: var(--color-error-600);
  border-color: var(--color-error-200);
}

.badge-warning {
  background: var(--color-warning-50);
  color: var(--color-warning-600);
  border-color: var(--color-warning-200);
}

.badge-info {
  background: var(--color-info-50);
  color: var(--color-info-600);
  border-color: var(--color-info-200);
}

.badge-category {
  background: var(--color-ui-subtle);
  color: var(--color-text-secondary);
  border-color: var(--color-border-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.tools-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-brand-700);
  color: white;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  line-height: 1;
}
@media (width <= 768px) {
  .tools-badge {
    top: -6px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    font-size: 0.55rem;
  }
}

.scrollbar-widget {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-secondary) transparent;
}
.scrollbar-widget::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.scrollbar-widget::-webkit-scrollbar-track {
  background: transparent;
}
.scrollbar-widget::-webkit-scrollbar-thumb {
  background: var(--color-border-secondary);
  border-radius: var(--radius-base);
}
.scrollbar-widget::-webkit-scrollbar-thumb:hover {
  background: var(--color-border-hover);
}
.scrollbar-widget::-webkit-scrollbar-corner {
  background: transparent;
}

html,
body,
input,
textarea,
select,
button,
a {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.message-content,
.conversation-token-usage,
.api-parameters-panel,
.message,
.token-breakdown,
.param-value,
.param-slider,
.optional-badge,
.collapsible-content,
.theme-toggle-button,
.input-container,
code,
pre {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.heroku-header,
.chat-area,
.left-panel {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

@keyframes theme-fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.theme-transition-container {
  animation: theme-fade 0.3s ease-out;
}

@media (prefers-reduced-motion) {
  *,
  *::before,
  *::after {
    transition-duration: 0.1s !important;
    animation-duration: 0.1s !important;
  }
}
.app-layout {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  margin: 0;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
}

.heroku-chat-interface {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--color-background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  min-width: 0;
  transition: width 0.3s ease;
  background: var(--color-surface);
}

.app-layout.sidebar-collapsed .heroku-chat-interface .left-panel {
  display: none;
}
.app-layout.sidebar-collapsed .heroku-chat-interface .right-panel {
  width: 100%;
}

.left-panel {
  width: 320px;
  height: 100vh;
  flex-shrink: 0;
  background: var(--color-background);
  border-right: none;
  overflow: hidden;
  transition: width 0.3s ease, margin-left 0.3s ease;
  display: flex;
  flex-direction: column;
}

.left-panel-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem;
  background: transparent;
  flex-shrink: 0;
}

.left-panel-header .panel-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.left-panel-actions {
  padding: 0 1rem 1rem;
  padding-top: 2.5rem;
  flex-shrink: 0;
}

.new-chat-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border-secondary);
  background: var(--color-background);
  color: var(--color-foreground);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.new-chat-button:hover {
  background: var(--color-muted);
  color: var(--color-foreground);
  border-color: var(--color-border-hover);
}
.new-chat-button:active {
  background: var(--color-ui-hover);
  color: var(--color-foreground);
  border-color: var(--color-border-hover);
}
.new-chat-button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: currentcolor;
}

.heroku-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 4.5rem;
  min-height: 4.5rem;
  background: var(--color-background);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.heroku-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 3rem;
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-border-primary);
}
.sidebar-toggle:hover {
  background: var(--color-ui-subtle);
  border-color: var(--color-border-hover);
  color: var(--color-border-hover);
}
.sidebar-toggle:active {
  background: var(--color-ui-hover);
  border-color: var(--color-border-hover);
  color: var(--color-border-hover);
}

.sidebar-toggle-fixed {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-border-primary);
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
}
.sidebar-toggle-fixed:hover {
  background: var(--color-ui-subtle);
  border-color: var(--color-border-hover);
  color: var(--color-border-hover);
}
.sidebar-toggle-fixed:active {
  background: var(--color-ui-hover);
  border-color: var(--color-border-hover);
  color: var(--color-border-hover);
}
.sidebar-toggle-fixed .malibu-direction-left-28 {
  font-size: 1.25rem;
}

.heroku-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.heroku-logo {
  color: var(--color-interactive);
}

.header-heroku-logo {
  font-size: 3rem;
  color: var(--color-heroku-logo);
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  line-height: 1;
}
[data-theme=dark] .header-heroku-logo {
  color: var(--color-heroku-logo);
}
@media (prefers-color-scheme: dark) {
  [data-theme=system] .header-heroku-logo {
    color: var(--color-heroku-logo);
  }
}

.heroku-title {
  font-size: 1.25rem;
  color: var(--color-text-primary);
  letter-spacing: 0.5px;
}

.heroku-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-left: 0.25rem;
  display: none;
}
@media (width >= 600px) {
  .heroku-subtitle {
    display: inline;
  }
}

.heroku-nav {
  display: flex;
  gap: 0.25rem;
}

.nav-button {
  padding: 0.375rem 0.5rem;
  border: none;
  background: var(--color-background);
  color: var(--color-text-secondary);
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-button:hover {
  background: var(--color-ui-subtle);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}
.nav-button.active {
  background: var(--color-ui-active);
  border-color: var(--color-ui-active);
  color: var(--color-text-on-brand);
}
.nav-button.view-code-button {
  background: var(--color-background);
  color: var(--color-text-secondary);
}
.nav-button.view-code-button:hover {
  background: var(--color-ui-subtle);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}
.nav-button.view-code-button:active {
  background: var(--color-ui-hover);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}
.nav-button.view-code-button svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}
.nav-button.credentials-button {
  background: var(--color-background);
  color: var(--color-text-secondary);
}
.nav-button.credentials-button:hover {
  background: var(--color-ui-subtle);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}
.nav-button.credentials-button:active {
  background: var(--color-ui-hover);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}
@media (width <= 768px) {
  .nav-button.credentials-button .button-text {
    display: none;
  }
}
.nav-button.settings-button {
  background: var(--color-background);
  color: var(--color-text-secondary);
}
.nav-button.settings-button:hover {
  background: var(--color-ui-subtle);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}
.nav-button.settings-button:active {
  background: var(--color-ui-hover);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}
.nav-button.tools-button {
  position: relative;
  background: var(--color-background);
  border-color: var(--color-border-primary);
  color: var(--color-text-secondary);
}
.nav-button.tools-button:hover {
  background: var(--color-ui-subtle);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}
.nav-button.tools-button:active {
  background: var(--color-ui-hover);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}
@media (width <= 768px) {
  .nav-button.tools-button .button-text {
    display: none;
  }
}
@media (width <= 768px) {
  .nav-button {
    padding: 0.25rem 0.375rem;
    font-size: 0.7rem;
  }
  .nav-button.view-code-button svg {
    width: 12px;
    height: 12px;
  }
}

.tools-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-brand-700);
  color: white;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  line-height: 1;
}
@media (width <= 768px) {
  .tools-badge {
    top: -6px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    font-size: 0.55rem;
  }
}

.system-prompt-container {
  padding: 0.75rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-primary);
  max-height: 30vh;
  overflow-y: auto;
}

.system-prompt-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 0.25rem;
}

.system-prompt-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border-primary);
  border-radius: var(--radius-base);
  font-size: 0.875rem;
  background: var(--color-input-background);
  color: var(--color-text-primary);
  transition: border-color 0.2s ease;
  resize: none;
  font-family: inherit;
  line-height: 1.4;
}
.system-prompt-input:focus {
  outline: none;
  border-color: var(--color-ui-active);
  box-shadow: 0 0 0 3px var(--color-ui-focus-ring);
}
.system-prompt-input::placeholder {
  color: var(--color-text-placeholder);
}

.main-content {
  flex: 1;
  overflow: hidden;
  min-height: 0;
  height: calc(100vh - 4.5rem);
  display: flex;
  flex-direction: column;
}

.tools-sidebar::-webkit-scrollbar,
.chat-area::-webkit-scrollbar {
  width: 6px;
}

.tools-sidebar::-webkit-scrollbar-track,
.chat-area::-webkit-scrollbar-track {
  background: transparent;
}

.tools-sidebar::-webkit-scrollbar-thumb,
.chat-area::-webkit-scrollbar-thumb {
  background: var(--color-border-secondary);
  border-radius: var(--radius-sm);
}
.tools-sidebar::-webkit-scrollbar-thumb:hover,
.chat-area::-webkit-scrollbar-thumb:hover {
  background: var(--color-border-primary);
}

@media (width <= 768px) {
  .app-layout:not(.sidebar-collapsed) .heroku-chat-interface .left-panel {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 100vh;
    width: 280px;
    box-shadow: var(--shadow-lg);
    border-right: 1px solid var(--color-border-primary);
  }
  .app-layout:not(.sidebar-collapsed) .heroku-chat-interface .right-panel {
    width: 100%;
  }
  .app-layout:not(.sidebar-collapsed) .heroku-chat-interface::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-overlay-backdrop);
    z-index: 999;
    backdrop-filter: blur(2px);
  }
  .app-layout.sidebar-collapsed .heroku-chat-interface .right-panel {
    width: 100%;
    height: 100vh;
  }
  .left-panel {
    width: 280px;
  }
  .left-panel-header {
    padding: 0.75rem 1rem;
  }
  .left-panel-header .panel-title {
    font-size: 1rem;
  }
  .left-panel-actions {
    padding: 0 1rem 0.75rem;
    padding-top: 3rem;
  }
  .new-chat-button {
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    gap: 0.375rem;
  }
  .new-chat-button svg {
    width: 14px;
    height: 14px;
  }
  .heroku-header {
    padding: 0 1rem;
    height: 3.75rem;
    min-height: 3.75rem;
  }
  .heroku-header-left {
    gap: 0.5rem;
    margin-left: 2.5rem;
  }
  .sidebar-toggle-fixed {
    width: 28px;
    height: 28px;
    left: 0.75rem;
  }
  .heroku-brand {
    gap: 0.25rem;
  }
  .heroku-title {
    font-size: 0.875rem;
  }
  .heroku-nav {
    gap: 0.125rem;
  }
  .main-content {
    height: calc(100vh - 3.75rem);
  }
}
@media (width <= 480px) {
  .app-layout:not(.sidebar-collapsed) .heroku-chat-interface .left-panel {
    width: 260px;
  }
  .heroku-header {
    padding: 0 0.75rem;
    height: 3.5rem;
    min-height: 3.5rem;
  }
  .heroku-header-left {
    gap: 0.375rem;
    margin-left: 2.25rem;
  }
  .sidebar-toggle-fixed {
    width: 26px;
    height: 26px;
    left: 0.5rem;
  }
  .heroku-title {
    font-size: 0.8125rem;
  }
  .main-content {
    height: calc(100vh - 3.5rem);
  }
}
.chat-area {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--color-surface);
  position: relative;
  padding: 0 2rem;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}
.chat-area.welcome-state {
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.chat-messages {
  flex: 1;
  padding: 2rem 2rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  width: 100%;
  overflow: hidden auto;
}

.chat-messages-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

@media (width >= 1400px) {
  .chat-area {
    max-width: 1000px;
  }
}
@media (width >= 1600px) {
  .chat-area {
    max-width: 1200px;
  }
  .input-container {
    max-width: 1200px;
  }
  .welcome-container {
    max-width: 1000px;
  }
}
.message-content {
  font-size: 15px;
  line-height: 1.6;
  font-family: inherit;
}
.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
  font-weight: 600;
  margin: 1em 0 0.5em;
  color: var(--color-text-primary);
}
.message-content h1 {
  font-size: 1.5em;
}
.message-content h2 {
  font-size: 1.3em;
}
.message-content h3 {
  font-size: 1.1em;
}
.message-content p {
  margin: 0.75em 0;
}
.message-content p:first-child {
  margin-top: 0;
}
.message-content p:last-child {
  margin-bottom: 0;
}
.message-content code {
  background: var(--color-code-background);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-base);
  font-family: "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;
  font-size: 0.9em;
  color: inherit;
}
.message-content pre {
  background: var(--color-code-background);
  border: 1px solid var(--color-code-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-family: "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;
}
.message-content pre code {
  background: none;
  padding: 0;
  border-radius: var(--radius-none);
  color: inherit;
}
.message-content ul,
.message-content ol {
  margin: 0.75em 0;
  padding-left: 1.5em;
}
.message-content ol {
  list-style: none;
  counter-reset: list-counter;
  padding-left: 0;
}
.message-content ol li {
  counter-increment: list-counter;
  position: relative;
  padding-left: 2.5em;
  margin: 0.375em 0;
}
.message-content ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--color-ui-subtle);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--radius-full);
  width: 1.5em;
  height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1;
}
.message-content ul li {
  margin: 0.375em 0;
}
.message-content a {
  color: var(--color-ui-active);
  text-decoration: none;
}
.message-content a:hover {
  text-decoration: underline;
}
.message-content blockquote {
  border-left: 3px solid var(--color-border-secondary);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

.message {
  display: flex;
  width: 100%;
  margin-bottom: 0;
}
.message:first-child {
  margin-top: 0;
}
.message.user-message {
  flex-direction: row;
  justify-content: flex-end;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.message.user-message .message-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 80%;
}
.message.user-message .message-content {
  background: var(--color-bubble-user);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-2xl);
  word-wrap: break-word;
  position: relative;
}
.message.user-message .message-content h1,
.message.user-message .message-content h2,
.message.user-message .message-content h3,
.message.user-message .message-content h4,
.message.user-message .message-content h5,
.message.user-message .message-content h6 {
  color: white;
}
.message.user-message .message-content code {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.message.user-message .message-content pre {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}
.message.user-message .message-content a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}
.message.user-message .message-content blockquote {
  border-left-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.85);
}
.message.user-message .message-time {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-left: 0.75rem;
  margin-top: 0.375rem;
}
.message.assistant-message {
  flex-direction: row;
  align-items: flex-start;
  margin-top: 1rem;
  margin-bottom: 2rem;
}
.message.assistant-message .message-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}
.message.assistant-message .message-content {
  background: var(--color-surface);
  color: var(--color-text-primary);
  padding: 1.25rem 1.5rem;
  max-width: none;
  border: none;
}
.message.assistant-message .message-avatar {
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.tool-usage-before-message {
  margin-bottom: 1rem;
  width: 100%;
  max-width: none;
}

.message-avatar {
  width: 28px;
  height: 28px;
  margin-top: 0;
  margin-right: 1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.assistant-message .message-avatar {
  background: var(--color-surface);
  border: 1px solid var(--color-border-secondary);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.assistant-message .message-avatar:hover {
  background: var(--color-ui-subtle);
  transform: scale(1.05);
}
.user-message .message-avatar {
  width: 0;
  margin-right: 0;
  opacity: 0;
}

.thinking-indicator {
  margin-top: 1rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center !important;
  gap: 0.5rem;
}
.thinking-indicator .thinking-dots {
  display: flex;
  gap: 0.375rem;
  align-items: center;
  height: 28px;
}
.thinking-indicator .message-avatar {
  background: var(--color-surface);
  border: 1px solid var(--color-border-secondary);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.thinking-indicator .message-avatar .heroku-ai-icon {
  animation: heroku-blink 2s ease-in-out infinite;
}
.thinking-indicator.thinking-indicator-hidden {
  visibility: hidden;
  opacity: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: absolute;
  top: -9999px;
  left: -9999px;
  min-height: 0;
  max-height: 0;
  border: none;
  background: transparent;
}

.thinking-dots .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-text-tertiary);
  animation: thinking-bounce 1.4s ease-in-out infinite both;
}
.thinking-dots .dot:nth-child(1) {
  animation-delay: -0.32s;
}
.thinking-dots .dot:nth-child(2) {
  animation-delay: -0.16s;
}
.thinking-dots .dot:nth-child(3) {
  animation-delay: 0s;
}

.welcome-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.welcome-content {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  width: 100%;
  padding: 1rem 0;
}

.welcome-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.welcome-header > div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.welcome-heroku-logo {
  font-size: 3rem;
  color: var(--color-heroku-logo);
}
[data-theme=dark] .welcome-heroku-logo {
  color: var(--color-heroku-logo);
}
@media (prefers-color-scheme: dark) {
  [data-theme=system] .welcome-heroku-logo {
    color: var(--color-heroku-logo);
  }
}

.welcome-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  line-height: 1.2;
}

.welcome-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 500px;
  line-height: 1.5;
  padding: 0 1rem;
}

.example-prompts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.prompts-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0;
}

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.example-prompt {
  background: var(--color-background-secondary);
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  line-height: 1.3;
  font-weight: 400;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.example-prompt:hover {
  background: var(--color-ui-subtle);
  border-color: var(--color-border-hover);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.example-prompt:active {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.example-prompt::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}
.example-prompt:hover::before {
  left: 100%;
}

.prompt-icon {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  margin-top: 0.1rem;
  opacity: 0.8;
  transition: color 0.2s ease;
}
.example-prompt:hover .prompt-icon {
  color: var(--color-text-primary);
  opacity: 1;
}

.welcome-input-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.welcome-chat-form {
  width: 100%;
}

.welcome-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--color-input-background);
  border: 2px solid var(--color-input-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0.75rem 0.75rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.welcome-input-wrapper::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: transparent;
  border-radius: calc(var(--radius-2xl) - 1px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.welcome-input-wrapper:focus-within {
  border-color: var(--color-interactive);
  box-shadow: var(--shadow-xl), 0 0 0 4px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: var(--color-input-background-hover);
}
.welcome-input-wrapper:focus-within::after {
  opacity: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.welcome-input-wrapper.has-content {
  border-color: var(--color-interactive);
}
.welcome-input-wrapper.has-content .welcome-send-button {
  background: var(--color-background-tertiary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  transform: scale(1.02);
}

.welcome-message-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.125rem;
  color: var(--color-text-primary);
  resize: none;
  min-height: 24px;
  max-height: 120px;
  overflow-y: auto;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.5;
}
.welcome-message-input::placeholder {
  color: var(--color-text-placeholder);
  font-weight: 400;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.welcome-message-input:focus::placeholder {
  opacity: 0.5;
}
.welcome-message-input::selection {
  background: rgba(99, 102, 241, 0.2);
  color: var(--color-text-primary);
}

.welcome-send-button {
  background: var(--color-muted);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  margin-left: 0.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.welcome-send-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.welcome-send-button:not(:disabled) {
  background: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.welcome-send-button:not(:disabled):hover {
  background: var(--color-primary);
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.welcome-send-button:not(:disabled):hover::before {
  opacity: 1;
}
.welcome-send-button:not(:disabled):active {
  background: var(--color-primary);
  transform: scale(0.95);
}
.welcome-send-button:disabled {
  background: var(--color-muted);
  cursor: not-allowed;
  opacity: 0.8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.welcome-send-button:disabled:hover {
  transform: none;
  background: var(--color-muted);
}
.welcome-send-button:disabled svg {
  color: var(--color-muted-foreground);
  opacity: 0.9;
}
.welcome-send-button svg {
  color: var(--color-primary-foreground);
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}
[data-theme=dark] .welcome-send-button svg {
  color: rgb(250, 250, 250);
}
.welcome-send-button:not(:disabled):hover svg {
  transform: scale(1.1);
}

@keyframes thinking-bounce {
  0%, 80%, 100% {
    transform: scale(0.7);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 0.8;
  }
}
.chat-input-area {
  padding: 1rem 2rem 1.5rem;
  background: var(--color-surface);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  width: 100%;
  max-height: 40vh;
  overflow: visible;
}

.input-container {
  display: flex;
  flex-direction: column;
  background: var(--color-input-background);
  border: 2px solid var(--color-input-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  min-height: 80px;
  max-height: 35vh;
  transition: var(--transition-base);
}
.input-container:hover {
  border-color: var(--color-input-border-hover);
  box-shadow: var(--shadow-lg);
}
.input-container:focus-within {
  border-color: var(--color-input-border-focus);
  box-shadow: var(--shadow-lg);
}
.input-container.multiline {
  min-height: 120px;
}

.input-text-section {
  flex: 1;
  padding: 20px 24px 8px;
  overflow: hidden;
  max-height: calc(35vh - 80px);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.message-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-primary);
  resize: none;
  min-height: 24px;
  max-height: calc(30vh - 100px);
  overflow-y: auto;
  font-family: inherit;
}
.message-input::placeholder {
  color: var(--color-text-placeholder);
  font-size: 16px;
}

.input-controls-section {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px 20px;
  margin-top: 4px;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

.api-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.api-selector-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.api-selector-text {
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.api-selector-switch {
  width: 44px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}
.api-selector-switch:hover {
  opacity: 0.8;
}
.api-selector-switch:focus {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.switch-track {
  width: 100%;
  height: 100%;
  background: var(--color-slider-track);
  border: 1px solid var(--color-slider-track-enabled);
  border-radius: var(--radius-xl);
  transition: background-color 0.2s;
  position: relative;
}
.api-selector-switch.enabled .switch-track {
  background: var(--color-interactive);
}
.switch-track .switch-thumb {
  width: 16px;
  height: 16px;
  background: var(--color-slider-thumb);
  border-radius: 50%;
  position: absolute;
  transform: translate(0, -50%);
  top: 50%;
  left: 4px;
  transition: transform 0.2s;
}
.api-selector-switch.enabled .switch-track .switch-thumb {
  transform: translate(100%, -50%);
  right: 4px;
  background: var(--color-slider-thumb-enabled);
}

.tools-button {
  background: var(--color-background);
  border: none;
  color: var(--color-border-primary);
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: var(--radius-xl);
  transition: all 0.2s ease;
}
.tools-button:hover {
  background: var(--color-ui-subtle);
  border-color: var(--color-border-hover);
  color: var(--color-border-hover);
}

.send-button {
  background: var(--color-muted);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.send-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.send-button:hover::before {
  opacity: 1;
}
.send-button:hover:not(:disabled) {
  background: var(--color-primary);
}
.send-button:active:not(:disabled) {
  background: var(--color-primary);
}
.send-button:disabled {
  background: var(--color-muted);
  cursor: not-allowed;
  opacity: 0.85;
}
.send-button:disabled:hover {
  transform: none;
  background: var(--color-muted);
}
.send-button:disabled svg {
  color: var(--color-muted-foreground);
}
[data-theme=dark] .send-button:disabled svg {
  color: rgb(250, 250, 250);
  opacity: 0.5;
}
.send-button:not(:disabled) {
  background: var(--color-primary);
}
.send-button:hover:not(:disabled) svg {
  transform: scale(1.1);
}
.send-button svg {
  color: var(--color-primary-foreground);
  transition: transform 0.2s ease;
}
[data-theme=dark] .send-button svg {
  color: rgb(250, 250, 250);
}

.model-indicator {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 12px;
  background: var(--color-background-tertiary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-secondary);
}

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

@media (width <= 768px) {
  .chat-area {
    max-width: 100%;
    height: calc(100vh - 60px);
    min-height: calc(100vh - 60px);
    padding: 0 1rem;
  }
  .chat-area.welcome-state {
    padding: 1rem;
  }
  .welcome-title {
    font-size: 2rem;
  }
  .welcome-subtitle {
    font-size: 1rem;
  }
  .prompts-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .example-prompt {
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
  }
  .welcome-input-wrapper {
    padding: 0.625rem 0.625rem 0.625rem 1.25rem;
  }
  .welcome-message-input {
    font-size: 1rem;
  }
  .welcome-send-button {
    width: 32px;
    height: 32px;
  }
  .chat-messages {
    padding: 1rem 0 0.5rem;
    gap: 1rem;
  }
  .message.user-message .message-wrapper {
    max-width: 90%;
    align-items: flex-end;
  }
  .message.user-message .message-content, .message.assistant-message .message-content {
    font-size: 14px;
  }
  .message.assistant-message .message-content {
    padding: 0.5rem 0.75rem;
  }
  .chat-input-area {
    padding: 0.75rem 1rem 1rem;
    max-height: 45vh;
  }
  .input-container {
    border-radius: var(--radius-xl);
    min-height: 70px;
    max-width: 100%;
    max-height: 40vh;
  }
  .input-container.multiline {
    min-height: 100px;
  }
  .input-text-section {
    padding: 16px 20px 6px;
    max-height: calc(40vh - 70px);
  }
  .message-input {
    font-size: 16px;
    min-height: 20px;
    max-height: calc(35vh - 90px);
  }
  .input-controls-section {
    gap: 12px;
    padding: 10px 20px 16px;
    margin-top: 2px;
  }
  .controls-left {
    gap: 12px;
  }
  .controls-right {
    gap: 12px;
  }
  .model-indicator {
    display: none;
  }
  .api-selector {
    gap: 10px;
  }
  .api-selector-text {
    font-size: 13px;
  }
  .api-selector-switch {
    width: 40px;
    height: 22px;
  }
  .tools-selector .tools-trigger {
    padding: 8px;
  }
  .tools-selector .tools-trigger svg {
    width: 18px;
    height: 18px;
  }
  .send-button {
    width: 32px;
    height: 32px;
  }
}
@media (width <= 480px) {
  .chat-area {
    padding: 0 0.75rem;
  }
  .welcome-content {
    gap: 2rem;
  }
  .welcome-title {
    font-size: 1.75rem;
  }
  .welcome-subtitle {
    font-size: 0.9rem;
  }
  .example-prompt {
    padding: 0.75rem 0.875rem;
    font-size: 0.8rem;
  }
  .welcome-send-button {
    width: 30px;
    height: 30px;
  }
  .chat-messages {
    gap: 0.75rem;
  }
  .message.user-message .message-wrapper {
    max-width: 95%;
    align-items: flex-end;
  }
  .message.user-message .message-content {
    padding: 0.75rem 1rem;
    font-size: 13px;
  }
  .message.assistant-message .message-content {
    font-size: 13px;
    padding: 0.5rem 0.75rem;
  }
  .input-container {
    border-radius: var(--radius-xl);
    min-height: 60px;
    max-height: 45vh;
  }
  .input-container.multiline {
    min-height: 90px;
  }
  .input-text-section {
    padding: 14px 18px 6px;
    max-height: calc(45vh - 60px);
  }
  .message-input {
    max-height: calc(40vh - 100px);
  }
  .input-controls-section {
    gap: 10px;
    padding: 8px 18px 14px;
  }
  .controls-left {
    gap: 10px;
  }
  .controls-right {
    gap: 10px;
  }
  .api-selector {
    gap: 8px;
  }
  .api-selector-text {
    font-size: 12px;
  }
  .api-selector-switch {
    width: 36px;
    height: 20px;
  }
  .tools-selector .tools-trigger {
    padding: 6px;
  }
  .tools-selector .tools-trigger svg {
    width: 16px;
    height: 16px;
  }
  .send-button {
    width: 30px;
    height: 30px;
  }
}
.tools-sidebar {
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  padding: 0.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 100%;
}
@media (width <= 600px) {
  .tools-sidebar {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    padding: 0.5rem;
    gap: 0.75rem;
  }
}

.agent-tools-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.tools-icon {
  font-size: 1rem;
}

.tools-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.tools-optional {
  font-size: 0.625rem;
  color: var(--color-text-tertiary);
  background: var(--color-ui-subtle);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-lg);
  margin-left: auto;
}

.tools-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin: 0;
}

.section-icon {
  font-size: 0.875rem;
}

.tools-count {
  font-size: 0.625rem;
  color: var(--color-text-tertiary);
  margin-bottom: 0.25rem;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.tool-chip {
  padding: 0.25rem 0.5rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  line-height: 1.2;
  position: relative;
}
.tool-chip:hover {
  background: var(--color-ui-subtle);
  border-color: var(--color-border-hover);
}
.tool-chip.selected {
  background: var(--color-interactive);
  border-color: var(--color-interactive);
  color: var(--color-text-inverted);
  box-shadow: 0 2px 4px var(--color-ui-focus-ring);
}
.tool-chip.selected::after {
  margin-left: 0.25rem;
  font-size: 0.5rem;
  opacity: 0.9;
}
.tool-chip.selected:hover {
  background: var(--color-interactive-hover);
  border-color: var(--color-interactive-hover);
  box-shadow: 0 3px 6px var(--color-ui-focus-ring);
}
.tool-chip.selected:active {
  background: var(--color-interactive-active);
  border-color: var(--color-interactive-active);
  box-shadow: 0 1px 2px var(--color-ui-focus-ring);
}

.tools-server-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}
.tools-server-header .server-select-all {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
}
.tools-server-header .server-select-all input[type=checkbox] {
  width: 12px;
  height: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  accent-color: var(--color-interactive);
}
.tools-server-header .server-select-all input[type=checkbox]:focus {
  outline: 2px solid var(--color-ui-focus-ring);
  outline-offset: 1px;
}
.tools-server-header .server-select-all .tools-server-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}
.tools-server-header .tools-count {
  font-size: 0.625rem;
  color: var(--color-text-tertiary);
  margin-bottom: 0.25rem;
}

.collapsible {
  width: 100%;
  margin: 0.75rem 0;
  background: var(--color-ui-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.2s ease;
}
.collapsible.expanded {
  background: var(--color-ui-subtle);
  border-color: var(--color-border);
}

.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.collapsible-header:hover {
  background: var(--color-ui-subtle);
}
.collapsible-header:focus {
  outline: none;
  background: var(--color-ui-hover);
}
.collapsible-header:active {
  background: var(--color-ui-subtle);
}

.collapsible-title {
  font-weight: 500;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  text-align: left;
}

.collapsible-arrow {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  transition: transform 0.2s ease, color 0.15s ease;
  font-weight: 500;
}
.collapsible-arrow.expanded {
  transform: rotate(180deg);
  color: var(--color-text-tertiary);
}

.collapsible-content {
  animation: slide-down 0.2s ease-out;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.collapsible-output {
  background: var(--color-ui-subtle);
}
.collapsible-output pre {
  margin: 0;
  padding: 1rem;
  background: linear-gradient(135deg, var(--color-background) 0%, var(--color-surface) 100%);
  color: var(--color-text-primary);
  border: none;
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", Monaco, Consolas, "Roboto Mono", monospace;
  max-height: 300px;
  overflow-y: auto;
  position: relative;
}
.collapsible-output pre::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-text-tertiary) 50%, transparent 100%);
}

.collapsible-output pre::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.collapsible-output pre::-webkit-scrollbar-track {
  background: var(--color-ui-subtle);
  border-radius: var(--radius-sm);
}

.collapsible-output pre::-webkit-scrollbar-thumb {
  background: var(--color-text-tertiary);
  border-radius: var(--radius-sm);
}
.collapsible-output pre::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}

@media (width <= 640px) {
  .collapsible {
    margin: 0.5rem 0;
    border-radius: var(--radius-sm);
  }
  .collapsible-header {
    padding: 0.75rem;
  }
  .collapsible-title {
    font-size: 0.8125rem;
  }
  .collapsible-arrow {
    font-size: 0.8125rem;
  }
  .collapsible-output pre {
    padding: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.4;
    max-height: 240px;
  }
}
.api-parameters-panel {
  width: 100%;
  height: 100%;
  background: transparent;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  padding: var(--space-6) var(--space-6) var(--space-8);
  gap: var(--space-7);
}

.api-params-card {
  background: transparent;
  border-radius: var(--radius-none);
  padding: 0;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin: 0;
}
@media (width <= 768px) {
  .api-params-card {
    gap: var(--space-5);
  }
}

@media (width <= 600px) {
  .api-parameters-panel {
    padding: var(--space-4) var(--space-4) var(--space-6);
    gap: var(--space-4);
  }
  .api-params-card {
    gap: var(--space-4);
  }
}
.api-params-header {
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border-secondary);
  margin-bottom: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.panel-title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: var(--leading-snug);
  font-family: inherit;
}

.param-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  display: block;
  line-height: 1.5;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
  padding-right: 56px;
}

.param-label-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.param-info-icon {
  font-size: 14px;
  color: var(--color-text-tertiary);
  opacity: 0.6;
  transition: opacity 0.2s ease;
  cursor: help;
}
.param-group:hover .param-info-icon {
  opacity: 1;
  color: var(--color-text-secondary);
}

.param-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
  position: relative;
}
.param-group:focus, .param-group:focus-visible, .param-group:focus-within {
  outline: none !important;
}
.param-group:hover .param-label {
  color: var(--color-text-primary);
  transition: color var(--transition-colors);
}
.param-group:hover .param-description {
  visibility: visible;
  animation: tooltip-fade-in-delayed 0.2s ease-out 1.5s both;
}
.param-group:focus-within .param-description {
  visibility: visible;
  animation: tooltip-fade-in 0.2s ease-out;
}

.param-value {
  font-weight: 600;
  color: var(--color-text-primary);
  background: var(--color-ui-subtle);
  padding: 4px 8px;
  border-radius: var(--radius-md);
  font-size: 12px;
  border: 1px solid var(--color-border-tertiary);
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", Monaco, Consolas, "Roboto Mono", monospace;
  letter-spacing: -0.01em;
}

.param-value-input {
  font-weight: 600;
  color: var(--color-text-primary);
  background: var(--color-ui-subtle);
  padding: 4px 8px;
  border-radius: var(--radius-md);
  font-size: 12px;
  border: 1px solid var(--color-border-tertiary);
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", Monaco, Consolas, "Roboto Mono", monospace;
  letter-spacing: -0.01em;
  width: 48px;
  text-align: center;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
}
.param-value-input:focus {
  outline: none;
  border-color: var(--color-interactive);
  box-shadow: 0 0 0 2px var(--color-focus-ring);
  background: var(--color-input-background-hover);
}
.param-value-input:hover:not(:focus) {
  border-color: var(--color-input-border-hover);
}
.param-value-input::-webkit-outer-spin-button, .param-value-input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}
.param-value-input[type=number] {
  appearance: textfield;
}

.param-select,
.param-input {
  padding: var(--space-3);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: var(--color-input-background);
  transition: var(--transition-base);
  font-weight: 400;
  color: var(--color-text-primary);
  font-family: inherit;
}
.param-select:focus,
.param-input:focus {
  outline: none;
  border-color: var(--color-interactive);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
  background: var(--color-input-background-hover);
}
.param-select:hover:not(:focus),
.param-input:hover:not(:focus) {
  border-color: var(--color-input-border-hover);
}
.param-select::placeholder,
.param-input::placeholder {
  color: var(--color-text-placeholder);
  font-weight: 400;
}

.param-textarea {
  padding: var(--space-3);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  background: var(--color-input-background);
  resize: vertical;
  min-height: 84px;
  line-height: 1.5;
  transition: var(--transition-base);
  font-weight: 400;
  color: var(--color-text-primary);
}
.param-textarea:focus {
  outline: none;
  border-color: var(--color-interactive);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
  background: var(--color-input-background-hover);
}
.param-textarea:hover:not(:focus) {
  border-color: var(--color-input-border-hover);
}
.param-textarea::placeholder {
  color: var(--color-text-placeholder);
  font-weight: 400;
}

.param-slider {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-md);
  background: linear-gradient(to right, var(--color-ui-active) 0%, var(--color-ui-active) var(--fill-percentage, 0%), var(--color-slider-track) var(--fill-percentage, 0%), var(--color-slider-track) 100%);
  outline: none !important;
  appearance: none;
  margin: var(--space-4) 0;
  cursor: pointer;
  border: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
.param-slider:focus, .param-slider:focus-visible, .param-slider:focus-within, .param-slider:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}
.param-slider::-moz-range-track {
  outline: none !important;
  border: none !important;
}
.param-slider::-moz-range-progress {
  outline: none !important;
  border: none !important;
}
.param-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-slider-thumb);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 2px solid white;
}
.param-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}
.param-slider::-webkit-slider-thumb:active {
  transform: scale(0.95);
}
.param-slider:focus {
  outline: none;
}
.param-slider:focus::-webkit-slider-thumb {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 0 1px #6366f1, 0 0 0 3px rgba(99, 102, 241, 0.2);
  transform: scale(1.05);
}
.param-slider:focus::-moz-range-thumb {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 0 1px #6366f1, 0 0 0 3px rgba(99, 102, 241, 0.2);
  transform: scale(1.05);
}
.param-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 0 1px #6366f1, 0 0 0 3px rgba(99, 102, 241, 0.2);
  transform: scale(1.05);
}
.param-slider:focus-within::-webkit-slider-thumb {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 0 1px #6366f1, 0 0 0 3px rgba(99, 102, 241, 0.2);
  transform: scale(1.05);
}
.param-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-slider-thumb);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.param-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}
.param-slider::-moz-range-thumb:active {
  transform: scale(0.95);
}
.param-slider:hover {
  opacity: 0.8;
}

.param-description {
  visibility: hidden;
  position: absolute;
  bottom: 100%;
  margin-bottom: 8px;
  left: 0;
  right: 60px;
  z-index: 10001;
  font-size: 12px;
  color: var(--color-popover-foreground);
  background: var(--color-popover);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  line-height: 1.4;
  font-family: inherit;
  font-weight: 400;
  box-shadow: var(--shadow-xl);
  pointer-events: none;
  max-width: none;
  width: auto;
}
.param-description::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 16px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--color-popover);
}
.param-description strong {
  font-weight: 600;
  color: var(--color-popover-foreground);
}
.param-description code {
  background: var(--color-muted);
  padding: 1px 4px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", Monaco, Consolas, "Roboto Mono", monospace;
}

@keyframes tooltip-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes tooltip-fade-in-delayed {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.param-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-family: inherit;
}

.section-icon {
  font-size: 16px;
}

.optional-badge {
  font-size: 10px;
  color: var(--color-badge-text);
  background: var(--color-badge-background);
  padding: 2px 6px;
  border-radius: var(--radius-base);
  margin-left: auto;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 1px solid var(--color-badge-border);
}

.collapsible-header {
  width: 100%;
  background: none;
  border: none;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}
.collapsible-header:hover {
  background: var(--color-ui-subtle);
}
.collapsible-header:active {
  background: var(--color-background-tertiary);
  transform: scale(0.99);
}
.collapsible-header .section-title {
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s ease;
}

.collapsible-icon {
  font-size: 10px;
  color: var(--color-text-tertiary);
  transition: var(--transition-transform);
  font-weight: 500;
  transform: rotate(0deg);
  opacity: 0.7;
}
.collapsible-icon.expanded {
  transform: rotate(180deg);
  color: var(--color-text-secondary);
  opacity: 0.8;
}

.collapsible-content {
  animation: var(--animate-in);
  height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease-out;
}
.collapsible-content.expanded {
  animation: slide-down 0.2s ease-out;
  height: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.collapsible-content.collapsed {
  animation: slide-up 0.2s ease-out;
  height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
}

@keyframes slide-up {
  from {
    height: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  to {
    height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
  }
}
@keyframes slide-down {
  from {
    height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
  }
  to {
    height: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
@media (width <= 600px) {
  .api-parameters-panel {
    max-height: 50vh;
  }
  .api-params-card {
    margin: 12px;
    padding: 16px;
    gap: 16px;
    border-radius: var(--radius-lg);
  }
  .panel-title {
    font-size: 16px;
  }
  .section-title {
    font-size: 15px;
  }
  .param-label {
    font-size: 13px;
  }
  .param-select,
  .param-input,
  .param-textarea {
    font-size: 13px;
    padding: var(--space-3);
  }
  .collapsible-content {
    padding-left: var(--space-3);
    margin-top: var(--space-3);
  }
}
.conversation-token-usage {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 1;
}

.token-usage-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
.token-usage-button:hover {
  opacity: 0.8;
}
.token-usage-button:focus {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.token-usage-ring {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.token-usage-normal {
  color: var(--color-text-secondary);
}
.token-usage-normal .token-usage-progress-circle {
  stroke: currentcolor;
}

.token-usage-warning {
  color: var(--color-warning, #f59e0b);
}
.token-usage-warning .token-usage-progress-circle {
  stroke: currentcolor;
}

.token-usage-critical {
  color: var(--color-error, #ef4444);
}
.token-usage-critical .token-usage-progress-circle {
  stroke: currentcolor;
}

.token-usage-dropdown {
  position: fixed;
  inset: auto;
  z-index: 10000;
  min-width: 8rem;
  max-height: var(--radix-dropdown-menu-content-available-height, calc(100vh - 100px));
  overflow: hidden auto;
  background: var(--color-popover);
  color: var(--color-popover-foreground);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 12px;
  outline: none;
  pointer-events: auto;
  transform-origin: bottom right;
}
.token-usage-dropdown[data-state=open] {
  animation: token-dropdown-enter 0.15s ease-out;
}
.token-usage-dropdown[data-state=closed] {
  animation: token-dropdown-exit 0.1s ease-in;
}

@keyframes token-dropdown-enter {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes token-dropdown-exit {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}
.token-usage-dropdown-content {
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.token-usage-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 0.875rem;
  gap: 12px;
}

.token-usage-summary-percentage {
  font-weight: 600;
  color: var(--color-text-primary);
  flex-shrink: 0;
}

.token-usage-summary-tokens {
  color: var(--color-text-secondary);
  text-align: right;
  font-family: "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;
  font-size: 0.75rem;
}

.token-usage-progress-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.token-usage-progress-bar-container {
  position: relative;
  width: 100%;
  height: 0.5rem;
  background: var(--color-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.token-usage-progress-bar {
  height: 100%;
  width: 100%;
  flex: 1;
  background: var(--color-primary);
  transition: all 0.3s ease;
}
.token-usage-progress-bar.token-usage-warning {
  background: var(--color-warning, #f59e0b);
}
.token-usage-progress-bar.token-usage-critical {
  background: var(--color-error, #ef4444);
}

.token-usage-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.token-usage-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  gap: 0.5rem;
}

.token-usage-breakdown-label {
  color: var(--color-muted-foreground);
  flex-shrink: 0;
}

.token-usage-breakdown-count {
  color: var(--color-foreground);
  text-align: right;
  font-family: "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;
}

@media (width <= 768px) {
  .token-usage-dropdown {
    min-width: 220px;
    padding: 10px;
  }
  .token-usage-summary {
    font-size: 0.8125rem;
  }
  .token-usage-summary-tokens {
    font-size: 0.6875rem;
  }
  .token-usage-breakdown-row {
    font-size: 0.6875rem;
  }
}
@media (width <= 480px) {
  .token-usage-dropdown {
    min-width: 200px;
    padding: 8px;
  }
}
.modal-backdrop {
  backdrop-filter: blur(8px);
}

.modal-container {
  max-width: 900px;
  width: 92vw;
  max-height: 85vh;
}

.modal-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin: 0;
  font-family: inherit;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.modal-title .icon {
  color: #ad7bee;
  font-size: 2rem;
}

.modal-close {
  background: var(--color-background);
  border: none;
  width: 40px;
  height: 40px;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-radius: var(--radius-xl);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close .icon {
  font-size: 16px;
  transition: var(--transition-base);
}
.modal-close:hover {
  background: var(--color-ui-subtle);
  color: var(--color-text-primary);
}
.modal-close:hover .icon {
  transform: scale(1.1);
}
.modal-close:focus {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}

.modal-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-8);
  background: var(--color-background);
  /* Custom scrollbar */
}
.modal-content::-webkit-scrollbar {
  width: 8px;
}
.modal-content::-webkit-scrollbar-track {
  background: var(--color-surface-tertiary);
  border-radius: var(--radius-full);
}
.modal-content::-webkit-scrollbar-thumb {
  background: var(--color-border-hover);
  border-radius: var(--radius-full);
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-disabled);
}

.modal-instructions {
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-tertiary);
  counter-reset: step-counter;
}
.modal-instructions p {
  margin: 0 0 var(--space-3);
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.modal-instructions p::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--color-button-primary);
  color: var(--color-text-inverted);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  flex-shrink: 0;
  margin-top: 3px;
}
.modal-instructions p:last-child {
  margin-bottom: 0;
}
.modal-instructions a {
  color: var(--color-interactive);
  text-decoration: none;
  font-weight: var(--font-medium);
}
.modal-instructions a:hover {
  text-decoration: underline;
}

.code-tabs {
  display: flex;
  background: var(--color-surface-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-1);
  margin-bottom: var(--space-6);
  gap: var(--space-1);
  border: 1px solid var(--color-border-secondary);
}

.tab-button {
  background: transparent;
  border: none;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-tertiary);
  cursor: pointer;
  transition: var(--transition-base);
  border-radius: var(--radius-lg);
  position: relative;
  white-space: nowrap;
}
.tab-button:hover {
  color: var(--color-text-secondary);
  background: var(--color-ui-subtle);
}
.tab-button.active {
  color: var(--color-text-primary);
  background: var(--color-background);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-secondary);
  font-weight: var(--font-semibold);
}

.code-container {
  position: relative;
  background: var(--color-code-background);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-code-border);
  box-shadow: var(--shadow-sm);
}
.code-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--color-surface-tertiary);
  border-bottom: 1px solid var(--color-border-tertiary);
  z-index: 1;
}
.code-container::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #28ca42;
  z-index: 2;
}

.code-block {
  margin: 0;
  padding: 60px var(--space-6) var(--space-6);
  background: var(--color-code-background);
  color: var(--color-code-text);
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", Monaco, Consolas, "Roboto Mono", monospace;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  overflow-x: auto;
  white-space: pre;
  min-height: 300px;
  /* Custom scrollbar */
}
.code-block::-webkit-scrollbar {
  height: 8px;
}
.code-block::-webkit-scrollbar-track {
  background: var(--color-surface-tertiary);
  border-radius: var(--radius-full);
}
.code-block::-webkit-scrollbar-thumb {
  background: var(--color-border-hover);
  border-radius: var(--radius-full);
}
.code-block::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-disabled);
}
.code-block code {
  font-family: inherit;
  font-size: inherit;
  background: none;
  padding: 0;
  color: inherit;
}

.copy-button {
  position: absolute;
  top: 60px;
  right: var(--space-4);
  background: none;
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 150ms ease-in-out;
  z-index: 3;
  box-shadow: var(--shadow-sm);
}
.copy-button .icon {
  font-size: 1.25rem;
  transition: var(--transition-base);
}
.copy-button:hover {
  background: var(--color-background-secondary);
  border-color: var(--color-border-primary);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-md);
}
.copy-button:hover .icon {
  transform: scale(1.1);
}
.copy-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}
.copy-button.copy-success {
  background: var(--color-success-50);
  border-color: var(--color-success-200);
  color: var(--color-success-600);
  box-shadow: 0 0 0 3px var(--color-success-100);
}
.copy-button.copy-success .icon {
  transform: scale(1.1);
}

.modal-footer {
  padding: var(--space-6) var(--space-8);
  border-top: 1px solid var(--color-border-tertiary);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: var(--color-surface);
  position: relative;
}
.modal-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border) 20%, var(--color-border) 80%, transparent);
}

.close-button {
  padding: var(--space-3) var(--space-6);
  background: var(--color-heroku-logo);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all 150ms ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}
.close-button:hover {
  background: var(--color-interactive-hover);
  box-shadow: var(--shadow-md);
}
.close-button:active {
  box-shadow: var(--shadow-sm);
}

@media (width <= 768px) {
  .modal-container {
    width: 95vw;
    max-height: 92vh;
    margin: var(--space-4);
  }
  .modal-header {
    padding: var(--space-5) var(--space-6);
  }
  .modal-header .modal-title {
    font-size: var(--text-xl);
  }
  .modal-header .modal-title::before {
    width: 24px;
    height: 24px;
  }
  .modal-header .modal-close {
    width: 36px;
    height: 36px;
  }
  .modal-content {
    padding: var(--space-6);
  }
  .modal-footer {
    padding: var(--space-5) var(--space-6);
    flex-direction: column;
    gap: var(--space-4);
  }
  .modal-footer .close-button {
    order: 0;
    width: 100%;
  }
  .modal-instructions {
    padding: var(--space-5);
    margin-bottom: var(--space-6);
  }
  .modal-instructions p {
    font-size: var(--text-sm);
  }
  .modal-instructions p::before {
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
  }
  .code-tabs {
    padding: 2px;
    flex-wrap: wrap;
    gap: 2px;
  }
  .tab-button {
    padding: var(--space-2) var(--space-4);
    font-size: 0.8125rem;
    flex: 1;
    min-width: 0;
  }
  .code-container::after {
    top: 12px;
    left: 16px;
    width: 8px;
    height: 8px;
    box-shadow: 14px 0 0 #ffbd2e, 28px 0 0 #28ca42;
  }
  .code-block {
    padding: 44px var(--space-4) var(--space-4);
    font-size: 0.8125rem;
    min-height: 250px;
  }
  .copy-button {
    top: 48px;
    right: var(--space-3);
    padding: var(--space-2);
  }
  .copy-button .icon {
    font-size: 14px;
  }
}
[data-theme=dark] .modal-title > .icon {
  color: #d7bff2;
}
[data-theme=dark] .code-container::before {
  background: var(--color-surface-secondary);
}
[data-theme=dark] .code-container::after {
  background: #ff5f56;
  box-shadow: 20px 0 0 #ffbd2d, 40px 0 0 #27ca41;
}
[data-theme=dark] .modal-instructions {
  background: var(--color-surface-secondary);
  border-color: var(--color-border-secondary);
}
[data-theme=dark] .copy-button.copy-success {
  background: var(--color-success-900);
  border-color: var(--color-success-700);
  color: var(--color-success-300);
  box-shadow: 0 0 0 3px var(--color-success-800);
}

@media (width >= 1400px) {
  .modal-container {
    max-width: 1000px;
  }
}
@media (width >= 1600px) {
  .modal-container {
    max-width: 1200px;
  }
}
.tools-modal-container {
  max-width: 1200px;
}

.tools-modal-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.tools-modal-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.tools-search-container {
  margin-bottom: var(--space-6);
  padding-top: var(--space-6);
}
@media (width <= 768px) {
  .tools-search-container {
    margin-bottom: var(--space-4);
    padding-top: var(--space-4);
  }
}

.tools-search-input-wrapper {
  position: relative;
  max-width: 400px;
}
.tools-search-input-wrapper .search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  font-size: var(--text-base);
  pointer-events: none;
}

.tools-search-input {
  width: 100%;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-10);
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--radius-lg);
  background: var(--color-background);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  transition: all 150ms ease-in-out;
}
.tools-search-input:focus {
  outline: none;
  border-color: var(--color-brand-500);
  box-shadow: 0 0 0 3px var(--color-brand-100);
}
.tools-search-input::placeholder {
  color: var(--color-text-placeholder);
}

.tools-section {
  margin-bottom: var(--space-8);
}
.tools-section:last-child {
  margin-bottom: 0;
}

.tools-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-secondary);
}
@media (width <= 768px) {
  .tools-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

.tools-section-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  transition: color 150ms ease-in-out;
}
.tools-section-toggle:hover {
  color: var(--color-brand-600);
}
.tools-section-toggle .expand-icon {
  font-size: var(--text-base);
  color: var(--color-text-tertiary);
  transition: transform 200ms ease-in-out;
}
.tools-section-toggle .expand-icon.expanded {
  transform: rotate(180deg);
}

.heroku-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-brand-500);
  color: white;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
}

.mcp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-gray-600);
  color: white;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
}

.section-title {
  font-weight: var(--font-medium);
}

.tool-count {
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
}

.enable-all-button {
  background: none;
  border: 1px solid var(--color-border-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all 150ms ease-in-out;
}
.enable-all-button:hover {
  background: var(--color-background-secondary);
  border-color: var(--color-border-primary);
  color: var(--color-text-primary);
}

.mcp-server-section {
  margin-bottom: var(--space-6);
}
.mcp-server-section:last-child {
  margin-bottom: 0;
}

.mcp-server-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-background-secondary);
  border-radius: var(--radius-lg);
}
@media (width <= 768px) {
  .mcp-server-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

.mcp-server-name {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  margin: 0;
}

.section-placeholder {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--color-text-tertiary);
}
.section-placeholder .placeholder-icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
  display: block;
}
.section-placeholder .placeholder-text h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin: 0 0 var(--space-2) 0;
  color: var(--color-text-primary);
}
.section-placeholder .placeholder-text p {
  font-size: var(--text-base);
  margin: 0;
  line-height: 1.5;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
  align-items: start;
}
@media (width <= 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}
@media (width >= 1024px) {
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

.tool-card {
  position: relative;
  background: var(--color-background);
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-self: start;
}
.tool-card:hover {
  border-color: var(--color-border-primary);
  box-shadow: var(--shadow-sm);
}

.tool-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 0;
}

.tool-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
}

.tool-header-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.tool-icon-name {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.malibu-icon {
  font-size: var(--text-lg);
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

.tool-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}
.tool-header-right > a {
  color: var(--color-text-tertiary);
  font-size: var(--text-base);
}
.tool-header-right > a:hover {
  color: var(--color-text-primary);
}

.tool-name {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  margin: 0;
  line-height: var(--leading-tight);
  overflow-wrap: break-word;
  hyphens: auto;
}

.tool-category {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  background: var(--color-ui-subtle);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  width: fit-content;
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border: 1px solid var(--color-border-secondary);
}

.tool-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tool-settings-panel {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-secondary);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  flex-shrink: 0;
}

.tool-settings-header {
  background: var(--color-surface-secondary);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.tool-settings-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-secondary);
}

.tool-settings-content {
  padding: var(--space-4);
}

.tool-setting-field {
  margin-bottom: var(--space-3);
}
.tool-setting-field:last-child {
  margin-bottom: 0;
}

.tool-setting-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  line-height: var(--leading-normal);
}

.required-indicator {
  color: var(--color-interactive);
  margin-left: var(--space-1);
}

.tool-setting-input {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-base);
  background: var(--color-input-background);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  transition: all 0.2s ease;
}
.tool-setting-input::placeholder {
  color: var(--color-text-placeholder);
}
.tool-setting-input:focus {
  outline: none;
  border-color: var(--color-input-border-focus);
  box-shadow: 0 0 0 3px var(--color-ui-focus-ring);
}
.tool-setting-input:hover {
  border-color: var(--color-input-border-hover);
  background: var(--color-input-background-hover);
}
.tool-setting-input.invalid {
  border-color: var(--color-interactive);
}
.tool-setting-input.invalid:focus {
  border-color: var(--color-interactive);
  box-shadow: 0 0 0 3px var(--color-ui-focus-ring);
}

.tool-setting-help {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-top: var(--space-1);
  line-height: var(--leading-tight);
}

@media (width <= 768px) {
  .tool-settings-panel {
    margin: var(--space-2) var(--space-2);
  }
  .tool-settings-content {
    padding: var(--space-3);
  }
  .tool-setting-input {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
  }
}
.tool-toggle-wrapper {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  margin-left: var(--space-2);
}

.tool-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.tool-toggle-input:focus + .tool-toggle-slider {
  box-shadow: 0 0 0 3px var(--color-brand-100);
}

.tool-toggle-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--color-slider-track);
  border-radius: 12px;
  transition: all 200ms ease-in-out;
  border: 1px solid var(--color-border-secondary);
}
.tool-toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background: var(--color-slider-thumb);
  border-radius: 50%;
  transition: all 200ms ease-in-out;
  box-shadow: var(--shadow-sm);
}
.tool-toggle-input:checked + .tool-toggle-slider {
  background: var(--color-slider-track-enabled);
  border-color: var(--color-slider-track-enabled);
}
.tool-toggle-input:checked + .tool-toggle-slider::before {
  background: var(--color-slider-thumb-enabled);
  transform: translateX(20px);
}
.tool-toggle-input:disabled + .tool-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}
.tool-toggle-slider.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--color-gray-200);
  border-color: var(--color-gray-300);
}
.tool-toggle-slider.disabled::before {
  background: var(--color-gray-400);
}
[data-theme=dark] .tool-toggle-slider.disabled {
  background: var(--color-gray-700);
  border-color: var(--color-gray-600);
}
[data-theme=dark] .tool-toggle-slider.disabled::before {
  background: var(--color-gray-500);
}
@media (prefers-color-scheme: dark) {
  [data-theme=system] .tool-toggle-slider.disabled {
    background: var(--color-gray-700);
    border-color: var(--color-gray-600);
  }
  [data-theme=system] .tool-toggle-slider.disabled::before {
    background: var(--color-gray-500);
  }
}

.no-results {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--color-text-tertiary);
}
.no-results .icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  opacity: 0.5;
}
.no-results p {
  font-size: var(--text-lg);
  margin: 0;
}

.tools-modal-footer {
  padding: var(--space-6) var(--space-8);
  border-top: 1px solid var(--color-border-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: var(--color-background-secondary);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}
@media (width <= 768px) {
  .tools-modal-footer {
    padding: var(--space-4) var(--space-6);
    flex-direction: column;
    gap: var(--space-3);
    align-items: stretch;
  }
}

.footer-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}
.footer-info .icon {
  color: var(--color-brand-500);
}
@media (width <= 768px) {
  .footer-info {
    justify-content: center;
  }
}

.done-button {
  background: var(--color-text-disabled);
  color: white;
  border: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all 150ms ease-in-out;
}
.done-button:hover {
  background: var(--color-text-tertiary);
  box-shadow: var(--shadow-md);
}
.done-button.has-changes {
  background: var(--color-heroku-logo);
}
.done-button.has-changes:hover {
  background: var(--color-interactive-hover);
  box-shadow: var(--shadow-md);
}
@media (width <= 768px) {
  .done-button {
    width: 100%;
    padding: var(--space-4) var(--space-6);
  }
}

[data-theme=dark] .tools-modal-title .icon,
[data-theme=dark] .footer-info .icon {
  color: #d7bff2;
}

@media (prefers-color-scheme: dark) {
  [data-theme=system] .tools-modal-title .icon,
  [data-theme=system] .footer-info .icon {
    color: #d7bff2;
  }
}
@keyframes tools-modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes tools-modal-scale-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.mcp-icon-alt {
  background: var(--color-accent);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.server-group {
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-background);
}

.server-header {
  background: var(--color-surface-secondary);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
}

.server-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 0;
  color: var(--color-text-primary);
  transition: color 150ms ease;
}
.server-toggle:hover {
  color: var(--color-text-secondary);
}

.server-name {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.875rem;
}

.server-status {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}
.server-status.status-registered {
  background: var(--color-success-light);
  color: var(--color-success);
}
.server-status.status-synced {
  background: var(--color-info-light);
  color: var(--color-info);
}

.tool-metadata {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.tool-hints {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.tool-hint {
  padding: 0.125rem 0.375rem;
  border-radius: 12px;
  font-size: 0.625rem;
  font-weight: 500;
}
.tool-hint.hint-read-only {
  background: var(--color-info-light);
  color: var(--color-info);
}
.tool-hint.hint-destructive {
  background: var(--color-danger-light);
  color: var(--color-danger);
}
.tool-hint.hint-idempotent {
  background: var(--color-success-light);
  color: var(--color-success);
}
.tool-hint.hint-external-data {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.tool-card.destructive {
  border-left: 3px solid var(--color-danger);
}

.tools-section.unavailable {
  margin-top: 1rem;
  border: 1px solid var(--color-warning);
  border-radius: 8px;
  background: var(--color-surface-warning);
}

.unavailable-servers {
  padding: 1rem;
}

.unavailable-server {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border-light);
}
.unavailable-server:last-child {
  border-bottom: none;
}

.warning-icon {
  color: var(--color-warning);
  font-size: 1.25rem;
}

.tool-usage-indicator {
  margin: 0.75rem 0 0.5rem;
  align-self: flex-start;
  width: 100%;
  position: relative;
  background: var(--color-background);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  transition: var(--transition-base);
}
.tool-usage-indicator::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--color-border);
  border-radius: var(--radius-sm);
  transition: var(--transition-colors);
}
.tool-usage-indicator:hover {
  box-shadow: var(--shadow-md);
}
.tool-usage-indicator:focus-within {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}
.tool-usage-indicator.executing::before {
  background: var(--color-interactive);
  animation: pulse 2s ease-in-out infinite;
}
.tool-usage-indicator.completed {
  opacity: 0.9;
}
.tool-usage-indicator.completed .tool-status {
  background: var(--color-surface);
}
.tool-usage-indicator.error::before {
  background: var(--color-error);
}
.tool-usage-indicator.error .tool-status {
  background: var(--color-surface);
  border: 1px solid var(--color-error);
}
.tool-usage-indicator.error .tool-status .completed-status {
  color: var(--color-error);
}
.tool-usage-indicator.error .tool-status .completed-status .malibu-app-dead-28 {
  color: var(--color-error);
}
.tool-usage-indicator.error .tool-details .tool-result .details-header {
  background: var(--color-background);
  color: white;
}
.tool-usage-indicator.error .tool-details .tool-result pre {
  background: rgb(var(--color-interactive-rgb), 0.05);
  color: var(--color-interactive);
  border: 1px solid rgb(var(--color-interactive-rgb), 0.2);
}

.tool-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--color-ui-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-sm);
  width: 100%;
  margin-bottom: 0.75rem;
}
.tool-status .status-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.tool-status .status-info .status-text {
  font-weight: var(--font-medium);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tool-status .status-info .status-text .malibu-setup-28 {
  color: var(--color-interactive);
  flex-shrink: 0;
}
.tool-status .status-info .status-text .completed-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-primary);
  font-weight: var(--font-medium);
}
.tool-status .status-info .status-text .completed-status svg {
  color: var(--color-interactive);
  flex-shrink: 0;
}
.tool-status .status-info .completion-time {
  font-size: 0.7rem;
  color: var(--color-text-tertiary);
  font-weight: var(--font-normal);
}
.tool-status .header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tool-status .header-controls .expand-toggle-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  border-radius: var(--radius-none);
  transition: all 0.2s ease;
  min-width: 24px;
  min-height: 24px;
  cursor: pointer;
}
.tool-status .header-controls .expand-toggle-button svg {
  width: 10px;
  height: 10px;
  transition: var(--transition-transform);
}
.tool-status .header-controls .expand-toggle-button svg.rotated {
  transform: rotate(180deg);
}
.tool-status .header-controls .expand-toggle-button:hover {
  background: var(--color-ui-subtle);
  color: var(--color-border-hover);
  border-color: var(--color-border-hover);
}

.tool-parameters {
  margin-top: 0.75rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-background);
  box-shadow: var(--shadow-sm);
  width: 100%;
}
.tool-parameters .collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  cursor: pointer;
  transition: var(--transition-colors);
  width: 100%;
  border: none;
  text-align: left;
  font-family: inherit;
  margin: 0;
  border-radius: var(--radius-xl);
}
.tool-parameters .collapsible-header:hover {
  background: var(--color-ui-subtle);
}
.tool-parameters .collapsible-header .parameters-label {
  font-size: 0.8rem;
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}
.tool-parameters .collapsible-header .expand-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background: var(--color-background);
  border: 1px solid var(--color-border-primary);
  color: var(--color-border-primary);
  border-radius: var(--radius-xl);
  transition: all 0.2s ease;
  min-width: 24px;
  min-height: 24px;
  cursor: pointer;
}
.tool-parameters .collapsible-header .expand-button svg {
  width: 10px;
  height: 10px;
  transition: var(--transition-transform);
}
.tool-parameters .collapsible-header .expand-button.expanded svg {
  transform: rotate(180deg);
}
.tool-parameters .collapsible-header .expand-button:hover {
  background: var(--color-ui-subtle);
  color: var(--color-border-hover);
  border-color: var(--color-border-hover);
}
.tool-parameters .tool-parameters-content {
  max-height: 160px;
  overflow-y: auto;
  animation: slide-down 0.3s ease-out;
}
.tool-parameters .tool-parameters-content pre {
  margin: 0;
  padding: 0.75rem;
  background: var(--color-surface-tertiary);
  color: var(--color-text-primary);
  font-size: 0.75rem;
  line-height: 1.4;
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", Monaco, Consolas, "Roboto Mono", monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-radius: var(--radius-none);
}

.tool-result {
  margin-top: 0.75rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-background);
  box-shadow: var(--shadow-sm);
  width: 100%;
}
.tool-result .collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  cursor: pointer;
  transition: var(--transition-colors);
  width: 100%;
  border: none;
  text-align: left;
  font-family: inherit;
  margin: 0;
  border-radius: var(--radius-xl);
}
.tool-result .collapsible-header:hover {
  background: var(--color-ui-subtle);
}
.tool-result .collapsible-header .result-label {
  font-size: 0.8rem;
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}
.tool-result .collapsible-header .expand-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background: var(--color-background);
  border: 1px solid var(--color-border-primary);
  color: var(--color-border-primary);
  border-radius: var(--radius-xl);
  transition: all 0.2s ease;
  min-width: 24px;
  min-height: 24px;
  cursor: pointer;
}
.tool-result .collapsible-header .expand-button svg {
  width: 10px;
  height: 10px;
  transition: var(--transition-transform);
}
.tool-result .collapsible-header .expand-button.expanded svg {
  transform: rotate(180deg);
}
.tool-result .collapsible-header .expand-button:hover {
  background: var(--color-ui-subtle);
  color: var(--color-border-hover);
  border-color: var(--color-border-hover);
}
.tool-result .tool-output {
  max-height: 160px;
  overflow-y: auto;
  animation: slide-down 0.3s ease-out;
}
.tool-result .tool-output pre {
  margin: 0;
  padding: 0.75rem;
  background: var(--color-surface-tertiary);
  color: var(--color-text-primary);
  font-size: 0.75rem;
  line-height: 1.4;
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", Monaco, Consolas, "Roboto Mono", monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-radius: var(--radius-none);
}

.tool-details {
  margin-top: 0.75rem;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  width: 100%;
}
.tool-details .tool-parameters,
.tool-details .tool-result {
  margin: 0;
  border-radius: var(--radius-none);
  background: transparent;
  box-shadow: none;
}
.tool-details .tool-parameters .details-header,
.tool-details .tool-result .details-header {
  margin: 0;
  padding: 0.75rem 1rem 0.5rem;
  font-size: 0.8rem;
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-ui-subtle);
}
.tool-details .tool-parameters pre,
.tool-details .tool-result pre {
  margin: 0;
  padding: 0.75rem 1rem;
  background: transparent;
  color: var(--color-text-primary);
  font-size: 0.75rem;
  line-height: 1.4;
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", Monaco, Consolas, "Roboto Mono", monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-radius: var(--radius-none);
}
.tool-details .tool-parameters {
  border-bottom: 1px solid var(--color-border);
}
.tool-details .tool-result.error-result .details-header {
  background: var(--color-background);
  color: white;
}
.tool-details .tool-result.error-result pre {
  background: rgb(var(--color-interactive-rgb), 0.05);
  color: var(--color-interactive);
  border: 1px solid rgb(var(--color-interactive-rgb), 0.2);
}

.tool-error-preview {
  margin-top: 0.75rem;
  background: rgb(var(--color-interactive-rgb), 0.05);
  border: 1px solid rgb(var(--color-interactive-rgb), 0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.tool-error-preview .error-summary .error-header {
  margin: 0;
  padding: 0.75rem 1rem 0.5rem;
  font-size: 0.8rem;
  font-weight: var(--font-medium);
  color: var(--color-error);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgb(var(--color-error-rgb), 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tool-error-preview .error-summary .error-header .icon {
  color: var(--color-error);
}
.tool-error-preview .error-summary .error-subheader {
  margin: 0 0 0.5rem;
  padding: 0 1rem;
  font-size: 0.75rem;
  font-weight: var(--font-medium);
  color: var(--color-interactive);
}
.tool-error-preview .error-summary .error-parameters {
  padding: 0 1rem 0.75rem;
  border-bottom: 1px solid rgb(var(--color-interactive-rgb), 0.1);
}
.tool-error-preview .error-summary .error-parameters .error-params-content {
  margin: 0;
  padding: 0.5rem;
  background: rgb(var(--color-interactive-rgb), 0.05);
  color: var(--color-interactive);
  font-size: 0.7rem;
  line-height: 1.4;
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", Monaco, Consolas, "Roboto Mono", monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-radius: var(--radius-xs);
  border: none;
}
.tool-error-preview .error-summary .error-runtime-params {
  padding: 0 1rem 0.75rem;
  border-bottom: 1px solid rgb(var(--color-interactive-rgb), 0.1);
}
.tool-error-preview .error-summary .error-runtime-params .error-runtime-content {
  margin: 0;
  padding: 0.5rem;
  background: rgb(var(--color-interactive-rgb), 0.05);
  color: var(--color-interactive);
  font-size: 0.7rem;
  line-height: 1.4;
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", Monaco, Consolas, "Roboto Mono", monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-radius: var(--radius-xs);
  border: none;
}
.tool-error-preview .error-summary .error-details {
  padding: 0.75rem 1rem;
}
.tool-error-preview .error-summary .error-details .error-content {
  margin: 0;
  padding: 0.5rem;
  background: rgb(var(--color-interactive-rgb), 0.05);
  color: var(--color-interactive);
  font-size: 0.7rem;
  line-height: 1.4;
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", Monaco, Consolas, "Roboto Mono", monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-radius: var(--radius-xs);
  border: none;
}

.tool-message-fallback {
  margin: 0.75rem 0 0.5rem;
  align-self: flex-start;
  width: 100%;
  position: relative;
  background: var(--color-background);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}
.tool-message-fallback::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--color-border-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-colors);
}
.tool-message-fallback .tool-status {
  background: var(--color-surface);
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 160px;
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
@media (width <= 768px) {
  .tool-usage-indicator {
    max-width: 280px;
    margin: 0.5rem 0;
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
  }
  .tool-status {
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  .tool-status .header-controls .expand-toggle-button {
    padding: 0.2rem;
    min-width: 20px;
    min-height: 20px;
  }
  .tool-status .header-controls .expand-toggle-button svg {
    width: 8px;
    height: 8px;
  }
  .tool-details {
    margin-top: 0.5rem;
  }
  .tool-details .tool-parameters .details-header,
  .tool-details .tool-result .details-header {
    padding: 0.5rem 0.75rem 0.375rem;
    font-size: 0.75rem;
  }
  .tool-details .tool-parameters pre,
  .tool-details .tool-result pre {
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
  }
}
.heroku-ai-icon i {
  transition: all 0.3s ease;
  color: var(--color-text-primary);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-style: normal;
}

.heroku-ai-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  visibility: visible;
  opacity: 1;
}
.heroku-ai-icon.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  filter: blur(0.5px);
}

.heroku-ai-icon.animated i {
  animation: heroku-blink 1.5s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px var(--color-ui-focus-ring));
}

@keyframes heroku-blink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}
.message-avatar .heroku-ai-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.message-avatar .heroku-ai-icon i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.heroku-ai-icon:not(.animated) i:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px var(--color-ui-focus-ring));
}

.thinking-indicator .heroku-ai-icon i {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .heroku-ai-icon.animated i {
    animation: heroku-blink-reduced 2s ease-in-out infinite;
  }
  @keyframes heroku-blink-reduced {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.8;
    }
  }
}
.theme-toggle-safe-zone {
  position: relative;
  padding: 30px 20px 120px 120px;
  margin: -30px -20px -120px -120px;
  z-index: 2;
}

.theme-toggle {
  display: flex;
  align-items: center;
  position: relative;
}

.theme-toggle-button {
  background: var(--color-background);
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-xl);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.theme-toggle-button:hover {
  background-color: var(--color-ui-subtle);
  color: var(--color-text-primary);
}
.theme-toggle-button:focus {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}

.theme-options {
  display: flex;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  z-index: 10;
  overflow: hidden;
  padding: 4px;
  flex-direction: column;
  min-width: 120px;
  animation: fade-in 0.2s ease-out;
}

.theme-option {
  background: transparent;
  border: none;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-size: 14px;
  border-radius: var(--radius-base);
  transition: var(--transition-base);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-option:hover {
  background-color: var(--color-ui-subtle);
  color: var(--color-text-primary);
}
.theme-option:focus {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}
.theme-option.active {
  color: var(--color-text-primary);
  font-weight: 600;
  background-color: var(--color-muted);
}

.theme-option-icon {
  flex-shrink: 0;
  color: inherit;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.inference-credentials-overlay-backdrop {
  z-index: 1100;
}

.inference-credentials-overlay-container {
  max-width: 860px;
  width: 92vw;
  max-height: 88vh;
}

.inference-credentials-overlay-details {
  margin-top: var(--space-4);
}
.inference-credentials-overlay-details summary {
  cursor: pointer;
  color: var(--color-text-primary);
  font-weight: var(--font-medium);
}
.inference-credentials-overlay-details .code-block {
  margin-top: var(--space-3);
  padding: var(--space-4);
  background: var(--color-code-background);
  border: 1px solid var(--color-code-border);
  border-radius: var(--radius-lg);
  color: var(--color-code-text);
  overflow-x: auto;
  min-height: auto;
  white-space: pre;
}

.inference-credentials-overlay-form {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.inference-credentials-overlay-banner {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-secondary);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.inference-credentials-overlay-field {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: var(--space-4);
  align-items: center;
}

.inference-credentials-overlay-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  margin: 0;
}

.inference-credentials-overlay-encryption label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-primary);
  font-weight: var(--font-medium);
}

.inference-credentials-overlay-help {
  margin: var(--space-2) 0 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.inference-credentials-overlay-error {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-danger-200, var(--color-border));
  background: var(--color-danger-50, var(--color-surface));
  color: var(--color-danger-700, var(--color-text-primary));
}

.inference-credentials-overlay-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--space-2);
}
.inference-credentials-overlay-actions .btn-primary,
.inference-credentials-overlay-actions .btn-secondary {
  min-width: 160px;
}

@media (width <= 768px) {
  .inference-credentials-overlay-field {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    align-items: stretch;
  }
  .inference-credentials-overlay-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .inference-credentials-overlay-actions .btn-primary,
  .inference-credentials-overlay-actions .btn-secondary {
    width: 100%;
    min-width: 0;
  }
}
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--color-background);
  padding: var(--space-4);
}

.login-container {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.login-branding {
  margin-bottom: var(--space-8);
}
.login-branding .heroku-logo {
  font-size: 64px;
  color: var(--color-interactive);
  margin-bottom: var(--space-4);
}

.login-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.login-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin: 0;
}

.login-form {
  margin-bottom: var(--space-6);
}

.login-button {
  width: 100%;
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-6);
}
.login-button .spinner-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.login-button .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentcolor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.login-button .spinner.small {
  width: 14px;
  height: 14px;
}

.login-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
}
.login-security-note .icon {
  font-size: 16px;
}
.login-security-note p {
  margin: 0;
}

.login-footer {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.login-help {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}
.login-help a {
  color: var(--color-interactive);
  text-decoration: none;
  font-weight: var(--font-medium);
}
.login-help a:hover {
  text-decoration: underline;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.oauth-callback-page,
.logout-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--color-background);
}

.oauth-callback-container,
.logout-container {
  text-align: center;
  max-width: 400px;
  padding: var(--space-4);
}
.oauth-callback-container .spinner-container,
.logout-container .spinner-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.oauth-callback-container .spinner,
.logout-container .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-interactive);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.oauth-callback-container .spinner.large,
.logout-container .spinner.large {
  width: 64px;
  height: 64px;
  border-width: 5px;
}
.oauth-callback-container h2,
.logout-container h2 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}
.oauth-callback-container p,
.logout-container p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin: 0;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.user-menu {
  position: relative;
}
.user-menu .user-menu-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  transition: all 0.2s ease;
}
.user-menu .user-menu-trigger:hover {
  background: var(--color-ui-subtle);
  border-color: var(--color-border-hover);
}
.user-menu .user-menu-trigger .icon {
  font-size: 18px;
}
.user-menu .user-menu-trigger .user-email {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (width <= 768px) {
  .user-menu .user-menu-trigger .user-email {
    display: none;
  }
}
.user-menu .user-menu-trigger .dropdown-arrow {
  font-size: 12px;
  transition: transform 0.2s ease;
}
.user-menu .user-menu-trigger[aria-expanded=true] .dropdown-arrow {
  transform: rotate(180deg);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 280px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  z-index: 1000;
  animation: slide-down 0.2s ease;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.user-menu-header {
  padding: var(--space-4);
}

.user-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-interactive);
  border-radius: var(--radius-full);
  color: var(--color-text-on-brand);
  font-size: 20px;
  flex-shrink: 0;
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-id {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-status {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.user-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-success);
  border-radius: var(--radius-full);
}

.user-menu-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0 var(--space-2);
}

.user-menu-actions {
  padding: var(--space-2);
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.user-menu-item .icon {
  font-size: 18px;
}
.user-menu-item:hover {
  background: var(--color-ui-subtle);
  color: var(--color-text-primary);
}
.user-menu-item.logout-item {
  color: var(--color-destructive);
}
.user-menu-item.logout-item:hover {
  background: var(--color-destructive-subtle);
  color: var(--color-destructive);
}

.addon-list-wrapper {
  padding: var(--space-3) var(--space-4);
}

.addon-list-header {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.addon-list-container {
  max-height: 372px;
  overflow: hidden auto;
}
.addon-list-container::-webkit-scrollbar {
  width: 6px;
}
.addon-list-container::-webkit-scrollbar-track {
  background: transparent;
}
.addon-list-container::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}
.addon-list-container::-webkit-scrollbar-thumb:hover {
  background: var(--color-border-hover);
}

.addon-list-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  width: 100%;
  padding: var(--space-3);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  margin-bottom: var(--space-2);
}
.addon-list-item:last-child {
  margin-bottom: 0;
}
.addon-list-item:hover {
  background: var(--color-ui-subtle);
  border-color: var(--color-border-hover);
}
.addon-list-item:active {
  background: var(--color-ui);
}
.addon-list-item .primary-text {
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
}
.addon-list-item .secondary-text {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.addon-list-loading {
  padding: var(--space-4);
  text-align: center;
}
.addon-list-loading .loading-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.addon-list-loading .loading-text::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-interactive);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.addon-list-error {
  padding: var(--space-4);
  text-align: center;
}
.addon-list-error .error-text {
  font-size: var(--text-sm);
  color: var(--color-destructive);
}

.addon-list-empty {
  padding: var(--space-4);
  text-align: center;
}
.addon-list-empty .empty-message {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-3) 0;
}
.addon-list-empty .addon-help-link {
  display: inline-block;
  font-size: var(--text-xs);
  color: var(--color-interactive);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-interactive);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
.addon-list-empty .addon-help-link:hover {
  background: var(--color-interactive);
  color: var(--color-text-on-brand);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slide-up {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
@keyframes slide-left {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slide-right {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes scale-out {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
}
@keyframes tools-modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes tools-modal-scale-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes thinking-bounce {
  0%, 80%, 100% {
    transform: scale(0.7);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 0.8;
  }
}
@keyframes heroku-blink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}
@keyframes heroku-blink-reduced {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
@keyframes theme-fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.animate-fade-in {
  animation: fade-in 0.2s ease-out;
}

.animate-slide-down {
  animation: slide-down 0.2s ease-out;
}

.animate-slide-up {
  animation: slide-up 0.2s ease-out;
}

.animate-scale-in {
  animation: scale-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-thinking {
  animation: thinking-bounce 1.4s ease-in-out infinite both;
}

.animate-heroku-blink {
  animation: heroku-blink 1.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.1s !important;
    animation-duration: 0.1s !important;
  }
  .animate-heroku-blink {
    animation: heroku-blink-reduced 2s ease-in-out infinite;
  }
  .animate-pulse {
    animation: pulse-slow 3s ease-in-out infinite;
  }
}
.stack {
  display: flex;
  flex-direction: column;
}

.stack-sm > * + * {
  margin-top: var(--space-2);
}

.stack-md > * + * {
  margin-top: var(--space-4);
}

.stack-lg > * + * {
  margin-top: var(--space-6);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.cluster-sm {
  gap: var(--space-2);
}

.cluster-md {
  gap: var(--space-4);
}

.cluster-lg {
  gap: var(--space-6);
}

.m-0 {
  margin: 0;
}

.m-1 {
  margin: var(--space-1);
}

.m-2 {
  margin: var(--space-2);
}

.m-3 {
  margin: var(--space-3);
}

.m-4 {
  margin: var(--space-4);
}

.m-5 {
  margin: var(--space-5);
}

.m-6 {
  margin: var(--space-6);
}

.m-8 {
  margin: var(--space-8);
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: var(--space-1);
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-3 {
  margin-top: var(--space-3);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-5 {
  margin-top: var(--space-5);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: var(--space-1);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-3 {
  margin-bottom: var(--space-3);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-5 {
  margin-bottom: var(--space-5);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.ml-0 {
  margin-left: 0;
}

.ml-1 {
  margin-left: var(--space-1);
}

.ml-2 {
  margin-left: var(--space-2);
}

.ml-3 {
  margin-left: var(--space-3);
}

.ml-4 {
  margin-left: var(--space-4);
}

.ml-5 {
  margin-left: var(--space-5);
}

.ml-6 {
  margin-left: var(--space-6);
}

.ml-8 {
  margin-left: var(--space-8);
}

.mr-0 {
  margin-right: 0;
}

.mr-1 {
  margin-right: var(--space-1);
}

.mr-2 {
  margin-right: var(--space-2);
}

.mr-3 {
  margin-right: var(--space-3);
}

.mr-4 {
  margin-right: var(--space-4);
}

.mr-5 {
  margin-right: var(--space-5);
}

.mr-6 {
  margin-right: var(--space-6);
}

.mr-8 {
  margin-right: var(--space-8);
}

.p-0 {
  padding: 0;
}

.p-1 {
  padding: var(--space-1);
}

.p-2 {
  padding: var(--space-2);
}

.p-3 {
  padding: var(--space-3);
}

.p-4 {
  padding: var(--space-4);
}

.p-5 {
  padding: var(--space-5);
}

.p-6 {
  padding: var(--space-6);
}

.p-8 {
  padding: var(--space-8);
}

.pt-0 {
  padding-top: 0;
}

.pt-1 {
  padding-top: var(--space-1);
}

.pt-2 {
  padding-top: var(--space-2);
}

.pt-3 {
  padding-top: var(--space-3);
}

.pt-4 {
  padding-top: var(--space-4);
}

.pt-5 {
  padding-top: var(--space-5);
}

.pt-6 {
  padding-top: var(--space-6);
}

.pt-8 {
  padding-top: var(--space-8);
}

.pb-0 {
  padding-bottom: 0;
}

.pb-1 {
  padding-bottom: var(--space-1);
}

.pb-2 {
  padding-bottom: var(--space-2);
}

.pb-3 {
  padding-bottom: var(--space-3);
}

.pb-4 {
  padding-bottom: var(--space-4);
}

.pb-5 {
  padding-bottom: var(--space-5);
}

.pb-6 {
  padding-bottom: var(--space-6);
}

.pb-8 {
  padding-bottom: var(--space-8);
}

.pl-0 {
  padding-left: 0;
}

.pl-1 {
  padding-left: var(--space-1);
}

.pl-2 {
  padding-left: var(--space-2);
}

.pl-3 {
  padding-left: var(--space-3);
}

.pl-4 {
  padding-left: var(--space-4);
}

.pl-5 {
  padding-left: var(--space-5);
}

.pl-6 {
  padding-left: var(--space-6);
}

.pl-8 {
  padding-left: var(--space-8);
}

.pr-0 {
  padding-right: 0;
}

.pr-1 {
  padding-right: var(--space-1);
}

.pr-2 {
  padding-right: var(--space-2);
}

.pr-3 {
  padding-right: var(--space-3);
}

.pr-4 {
  padding-right: var(--space-4);
}

.pr-5 {
  padding-right: var(--space-5);
}

.pr-6 {
  padding-right: var(--space-6);
}

.pr-8 {
  padding-right: var(--space-8);
}

.text-primary {
  color: var(--color-text-primary);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-tertiary {
  color: var(--color-text-tertiary);
}

.text-disabled {
  color: var(--color-text-disabled);
}

.text-on-brand {
  color: var(--color-text-on-brand);
}

.text-xs {
  font-size: var(--text-xs);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-base {
  font-size: var(--text-base);
}

.text-lg {
  font-size: var(--text-lg);
}

.text-xl {
  font-size: var(--text-xl);
}

.text-2xl {
  font-size: var(--text-2xl);
}

.font-light {
  font-weight: var(--font-light);
}

.font-normal {
  font-weight: var(--font-normal);
}

.font-medium {
  font-weight: var(--font-medium);
}

.font-semibold {
  font-weight: var(--font-semibold);
}

.font-bold {
  font-weight: var(--font-bold);
}

.transition-all {
  transition: all 0.2s ease;
}

.transition-colors {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.transition-transform {
  transition: transform 0.2s ease;
}

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

@font-face {
  font-family: malibu;
  src: url("/fonts/malibu.eot?t=1755707453805"); /* IE9 */
  src: url("/fonts/malibu.eot?t=1755707453805#iefix") format("embedded-opentype"), url("/fonts/malibu.woff2?t=1755707453805") format("woff2"), url("/fonts/malibu.woff?t=1755707453805") format("woff"), url("/fonts/malibu.ttf?t=1755707453805") format("truetype"), url("/fonts/malibu.svg?t=1755707453805") format("svg");
}
[class^=malibu-],
[class*=" malibu-"] {
  font-family: malibu, sans-serif !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Icon Classes */
.malibu-add-28::before {
  content: "\ea01";
}

.malibu-add-badge-28::before {
  content: "\ea02";
}

.malibu-add-mark-28::before {
  content: "\ea03";
}

.malibu-add-ring-28::before {
  content: "\ea04";
}

.malibu-addon-config-28::before {
  content: "\ea05";
}

.malibu-alert-badge-28::before {
  content: "\ea06";
}

.malibu-alert-mark-28::before {
  content: "\ea07";
}

.malibu-alert-ring-28::before {
  content: "\ea08";
}

.malibu-app-28::before {
  content: "\ea09";
}

.malibu-app-dead-28::before {
  content: "\ea0a";
}

.malibu-app-locked-28::before {
  content: "\ea0b";
}

.malibu-app-review-28::before {
  content: "\ea0c";
}

.malibu-app-sleeping-28::before {
  content: "\ea0d";
}

.malibu-applink-28::before {
  content: "\ea0e";
}

.malibu-apps-28::before {
  content: "\ea0f";
}

.malibu-attach-28::before {
  content: "\ea10";
}

.malibu-auto-28::before {
  content: "\ea11";
}

.malibu-automations-28::before {
  content: "\ea12";
}

.malibu-billing-28::before {
  content: "\ea13";
}

.malibu-build-28::before {
  content: "\ea14";
}

.malibu-buildpack-28::before {
  content: "\ea15";
}

.malibu-caret-28::before {
  content: "\ea16";
}

.malibu-chart-28::before {
  content: "\ea17";
}

.malibu-check-28::before {
  content: "\ea18";
}

.malibu-ci-28::before {
  content: "\ea19";
}

.malibu-configure-28::before {
  content: "\ea1a";
}

.malibu-confirm-28::before {
  content: "\ea1b";
}

.malibu-connect-28::before {
  content: "\ea1c";
}

.malibu-connections-28::before {
  content: "\ea1d";
}

.malibu-console-28::before {
  content: "\ea1e";
}

.malibu-contact-28::before {
  content: "\ea1f";
}

.malibu-containers-28::before {
  content: "\ea20";
}

.malibu-copy-28::before {
  content: "\ea21";
}

.malibu-data-28::before {
  content: "\ea22";
}

.malibu-data-cassandra-28::before {
  content: "\ea23";
}

.malibu-data-kafka-28::before {
  content: "\ea24";
}

.malibu-data-postgres-28::before {
  content: "\ea25";
}

.malibu-data-redis-28::before {
  content: "\ea26";
}

.malibu-dataclip-28::before {
  content: "\ea27";
}

.malibu-datastore-28::before {
  content: "\ea28";
}

.malibu-delete-28::before {
  content: "\ea29";
}

.malibu-deploy-28::before {
  content: "\ea2a";
}

.malibu-device-28::before {
  content: "\ea2b";
}

.malibu-diff-28::before {
  content: "\ea2c";
}

.malibu-direction-down-28::before {
  content: "\ea2d";
}

.malibu-direction-horizontal-28::before {
  content: "\ea2e";
}

.malibu-direction-left-28::before {
  content: "\ea2f";
}

.malibu-direction-right-28::before {
  content: "\ea30";
}

.malibu-direction-up-28::before {
  content: "\ea31";
}

.malibu-direction-vertical-28::before {
  content: "\ea32";
}

.malibu-docs-28::before {
  content: "\ea33";
}

.malibu-dyno-32::before {
  content: "\ea34";
}

.malibu-dyno-shield-32::before {
  content: "\ea35";
}

.malibu-dyno-space-32::before {
  content: "\ea36";
}

.malibu-edit-28::before {
  content: "\ea37";
}

.malibu-edit-accept-28::before {
  content: "\ea38";
}

.malibu-edit-modify-28::before {
  content: "\ea39";
}

.malibu-edit-reject-28::before {
  content: "\ea3a";
}

.malibu-element-28::before {
  content: "\ea3b";
}

.malibu-error-badge-28::before {
  content: "\ea3c";
}

.malibu-error-mark-28::before {
  content: "\ea3d";
}

.malibu-error-ring-28::before {
  content: "\ea3e";
}

.malibu-failure-badge-28::before {
  content: "\ea3f";
}

.malibu-failure-ring-28::before {
  content: "\ea40";
}

.malibu-favorite-28::before {
  content: "\ea41";
}

.malibu-favorite-option-28::before {
  content: "\ea42";
}

.malibu-favorite-remove-28::before {
  content: "\ea43";
}

.malibu-features-28::before {
  content: "\ea44";
}

.malibu-file-28::before {
  content: "\ea45";
}

.malibu-filter-28::before {
  content: "\ea46";
}

.malibu-flask-28::before {
  content: "\ea47";
}

.malibu-folder-28::before {
  content: "\ea48";
}

.malibu-formation-28::before {
  content: "\ea49";
}

.malibu-git-branch-28::before {
  content: "\ea4a";
}

.malibu-git-commit-28::before {
  content: "\ea4b";
}

.malibu-git-merge-28::before {
  content: "\ea4c";
}

.malibu-git-pr-28::before {
  content: "\ea4d";
}

.malibu-handle-28::before {
  content: "\ea4e";
}

.malibu-help-badge-28::before {
  content: "\ea4f";
}

.malibu-help-mark-28::before {
  content: "\ea50";
}

.malibu-help-ring-28::before {
  content: "\ea51";
}

.malibu-info-badge-28::before {
  content: "\ea52";
}

.malibu-info-mark-28::before {
  content: "\ea53";
}

.malibu-info-ring-28::before {
  content: "\ea54";
}

.malibu-key-28::before {
  content: "\ea55";
}

.malibu-language-clojure-28::before {
  content: "\ea56";
}

.malibu-language-go-28::before {
  content: "\ea57";
}

.malibu-language-gradle-28::before {
  content: "\ea58";
}

.malibu-language-java-28::before {
  content: "\ea59";
}

.malibu-language-net-28::before {
  content: "\ea5a";
}

.malibu-language-node-28::before {
  content: "\ea5b";
}

.malibu-language-php-28::before {
  content: "\ea5c";
}

.malibu-language-python-28::before {
  content: "\ea5d";
}

.malibu-language-ruby-28::before {
  content: "\ea5e";
}

.malibu-language-scala-28::before {
  content: "\ea5f";
}

.malibu-launch-28::before {
  content: "\ea60";
}

.malibu-launcher-28::before {
  content: "\ea61";
}

.malibu-layout-grid-28::before {
  content: "\ea62";
}

.malibu-layout-list-28::before {
  content: "\ea63";
}

.malibu-lightning-28::before {
  content: "\ea64";
}

.malibu-loading-28::before {
  content: "\ea65";
}

.malibu-lock-locked-28::before {
  content: "\ea66";
}

.malibu-lock-unlocked-28::before {
  content: "\ea67";
}

.malibu-logo-block-28::before {
  content: "\ea68";
}

.malibu-logo-mark-28::before {
  content: "\ea69";
}

.malibu-logo-outline-28::before {
  content: "\ea6a";
}

.malibu-logs-28::before {
  content: "\ea6b";
}

.malibu-marketing-addon-48::before {
  content: "\ea6c";
}

.malibu-marketing-api-48::before {
  content: "\ea6d";
}

.malibu-marketing-app-48::before {
  content: "\ea6e";
}

.malibu-marketing-applink-48::before {
  content: "\ea6f";
}

.malibu-marketing-architecture-48::before {
  content: "\ea70";
}

.malibu-marketing-browser-48::before {
  content: "\ea71";
}

.malibu-marketing-buildpack-48::before {
  content: "\ea72";
}

.malibu-marketing-button-48::before {
  content: "\ea73";
}

.malibu-marketing-cancel-48::before {
  content: "\ea74";
}

.malibu-marketing-caret-48::before {
  content: "\ea75";
}

.malibu-marketing-chatops-48::before {
  content: "\ea76";
}

.malibu-marketing-check-48::before {
  content: "\ea77";
}

.malibu-marketing-ci-48::before {
  content: "\ea78";
}

.malibu-marketing-cli-48::before {
  content: "\ea79";
}

.malibu-marketing-click-48::before {
  content: "\ea7a";
}

.malibu-marketing-clock-48::before {
  content: "\ea7b";
}

.malibu-marketing-cloud-48::before {
  content: "\ea7c";
}

.malibu-marketing-code-48::before {
  content: "\ea7d";
}

.malibu-marketing-connect-48::before {
  content: "\ea7e";
}

.malibu-marketing-content-48::before {
  content: "\ea7f";
}

.malibu-marketing-control-2-48::before {
  content: "\ea80";
}

.malibu-marketing-control-48::before {
  content: "\ea81";
}

.malibu-marketing-cost-48::before {
  content: "\ea82";
}

.malibu-marketing-data-48::before {
  content: "\ea83";
}

.malibu-marketing-dataclips-48::before {
  content: "\ea84";
}

.malibu-marketing-dc-alert-48::before {
  content: "\ea85";
}

.malibu-marketing-dc-caret-bottom-48::before {
  content: "\ea86";
}

.malibu-marketing-dc-caret-left-48::before {
  content: "\ea87";
}

.malibu-marketing-dc-caret-right-48::before {
  content: "\ea88";
}

.malibu-marketing-dc-caret-up-48::before {
  content: "\ea89";
}

.malibu-marketing-dc-chat-48::before {
  content: "\ea8a";
}

.malibu-marketing-dc-document-48::before {
  content: "\ea8b";
}

.malibu-marketing-dc-folder-48::before {
  content: "\ea8c";
}

.malibu-marketing-dc-help-48::before {
  content: "\ea8d";
}

.malibu-marketing-dc-info-48::before {
  content: "\ea8e";
}

.malibu-marketing-dc-link-48::before {
  content: "\ea8f";
}

.malibu-marketing-dc-list-48::before {
  content: "\ea90";
}

.malibu-marketing-dc-megaphone-48::before {
  content: "\ea91";
}

.malibu-marketing-dc-tag-48::before {
  content: "\ea92";
}

.malibu-marketing-dc-warning-48::before {
  content: "\ea93";
}

.malibu-marketing-deploy-48::before {
  content: "\ea94";
}

.malibu-marketing-device-48::before {
  content: "\ea95";
}

.malibu-marketing-doc-48::before {
  content: "\ea96";
}

.malibu-marketing-docker-48::before {
  content: "\ea97";
}

.malibu-marketing-download-48::before {
  content: "\ea98";
}

.malibu-marketing-dyno-48::before {
  content: "\ea99";
}

.malibu-marketing-dynos-48::before {
  content: "\ea9a";
}

.malibu-marketing-email-48::before {
  content: "\ea9b";
}

.malibu-marketing-enterprise-48::before {
  content: "\ea9c";
}

.malibu-marketing-enterprise-accounts-48::before {
  content: "\ea9d";
}

.malibu-marketing-events-48::before {
  content: "\ea9e";
}

.malibu-marketing-facebook-48::before {
  content: "\ea9f";
}

.malibu-marketing-flask-48::before {
  content: "\eaa0";
}

.malibu-marketing-fork-48::before {
  content: "\eaa1";
}

.malibu-marketing-github-2-48::before {
  content: "\eaa2";
}

.malibu-marketing-github-48::before {
  content: "\eaa3";
}

.malibu-marketing-globe-48::before {
  content: "\eaa4";
}

.malibu-marketing-instagram-48::before {
  content: "\eaa5";
}

.malibu-marketing-internal-routing-48::before {
  content: "\eaa6";
}

.malibu-marketing-kafka-48::before {
  content: "\eaa7";
}

.malibu-marketing-language-clojure-48::before {
  content: "\eaa8";
}

.malibu-marketing-language-go-48::before {
  content: "\eaa9";
}

.malibu-marketing-language-gradle-48::before {
  content: "\eaaa";
}

.malibu-marketing-language-java-48::before {
  content: "\eaab";
}

.malibu-marketing-language-net-48::before {
  content: "\eaac";
}

.malibu-marketing-language-node-48::before {
  content: "\eaad";
}

.malibu-marketing-language-php-48::before {
  content: "\eaae";
}

.malibu-marketing-language-python-48::before {
  content: "\eaaf";
}

.malibu-marketing-language-ruby-48::before {
  content: "\eab0";
}

.malibu-marketing-language-scala-48::before {
  content: "\eab1";
}

.malibu-marketing-levelup-48::before {
  content: "\eab2";
}

.malibu-marketing-lock-48::before {
  content: "\eab3";
}

.malibu-marketing-logs-48::before {
  content: "\eab4";
}

.malibu-marketing-mcp-server-48::before {
  content: "\eab5";
}

.malibu-marketing-metrics-48::before {
  content: "\eab6";
}

.malibu-marketing-mia-48::before {
  content: "\eab7";
}

.malibu-marketing-mtls-data-48::before {
  content: "\eab8";
}

.malibu-marketing-multi-cloud-48::before {
  content: "\eab9";
}

.malibu-marketing-parse-48::before {
  content: "\eaba";
}

.malibu-marketing-partners-48::before {
  content: "\eabb";
}

.malibu-marketing-pg-vector-48::before {
  content: "\eabc";
}

.malibu-marketing-pipelines-48::before {
  content: "\eabd";
}

.malibu-marketing-play-48::before {
  content: "\eabe";
}

.malibu-marketing-podcast-48::before {
  content: "\eabf";
}

.malibu-marketing-postgres-48::before {
  content: "\eac0";
}

.malibu-marketing-privatelink-data-48::before {
  content: "\eac1";
}

.malibu-marketing-privatelink-kafka-48::before {
  content: "\eac2";
}

.malibu-marketing-privatelink-pg-48::before {
  content: "\eac3";
}

.malibu-marketing-privatelink-redis-48::before {
  content: "\eac4";
}

.malibu-marketing-redis-48::before {
  content: "\eac5";
}

.malibu-marketing-reviewapp-48::before {
  content: "\eac6";
}

.malibu-marketing-rollback-48::before {
  content: "\eac7";
}

.malibu-marketing-rss-48::before {
  content: "\eac8";
}

.malibu-marketing-scale-48::before {
  content: "\eac9";
}

.malibu-marketing-search-48::before {
  content: "\eaca";
}

.malibu-marketing-secure-app-48::before {
  content: "\eacb";
}

.malibu-marketing-seo-48::before {
  content: "\eacc";
}

.malibu-marketing-sfdc-48::before {
  content: "\eacd";
}

.malibu-marketing-shield-48::before {
  content: "\eace";
}

.malibu-marketing-shielded-space-48::before {
  content: "\eacf";
}

.malibu-marketing-site-to-site-vpn-48::before {
  content: "\ead0";
}

.malibu-marketing-spaces-48::before {
  content: "\ead1";
}

.malibu-marketing-stars-48::before {
  content: "\ead2";
}

.malibu-marketing-starssolid-48::before {
  content: "\ead3";
}

.malibu-marketing-student-cap-48::before {
  content: "\ead4";
}

.malibu-marketing-support-48::before {
  content: "\ead5";
}

.malibu-marketing-sync-48::before {
  content: "\ead6";
}

.malibu-marketing-team-48::before {
  content: "\ead7";
}

.malibu-marketing-transfer-48::before {
  content: "\ead8";
}

.malibu-marketing-twitter-48::before {
  content: "\ead9";
}

.malibu-marketing-user-48::before {
  content: "\eada";
}

.malibu-marketing-video-48::before {
  content: "\eadb";
}

.malibu-marketing-webhooks-48::before {
  content: "\eadc";
}

.malibu-marketplace-28::before {
  content: "\eadd";
}

.malibu-maximize-28::before {
  content: "\eade";
}

.malibu-mcp-server-28::before {
  content: "\eadf";
}

.malibu-metrics-28::before {
  content: "\eae0";
}

.malibu-mia-28::before {
  content: "\eae1";
}

.malibu-minimize-28::before {
  content: "\eae2";
}

.malibu-nav-back-28::before {
  content: "\eae3";
}

.malibu-nav-forward-28::before {
  content: "\eae4";
}

.malibu-nav-go-28::before {
  content: "\eae5";
}

.malibu-network-28::before {
  content: "\eae6";
}

.malibu-notification-28::before {
  content: "\eae7";
}

.malibu-open-28::before {
  content: "\eae8";
}

.malibu-overview-28::before {
  content: "\eae9";
}

.malibu-pause-28::before {
  content: "\eaea";
}

.malibu-pending-28::before {
  content: "\eaeb";
}

.malibu-personal-28::before {
  content: "\eaec";
}

.malibu-pg-vector-28::before {
  content: "\eaed";
}

.malibu-pipeline-28::before {
  content: "\eaee";
}

.malibu-pipelines-28::before {
  content: "\eaef";
}

.malibu-play-28::before {
  content: "\eaf0";
}

.malibu-publish-28::before {
  content: "\eaf1";
}

.malibu-remove-badge-28::before {
  content: "\eaf2";
}

.malibu-remove-mark-28::before {
  content: "\eaf3";
}

.malibu-remove-ring-28::before {
  content: "\eaf4";
}

.malibu-repo-28::before {
  content: "\eaf5";
}

.malibu-restart-28::before {
  content: "\eaf6";
}

.malibu-rollback-28::before {
  content: "\eaf7";
}

.malibu-search-28::before {
  content: "\eaf8";
}

.malibu-service-bitbucket-28::before {
  content: "\eaf9";
}

.malibu-service-docker-28::before {
  content: "\eafa";
}

.malibu-service-dropbox-28::before {
  content: "\eafb";
}

.malibu-service-git-28::before {
  content: "\eafc";
}

.malibu-service-github-28::before {
  content: "\eafd";
}

.malibu-service-github-enterprise-28::before {
  content: "\eafe";
}

.malibu-service-gitlab-28::before {
  content: "\eaff";
}

.malibu-service-slack-28::before {
  content: "\eb00";
}

.malibu-settings-28::before {
  content: "\eb01";
}

.malibu-setup-28::before {
  content: "\eb02";
}

.malibu-sfdc-28::before {
  content: "\eb03";
}

.malibu-space-28::before {
  content: "\eb04";
}

.malibu-space-shielded-28::before {
  content: "\eb05";
}

.malibu-success-badge-28::before {
  content: "\eb06";
}

.malibu-success-mark-28::before {
  content: "\eb07";
}

.malibu-success-ring-28::before {
  content: "\eb08";
}

.malibu-sync-28::before {
  content: "\eb09";
}

.malibu-target-28::before {
  content: "\eb0a";
}

.malibu-team-28::before {
  content: "\eb0b";
}

.malibu-time-28::before {
  content: "\eb0c";
}

.malibu-toggle-28::before {
  content: "\eb0d";
}

.malibu-transfer-28::before {
  content: "\eb0e";
}

.malibu-usage-28::before {
  content: "\eb0f";
}

.malibu-user-28::before {
  content: "\eb10";
}

.malibu-visibility-28::before {
  content: "\eb11";
}

.malibu-visibility-off-28::before {
  content: "\eb12";
}

.malibu-warning-badge-28::before {
  content: "\eb13";
}

.malibu-warning-mark-28::before {
  content: "\eb14";
}

.malibu-warning-ring-28::before {
  content: "\eb15";
}

.malibu-webhooks-28::before {
  content: "\eb16";
}

/* Utility Classes */
.icon {
  display: inline-block;
  vertical-align: middle;
}

.icon-sm {
  font-size: 1rem;
}

.icon-md {
  font-size: 1.25rem;
}

.icon-lg {
  font-size: 1.5rem;
}

.icon-xl {
  font-size: 2rem;
}

/* Icon with text alignment */
.icon-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-text .icon {
  flex-shrink: 0;
}