@keyframes clerk-chain-of-thought-cursor {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  to {
    opacity: 0.2;
  }
}
@keyframes clerk-chat-cursor {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  to {
    opacity: 0.2;
  }
}
@keyframes clerk-context-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes clerk-dialog-backdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes clerk-dialog-popup {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes clerk-field-error-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes clerk-inline-citation-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes clerk-menu-dropdown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes clerk-model-selector-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes clerk-plan-cursor {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  to {
    opacity: 0.2;
  }
}
@keyframes clerk-popover-dropdown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes clerk-progress-indeterminate {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}
@keyframes clerk-reasoning-cursor {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  to {
    opacity: 0.2;
  }
}
@keyframes clerk-shimmer-cursor {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  to {
    opacity: 0.2;
  }
}
@keyframes clerk-spinner-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes clerk-subagent-cursor {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  to {
    opacity: 0.2;
  }
}
@keyframes clerk-task-cursor {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  to {
    opacity: 0.2;
  }
}
@keyframes clerk-terminal-cursor {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  to {
    opacity: 0.2;
  }
}
@keyframes clerk-tool-cursor {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  to {
    opacity: 0.2;
  }
}
@scope ([data-style="clerk"]) to ([data-style]) {
:scope {
  color-scheme: light;
  --clerk-background: #ffffff;
  --clerk-input: #ffffff;
  --clerk-foreground: #212126;
  --clerk-input-foreground: #131316;
  --clerk-muted-foreground: rgb(33 33 38 / 0.65);
  --clerk-primary: #2f3037;
  --clerk-primary-hover: color-mix(in srgb, #2f3037, white 20%);
  --clerk-primary-foreground: #ffffff;
  --clerk-primary-light: hsl(from #2f3037 h s calc(l + ((97 - l) / 7)));
  --clerk-primary-dark: hsl(from #2f3037 h s calc(l - ((l - 12) / 7)));
  --clerk-neutral-25: rgb(0 0 0 / 0.02);
  --clerk-neutral-50: rgb(0 0 0 / 0.03);
  --clerk-neutral-100: rgb(0 0 0 / 0.07);
  --clerk-neutral-150: rgb(0 0 0 / 0.11);
  --clerk-neutral-200: rgb(0 0 0 / 0.15);
  --clerk-neutral-300: rgb(0 0 0 / 0.28);
  --clerk-neutral-400: rgb(0 0 0 / 0.41);
  --clerk-neutral-500: rgb(0 0 0 / 0.53);
  --clerk-neutral-600: rgb(0 0 0 / 0.62);
  --clerk-neutral-700: rgb(0 0 0 / 0.73);
  --clerk-danger: #ef4444;
  --clerk-danger-hover: hsl(from #ef4444 h s calc(l - ((l - 12) / 7)));
  --clerk-danger-50: rgb(239 68 68 / 0.03);
  --clerk-danger-200: rgb(239 68 68 / 0.15);
  --clerk-danger-400: rgb(239 68 68 / 0.41);
  --clerk-danger-500: rgb(239 68 68 / 0.53);
  --clerk-danger-300: rgb(239 68 68 / 0.28);
  --clerk-danger-light: hsl(from #ef4444 h s calc(l + ((97 - l) / 7)));
  --clerk-success: #22c543;
  --clerk-success-50: rgb(34 197 67 / 0.03);
  --clerk-success-300: rgb(34 197 67 / 0.28);
  --clerk-warning: #f36b16;
  --clerk-warning-50: rgb(243 107 22 / 0.03);
  --clerk-warning-100: rgb(243 107 22 / 0.07);
  --clerk-warning-300: rgb(243 107 22 / 0.28);
  --clerk-muted: linear-gradient(var(--clerk-neutral-50), var(--clerk-neutral-50)),
    linear-gradient(var(--clerk-background), var(--clerk-background));
  --clerk-shadow-button:
    0 1px 1px 0 rgb(255 255 255 / 0.07) inset, 0 2px 3px 0 rgb(34 42 53 / 0.2),
    0 1px 1px 0 rgb(0 0 0 / 0.24);
  --clerk-shadow-outline: 0 2px 3px -1px rgb(0 0 0 / 0.08), 0 1px 0 0 rgb(0 0 0 / 0.02);
  --clerk-shadow-menu: 0 5px 15px 0 rgb(0 0 0 / 0.08), 0 15px 35px -5px rgb(0 0 0 / 0.2);
  --clerk-shadow-card-content: 0 0 2px 0 rgb(0 0 0 / 0.08), 0 1px 2px 0 rgb(0 0 0 / 0.06);
  --clerk-shadow-badge: 0 2px 0 -1px rgb(0 0 0 / 0.04);
  --clerk-shadow-segmented: 0 1px 2px 0 rgb(0 0 0 / 0.08);
  --clerk-shadow-switch:
    0 2px 2px -1px rgb(0 0 0 / 0.06), 0 0 0 1px rgb(0 0 0 / 0.06), 0 4px 4px -2px rgb(0 0 0 / 0.06);
  --clerk-ring: 0 0 0 4px var(--clerk-neutral-200);
  --clerk-shadow-popover: var(--clerk-shadow-menu), 0 0 0 1px var(--clerk-neutral-100);
  --clerk-shadow-solid: 0 0 0 1px var(--clerk-primary), var(--clerk-shadow-button);
  --clerk-shadow-outline-ring: 0 0 0 1px var(--clerk-neutral-100), var(--clerk-shadow-outline);
  --clerk-shadow-input: 0 0 0 1px var(--clerk-neutral-150), 0 0 1px 0 var(--clerk-neutral-100);
  --clerk-shadow-input-hover: 0 0 0 1px var(--clerk-neutral-300), 0 0 1px 0 var(--clerk-neutral-150);
  --clerk-shadow-input-focus: var(--clerk-shadow-input-hover), var(--clerk-ring);
  --clerk-shadow-input-invalid: 0 0 0 1px var(--clerk-danger-400), 0 0 1px 0 var(--clerk-danger-200);
  --clerk-shadow-input-invalid-hover: 0 0 0 1px var(--clerk-danger-500), 0 0 1px 0 var(--clerk-danger-200);
  --clerk-shadow-input-invalid-focus: var(--clerk-shadow-input-invalid-hover), 0 0 0 4px var(--clerk-danger-200);
  --clerk-shadow-badge-ring: 0 0 0 1px var(--clerk-neutral-100), var(--clerk-shadow-badge);
  --clerk-shadow-table:
    0 0 2px 0 rgb(0 0 0 / 0.08), 0 1px 2px 0 rgb(25 28 33 / 0.12), 0 0 0 1px var(--clerk-neutral-100);
  --clerk-chat-bg: #ffffff;
  --clerk-chat-text: #131316;
  --clerk-chat-prose: #42434d;
  --clerk-chat-muted-text: #5e5f6e;
  --clerk-chat-subtle-text: #9394a1;
  --clerk-chat-border: #eeeef0;
  --clerk-chat-muted-bg: #fafafb;
  --clerk-chat-ghost-hover: #eeeef0;
  --clerk-chat-primary-bg: #212126;
  --clerk-chat-primary-text: #ffffff;
  --clerk-chat-action-bg: #212126;
  --clerk-chat-action-text: #ffffff;
  --clerk-chat-danger-bg: #fef2f2;
  --clerk-chat-danger-text: #991b1b;
  --clerk-chat-pill-bg: #f7f7f8;
  --clerk-chat-pill-bg-hover: #eeeef0;
  --clerk-chat-pill-ring: #e3e3e7;
  --clerk-chat-pill-text: #42434d;
  --clerk-chat-code-bg: #2f3037;
  --clerk-chat-code-text: #ffffff;
  --clerk-chat-code-muted: #9394a1;
  --clerk-chat-code-border: rgb(255 255 255 / 0.1);
  --clerk-chat-code-button: rgb(47 48 55 / 0.75);
  --clerk-chat-code-button-hover: rgb(47 48 55 / 0.9);
  --clerk-docs-code-frame: #f7f7f8;
  --clerk-docs-code-bg: #ffffff;
  --clerk-docs-code-text: #131316;
  --clerk-docs-code-muted: #5e5f6e;
  --clerk-docs-code-icon: #747686;
  --clerk-docs-code-icon-hover: #131316;
  --clerk-shadow-chat-code:
    0 1.5px 2px 0 rgb(0 0 0 / 0.32), 0 0 0 1px rgb(255 255 255 / 0.1), 0 -1px 0 0 rgb(255 255 255 / 0.04);
  --clerk-shadow-chat-action: 0 1px 0 0 rgb(255 255 255 / 0.07) inset, 0 1px 3px 0 rgb(19 19 22 / 0.2);
  --clerk-shadow-docs-code: 0 0 2px 0 rgb(0 0 0 / 0.08), 0 1px 2px 0 rgb(0 0 0 / 0.06), 0 0 0 1px rgb(0 0 0 / 0.04);
  --clerk-chat-link: #131316;
  --clerk-chat-heading: #42434d;
  --clerk-chat-inline-code-bg: #ffffff;
  --clerk-chat-inline-code-border: #d9d9de;
  --clerk-chat-inline-code-text: #131316;
  --clerk-chat-code-keyword: #bab1ff;
  --clerk-chat-code-string: #5de3ff;
  --clerk-chat-code-constant: #86ef9b;
  --clerk-chat-code-punctuation: #b7b8c2;
  --clerk-chat-code-scrollbar: #5e5f6e;
  --clerk-chat-tooltip-bg: #212126;
  --clerk-chat-tooltip-text: #ffffff;
  --clerk-chat-strong: #42434d;
  --clerk-callout-ring: #eeeef0;
  --clerk-callout-bar: #9394a1;
  --clerk-callout-bar-important: #6c47ff;
  --clerk-callout-bar-success: #22c543;
  --clerk-callout-bar-danger: #ef4444;
  --clerk-prompt-card-bg: #fafafb;
  --clerk-prompt-card-ring: rgb(34 42 53 / 0.08);
  --clerk-prompt-card-rule: #eeeef0;
  --clerk-chat-success-text: #15803d;
  --clerk-chat-warning-text: #b45309;
  --clerk-shadow-chat-panel: 0 0 0 1px rgb(33 33 38 / 0.075), 0 1px 5px -4px rgb(19 19 22 / 0.7);
  --clerk-font-size-chat: 0.875rem;
  --clerk-line-height-chat: 1.6;
  --clerk-chat-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-chat-ghost: 150ms;
  --duration-chat-cursor: 840ms;
  --duration-chat-copy: 120ms;
  --clerk-radius-sm: 4px;
  --clerk-radius-md: 6px;
  --clerk-radius-lg: 8px;
  --clerk-radius-xl: 12px;
  --ease-common: ease;
  --ease-out: ease-out;
  --ease-bezier: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-slow-bezier: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-controls: 100ms;
  --duration-fast: 120ms;
  --duration-modal-backdrop: 150ms;
  --duration-modal: 180ms;
  --duration-slow: 200ms;
  --duration-focus-ring: 200ms;
  --duration-slower: 280ms;
  --duration-spinner: 400ms;
  --duration-text-field: 450ms;
  --duration-drawer: 500ms;
  --duration-slowest: 600ms;
  --bg-primary: var(--clerk-background);
  --bg-secondary: color-mix(in srgb, var(--clerk-background), black 3%);
  --bg-tertiary: color-mix(in srgb, var(--clerk-background), black 7%);
  --bg-quaternary: color-mix(in srgb, var(--clerk-background), black 2%);
  --bg-sidebar: color-mix(in srgb, var(--clerk-background), black 3%);
  --border-primary: var(--clerk-neutral-100);
  --border-secondary: var(--clerk-neutral-150);
  --border-tertiary: var(--clerk-neutral-300);
  --text-primary: var(--clerk-foreground);
  --text-secondary: var(--clerk-neutral-600);
  --text-tertiary: var(--clerk-muted-foreground);
  --text-quaternary: var(--clerk-neutral-400);
  --surface-bg: var(--clerk-background);
  --surface-border: var(--clerk-neutral-100);
  --surface-divider: var(--clerk-neutral-100);
  --surface-text: var(--clerk-foreground);
  --surface-text-strong: var(--clerk-foreground);
  --surface-text-muted: var(--clerk-muted-foreground);
  --surface-highlight: var(--clerk-neutral-50);
  --dialog-bg: var(--clerk-background);
  --dialog-text: var(--clerk-foreground);
  --overlay: rgb(0 0 0 / 0.73);
  --accent: var(--clerk-primary);
  --accent-hover: var(--clerk-primary-hover);
  --accent-text: var(--clerk-primary-foreground);
  --chip-bg: var(--clerk-background);
  --chip-bg-hover: color-mix(in srgb, var(--clerk-background), black 3%);
  --chip-text: var(--clerk-neutral-600);
  --chip-ring: var(--clerk-neutral-100);
  --chip-ring-hover: var(--clerk-neutral-150);
  --ghost-text: var(--clerk-neutral-600);
  --ghost-text-hover: var(--clerk-neutral-700);
  --ghost-bg-hover: var(--clerk-neutral-50);
  --switch-bg: var(--clerk-neutral-150);
  --switch-thumb: var(--clerk-background);
  --shadow-low: var(--clerk-shadow-outline);
  --shadow-menu: var(--clerk-shadow-menu);
  --shadow-dialog: var(--clerk-shadow-menu), 0 0 0 1px var(--clerk-neutral-100);
  --focus-ring: var(--clerk-neutral-200);
  --font-regular:
    ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";
  --font-monospace: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-size-micro: 0.6875rem;
  --font-size-mini: 0.75rem;
  --font-size-small: 0.8125rem;
  --font-size-regular: 0.8125rem;
  --font-size-large: 1.0625rem;
  --font-size-title3: 1.0625rem;
  --font-size-title2: 1.5rem;
  --font-size-title1: 1.5rem;
  --line-height-micro: calc(16 / 11);
  --line-height-mini: calc(16 / 12);
  --line-height-small: calc(18 / 13);
  --line-height-large: calc(24 / 17);
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --radius-control: var(--clerk-radius-md);
  --radius-menu: var(--clerk-radius-md);
  --radius-dialog: var(--clerk-radius-xl);
  --radius-kbd: var(--clerk-radius-sm);
  --radius-rounded: 9999px;
  --speed-quick: var(--duration-controls);
  --speed-highlight-fade-out: var(--duration-fast);
  --speed-regular: var(--duration-slow);
  --speed-slow: var(--duration-slower);
  --ease-out-quad: var(--ease-out);
  --ease-out-cubic: var(--ease-bezier);
  --ease-out-quint: var(--ease-slow-bezier);
  --ease-in-out-quad: var(--ease-common);
}
:scope[data-theme="dark"] {
  color-scheme: dark;
  --clerk-background: #212126;
  --clerk-input: #26262b;
  --clerk-foreground: #ffffff;
  --clerk-input-foreground: #ffffff;
  --clerk-muted-foreground: rgb(255 255 255 / 0.65);
  --clerk-primary: #ffffff;
  --clerk-primary-hover: color-mix(in srgb, #ffffff, white 20%);
  --clerk-primary-foreground: #000000;
  --clerk-primary-light: hsl(from #ffffff h s calc(l + ((97 - l) / 7)));
  --clerk-primary-dark: hsl(from #ffffff h s calc(l - ((l - 12) / 7)));
  --clerk-neutral-25: rgb(255 255 255 / 0.02);
  --clerk-neutral-50: rgb(255 255 255 / 0.03);
  --clerk-neutral-100: rgb(255 255 255 / 0.07);
  --clerk-neutral-150: rgb(255 255 255 / 0.11);
  --clerk-neutral-200: rgb(255 255 255 / 0.15);
  --clerk-neutral-300: rgb(255 255 255 / 0.28);
  --clerk-neutral-400: rgb(255 255 255 / 0.41);
  --clerk-neutral-500: rgb(255 255 255 / 0.53);
  --clerk-neutral-600: rgb(255 255 255 / 0.62);
  --clerk-neutral-700: rgb(255 255 255 / 0.73);
  --clerk-chat-bg: #212126;
  --clerk-chat-text: #ffffff;
  --clerk-chat-prose: #9394a1;
  --clerk-chat-muted-text: #9394a1;
  --clerk-chat-subtle-text: #747686;
  --clerk-chat-border: rgb(255 255 255 / 0.1);
  --clerk-chat-muted-bg: rgb(255 255 255 / 0.04);
  --clerk-chat-ghost-hover: rgb(255 255 255 / 0.05);
  --clerk-chat-primary-bg: #ffffff;
  --clerk-chat-primary-text: #131316;
  --clerk-chat-action-bg: #212126;
  --clerk-chat-action-text: #ffffff;
  --clerk-chat-danger-bg: rgb(127 29 29 / 0.22);
  --clerk-chat-danger-text: #fca5a5;
  --clerk-chat-pill-bg: #373840;
  --clerk-chat-pill-bg-hover: #42434d;
  --clerk-chat-pill-ring: #42434d;
  --clerk-chat-pill-text: #d9d9de;
  --clerk-docs-code-frame: #212126;
  --clerk-docs-code-bg: #2f3037;
  --clerk-docs-code-text: #ffffff;
  --clerk-docs-code-muted: #9394a1;
  --clerk-docs-code-icon: #9394a1;
  --clerk-docs-code-icon-hover: #ffffff;
  --clerk-shadow-docs-code: var(--clerk-shadow-chat-code);
  --clerk-chat-link: #d9d9de;
  --clerk-chat-heading: #9394a1;
  --clerk-chat-inline-code-bg: #212126;
  --clerk-chat-inline-code-border: #2f3037;
  --clerk-chat-inline-code-text: #eeeef0;
  --clerk-chat-tooltip-bg: #2f3037;
  --clerk-chat-tooltip-text: #ffffff;
  --clerk-chat-strong: #9394a1;
  --clerk-callout-ring: #2f3037;
  --clerk-callout-bar: #747686;
  --clerk-callout-bar-important: #8f75ff;
  --clerk-prompt-card-bg: rgb(255 255 255 / 0.03);
  --clerk-prompt-card-ring: rgb(255 255 255 / 0.08);
  --clerk-prompt-card-rule: #2f3037;
  --clerk-chat-success-text: #86ef9b;
  --clerk-chat-warning-text: #fdba74;
  --clerk-shadow-chat-panel:
    inset 0 1px 0 0 rgb(255 255 255 / 0.05), inset 0 0 0 1px rgb(255 255 255 / 0.03), 0 4px 8px 0 rgb(0 0 0 / 0.05),
    0 1px 6px -4px #000000;
  --bg-secondary: color-mix(in srgb, var(--clerk-background), white 3%);
  --bg-tertiary: color-mix(in srgb, var(--clerk-background), white 7%);
  --bg-quaternary: color-mix(in srgb, var(--clerk-background), white 2%);
  --bg-sidebar: color-mix(in srgb, var(--clerk-background), white 3%);
  --chip-bg-hover: color-mix(in srgb, var(--clerk-background), white 3%);
}
:scope {
  .ui-accordion {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }
  .ui-accordion-header {
    margin: 0;
    font: inherit;
  }
  .ui-accordion-trigger {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 32px;
    margin: 0;
    padding: 6px 12px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    color: var(--clerk-muted-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-small);
    text-align: left;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, color, box-shadow;
    transition-duration: var(--duration-controls);
    &:focus-visible {
      background-color: var(--clerk-neutral-50);
    }
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--clerk-neutral-25);
      }
    }
    &[data-panel-open] {
      color: var(--clerk-foreground);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-accordion-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-accordion-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--clerk-neutral-400);
    transition: transform var(--duration-fast);
    [data-panel-open] > & {
      transform: rotate(90deg);
    }
  }
  .ui-accordion-panel {
    box-sizing: border-box;
    height: var(--accordion-panel-height);
    overflow: hidden;
    transition:
      height var(--duration-fast) ease-out,
      opacity var(--duration-fast) ease-out;
    &[data-starting-style],
    &[data-ending-style] {
      height: 0;
      opacity: 0;
    }
  }
  .ui-accordion-content {
    padding: 4px 12px 12px;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
  }
}
:scope {
  .ui-alert-dialog-backdrop {
    position: fixed;
    inset: 0;
    background-color: var(--overlay);
    animation: clerk-dialog-backdrop var(--duration-modal-backdrop) var(--ease-common);
  }
  .ui-alert-dialog-popup {
    box-sizing: border-box;
    position: fixed;
    top: 4rem;
    left: 50%;
    translate: -50% 0;
    width: calc(100vw - 2.5rem);
    max-width: 25rem;
    overflow: hidden;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-popover);
    color: var(--clerk-foreground);
    font-family: var(--font-regular);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
    outline: none;
    animation: clerk-dialog-popup var(--duration-modal) var(--ease-out);
    @media (max-width: 640px) {
      top: 2.5rem;
    }
  }
  .ui-alert-dialog-title {
    margin: 0;
    color: var(--clerk-foreground);
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-large);
  }
  .ui-alert-dialog-description {
    margin: 0;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
  }
}
:scope {
  .ui-attachment {
    --attachment-tint: var(--clerk-chat-pill-text);
    position: relative;
    box-sizing: border-box;
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    max-width: 240px;
    min-height: 44px;
    padding: 5px 12px 5px 5px;
    border: 1px solid var(--clerk-chat-border);
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-chat-bg);
    box-shadow: var(--clerk-shadow-outline);
    color: var(--clerk-chat-text);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-attachment[data-kind="pdf"] {
    --attachment-tint: var(--clerk-chat-danger-text);
  }
  .ui-attachment[data-kind="code"] {
    --attachment-tint: var(--clerk-callout-bar-important);
  }
  .ui-attachment[data-type="image"] {
    width: 44px;
    height: 44px;
    padding: 0;
  }
  .ui-attachment-preview {
    box-sizing: border-box;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-chat-pill-bg);
    box-shadow: inset 0 0 0 1px var(--clerk-chat-pill-ring);
    color: var(--attachment-tint);
    & svg {
      width: 16px;
      height: 16px;
    }
    &:has(.ui-attachment-extension) svg {
      display: none;
    }
    & img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .ui-attachment[data-type="image"] .ui-attachment-preview {
    width: 100%;
    height: 100%;
    border-radius: 7px;
    background-color: transparent;
    box-shadow: none;
  }
  .ui-attachment-extension {
    font-family: var(--font-monospace);
    font-size: 10px;
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    letter-spacing: 0.02em;
  }
  .ui-attachment-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .ui-attachment-name {
    min-width: 0;
    overflow: hidden;
    color: var(--clerk-chat-text);
    font-weight: var(--font-weight-medium);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-attachment-meta {
    overflow: hidden;
    color: var(--clerk-chat-muted-text);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-attachment-remove {
    position: absolute;
    top: -7px;
    right: -7px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background-color: var(--clerk-chat-bg);
    box-shadow:
      0 0 0 1px var(--clerk-chat-border),
      var(--clerk-shadow-outline);
    color: var(--clerk-chat-muted-text);
    cursor: pointer;
    outline: 0;
    transition-property: color, background-color, box-shadow;
    transition-duration: var(--duration-chat-ghost);
    transition-timing-function: var(--clerk-chat-ease);
    & svg {
      width: 12px;
      height: 12px;
    }
    &::before {
      content: "";
      position: absolute;
      inset: -6px;
    }
    &:focus-visible {
      box-shadow:
        0 0 0 1px var(--clerk-chat-border),
        var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-chat-primary-bg);
        box-shadow: 0 0 0 1px var(--clerk-chat-primary-bg);
        color: var(--clerk-chat-primary-text);
      }
    }
  }
}
:scope {
  .ui-autocomplete-input {
    box-sizing: border-box;
    width: 240px;
    height: 32px;
    margin: 0;
    padding: 7px 12px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-input);
    box-shadow: var(--clerk-shadow-input);
    color: var(--clerk-input-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
    outline: none;
    transition-property: background-color, box-shadow, opacity;
    transition-timing-function: ease;
    transition-duration: var(--duration-focus-ring);
    &::placeholder {
      color: var(--clerk-muted-foreground);
    }
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        box-shadow: var(--clerk-shadow-input-hover);
      }
    }
    &:focus {
      box-shadow: var(--clerk-shadow-input-focus);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-autocomplete-positioner {
    outline: none;
  }
  .ui-autocomplete-popup {
    box-sizing: border-box;
    min-width: max(224px, var(--anchor-width));
    max-width: var(--available-width);
    overflow: hidden;
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-menu);
    color: var(--clerk-foreground);
    font-family: var(--font-regular);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
    outline: none;
    animation: clerk-menu-dropdown var(--duration-slower) var(--ease-slow-bezier);
    &[data-side="bottom"] {
      translate: 0 2px;
    }
    &[data-side="top"] {
      translate: 0 -2px;
    }
  }
  .ui-autocomplete-list {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: min(320px, var(--available-height));
    padding: 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 2px;
    outline: none;
    &:empty {
      padding: 0;
    }
  }
  .ui-autocomplete-item {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 6px 16px;
    border-radius: var(--clerk-radius-sm);
    color: var(--clerk-foreground);
    cursor: pointer;
    user-select: none;
    outline: none;
    &[data-highlighted] {
      background: var(--clerk-muted);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-autocomplete-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-autocomplete-shortcut {
    margin-left: 16px;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
  }
  .ui-autocomplete-empty:not(:empty) {
    display: flex;
    align-items: center;
    min-height: 30px;
    margin: 2px;
    padding: 6px 16px;
    color: var(--clerk-muted-foreground);
  }
  .ui-autocomplete-separator {
    height: 1px;
    margin: 0 -2px;
    background-color: var(--clerk-neutral-100);
  }
}
:scope {
  .ui-avatar {
    box-sizing: border-box;
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 9999px;
    background-color: var(--clerk-neutral-400);
    color: var(--clerk-foreground);
    font-family: var(--font-regular);
    font-weight: var(--font-weight-normal);
    vertical-align: middle;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    &:is([data-size="small"], [data-size="xs"]) {
      width: 20px;
      height: 20px;
      font-size: var(--font-size-micro);
      line-height: var(--line-height-micro);
    }
    &[data-size="medium"] {
      width: 28px;
      height: 28px;
      font-size: var(--font-size-mini);
      line-height: var(--line-height-mini);
    }
    &[data-size="sm"] {
      width: 32px;
      height: 32px;
      font-size: var(--font-size-mini);
      line-height: var(--line-height-mini);
    }
    &:is([data-size="large"], [data-size="md"]) {
      width: 36px;
      height: 36px;
      font-size: var(--font-size-small);
      line-height: var(--line-height-small);
    }
    &[data-size="lg"] {
      width: 48px;
      height: 48px;
      font-size: var(--font-size-large);
      line-height: var(--line-height-large);
    }
    &[data-shape="rounded"] {
      border-radius: var(--clerk-radius-md);
    }
  }
  .ui-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .ui-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
}
:scope {
  .ui-badge {
    --badge-fg: var(--clerk-neutral-600);
    --badge-bg: var(--clerk-neutral-50);
    --badge-ring: var(--clerk-neutral-100);
    box-sizing: border-box;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 1px;
    padding: 1px 6px;
    border: 0;
    border-radius: var(--clerk-radius-sm);
    background-color: var(--badge-bg);
    box-shadow:
      0 0 0 1px var(--badge-ring),
      var(--clerk-shadow-badge);
    color: var(--badge-fg);
    font-family: inherit;
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-micro);
    white-space: nowrap;
  }
  .ui-badge[data-variant="secondary"] {
    --badge-fg: var(--clerk-primary-foreground);
    --badge-bg: var(--clerk-primary);
    --badge-ring: transparent;
    box-shadow: var(--clerk-shadow-badge);
  }
  .ui-badge:is([data-variant="danger"], [data-variant="error"]) {
    --badge-fg: var(--clerk-danger);
    --badge-bg: var(--clerk-danger-50);
    --badge-ring: var(--clerk-danger-300);
  }
  .ui-badge[data-variant="success"] {
    --badge-fg: var(--clerk-success);
    --badge-bg: var(--clerk-success-50);
    --badge-ring: var(--clerk-success-300);
  }
  .ui-badge[data-variant="warning"] {
    --badge-fg: var(--clerk-warning);
    --badge-bg: var(--clerk-warning-50);
    --badge-ring: var(--clerk-warning-300);
  }
  .ui-badge-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: currentColor;
  }
}
:scope {
  .ui-banner {
    --banner-fg: var(--clerk-muted-foreground);
    --banner-icon: var(--clerk-muted-foreground);
    --banner-bg: var(--clerk-neutral-50);
    --banner-border: var(--clerk-neutral-150);
    --banner-shadow: var(--clerk-neutral-100);
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--banner-border);
    border-radius: var(--clerk-radius-md);
    background-color: var(--banner-bg);
    box-shadow: 0 0 1px 0 var(--banner-shadow);
    color: var(--banner-fg);
    font-family: inherit;
    text-align: start;
  }
  .ui-banner:is([data-variant="danger"], [data-variant="error"]) {
    --banner-fg: var(--clerk-danger);
    --banner-icon: var(--clerk-danger);
    --banner-bg: var(--clerk-danger-50);
    --banner-border: var(--clerk-danger-500);
    --banner-shadow: var(--clerk-neutral-150);
  }
  .ui-banner[data-variant="warning"] {
    --banner-fg: var(--clerk-warning);
    --banner-icon: var(--clerk-warning);
    --banner-bg: var(--clerk-warning-100);
    --banner-border: var(--clerk-warning-300);
    --banner-shadow: var(--clerk-warning-50);
  }
  .ui-banner[data-variant="success"] {
    --banner-fg: var(--clerk-success);
    --banner-icon: var(--clerk-success);
    --banner-bg: var(--clerk-success-50);
    --banner-border: var(--clerk-success-300);
    --banner-shadow: var(--clerk-success-50);
  }
  .ui-banner-icon {
    display: flex;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-inline-end: 10px;
    color: var(--banner-icon);
    & svg {
      width: 16px;
      height: 16px;
    }
  }
  .ui-banner-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .ui-banner-title,
  .ui-banner-description {
    margin: 0;
    color: var(--banner-fg);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    text-wrap: pretty;
  }
  .ui-banner-title {
    font-weight: var(--font-weight-normal);
    &:has(+ .ui-banner-description) {
      font-weight: var(--font-weight-bold);
    }
  }
  .ui-banner-description {
    font-weight: var(--font-weight-normal);
  }
  .ui-banner-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    margin-inline-start: auto;
    margin-block-start: -4px;
  }
}
:scope {
  .ui-breadcrumbs {
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
  }
  .ui-breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .ui-breadcrumbs-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
  }
  .ui-breadcrumbs-link {
    border-radius: var(--clerk-radius-sm);
    color: var(--clerk-muted-foreground);
    text-decoration: none;
    outline: 0;
    transition: color var(--duration-controls);
    @media (hover: hover) {
      &:hover {
        color: var(--clerk-foreground);
      }
    }
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
  }
  .ui-breadcrumbs-page {
    color: var(--clerk-foreground);
  }
  .ui-breadcrumbs-separator {
    display: inline-flex;
    color: var(--clerk-neutral-400);
    & svg {
      width: 16px;
      height: 16px;
    }
  }
}
:scope {
  .ui-button {
    --button-shadow: 0 0 #0000;
    --button-ring: var(--clerk-ring);
    --button-fg: var(--clerk-neutral-600);
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    box-shadow: var(--button-shadow);
    color: var(--button-fg);
    font-family: inherit;
    font-weight: var(--font-weight-medium);
    letter-spacing: normal;
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, background, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: var(--duration-controls);
    &:focus-visible {
      box-shadow: var(--button-shadow), var(--button-ring);
      transition-duration: var(--duration-focus-ring);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
      pointer-events: none;
    }
    & svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }
  }
  .ui-button:is([data-size="small"], [data-size="xs"]) {
    height: 24px;
    min-width: 24px;
    padding: 0 12px;
    gap: 6px;
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
    & svg {
      width: 12px;
      height: 12px;
    }
  }
  .ui-button:is([data-size="medium"], [data-size="sm"]) {
    height: 32px;
    min-width: 32px;
    padding: 7px 12px;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-button:is([data-size="large"], [data-size="md"]) {
    height: 38px;
    min-width: 38px;
    padding: 0 20px;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-button[data-icon-only] {
    padding: 0;
  }
  .ui-button:is([data-variant="primary"], [data-variant="solid"], [data-variant="danger"]) {
    --solid: var(--clerk-primary);
    --solid-hover: var(--clerk-primary-hover);
    --button-fg: var(--clerk-primary-foreground);
    --button-shadow: 0 0 0 1px var(--solid), var(--clerk-shadow-button);
    background-color: var(--solid);
    &::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      border-radius: inherit;
      background: linear-gradient(180deg, rgb(255 255 255 / 0.11) 0%, transparent 100%);
      opacity: 1;
      transition-property: background-color, background, border-color, color, fill, stroke, opacity, box-shadow, transform;
      transition-duration: var(--duration-controls);
    }
    @media (hover: hover) {
      &:hover {
        background-color: var(--solid-hover);
        &::after {
          opacity: 0;
        }
      }
    }
    &:active::after {
      opacity: 1;
    }
  }
  .ui-button[data-variant="danger"] {
    --solid: var(--clerk-danger);
    --solid-hover: var(--clerk-danger-hover);
    --button-fg: white;
    --button-ring: 0 0 0 4px var(--clerk-danger-200);
  }
  .ui-button:is([data-variant="secondary"], [data-variant="outline"]) {
    --button-shadow: var(--clerk-shadow-outline-ring);
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-neutral-50);
      }
    }
  }
  .ui-button[data-variant="bordered"] {
    --button-shadow: var(--clerk-shadow-outline-ring);
    --button-fg: var(--clerk-foreground);
    background-color: var(--clerk-background);
    @media (hover: hover) {
      &:hover {
        background-color: color-mix(in srgb, var(--clerk-background), var(--clerk-neutral-50));
      }
    }
  }
  .ui-button:is([data-variant="ghost"], [data-variant="ghost-neutral"], [data-variant="ghost-danger"]) {
    --button-fg: var(--clerk-primary);
    --button-fg-hover: var(--clerk-primary-hover);
    --button-bg-hover: var(--clerk-neutral-50);
    @media (hover: hover) {
      &:hover {
        background-color: var(--button-bg-hover);
        color: var(--button-fg-hover);
      }
    }
  }
  .ui-button[data-variant="ghost-neutral"] {
    --button-fg: var(--clerk-neutral-600);
    --button-fg-hover: var(--clerk-neutral-700);
  }
  .ui-button[data-variant="ghost-danger"] {
    --button-fg: var(--clerk-danger);
    --button-fg-hover: var(--clerk-danger-hover);
    --button-bg-hover: var(--clerk-danger-50);
    --button-ring: 0 0 0 4px var(--clerk-danger-200);
  }
  .ui-button[data-variant="link"] {
    --button-fg: var(--clerk-primary);
    height: fit-content;
    min-width: 0;
    padding: 0;
    @media (hover: hover) {
      &:hover {
        text-decoration: underline;
      }
    }
  }
  .ui-button[data-loading] {
    color: transparent;
  }
  .ui-button-spinner {
    position: absolute;
    inset: 0;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid var(--button-fg);
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-radius: 99999px;
    animation: clerk-spinner-spin var(--duration-spinner) linear infinite;
  }
}
:scope {
  .ui-button-group {
    display: inline-flex;
    isolation: isolate;
    border-radius: var(--clerk-radius-md);
    box-shadow: var(--clerk-shadow-outline-ring);
    & > .ui-button[data-variant] {
      --button-shadow: 0 0 #0000;
    }
    & > .ui-button {
      border-radius: 0;
      &:focus-visible {
        z-index: 1;
      }
    }
  }
  .ui-button-group[data-orientation="horizontal"] > .ui-button {
    &:first-child {
      border-start-start-radius: var(--clerk-radius-md);
      border-end-start-radius: var(--clerk-radius-md);
    }
    &:last-child {
      border-start-end-radius: var(--clerk-radius-md);
      border-end-end-radius: var(--clerk-radius-md);
    }
    & + .ui-button {
      border-inline-start: 1px solid var(--clerk-neutral-100);
    }
  }
  .ui-button-group[data-orientation="vertical"] {
    flex-direction: column;
    & > .ui-button {
      &:first-child {
        border-start-start-radius: var(--clerk-radius-md);
        border-start-end-radius: var(--clerk-radius-md);
      }
      &:last-child {
        border-end-start-radius: var(--clerk-radius-md);
        border-end-end-radius: var(--clerk-radius-md);
      }
      & + .ui-button {
        border-top: 1px solid var(--clerk-neutral-100);
      }
    }
  }
}
:scope {
  .ui-calendar-event {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    min-width: 0;
    padding: 16px 20px;
    overflow: hidden;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-table);
    color: var(--clerk-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
  }
  .ui-calendar-event-date {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48px;
    padding: 6px 0 7px;
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-neutral-50);
    box-shadow: var(--clerk-shadow-badge-ring);
    font-variant-numeric: tabular-nums;
  }
  .ui-calendar-event-month {
    color: var(--clerk-danger);
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-micro);
  }
  .ui-calendar-event-day {
    color: var(--clerk-foreground);
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-large);
  }
  .ui-calendar-event-weekday {
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-micro);
    line-height: var(--line-height-micro);
  }
  .ui-calendar-event-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .ui-calendar-event-title {
    margin: 0 0 2px;
    color: var(--clerk-foreground);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-small);
  }
  .ui-calendar-event-time,
  .ui-calendar-event-location,
  .ui-calendar-event-attendees {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--clerk-muted-foreground);
    & svg {
      width: 14px;
      height: 14px;
      flex: none;
      color: var(--clerk-neutral-500);
    }
  }
  .ui-calendar-event-actions {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 -20px -16px;
    padding: 12px 20px;
    background: var(--clerk-muted);
    box-shadow: inset 0 1px 0 var(--clerk-neutral-100);
  }
}
:scope {
  .ui-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--clerk-radius-xl);
    background-color: transparent;
    box-shadow: var(--clerk-shadow-popover);
    color: var(--clerk-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-card-header,
  .ui-card-content {
    background-color: var(--clerk-background);
  }
  .ui-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 32px 40px 0;
    text-align: center;
    &:last-child,
    &:has(+ .ui-card-footer) {
      padding-bottom: 32px;
    }
  }
  .ui-card-title {
    margin: 0;
    color: var(--clerk-foreground);
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-large);
  }
  .ui-card-description {
    margin: 0;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
    text-wrap: pretty;
  }
  .ui-card-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 40px;
  }
  .ui-card:has(> .ui-card-footer) > :nth-last-child(2) {
    position: relative;
    z-index: 1;
    border-radius: 0 0 var(--clerk-radius-lg) var(--clerk-radius-lg);
    box-shadow:
      var(--clerk-shadow-card-content),
      0 0 0 1px var(--clerk-neutral-50);
    clip-path: inset(0 -8px -8px);
  }
  .ui-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: -8px;
    padding: 24px 32px 16px;
    background: var(--clerk-muted);
    color: var(--clerk-muted-foreground);
  }
  .ui-card[data-variant="flush"] {
    gap: 32px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    & > .ui-card-header,
    & > .ui-card-content,
    & > .ui-card-footer {
      padding: 0;
      background: transparent;
    }
    & > :nth-last-child(2) {
      border-radius: 0;
      box-shadow: none;
      clip-path: none;
    }
    & > .ui-card-footer {
      margin-top: 0;
    }
  }
}
:scope {
  .ui-chain-of-thought {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--clerk-chat-muted-text);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-chain-of-thought-trigger {
    box-sizing: border-box;
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    height: 26px;
    margin: 0 0 0 -6px;
    padding: 0 6px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    color: var(--clerk-chat-text);
    font: inherit;
    font-weight: var(--font-weight-medium);
    text-align: start;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, box-shadow;
    transition-duration: var(--duration-chat-ghost);
    transition-timing-function: var(--clerk-chat-ease);
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-chat-ghost-hover);
      }
    }
  }
  .ui-chain-of-thought-icon {
    display: flex;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    & :is(svg, .ui-spinner) {
      width: 14px;
      height: 14px;
    }
    & .ui-spinner {
      width: 12px;
      height: 12px;
      margin: 1px;
      border-width: 1.5px;
    }
  }
  .ui-chain-of-thought-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-chain-of-thought-description {
    flex: none;
    color: var(--clerk-chat-subtle-text);
    font-weight: var(--font-weight-normal);
    font-variant-numeric: tabular-nums;
  }
  .ui-chain-of-thought-chevron {
    width: 12px;
    height: 12px;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    transition: transform var(--duration-slow) var(--ease-out);
    [data-panel-open] > & {
      transform: rotate(90deg);
    }
  }
  .ui-chain-of-thought[data-status="running"] .ui-chain-of-thought-title::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 14px;
    margin-left: 4px;
    border-radius: 999px;
    background-color: var(--clerk-chat-subtle-text);
    vertical-align: -2px;
    animation: clerk-chain-of-thought-cursor var(--duration-chat-cursor) steps(1, end) infinite;
  }
  .ui-chain-of-thought-content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: var(--collapsible-panel-height);
    padding: 10px 0 2px;
    overflow: hidden;
    transition:
      height var(--duration-slow) var(--ease-out),
      padding-block var(--duration-slow) var(--ease-out),
      opacity var(--duration-slow) var(--ease-out);
    &[data-starting-style],
    &[data-ending-style] {
      height: 0;
      padding-block: 0;
      opacity: 0;
    }
  }
  .ui-chain-of-thought-step {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 12px;
    padding-bottom: 16px;
    &::before {
      content: "";
      position: absolute;
      top: 28px;
      bottom: 4px;
      left: 11.5px;
      width: 1px;
      background-color: var(--clerk-chat-border);
    }
    &:last-child {
      padding-bottom: 0;
      &::before {
        display: none;
      }
    }
  }
  .ui-chain-of-thought-step-icon {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background-color: var(--clerk-chat-bg);
    box-shadow: inset 0 0 0 1px var(--clerk-chat-border);
    color: var(--clerk-chat-muted-text);
    & :is(svg, .ui-spinner) {
      width: 14px;
      height: 14px;
    }
    & .ui-spinner {
      width: 12px;
      height: 12px;
      margin: 1px;
      border-width: 1.5px;
    }
    &:empty::after {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background-color: var(--clerk-chat-subtle-text);
    }
  }
  .ui-chain-of-thought-step[data-status="running"] .ui-chain-of-thought-step-icon {
    box-shadow: inset 0 0 0 1px var(--clerk-chat-text);
    color: var(--clerk-chat-text);
  }
  .ui-chain-of-thought-step-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding-top: 2px;
  }
  .ui-chain-of-thought-step-label {
    margin: 0;
    color: var(--clerk-chat-text);
    font-size: var(--clerk-font-size-chat);
    font-weight: var(--font-weight-medium);
    line-height: 20px;
  }
  .ui-chain-of-thought-step[data-status="error"] .ui-chain-of-thought-step-label {
    color: var(--clerk-chat-danger-text);
  }
  .ui-chain-of-thought-step[data-status="pending"] .ui-chain-of-thought-step-label {
    color: var(--clerk-chat-muted-text);
  }
  .ui-chain-of-thought-step-description {
    margin: 0;
    color: var(--clerk-chat-muted-text);
  }
  .ui-chain-of-thought-results {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
  }
  .ui-chain-of-thought-result {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: var(--clerk-radius-sm);
    background-color: var(--clerk-neutral-50);
    box-shadow: var(--clerk-shadow-badge-ring);
    color: var(--clerk-neutral-600);
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-micro);
    white-space: nowrap;
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-chain-of-thought[data-status="running"] .ui-chain-of-thought-title::after {
      animation: none;
      opacity: 0.6;
    }
    .ui-chain-of-thought-content,
    .ui-chain-of-thought-chevron {
      transition: none;
    }
  }
}
:scope {
  .ui-chat {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-chat-bg);
    box-shadow: var(--clerk-shadow-chat-panel);
    color: var(--clerk-chat-text);
    font-family: inherit;
    font-size: var(--clerk-font-size-chat);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  .ui-chat-viewport {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--clerk-neutral-300) transparent;
    outline: none;
    &:focus-visible {
      box-shadow: inset var(--clerk-ring);
    }
  }
  .ui-chat-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 16px 12px;
  }
  .ui-chat-scroll-button {
    position: absolute;
    bottom: 12px;
    left: 50%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--clerk-chat-border);
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-chat-bg);
    box-shadow: var(--clerk-shadow-outline);
    color: var(--clerk-chat-muted-text);
    translate: -50% 0;
    cursor: pointer;
    outline: 0;
    transition-property: color, background-color, box-shadow;
    transition-duration: var(--duration-chat-copy);
    transition-timing-function: var(--ease-common);
    & svg {
      width: 18px;
      height: 18px;
    }
    &:focus-visible {
      box-shadow: var(--clerk-shadow-outline), var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-chat-muted-bg);
        color: var(--clerk-chat-text);
      }
    }
  }
  .ui-chat-empty {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--clerk-chat-border);
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-chat-muted-bg);
    text-align: start;
  }
  .ui-chat-empty-title {
    margin: 0;
    color: var(--clerk-chat-text);
    font-size: var(--clerk-font-size-chat);
    font-weight: var(--font-weight-semibold);
    line-height: 1.5;
  }
  .ui-chat-empty-description {
    margin: 0;
    color: var(--clerk-chat-muted-text);
    font-size: var(--clerk-font-size-chat);
    line-height: 1.5;
  }
  .ui-chat-header {
    box-sizing: border-box;
    display: flex;
    flex: none;
    align-items: center;
    gap: 4px;
    height: 44px;
    padding: 0 8px 0 12px;
    border-bottom: 1px solid var(--clerk-chat-border);
    & .ui-button {
      width: 28px;
      height: 28px;
      color: var(--clerk-chat-subtle-text);
      & svg {
        width: 16px;
        height: 16px;
      }
      &:not(:last-child) {
        display: none;
      }
    }
  }
  .ui-chat-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--clerk-chat-text);
    font-size: var(--clerk-font-size-chat);
    font-weight: var(--font-weight-semibold);
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-chat-footer {
    display: flex;
    flex: none;
    flex-direction: column;
    & .ui-prompt-input {
      border: 0;
      border-top: 1px solid var(--clerk-chat-border);
      border-radius: 0;
    }
  }
  .ui-chat-disclaimer {
    display: none;
  }
  .ui-chat-typing {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    height: 22px;
  }
  .ui-chat-typing-dot {
    width: 6px;
    height: 14px;
    border-radius: 999px;
    background-color: var(--clerk-chat-subtle-text);
    animation: clerk-chat-cursor var(--duration-chat-cursor) steps(1, end) infinite;
    &:not(:first-child) {
      display: none;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-chat-typing-dot {
      animation: none;
      opacity: 0.6;
    }
  }
}
:scope {
  .ui-checkbox {
    box-sizing: border-box;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--clerk-radius-sm);
    background-color: var(--clerk-input);
    color: var(--clerk-primary-foreground);
    box-shadow:
      0 0 0 1px var(--clerk-neutral-150),
      0 0 1px 0 var(--clerk-neutral-100);
    cursor: pointer;
    outline: transparent solid 2px;
    outline-offset: 2px;
    transition-property: background-color, box-shadow, opacity;
    transition-timing-function: ease;
    transition-duration: var(--duration-focus-ring);
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        box-shadow:
          0 0 0 1px var(--clerk-neutral-300),
          0 0 1px 0 var(--clerk-neutral-150);
      }
    }
    &:focus-visible {
      box-shadow:
        0 0 0 1px var(--clerk-neutral-300),
        0 0 1px 0 var(--clerk-neutral-150),
        0 0 0 4px var(--clerk-neutral-150);
    }
    &[data-checked],
    &[data-indeterminate] {
      background-color: var(--clerk-primary);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-checkbox-indicator {
    display: flex;
    &[data-unchecked] {
      display: none;
    }
    & svg {
      width: 8px;
      height: 8px;
    }
  }
}
:scope {
  .ui-checkbox-group-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
:scope {
  .ui-checkpoint {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--clerk-chat-muted-text);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    &::before,
    &::after {
      content: "";
      flex: 1;
      min-width: 16px;
      height: 1px;
      background-color: var(--clerk-chat-border);
    }
  }
  .ui-checkpoint-icon {
    display: flex;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    & svg {
      width: 14px;
      height: 14px;
    }
  }
  .ui-checkpoint-label {
    flex: none;
    margin-left: -4px;
    white-space: nowrap;
  }
  .ui-checkpoint-trigger {
    box-sizing: border-box;
    display: inline-flex;
    flex: none;
    align-items: center;
    height: 26px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background-color: var(--clerk-chat-pill-bg);
    box-shadow: inset 0 0 0 1px var(--clerk-chat-pill-ring);
    color: var(--clerk-chat-pill-text);
    font: inherit;
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-medium);
    line-height: 16px;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, color, box-shadow;
    transition-duration: var(--duration-chat-ghost);
    transition-timing-function: var(--clerk-chat-ease);
    &:focus-visible {
      box-shadow:
        inset 0 0 0 1px var(--clerk-chat-pill-ring),
        var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--clerk-chat-pill-bg-hover);
        color: var(--clerk-chat-text);
      }
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
}
:scope {
  .ui-code-block {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-chat-code-bg);
    box-shadow: var(--clerk-shadow-chat-code);
    color: var(--clerk-chat-code-text);
    font-family: inherit;
    font-size: 13px;
    color-scheme: dark;
  }
  .ui-code-block-header {
    display: flex;
    align-items: center;
    min-height: 20px;
    padding: 12px 52px 0 16px;
  }
  .ui-code-block-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--clerk-chat-code-muted);
    font-family: var(--font-monospace);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-code-block-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .ui-code-block-copy {
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--clerk-chat-code-border);
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-chat-code-button);
    color: var(--clerk-chat-code-muted);
    backdrop-filter: blur(4px);
    cursor: pointer;
    outline: 0;
    transition-property: color, box-shadow;
    transition-duration: var(--duration-chat-copy);
    transition-timing-function: var(--ease-common);
    & svg {
      width: 16px;
      height: 16px;
    }
    &:focus-visible {
      box-shadow: 0 0 0 3px var(--clerk-chat-code-border);
      color: var(--clerk-chat-code-text);
    }
    @media (hover: hover) {
      &:hover {
        color: var(--clerk-chat-code-text);
      }
    }
    &[data-copied] {
      color: var(--clerk-chat-code-constant);
    }
  }
  .ui-code-block-content {
    box-sizing: border-box;
    max-height: 360px;
    margin: 0;
    padding: 12px 44px 12px 16px;
    overflow: auto;
    color: var(--clerk-chat-code-text);
    font-family: var(--font-monospace);
    font-size: 13px;
    line-height: 1.5;
    tab-size: 2;
    white-space: pre;
    scrollbar-width: thin;
    scrollbar-color: var(--clerk-chat-code-scrollbar) transparent;
    outline: none;
    &:focus-visible {
      box-shadow: inset 0 0 0 1px var(--clerk-chat-code-border);
    }
    & code {
      font: inherit;
    }
  }
  .ui-code-block-header + .ui-code-block-content {
    padding-top: 0;
  }
  .ui-code-block-content[data-wrap] {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .ui-code-block-token {
    &:is([data-token="keyword"], [data-token="function"]) {
      color: var(--clerk-chat-code-keyword);
    }
    &[data-token="string"] {
      color: var(--clerk-chat-code-string);
    }
    &:is([data-token="number"], [data-token="type"]) {
      color: var(--clerk-chat-code-constant);
    }
    &[data-token="comment"] {
      color: var(--clerk-chat-code-muted);
    }
  }
}
:scope {
  .ui-collapsible-trigger {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    margin: 0;
    padding: 0 8px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    color: var(--clerk-primary);
    font-family: inherit;
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-mini);
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, color, box-shadow;
    transition-duration: var(--duration-controls);
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--clerk-neutral-50);
        color: var(--clerk-primary-hover);
      }
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-collapsible-caret {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    color: var(--clerk-neutral-400);
    transform: rotate(-90deg);
    transition: transform var(--duration-fast);
    [data-panel-open] > & {
      transform: none;
    }
  }
  .ui-collapsible-panel {
    box-sizing: border-box;
    height: var(--collapsible-panel-height);
    overflow: hidden;
    transition:
      height var(--duration-fast) ease-out,
      opacity var(--duration-fast) ease-out;
    &[data-starting-style],
    &[data-ending-style] {
      height: 0;
      opacity: 0;
    }
  }
}
:scope {
  .ui-combobox-trigger {
    --button-shadow: var(--clerk-shadow-outline-ring);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    box-shadow: var(--button-shadow);
    color: var(--clerk-neutral-600);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-small);
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, color, box-shadow, opacity;
    transition-duration: var(--duration-controls);
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--clerk-neutral-50);
      }
    }
    &[data-popup-open] {
      background-color: var(--clerk-neutral-50);
    }
    &:focus-visible {
      box-shadow: var(--button-shadow), var(--clerk-ring);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
    & svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }
  }
  .ui-combobox-positioner {
    outline: none;
  }
  .ui-combobox-popup {
    box-sizing: border-box;
    min-width: max(224px, var(--anchor-width));
    max-width: var(--available-width);
    overflow: hidden;
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-menu);
    color: var(--clerk-foreground);
    font-family: var(--font-regular);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
    outline: none;
    animation: clerk-menu-dropdown var(--duration-slower) var(--ease-slow-bezier);
    &[data-side="bottom"] {
      translate: 0 2px;
    }
    &[data-side="top"] {
      translate: 0 -2px;
    }
  }
  .ui-combobox-input {
    box-sizing: border-box;
    display: block;
    width: calc(100% - 4px);
    margin: 2px 2px 0;
    padding: 8px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-neutral-100);
    color: var(--clerk-input-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
    outline: none;
    &::placeholder {
      color: var(--clerk-muted-foreground);
    }
  }
  .ui-combobox-list {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: min(320px, calc(var(--available-height) - 38px));
    padding: 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 2px;
    outline: none;
    &:empty {
      padding: 0;
    }
  }
  .ui-combobox-item {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 6px 16px;
    border-radius: var(--clerk-radius-sm);
    color: var(--clerk-foreground);
    cursor: pointer;
    user-select: none;
    outline: none;
    &[data-highlighted] {
      background: var(--clerk-muted);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-combobox-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-combobox-indicator {
    display: flex;
    color: var(--clerk-foreground);
    & svg {
      width: 16px;
      height: 16px;
    }
  }
  .ui-combobox-shortcut {
    margin-left: 16px;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
  }
  .ui-combobox-empty:not(:empty) {
    display: flex;
    align-items: center;
    min-height: 30px;
    margin: 2px;
    padding: 6px 16px;
    color: var(--clerk-muted-foreground);
  }
  .ui-combobox-separator {
    height: 1px;
    margin: 0 -2px;
    background-color: var(--clerk-neutral-100);
  }
}
:scope {
  .ui-command-palette-backdrop {
    position: fixed;
    inset: 0;
    background-color: var(--overlay);
    animation: clerk-dialog-backdrop var(--duration-modal-backdrop) var(--ease-common);
  }
  .ui-command-palette-viewport {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 1.25rem 1.25rem;
    @media (max-width: 640px) {
      padding-top: 2.5rem;
    }
  }
  .ui-command-palette {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 34rem;
    max-height: min(28rem, calc(100dvh - 6rem));
    overflow: hidden;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-popover);
    color: var(--clerk-foreground);
    font-family: var(--font-regular);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
    outline: none;
    animation: clerk-dialog-popup var(--duration-modal) var(--ease-out);
  }
  .ui-command-palette-input-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--clerk-neutral-100);
  }
  .ui-command-palette-search {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--clerk-neutral-400);
  }
  .ui-command-palette-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--clerk-input-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
    outline: 0;
    &::placeholder {
      color: var(--clerk-muted-foreground);
    }
  }
  .ui-command-palette-list {
    box-sizing: border-box;
    flex: 1;
    min-height: 0;
    padding: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 4px;
    outline: none;
    &:empty {
      display: none;
    }
  }
  .ui-command-palette-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    & + & {
      margin-top: 4px;
      padding-top: 4px;
      border-top: 1px solid var(--clerk-neutral-100);
    }
  }
  .ui-command-palette-group-label {
    padding: 8px 12px 4px;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-micro);
  }
  .ui-command-palette-item {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: var(--clerk-radius-md);
    color: var(--clerk-foreground);
    cursor: pointer;
    user-select: none;
    outline: none;
    &[data-highlighted] {
      background: var(--clerk-muted);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-command-palette-icon {
    display: flex;
    flex-shrink: 0;
    color: var(--clerk-neutral-400);
    & svg {
      width: 16px;
      height: 16px;
    }
    .ui-command-palette-item[data-highlighted] & {
      color: var(--clerk-foreground);
    }
  }
  .ui-command-palette-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-command-palette-shortcut {
    flex-shrink: 0;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
  }
  .ui-command-palette-empty:not(:empty) {
    padding: 24px 16px;
    color: var(--clerk-muted-foreground);
    text-align: center;
  }
  .ui-command-palette-footer {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    border-top: 1px solid var(--clerk-neutral-100);
    background: var(--clerk-muted);
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-micro);
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-command-palette,
    .ui-command-palette-backdrop {
      animation: none;
    }
  }
}
:scope {
  .ui-confirmation {
    --confirmation-bar: var(--clerk-callout-bar-important);
    position: relative;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 12px;
    min-width: 0;
    padding: 14px 16px 14px 26px;
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-chat-bg);
    box-shadow: inset 0 0 0 1px var(--clerk-callout-ring);
    color: var(--clerk-chat-prose);
    font-family: inherit;
    font-size: var(--clerk-font-size-chat);
    line-height: 1.5;
    &::before {
      content: "";
      position: absolute;
      top: 8px;
      bottom: 8px;
      left: 8px;
      width: 2px;
      border-radius: 2px;
      background-color: var(--confirmation-bar);
    }
  }
  .ui-confirmation[data-state="approved"] {
    --confirmation-bar: var(--clerk-callout-bar-success);
  }
  .ui-confirmation[data-state="denied"] {
    --confirmation-bar: var(--clerk-callout-bar-danger);
  }
  .ui-confirmation-icon {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    height: 20px;
    color: var(--confirmation-bar);
    & svg {
      width: 20px;
      height: 20px;
    }
  }
  .ui-confirmation-content {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .ui-confirmation:not(:has(.ui-confirmation-icon)) :is(.ui-confirmation-content, .ui-confirmation-actions) {
    grid-column: 1 / -1;
  }
  .ui-confirmation-title {
    margin: 0;
    color: var(--clerk-chat-text);
    font-size: 15px;
    font-weight: var(--font-weight-medium);
    line-height: 20px;
  }
  .ui-confirmation-description {
    margin: 0;
    color: var(--clerk-chat-prose);
  }
  .ui-confirmation-code {
    margin: 6px 0 0;
    padding: 8px 12px;
    overflow-x: auto;
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-chat-code-bg);
    box-shadow: var(--clerk-shadow-chat-code);
    color: var(--clerk-chat-code-text);
    font-family: var(--font-monospace);
    font-size: 13px;
    line-height: 1.5;
    white-space: pre;
    scrollbar-width: thin;
    scrollbar-color: var(--clerk-chat-code-scrollbar) transparent;
  }
  .ui-confirmation-actions {
    display: flex;
    grid-column: 2;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .ui-confirmation:is([data-state="approved"], [data-state="denied"]) .ui-confirmation-title {
    color: var(--clerk-chat-prose);
  }
}
:scope {
  .ui-connector-list {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-table);
  }
  .ui-connector {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 16px 12px 20px;
    color: var(--clerk-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--duration-controls);
    & + & {
      border-top: 1px solid var(--clerk-neutral-150);
    }
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-neutral-50);
      }
    }
  }
  .ui-connector-icon {
    box-sizing: border-box;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-neutral-50);
    box-shadow: var(--clerk-shadow-badge-ring);
    color: var(--clerk-neutral-700);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    & svg,
    & img {
      width: 18px;
      height: 18px;
    }
  }
  .ui-connector-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
  }
  .ui-connector-title {
    overflow: hidden;
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-medium);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-connector-description {
    overflow: hidden;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-connector-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
  }
  .ui-connector-status {
    display: inline-flex;
    align-items: center;
    margin: 1px;
    padding: 1px 6px;
    border-radius: var(--clerk-radius-sm);
    background-color: var(--clerk-success-50);
    box-shadow:
      0 0 0 1px var(--clerk-success-300),
      var(--clerk-shadow-badge);
    color: var(--clerk-success);
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-micro);
    white-space: nowrap;
  }
}
:scope {
  .ui-context-trigger {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    margin: 0;
    padding: 0 8px 0 6px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    color: var(--clerk-chat-muted-text);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-small);
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, color, box-shadow;
    transition-duration: var(--duration-chat-ghost);
    transition-timing-function: var(--clerk-chat-ease);
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-chat-ghost-hover);
        color: var(--clerk-chat-text);
      }
    }
    &[data-popup-open] {
      background-color: var(--clerk-chat-ghost-hover);
      color: var(--clerk-chat-text);
    }
  }
  .ui-context-ring {
    width: 16px;
    height: 16px;
    flex: none;
  }
  .ui-context-ring-track {
    stroke: var(--clerk-neutral-150);
  }
  .ui-context-ring-value {
    stroke: var(--clerk-chat-text);
    stroke-linecap: round;
    transition: stroke-dasharray var(--duration-slower) var(--ease-slow-bezier);
  }
  .ui-context-percent {
    min-width: 3ch;
  }
  .ui-context-positioner {
    outline: none;
  }
  .ui-context-popup {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 248px;
    max-width: var(--available-width);
    overflow: hidden;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-popover);
    color: var(--clerk-foreground);
    font-family: var(--font-regular);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
    outline: none;
    transform-origin: var(--transform-origin);
    animation: clerk-context-in var(--duration-modal) var(--ease-out);
    &[data-ending-style] {
      opacity: 0;
      transition: opacity var(--duration-fast) var(--ease-common);
    }
  }
  .ui-context-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 8px;
  }
  .ui-context-title {
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-semibold);
  }
  .ui-context-value {
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
    font-variant-numeric: tabular-nums;
  }
  .ui-context-bar {
    height: 6px;
    margin: 0 16px 10px;
    overflow: hidden;
    border-radius: 999px;
    background-color: var(--clerk-neutral-100);
  }
  .ui-context-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background-color: var(--clerk-primary);
    transition: width var(--duration-slower) var(--ease-slow-bezier);
  }
  .ui-context-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 2px 16px 14px;
  }
  .ui-context-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
  .ui-context-row-label {
    color: var(--clerk-neutral-600);
  }
  .ui-context-row-value {
    margin: 0;
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-medium);
    font-variant-numeric: tabular-nums;
  }
  .ui-context-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-top: 1px solid var(--clerk-neutral-100);
    background: var(--clerk-muted);
    color: var(--clerk-neutral-600);
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-mini);
    font-variant-numeric: tabular-nums;
    & > :last-child {
      color: var(--clerk-foreground);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-context-popup {
      animation: none;
    }
    .ui-context-ring-value,
    .ui-context-bar-fill {
      transition: none;
    }
  }
}
:scope {
  .ui-context-menu-trigger {
    -webkit-touch-callout: none;
    user-select: none;
  }
}
:scope {
  .ui-data-table {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  .ui-data-table-sort {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--clerk-radius-sm);
    background: none;
    color: inherit;
    font: inherit;
    text-align: inherit;
    white-space: nowrap;
    cursor: pointer;
    outline: 0;
    transition-property: color, box-shadow;
    transition-duration: var(--duration-controls);
    @media (hover: hover) {
      &:hover {
        color: var(--clerk-foreground);
      }
    }
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
    &[data-sorted] {
      color: var(--clerk-foreground);
    }
  }
  .ui-data-table-sort-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: var(--clerk-neutral-400);
    transition: color var(--duration-controls);
  }
  .ui-data-table-sort:is(:hover, [data-sorted]) .ui-data-table-sort-icon {
    color: currentColor;
  }
  .ui-data-table :is(.ui-table-head, .ui-table-cell)[data-align="end"] {
    font-variant-numeric: tabular-nums;
    text-align: end;
  }
  .ui-data-table .ui-data-table-select {
    width: 14px;
    padding-right: 0;
    & > .ui-checkbox {
      display: flex;
    }
  }
  .ui-data-table .ui-table-body .ui-table-row[data-selected] > .ui-table-cell {
    background-color: var(--clerk-neutral-100);
  }
  @media (hover: hover) {
    .ui-data-table .ui-table-body .ui-table-row[data-selected]:hover > .ui-table-cell {
      background-image: linear-gradient(var(--clerk-neutral-50), var(--clerk-neutral-50));
    }
    .ui-data-table .ui-table-body .ui-table-row:hover > .ui-data-table-empty {
      background-color: transparent;
    }
  }
  .ui-data-table .ui-table-cell.ui-data-table-empty {
    height: 120px;
    color: var(--clerk-muted-foreground);
    text-align: center;
  }
  .ui-data-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-data-table-summary {
    color: var(--clerk-muted-foreground);
    font-variant-numeric: tabular-nums;
  }
}
:scope {
  .ui-dialog-backdrop {
    position: fixed;
    inset: 0;
    background-color: var(--overlay);
    animation: clerk-dialog-backdrop var(--duration-modal-backdrop) var(--ease-common);
  }
  .ui-dialog-popup {
    box-sizing: border-box;
    position: fixed;
    top: 4rem;
    left: 50%;
    translate: -50% 0;
    width: calc(100vw - 2.5rem);
    max-width: 25rem;
    overflow: hidden;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-popover);
    color: var(--clerk-foreground);
    font-family: var(--font-regular);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
    outline: none;
    animation: clerk-dialog-popup var(--duration-modal) var(--ease-out);
    @media (max-width: 640px) {
      top: 2.5rem;
    }
  }
  .ui-dialog-title {
    margin: 0;
    color: var(--clerk-foreground);
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-large);
  }
  .ui-dialog-title ~ p {
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
  }
}
:scope {
  .ui-drawer-backdrop {
    position: fixed;
    inset: 0;
    background-color: color-mix(in srgb, var(--clerk-background) 28%, transparent);
    opacity: calc(1 - var(--drawer-swipe-progress, 0));
    transition: opacity var(--duration-drawer) var(--ease-bezier);
    &[data-starting-style],
    &[data-ending-style] {
      opacity: 0;
    }
    &[data-swiping] {
      transition-duration: 0s;
    }
  }
  .ui-drawer-viewport {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    padding: 12px;
  }
  .ui-drawer-popup {
    box-sizing: border-box;
    width: 25rem;
    max-width: 100%;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-popover);
    color: var(--clerk-foreground);
    font-family: var(--font-regular);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
    outline: none;
    transform: translate3d(var(--drawer-swipe-movement-x, 0px), 0, 0);
    transition: transform var(--duration-drawer) var(--ease-bezier);
    will-change: transform;
    &[data-starting-style],
    &[data-ending-style] {
      transform: translate3d(calc(100% + 12px + 2.1875rem), 0, 0);
    }
    &[data-swiping] {
      transition-duration: 0s;
      user-select: none;
    }
  }
  .ui-drawer-title {
    margin: 0;
    color: var(--clerk-foreground);
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-large);
  }
}
:scope {
  .ui-email-draft {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 16px 20px;
    overflow: hidden;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-table);
    color: var(--clerk-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
  }
  .ui-email-draft-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--clerk-neutral-600);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
  }
  .ui-email-draft-icon {
    display: flex;
    flex: none;
    color: var(--clerk-neutral-500);
    & svg {
      width: 14px;
      height: 14px;
    }
  }
  .ui-email-draft-subject {
    margin: 0;
    color: var(--clerk-foreground);
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-large);
  }
  .ui-email-draft-fields {
    display: flex;
    flex-direction: column;
    margin: 0;
  }
  .ui-email-draft-field {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 32px;
    border-top: 1px solid var(--clerk-neutral-100);
    &:last-child {
      border-bottom: 1px solid var(--clerk-neutral-100);
    }
  }
  .ui-email-draft-field-label {
    flex: none;
    width: 40px;
    color: var(--clerk-neutral-600);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
  }
  .ui-email-draft-field-value {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 4px 0;
  }
  .ui-email-draft-recipient {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    height: 24px;
    padding: 0 8px 0 2px;
    border-radius: 999px;
    background-color: var(--clerk-neutral-50);
    box-shadow: var(--clerk-shadow-badge-ring);
    color: var(--clerk-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
  }
  .ui-email-draft-avatar {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background-color: var(--clerk-primary);
    color: var(--clerk-primary-foreground);
    font-size: 10px;
    font-weight: var(--font-weight-medium);
    line-height: 1;
  }
  .ui-email-draft-address {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-email-draft-body {
    box-sizing: border-box;
    padding: 8px 12px;
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-input);
    box-shadow: var(--clerk-shadow-input);
    color: var(--clerk-input-foreground);
    line-height: 1.5;
    white-space: pre-wrap;
  }
  .ui-email-draft-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 4px -20px -16px;
    padding: 12px 20px;
    background: var(--clerk-muted);
    box-shadow: inset 0 1px 0 var(--clerk-neutral-100);
  }
}
:scope {
  .ui-empty {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 32px 16px;
    color: var(--clerk-foreground);
    font-family: inherit;
    text-align: center;
  }
  .ui-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--clerk-neutral-400);
    & svg {
      width: 20px;
      height: 20px;
    }
  }
  .ui-empty-title {
    margin: 0;
    color: var(--clerk-foreground);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-small);
  }
  .ui-empty-description {
    max-width: 32ch;
    margin: 0;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
    text-wrap: pretty;
  }
  .ui-empty-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
  }
}
:scope {
  .ui-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }
  .ui-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--clerk-foreground);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-small);
    user-select: none;
    &[data-disabled] {
      color: var(--clerk-neutral-400);
    }
  }
  .ui-field-item .ui-field-label {
    font-weight: var(--font-weight-normal);
  }
  .ui-field-description {
    margin: 0;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
  }
  .ui-field-error {
    display: flex;
    gap: 4px;
    margin-top: -2px;
    color: var(--clerk-danger);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
    animation: clerk-field-error-in var(--duration-fast);
  }
  .ui-field-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    & .ui-field-description {
      padding-left: 22px;
    }
  }
}
:scope {
  .ui-fieldset {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
  }
  .ui-fieldset-legend {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--clerk-neutral-100);
    color: var(--clerk-foreground);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-small);
    &[data-disabled] {
      color: var(--clerk-neutral-400);
    }
  }
}
:scope {
  .ui-file-tree {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    color: var(--clerk-chat-muted-text);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-file-tree-folder {
    display: flex;
    flex-direction: column;
  }
  .ui-file-tree-row {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0 8px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    color: var(--clerk-chat-muted-text);
    font: inherit;
    font-weight: var(--font-weight-medium);
    text-align: start;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, color, box-shadow;
    transition-duration: var(--duration-controls);
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-chat-pill-bg);
        color: var(--clerk-chat-text);
      }
    }
  }
  .ui-file-tree-folder-trigger {
    color: var(--clerk-chat-text);
  }
  .ui-file-tree-file[data-selected] {
    background-color: var(--clerk-chat-pill-bg);
    box-shadow: inset 0 0 0 1px var(--clerk-chat-pill-ring);
    color: var(--clerk-chat-text);
  }
  .ui-file-tree-chevron {
    order: 3;
    width: 12px;
    height: 12px;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    transition: transform var(--duration-slow) var(--ease-out);
    [data-panel-open] > & {
      transform: rotate(90deg);
    }
  }
  .ui-file-tree-icon {
    display: flex;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    & svg {
      width: 16px;
      height: 16px;
    }
  }
  .ui-file-tree-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-file-tree-file[data-change="added"] .ui-file-tree-name {
    color: var(--clerk-chat-success-text);
  }
  .ui-file-tree-file[data-change="modified"] .ui-file-tree-name {
    color: var(--clerk-chat-warning-text);
  }
  .ui-file-tree-file[data-change="deleted"] .ui-file-tree-name {
    color: var(--clerk-chat-danger-text);
    text-decoration: line-through;
  }
  .ui-file-tree-stats {
    display: flex;
    flex: none;
    gap: 6px;
    font-family: var(--font-monospace);
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-mini);
    font-variant-numeric: tabular-nums;
  }
  .ui-file-tree-additions {
    color: var(--clerk-chat-success-text);
  }
  .ui-file-tree-deletions {
    color: var(--clerk-chat-danger-text);
  }
  .ui-file-tree-children {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1px;
    height: var(--collapsible-panel-height);
    margin-left: 15px;
    padding: 1px 0 1px 8px;
    overflow: hidden;
    border-left: 1px solid var(--clerk-chat-border);
    transition:
      height var(--duration-slow) var(--ease-out),
      padding-block var(--duration-slow) var(--ease-out),
      opacity var(--duration-slow) var(--ease-out);
    &[data-starting-style],
    &[data-ending-style] {
      height: 0;
      padding-block: 0;
      opacity: 0;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-file-tree-children,
    .ui-file-tree-chevron {
      transition: none;
    }
  }
}
:scope {
  .ui-files-changed {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-table);
    color: var(--clerk-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
  }
  .ui-files-changed-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 12px 8px 20px;
    box-sizing: border-box;
  }
  .ui-files-changed-title {
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
  }
  .ui-files-changed-additions,
  .ui-files-changed-deletions {
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-mini);
    font-variant-numeric: tabular-nums;
  }
  .ui-files-changed-additions {
    color: var(--clerk-chat-success-text);
  }
  .ui-files-changed-deletions {
    color: var(--clerk-chat-danger-text);
  }
  .ui-files-changed-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }
  .ui-files-changed-list {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .ui-files-changed-file {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 16px 8px 20px;
    border-top: 1px solid var(--clerk-neutral-150);
    transition: background-color var(--duration-controls);
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-neutral-50);
      }
    }
  }
  .ui-files-changed-icon {
    display: flex;
    flex: none;
    color: var(--clerk-neutral-500);
    & svg {
      width: 16px;
      height: 16px;
    }
  }
  .ui-files-changed-path {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-files-changed-directory {
    color: var(--clerk-muted-foreground);
  }
  .ui-files-changed-name {
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-medium);
  }
  .ui-files-changed-file[data-change="added"] .ui-files-changed-icon {
    color: var(--clerk-chat-success-text);
  }
  .ui-files-changed-file[data-change="deleted"] {
    & .ui-files-changed-icon {
      color: var(--clerk-chat-danger-text);
    }
    & .ui-files-changed-name {
      color: var(--clerk-muted-foreground);
      text-decoration: line-through;
    }
  }
  .ui-files-changed-stats {
    display: flex;
    flex: none;
    gap: 8px;
  }
}
:scope {
  .ui-flight {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: 16px 20px;
    overflow: hidden;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-table);
    color: var(--clerk-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
  }
  .ui-flight-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .ui-flight-airline {
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-medium);
  }
  .ui-flight-number {
    color: var(--clerk-muted-foreground);
    font-variant-numeric: tabular-nums;
  }
  .ui-flight-status {
    display: inline-flex;
    align-items: center;
    margin: 1px 1px 1px auto;
    padding: 1px 6px;
    border-radius: var(--clerk-radius-sm);
    background-color: var(--clerk-neutral-50);
    box-shadow:
      0 0 0 1px var(--clerk-neutral-100),
      var(--clerk-shadow-badge);
    color: var(--clerk-neutral-600);
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-micro);
    white-space: nowrap;
  }
  .ui-flight:is([data-status="on-time"], [data-status="landed"]) .ui-flight-status {
    background-color: var(--clerk-success-50);
    box-shadow:
      0 0 0 1px var(--clerk-success-300),
      var(--clerk-shadow-badge);
    color: var(--clerk-success);
  }
  .ui-flight[data-status="delayed"] .ui-flight-status {
    background-color: var(--clerk-warning-50);
    box-shadow:
      0 0 0 1px var(--clerk-warning-300),
      var(--clerk-shadow-badge);
    color: var(--clerk-warning);
  }
  .ui-flight[data-status="cancelled"] .ui-flight-status {
    background-color: var(--clerk-danger-50);
    box-shadow:
      0 0 0 1px var(--clerk-danger-300),
      var(--clerk-shadow-badge);
    color: var(--clerk-danger);
  }
  .ui-flight-route {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
  }
  .ui-flight-endpoint {
    display: flex;
    flex-direction: column;
    min-width: 0;
    &:last-child {
      align-items: flex-end;
      text-align: end;
    }
  }
  .ui-flight-time {
    color: var(--clerk-foreground);
    font-size: var(--font-size-title2);
    font-weight: var(--font-weight-bold);
    line-height: 32px;
    font-variant-numeric: tabular-nums;
  }
  .ui-flight-code {
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-medium);
  }
  .ui-flight-city {
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
  }
  .ui-flight-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
  }
  .ui-flight-line {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    color: var(--clerk-neutral-500);
    &::before,
    &::after {
      content: "";
      flex: 1;
      height: 1px;
      background-color: var(--clerk-neutral-150);
    }
    & svg {
      width: 16px;
      height: 16px;
      flex: none;
    }
  }
  .ui-flight[data-status="cancelled"] :is(.ui-flight-time, .ui-flight-code) {
    color: var(--clerk-muted-foreground);
    text-decoration: line-through;
  }
  .ui-flight-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 -20px -16px;
    padding: 12px 20px;
    background: var(--clerk-muted);
    box-shadow: inset 0 1px 0 var(--clerk-neutral-100);
  }
  .ui-flight-detail {
    flex: 1;
    min-width: 0;
    color: var(--clerk-muted-foreground);
  }
  .ui-flight-price {
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-bold);
    font-variant-numeric: tabular-nums;
  }
}
:scope {
  .ui-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
}
:scope {
  .ui-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 8px;
    min-width: 0;
  }
  .ui-image-gallery-item {
    position: relative;
    box-sizing: border-box;
    display: block;
    aspect-ratio: 4 / 3;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-neutral-50);
    box-shadow: var(--clerk-shadow-card-content);
    cursor: pointer;
    outline: 0;
    transition-property: box-shadow, opacity;
    transition-duration: var(--duration-controls);
    & img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    &:focus-visible {
      box-shadow: var(--clerk-shadow-card-content), var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        opacity: 0.9;
      }
    }
  }
  .ui-image-gallery-source {
    position: absolute;
    bottom: 6px;
    left: 6px;
    max-width: calc(100% - 12px);
    padding: 1px 6px;
    overflow: hidden;
    border-radius: var(--clerk-radius-sm);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-badge-ring);
    color: var(--clerk-neutral-600);
    font-family: inherit;
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-micro);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-image-gallery-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--overlay);
    color: #ffffff;
    font-family: inherit;
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-large);
  }
  .ui-image-gallery-item[data-more] .ui-image-gallery-source {
    display: none;
  }
  .ui-image-gallery-caption {
    margin: 8px 0 0;
    color: var(--clerk-muted-foreground);
    font-family: inherit;
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
  }
}
:scope {
  .ui-inline-citation-text {
    border-radius: 2px;
    transition: background-color var(--duration-chat-ghost) var(--clerk-chat-ease);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    &:has(+ .ui-inline-citation-trigger:is([data-popup-open], :hover)) {
      background-color: var(--clerk-neutral-100);
    }
  }
  .ui-inline-citation-trigger-icon {
    display: inline-flex;
    margin-right: 4px;
    color: var(--clerk-chat-subtle-text);
    vertical-align: -2px;
    & svg {
      width: 12px;
      height: 12px;
    }
  }
  .ui-inline-citation-trigger {
    padding: 2px 6px;
    border: 1px solid var(--clerk-chat-inline-code-border);
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-chat-inline-code-bg);
    color: var(--clerk-chat-link);
    font-family: var(--font-monospace);
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    line-height: 1;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, box-shadow;
    transition-duration: var(--duration-chat-ghost);
    transition-timing-function: var(--clerk-chat-ease);
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-chat-pill-bg);
      }
    }
    &[data-popup-open] {
      background-color: var(--clerk-chat-pill-bg);
    }
  }
  .ui-inline-citation-positioner {
    outline: none;
  }
  .ui-inline-citation-popup {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 300px;
    max-width: var(--available-width);
    padding: 12px 16px 14px;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-popover);
    color: var(--clerk-foreground);
    font-family: var(--font-regular);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
    outline: none;
    transform-origin: var(--transform-origin);
    animation: clerk-inline-citation-in var(--duration-modal) var(--ease-out);
    &[data-ending-style] {
      opacity: 0;
      transition: opacity var(--duration-fast) var(--ease-common);
    }
  }
  .ui-inline-citation-source {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .ui-inline-citation-source .ui-inline-citation-link {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    border-radius: var(--clerk-radius-sm);
    color: var(--clerk-neutral-500);
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-mini);
    text-decoration: none;
    outline: 0;
    transition: color var(--duration-controls);
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover {
        color: var(--clerk-foreground);
        text-decoration: underline;
      }
    }
  }
  .ui-inline-citation-icon {
    display: flex;
    & :is(svg, img) {
      width: 14px;
      height: 14px;
      border-radius: 3px;
    }
  }
  .ui-inline-citation-hint {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .ui-inline-citation-title {
    margin: 0;
    color: var(--clerk-foreground);
    font-size: var(--clerk-font-size-chat);
    font-weight: var(--font-weight-semibold);
    line-height: 20px;
  }
  .ui-inline-citation-description {
    margin: 0;
    color: var(--clerk-muted-foreground);
  }
  .ui-inline-citation-quote {
    position: relative;
    margin: 0;
    padding: 2px 0 2px 12px;
    color: var(--clerk-chat-prose);
    &::before {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      width: 2px;
      border-radius: 2px;
      background-color: var(--clerk-callout-bar);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-inline-citation-popup {
      animation: none;
    }
  }
}
:scope {
  .ui-input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 0;
    font-family: inherit;
    letter-spacing: normal;
    color: var(--clerk-input-foreground);
    outline: transparent solid 2px;
    outline-offset: 2px;
    transition-property: background-color, background, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: ease;
    transition-duration: var(--duration-focus-ring);
    &::placeholder {
      color: var(--clerk-muted-foreground);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-input[data-variant="default"] {
    height: 32px;
    padding: 7px 12px;
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-input);
    box-shadow: var(--clerk-shadow-input);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        box-shadow: var(--clerk-shadow-input-hover);
      }
    }
    &:focus {
      box-shadow: var(--clerk-shadow-input-focus);
    }
    &[data-invalid] {
      box-shadow: var(--clerk-shadow-input-invalid);
      @media (hover: hover) {
        &:hover:not([data-disabled]) {
          box-shadow: var(--clerk-shadow-input-invalid-hover);
        }
      }
      &:focus {
        box-shadow: var(--clerk-shadow-input-invalid-focus);
      }
    }
  }
  .ui-input[data-variant="flat"] {
    padding: 0;
    background-color: transparent;
    color: var(--clerk-foreground);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
  }
}
:scope {
  .ui-input-group {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 32px;
    padding: 0 12px;
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-input);
    box-shadow: var(--clerk-shadow-input);
    color: var(--clerk-input-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
    cursor: text;
    transition-property: background-color, color, opacity, box-shadow;
    transition-timing-function: ease;
    transition-duration: var(--duration-focus-ring);
    @media (hover: hover) {
      &:hover:not(:has([data-disabled])) {
        box-shadow: var(--clerk-shadow-input-hover);
      }
    }
    &:focus-within {
      box-shadow: var(--clerk-shadow-input-focus);
    }
    &:has([data-invalid], [aria-invalid="true"]) {
      box-shadow: var(--clerk-shadow-input-invalid);
      @media (hover: hover) {
        &:hover {
          box-shadow: var(--clerk-shadow-input-invalid-hover);
        }
      }
      &:focus-within {
        box-shadow: var(--clerk-shadow-input-invalid-focus);
      }
    }
    &:has([data-disabled]) {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-input-group-addon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
    color: var(--clerk-muted-foreground);
    white-space: nowrap;
    user-select: none;
    & svg {
      width: 16px;
      height: 16px;
      color: var(--clerk-neutral-400);
    }
  }
  .ui-input-group-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: normal;
    outline: 0;
    &::placeholder {
      color: var(--clerk-muted-foreground);
    }
    &[data-disabled] {
      cursor: not-allowed;
    }
  }
}
:scope {
  .ui-kbd {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    padding: 1px 4px;
    border-radius: var(--clerk-radius-sm);
    background-color: var(--clerk-neutral-50);
    box-shadow: var(--clerk-shadow-badge-ring);
    color: var(--clerk-neutral-600);
    font-family: inherit;
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-micro);
  }
}
:scope {
  .ui-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--clerk-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-small);
    user-select: none;
  }
  .ui-label-required {
    margin-inline-start: -6px;
    color: var(--clerk-danger);
  }
  .ui-label-optional {
    margin-inline-start: auto;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-micro);
  }
}
:scope {
  .ui-link {
    --link-fg: var(--clerk-primary);
    --link-fg-hover: var(--clerk-primary-light);
    --link-fg-active: var(--clerk-primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    border-radius: var(--clerk-radius-sm);
    background: none;
    color: var(--link-fg);
    font-family: inherit;
    font-size: inherit;
    font-weight: var(--font-weight-medium);
    line-height: inherit;
    text-decoration: none;
    cursor: pointer;
    outline: 0;
    @media (hover: hover) {
      &:hover {
        color: var(--link-fg-hover);
        text-decoration: underline;
      }
    }
    &:active {
      color: var(--link-fg-active);
    }
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
  }
  .ui-link[data-variant="danger"] {
    --link-fg: var(--clerk-danger);
    --link-fg-hover: var(--clerk-danger-light);
    --link-fg-active: var(--clerk-danger-hover);
  }
  .ui-link[data-variant="neutral"] {
    --link-fg: var(--clerk-muted-foreground);
    --link-fg-hover: var(--clerk-muted-foreground);
    --link-fg-active: var(--clerk-muted-foreground);
  }
  .ui-link-external {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }
}
:scope {
  .ui-link-preview {
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-table);
    color: var(--clerk-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    outline: 0;
    transition-property: background-color, box-shadow;
    transition-duration: var(--duration-controls);
    &:focus-visible {
      box-shadow: var(--clerk-shadow-table), var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover {
        background-color: color-mix(in srgb, var(--clerk-background), var(--clerk-foreground) 3%);
      }
    }
  }
  .ui-link-preview-media {
    display: block;
    flex: 0 0 136px;
    overflow: hidden;
    border-right: 1px solid var(--clerk-neutral-100);
    background-color: var(--clerk-neutral-50);
    & img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .ui-link-preview-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 12px 16px;
  }
  .ui-link-preview-site {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
  }
  .ui-link-preview-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    overflow: hidden;
    border-radius: var(--clerk-radius-sm);
    background-color: var(--clerk-neutral-50);
    box-shadow: var(--clerk-shadow-badge-ring);
    color: var(--clerk-neutral-700);
    font-size: 10px;
    font-weight: var(--font-weight-medium);
    line-height: 1;
    & svg,
    & img {
      width: 12px;
      height: 12px;
    }
  }
  .ui-link-preview-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-medium);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .ui-link-preview-description {
    display: -webkit-box;
    overflow: hidden;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}
:scope {
  .ui-menu-positioner {
    outline: none;
  }
  .ui-menu-popup {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px;
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-popover);
    color: var(--clerk-foreground);
    font-family: var(--font-regular);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
    outline: none;
    transform-origin: top center;
    animation: clerk-menu-dropdown var(--duration-slower) var(--ease-slow-bezier);
    &[data-side="bottom"] {
      translate: 0 4px;
    }
    &[data-side="top"] {
      translate: 0 -4px;
      transform-origin: bottom center;
    }
    &[data-side="left"],
    &[data-side="inline-start"] {
      translate: -4px 0;
    }
    &[data-side="right"],
    &[data-side="inline-end"] {
      translate: 4px 0;
    }
  }
  .ui-menu-item {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    min-height: 26px;
    padding: 4px 12px;
    border-radius: var(--clerk-radius-sm);
    color: var(--clerk-neutral-600);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    outline: none;
    transition-property: background-color, color;
    transition-duration: var(--duration-controls);
    &[data-highlighted] {
      background-color: var(--clerk-neutral-50);
      color: var(--clerk-neutral-700);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-menu-label {
    flex: 1;
  }
  .ui-menu-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 16px;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-mini);
  }
  .ui-menu-key {
    font-family: inherit;
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-mini);
    color: var(--clerk-muted-foreground);
  }
  .ui-menu-separator {
    height: 1px;
    margin: 0 -2px;
    background-color: var(--clerk-neutral-100);
  }
}
:scope {
  .ui-menubar {
    display: flex;
    align-items: center;
    gap: 2px;
  }
  .ui-menubar-trigger {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin: 0;
    padding: 6px 12px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    color: var(--clerk-muted-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-small);
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, color;
    transition-duration: var(--duration-controls);
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--clerk-neutral-25);
      }
    }
    &:focus-visible {
      background-color: var(--clerk-neutral-50);
    }
    &[data-popup-open] {
      background-color: var(--clerk-neutral-100);
      color: var(--clerk-primary);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
}
:scope {
  .ui-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    max-width: 100%;
    color: var(--clerk-chat-prose);
    font-family: inherit;
    font-size: var(--clerk-font-size-chat);
    line-height: var(--clerk-line-height-chat);
  }
  .ui-message[data-from="user"] {
    align-items: flex-end;
  }
  .ui-message-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    max-width: 95%;
    overflow-wrap: anywhere;
    & > :is(p, ul, ol) {
      margin: 0;
    }
    & :where(ul, ol) {
      padding-left: 40px;
    }
    & :where(li > input[type="checkbox"]) {
      width: 13px;
      height: 13px;
      margin: 3px 3px 3px 4px;
      vertical-align: -2px;
    }
    & :where(strong, b) {
      color: var(--clerk-chat-strong);
      font-weight: var(--font-weight-bold);
    }
    & :where(h3) {
      margin: 8px 0 0;
      color: var(--clerk-chat-heading);
      font-size: 1.17em;
      font-weight: var(--font-weight-bold);
      line-height: 1.6;
    }
    & :where(a) {
      color: var(--clerk-chat-link);
      font-weight: var(--font-weight-medium);
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    & :where(:not(pre) > code) {
      padding: 3px 6px;
      border: 1px solid var(--clerk-chat-inline-code-border);
      border-radius: var(--clerk-radius-lg);
      background-color: var(--clerk-chat-inline-code-bg);
      color: var(--clerk-chat-inline-code-text);
      font-family: var(--font-monospace);
      font-size: 13px;
      box-decoration-break: clone;
      -webkit-box-decoration-break: clone;
    }
    & :where(pre:not([class])) {
      margin: 0;
      padding: 12px 44px 12px 16px;
      overflow-x: auto;
      border-radius: var(--clerk-radius-xl);
      background-color: var(--clerk-chat-code-bg);
      box-shadow: var(--clerk-shadow-chat-code);
      color: var(--clerk-chat-code-text);
      font-family: var(--font-monospace);
      font-size: 13px;
      line-height: 1.5;
      scrollbar-color: var(--clerk-chat-code-scrollbar) transparent;
    }
    & :where(table) {
      border-collapse: collapse;
    }
    & :where(th, td) {
      padding: 1px;
      vertical-align: middle;
    }
  }
  .ui-message[data-from="user"] .ui-message-content {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: var(--clerk-radius-lg) var(--clerk-radius-lg) 3px var(--clerk-radius-lg);
    background-color: var(--clerk-chat-primary-bg);
    color: var(--clerk-chat-primary-text);
    line-height: 1.5;
    white-space: pre-wrap;
  }
  .ui-message-actions {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: -4px;
  }
  .ui-message[data-from="user"] .ui-message-actions {
    margin-right: -4px;
    margin-left: 0;
  }
  .ui-message-action {
    box-sizing: border-box;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    color: var(--clerk-chat-muted-text);
    opacity: 0.72;
    cursor: pointer;
    outline: 0;
    transition-property: color, opacity, box-shadow;
    transition-duration: var(--duration-chat-ghost);
    transition-timing-function: var(--clerk-chat-ease);
    & svg {
      width: 18px;
      height: 18px;
    }
    &:focus-visible {
      opacity: 1;
      box-shadow: var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        opacity: 1;
      }
    }
    &[data-pressed] {
      color: var(--clerk-chat-text);
      opacity: 1;
    }
    &[data-disabled] {
      opacity: 0.36;
      cursor: not-allowed;
    }
  }
  .ui-message-action:not(:first-child),
  .ui-message-timestamp {
    display: none;
  }
}
:scope {
  .ui-meter {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    row-gap: 8px;
    width: 240px;
    max-width: 100%;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-meter-label {
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-medium);
  }
  .ui-meter-value {
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    font-variant-numeric: tabular-nums;
  }
  .ui-meter-track {
    grid-column: 1 / -1;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background-color: var(--clerk-neutral-150);
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06) inset;
  }
  .ui-meter-indicator {
    border-radius: inherit;
    background-color: var(--clerk-primary);
    transition: width var(--duration-slow) ease-out;
  }
}
:scope {
  .ui-model-selector-trigger {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    margin: 0;
    padding: 0 8px 0 10px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-chat-bg);
    box-shadow: var(--clerk-shadow-outline-ring);
    color: var(--clerk-chat-muted-text);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-small);
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, color, box-shadow;
    transition-duration: var(--duration-controls);
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        color: var(--clerk-chat-text);
      }
    }
    &[data-popup-open] {
      color: var(--clerk-chat-text);
    }
    &:focus-visible {
      box-shadow: var(--clerk-shadow-outline-ring), var(--clerk-ring);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-model-selector-trigger-icon {
    display: flex;
    flex: none;
    margin-left: -2px;
    color: var(--clerk-chat-muted-text);
    & svg,
    & img {
      width: 16px;
      height: 16px;
    }
  }
  .ui-model-selector-detail {
    margin-left: -2px;
    color: var(--clerk-chat-subtle-text);
    font-weight: var(--font-weight-normal);
  }
  .ui-model-selector-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--clerk-chat-subtle-text);
    transition: transform var(--duration-fast) var(--ease-common);
    [data-popup-open] > & {
      transform: rotate(180deg);
    }
  }
  .ui-model-selector-positioner {
    outline: none;
  }
  .ui-model-selector-popup {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: max(var(--anchor-width), 200px);
    max-width: min(320px, var(--available-width));
    max-height: var(--available-height);
    padding: 2px;
    overflow-y: auto;
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-popover);
    color: var(--clerk-foreground);
    font-family: var(--font-regular);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
    outline: none;
    transform-origin: var(--transform-origin);
    animation: clerk-model-selector-in var(--duration-slower) var(--ease-slow-bezier);
    &[data-ending-style] {
      opacity: 0;
      transition: opacity var(--duration-fast) var(--ease-common);
    }
  }
  .ui-model-selector-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .ui-model-selector-label {
    padding: 8px 12px 4px;
    color: var(--clerk-neutral-500);
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-mini);
  }
  .ui-model-selector-item {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 6px 10px 6px 12px;
    border-radius: var(--clerk-radius-sm);
    color: var(--clerk-foreground);
    cursor: pointer;
    user-select: none;
    outline: none;
    transition-property: background-color;
    transition-duration: var(--duration-controls);
    &[data-highlighted] {
      background: var(--clerk-muted);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-model-selector-icon {
    display: flex;
    flex: none;
    color: var(--clerk-neutral-500);
    & svg {
      width: 16px;
      height: 16px;
    }
  }
  .ui-model-selector-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
  }
  .ui-model-selector-name {
    overflow: hidden;
    font-weight: var(--font-weight-medium);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-model-selector-description {
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
  }
  .ui-model-selector-badge {
    display: inline-flex;
    flex: none;
    align-items: center;
    padding: 1px 6px;
    border-radius: var(--clerk-radius-sm);
    background-color: var(--clerk-neutral-50);
    box-shadow: var(--clerk-shadow-badge-ring);
    color: var(--clerk-neutral-600);
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-micro);
    white-space: nowrap;
  }
  .ui-model-selector-indicator {
    display: flex;
    flex: none;
    width: 16px;
    color: var(--clerk-foreground);
    & svg {
      width: 16px;
      height: 16px;
    }
  }
  .ui-model-selector-separator {
    height: 1px;
    margin: 2px -2px;
    background-color: var(--clerk-neutral-100);
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-model-selector-popup {
      animation: none;
    }
    .ui-model-selector-chevron {
      transition: none;
    }
  }
}
:scope {
  .ui-navigation-menu {
    min-width: max-content;
  }
  .ui-navigation-menu-list {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .ui-navigation-menu-trigger {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin: 0;
    padding: 6px 12px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    color: var(--clerk-muted-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-small);
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, color;
    transition-duration: var(--duration-controls);
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--clerk-neutral-25);
      }
    }
    &:focus-visible {
      background-color: var(--clerk-neutral-50);
    }
    &[data-popup-open] {
      background-color: var(--clerk-neutral-100);
      color: var(--clerk-primary);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-navigation-menu-positioner {
    box-sizing: border-box;
    width: var(--positioner-width);
    height: var(--positioner-height);
    max-width: var(--available-width);
    outline: none;
    &::before {
      content: "";
      position: absolute;
    }
    &[data-side="bottom"]::before {
      top: calc(var(--side-offset) * -1);
      right: 0;
      left: 0;
      height: calc(var(--side-offset) + 4px);
    }
    &[data-side="top"]::before {
      right: 0;
      bottom: calc(var(--side-offset) * -1);
      left: 0;
      height: calc(var(--side-offset) + 4px);
    }
    &[data-side="left"]::before {
      top: 0;
      right: calc(var(--side-offset) * -1);
      bottom: 0;
      width: calc(var(--side-offset) + 4px);
    }
    &[data-side="right"]::before {
      top: 0;
      bottom: 0;
      left: calc(var(--side-offset) * -1);
      width: calc(var(--side-offset) + 4px);
    }
  }
  .ui-navigation-menu-popup {
    box-sizing: border-box;
    position: relative;
    width: var(--popup-width);
    height: var(--popup-height);
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-popover);
    color: var(--clerk-foreground);
    font-family: var(--font-regular);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
    outline: none;
    transition:
      width var(--duration-slower) var(--ease-slow-bezier),
      height var(--duration-slower) var(--ease-slow-bezier);
    [data-side="bottom"] > & {
      translate: 0 4px;
    }
    [data-side="top"] > & {
      translate: 0 -4px;
    }
  }
  .ui-navigation-menu-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .ui-navigation-menu-content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: max-content;
    min-width: 224px;
    max-width: 320px;
    padding: 2px;
  }
  .ui-navigation-menu-link {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 26px;
    padding: 4px 12px;
    border-radius: var(--clerk-radius-sm);
    color: var(--clerk-neutral-600);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    outline: none;
    transition-property: background-color, color;
    transition-duration: var(--duration-controls);
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-neutral-50);
        color: var(--clerk-neutral-700);
      }
    }
    &:focus-visible {
      background-color: var(--clerk-neutral-50);
      color: var(--clerk-neutral-700);
    }
    &[data-active] {
      color: var(--clerk-primary);
    }
  }
  .ui-navigation-menu-title {
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-small);
  }
  .ui-navigation-menu-description {
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
  }
}
:scope {
  .ui-number-field {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    &[data-disabled] {
      opacity: 0.5;
    }
  }
  .ui-number-field-scrubArea {
    color: var(--clerk-foreground);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-small);
    cursor: ew-resize;
    user-select: none;
    & label {
      cursor: inherit;
    }
  }
  .ui-number-field-group {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 4px;
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-input);
    box-shadow: var(--clerk-shadow-input);
    transition-property: background-color, box-shadow;
    transition-timing-function: ease;
    transition-duration: var(--duration-focus-ring);
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        box-shadow: var(--clerk-shadow-input-hover);
      }
    }
    &:has(.ui-number-field-input:focus) {
      box-shadow: var(--clerk-shadow-input-focus);
    }
    &[data-invalid] {
      box-shadow: var(--clerk-shadow-input-invalid);
    }
    &[data-invalid]:has(.ui-number-field-input:focus) {
      box-shadow: var(--clerk-shadow-input-invalid-focus);
    }
  }
  .ui-number-field-input {
    box-sizing: border-box;
    width: 6ch;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: var(--clerk-input-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    font-variant-numeric: tabular-nums;
    text-align: center;
    outline: none;
    &::placeholder {
      color: var(--clerk-muted-foreground);
    }
  }
  .ui-number-field-stepper {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--clerk-radius-sm);
    background-color: transparent;
    color: var(--clerk-muted-foreground);
    cursor: pointer;
    user-select: none;
    outline: 0;
    transition-property: background-color, color, box-shadow;
    transition-duration: var(--duration-controls);
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--clerk-neutral-50);
        color: var(--clerk-foreground);
      }
    }
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
    &[data-disabled] {
      color: var(--clerk-neutral-300);
      cursor: not-allowed;
    }
    & svg {
      width: 12px;
      height: 12px;
    }
  }
}
:scope {
  .ui-otp-field {
    display: flex;
    align-items: center;
    gap: 8px;
    &[data-disabled] {
      opacity: 0.5;
    }
  }
  .ui-otp-field-input {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 2px 0;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    box-shadow: var(--clerk-shadow-input);
    color: var(--clerk-input-foreground);
    caret-color: var(--clerk-input-foreground);
    font-family: inherit;
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-large);
    font-variant-numeric: tabular-nums;
    text-align: center;
    outline: none;
    transition-property: background-color, box-shadow, opacity;
    transition-timing-function: ease;
    transition-duration: var(--duration-focus-ring);
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        box-shadow: var(--clerk-shadow-input-hover);
      }
    }
    &:focus-visible {
      box-shadow: var(--clerk-shadow-input-focus);
    }
    &[data-invalid] {
      box-shadow: var(--clerk-shadow-input-invalid);
    }
    &[data-invalid]:focus-visible {
      box-shadow: var(--clerk-shadow-input-invalid-focus);
    }
    @media (max-width: 640px) {
      width: 32px;
      height: 32px;
    }
  }
  .ui-otp-field-separator {
    width: 8px;
    height: 1px;
    border-radius: 999px;
    background-color: var(--clerk-neutral-400);
  }
}
:scope {
  .ui-pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: var(--font-size-mini);
    line-height: var(--line-height-small);
  }
  .ui-pagination-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin: 0;
    padding: 2px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    color: var(--clerk-foreground);
    font-family: inherit;
    font-size: inherit;
    font-weight: var(--font-weight-medium);
    line-height: inherit;
    font-variant-numeric: tabular-nums;
    opacity: 0.62;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, color, opacity, box-shadow;
    transition-duration: var(--duration-controls);
    & svg {
      width: 16px;
      height: 16px;
    }
    @media (hover: hover) {
      &:hover:not(:disabled) {
        background-color: var(--clerk-neutral-50);
      }
    }
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
    &[aria-current="page"] {
      opacity: 1;
    }
    &[data-direction] {
      box-shadow: var(--clerk-shadow-outline-ring);
      &:focus-visible {
        box-shadow: var(--clerk-shadow-outline-ring), var(--clerk-ring);
      }
    }
    &:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-pagination-gap {
    color: var(--clerk-muted-foreground);
  }
}
:scope {
  .ui-place {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-table);
    color: var(--clerk-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
  }
  .ui-place-media {
    position: relative;
    display: block;
    height: 140px;
    overflow: hidden;
    border-bottom: 1px solid var(--clerk-neutral-100);
    background-color: var(--clerk-neutral-50);
    & img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .ui-place-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    color: var(--clerk-chat-action-bg);
    filter: drop-shadow(0 2px 3px rgb(34 42 53 / 0.3));
    translate: -50% -100%;
    & svg {
      width: 28px;
      height: 28px;
    }
  }
  .ui-place-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 12px 20px 16px;
  }
  .ui-place-title {
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-medium);
  }
  .ui-place-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--clerk-foreground);
    font-variant-numeric: tabular-nums;
    & svg {
      width: 12px;
      height: 12px;
      color: var(--clerk-warning);
    }
  }
  .ui-place-rating-value {
    font-weight: var(--font-weight-medium);
  }
  .ui-place-rating-count,
  .ui-place-meta,
  .ui-place-address {
    color: var(--clerk-muted-foreground);
  }
  .ui-place-hours {
    color: var(--clerk-chat-danger-text);
    font-weight: var(--font-weight-medium);
    &[data-open] {
      color: var(--clerk-chat-success-text);
    }
  }
  .ui-place-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--clerk-muted);
    box-shadow: inset 0 1px 0 var(--clerk-neutral-100);
  }
}
:scope {
  .ui-plan {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--clerk-chat-prose);
    font-family: inherit;
    font-size: var(--clerk-font-size-chat);
    line-height: var(--clerk-line-height-chat);
  }
  .ui-plan-trigger {
    box-sizing: border-box;
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 32px;
    margin: 0 0 0 -6px;
    padding: 0 6px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    color: var(--clerk-chat-heading);
    font: inherit;
    text-align: start;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, box-shadow;
    transition-duration: var(--duration-chat-ghost);
    transition-timing-function: var(--clerk-chat-ease);
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-chat-ghost-hover);
      }
    }
  }
  .ui-plan-icon {
    display: flex;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    & :is(svg, .ui-spinner) {
      width: 16px;
      height: 16px;
    }
  }
  .ui-plan-title {
    overflow: hidden;
    font-size: 1.17em;
    font-weight: var(--font-weight-bold);
    line-height: 26px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-plan-progress {
    flex: none;
    color: var(--clerk-chat-subtle-text);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    font-variant-numeric: tabular-nums;
  }
  .ui-plan-chevron {
    width: 12px;
    height: 12px;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    transition: transform var(--duration-slow) var(--ease-out);
    [data-panel-open] > & {
      transform: rotate(90deg);
    }
  }
  .ui-plan-content {
    box-sizing: border-box;
    height: var(--collapsible-panel-height);
    padding: 4px 0 0;
    overflow: hidden;
    transition:
      height var(--duration-slow) var(--ease-out),
      padding-block var(--duration-slow) var(--ease-out),
      opacity var(--duration-slow) var(--ease-out);
    &[data-starting-style],
    &[data-ending-style] {
      height: 0;
      padding-block: 0;
      opacity: 0;
    }
  }
  .ui-plan-description {
    margin: 0 0 8px;
    color: var(--clerk-chat-prose);
  }
  .ui-plan-steps {
    margin: 8px 0 0;
    padding-left: 40px;
    list-style: disc;
  }
  .ui-plan-step {
    color: var(--clerk-chat-prose);
    &::marker {
      color: var(--clerk-chat-prose);
    }
  }
  .ui-plan-step-indicator {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    margin: 3px 7px 3px 4px;
    border-radius: 3px;
    background-color: var(--clerk-chat-bg);
    box-shadow: inset 0 0 0 1px var(--clerk-neutral-300);
    color: transparent;
    vertical-align: -2px;
    opacity: 0.7;
    transition-property: background-color, box-shadow, color, opacity;
    transition-duration: var(--duration-fast);
    transition-timing-function: var(--ease-common);
    & svg {
      width: 11px;
      height: 11px;
    }
  }
  .ui-plan-step[data-status="done"] {
    color: var(--clerk-chat-muted-text);
    & .ui-plan-step-indicator {
      background-color: var(--clerk-chat-primary-bg);
      box-shadow: none;
      color: var(--clerk-chat-primary-text);
      opacity: 1;
    }
  }
  .ui-plan-step[data-status="running"] {
    & .ui-plan-step-indicator {
      box-shadow: inset 0 0 0 1px var(--clerk-chat-text);
      opacity: 1;
    }
    & .ui-plan-step-label {
      color: var(--clerk-chat-text);
    }
    & .ui-plan-step-label::after {
      content: "";
      display: inline-block;
      width: 6px;
      height: 14px;
      margin-left: 4px;
      border-radius: 999px;
      background-color: var(--clerk-chat-subtle-text);
      vertical-align: -2px;
      animation: clerk-plan-cursor var(--duration-chat-cursor) steps(1, end) infinite;
    }
  }
  .ui-plan-step[data-status="error"] {
    color: var(--clerk-chat-danger-text);
    & .ui-plan-step-indicator {
      box-shadow: inset 0 0 0 1px var(--clerk-chat-danger-text);
      opacity: 1;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-plan-step[data-status="running"] .ui-plan-step-label::after {
      animation: none;
      opacity: 0.6;
    }
    .ui-plan-content,
    .ui-plan-chevron,
    .ui-plan-step-indicator {
      transition: none;
    }
  }
}
:scope {
  .ui-popover-positioner {
    outline: none;
  }
  .ui-popover-popup {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 224px;
    max-width: min(376px, var(--available-width));
    padding: 16px 20px;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-popover);
    color: var(--clerk-foreground);
    font-family: var(--font-regular);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
    outline: none;
    animation: clerk-popover-dropdown var(--duration-fast) var(--ease-common);
    &[data-side="bottom"] {
      translate: 0 4px;
    }
    &[data-side="top"] {
      translate: 0 -4px;
    }
    &[data-side="left"] {
      translate: -4px 0;
    }
    &[data-side="right"] {
      translate: 4px 0;
    }
  }
  .ui-popover-title {
    margin: 0;
    color: var(--clerk-foreground);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-small);
  }
  .ui-popover-description {
    margin: 0;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
  }
}
:scope {
  .ui-preview-card-trigger {
    border-radius: var(--clerk-radius-sm);
    color: var(--clerk-primary);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    outline: none;
    transition: color var(--duration-controls);
    @media (hover: hover) {
      &:hover {
        color: var(--clerk-primary-hover);
        text-decoration: underline;
      }
    }
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
  }
  .ui-preview-card-positioner {
    outline: none;
  }
  .ui-preview-card-popup {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 320px;
    max-width: var(--available-width);
    padding: 16px 20px;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-popover);
    color: var(--clerk-foreground);
    font-family: var(--font-regular);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
    outline: none;
    transform-origin: var(--transform-origin);
    animation: clerk-popover-dropdown var(--duration-fast) var(--ease-common);
  }
}
:scope {
  .ui-product-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px;
    min-width: 0;
  }
  .ui-product-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-table);
    color: var(--clerk-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    outline: 0;
    transition-property: box-shadow;
    transition-duration: var(--duration-controls);
    &:focus-visible {
      box-shadow: var(--clerk-shadow-table), var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover {
        box-shadow: var(--clerk-shadow-popover);
      }
    }
  }
  .ui-product-card-media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-bottom: 1px solid var(--clerk-neutral-100);
    background-color: #ffffff;
    & img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }
  .ui-product-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 1px 6px;
    border-radius: var(--clerk-radius-sm);
    background-color: var(--clerk-chat-action-bg);
    box-shadow: var(--clerk-shadow-badge);
    color: var(--clerk-chat-action-text);
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-micro);
    white-space: nowrap;
  }
  .ui-product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 10px 12px 12px;
  }
  .ui-product-card-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-medium);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .ui-product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--clerk-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
    font-variant-numeric: tabular-nums;
    & svg {
      width: 12px;
      height: 12px;
      color: var(--clerk-warning);
    }
  }
  .ui-product-card-rating-value {
    font-weight: var(--font-weight-medium);
  }
  .ui-product-card-rating-count {
    color: var(--clerk-muted-foreground);
  }
  .ui-product-card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-bold);
    font-variant-numeric: tabular-nums;
  }
  .ui-product-card-original-price {
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-mini);
  }
  .ui-product-card-seller {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
  }
  .ui-product-card-seller-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background-color: var(--clerk-neutral-50);
    box-shadow: var(--clerk-shadow-badge-ring);
    color: var(--clerk-neutral-700);
    font-size: 9px;
    font-weight: var(--font-weight-medium);
    line-height: 1;
  }
}
:scope {
  .ui-progress {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    row-gap: 8px;
    width: 240px;
    max-width: 100%;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-progress-label {
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-medium);
  }
  .ui-progress-value {
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    font-variant-numeric: tabular-nums;
  }
  .ui-progress-track {
    grid-column: 1 / -1;
    position: relative;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background-color: var(--clerk-neutral-150);
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06) inset;
  }
  .ui-progress-indicator {
    border-radius: inherit;
    background-color: var(--clerk-primary);
    transition: width var(--duration-slow) ease-out;
    &[data-indeterminate] {
      width: 40%;
      animation: clerk-progress-indeterminate 1.2s var(--ease-bezier) infinite;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-progress-indicator[data-indeterminate] {
      width: 100%;
      animation: none;
      opacity: 0.5;
    }
  }
}
:scope {
  .ui-prompt-input-frame {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .ui-prompt-input-bar {
    display: none;
  }
  .ui-prompt-input {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--clerk-chat-border);
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-chat-muted-bg);
    color: var(--clerk-chat-text);
    font-family: inherit;
    font-size: var(--clerk-font-size-chat);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  .ui-prompt-input-attachments {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
  }
  .ui-prompt-input-textarea {
    box-sizing: border-box;
    display: block;
    grid-column: 1;
    width: 100%;
    min-height: 64px;
    max-height: 160px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--clerk-chat-border);
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-chat-bg);
    color: var(--clerk-chat-text);
    font: inherit;
    font-size: var(--clerk-font-size-chat);
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
    field-sizing: content;
    resize: none;
    outline: none;
    &::placeholder {
      color: var(--clerk-chat-subtle-text);
    }
    &:disabled {
      color: var(--clerk-chat-muted-text);
      cursor: not-allowed;
    }
  }
  .ui-prompt-input-footer {
    display: flex;
    grid-column: 2;
    align-items: center;
    gap: 8px;
    padding: 0;
  }
  .ui-prompt-input-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    &:empty {
      display: none;
    }
  }
  .ui-prompt-input-actions,
  .ui-prompt-input .ui-model-selector-trigger {
    display: none;
  }
  .ui-prompt-input-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 28px;
    margin: 0;
    padding: 0 8px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    color: var(--clerk-chat-muted-text);
    font: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-small);
    cursor: pointer;
    outline: 0;
    transition-property: color, background-color, box-shadow, opacity;
    transition-duration: var(--duration-chat-ghost);
    transition-timing-function: var(--clerk-chat-ease);
    & svg {
      width: 16px;
      height: 16px;
    }
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--clerk-chat-ghost-hover);
        color: var(--clerk-chat-text);
      }
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-prompt-input-button[data-icon-only] {
    width: 28px;
    padding: 0;
  }
  .ui-prompt-input-tools .ui-prompt-input-button[data-icon-only] {
    border: 1px solid var(--clerk-chat-action-bg);
    background-color: var(--clerk-chat-action-bg);
    box-shadow: var(--clerk-shadow-chat-action);
    color: var(--clerk-chat-action-text);
    &:focus-visible {
      box-shadow: var(--clerk-shadow-chat-action), var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--clerk-chat-action-bg);
        color: var(--clerk-chat-action-text);
        opacity: 0.9;
      }
    }
  }
  .ui-prompt-input-submit {
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    margin: 0;
    padding: 3px 12px;
    border: 1px solid var(--clerk-chat-action-bg);
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-chat-action-bg);
    box-shadow: var(--clerk-shadow-chat-action);
    color: var(--clerk-chat-action-text);
    font: inherit;
    font-size: var(--clerk-font-size-chat);
    font-weight: var(--font-weight-semibold);
    line-height: 20px;
    cursor: pointer;
    outline: 0;
    transition-property: opacity, box-shadow;
    transition-duration: var(--duration-chat-copy);
    transition-timing-function: var(--ease-common);
    & svg {
      width: 16px;
      height: 16px;
    }
    &:focus-visible {
      box-shadow: var(--clerk-shadow-chat-action), var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        opacity: 0.9;
      }
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-prompt-input-submit:is([data-status="ready"], [data-status="error"]):has(> .ui-prompt-input-submit-send) {
    & > svg {
      display: none;
    }
    &::before {
      content: "Ask";
    }
  }
  .ui-prompt-input-submit:is([data-status="streaming"], [data-status="submitted"]) {
    &,
    &:hover:not([data-disabled]) {
      opacity: 0.5;
    }
    & > svg {
      display: none;
    }
    &::before {
      content: "...";
    }
  }
}
:scope {
  .ui-question {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 16px 20px;
    overflow: hidden;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-table);
    color: var(--clerk-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
  }
  .ui-question-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }
  .ui-question-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: var(--clerk-foreground);
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-large);
    text-wrap: pretty;
  }
  .ui-question-step {
    flex: none;
    margin: 4px 1px 1px;
    padding: 1px 6px;
    border-radius: var(--clerk-radius-sm);
    background-color: var(--clerk-neutral-50);
    box-shadow: var(--clerk-shadow-badge-ring);
    color: var(--clerk-neutral-600);
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-micro);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .ui-question-description {
    margin: -8px 0 0;
    color: var(--clerk-muted-foreground);
    text-wrap: pretty;
  }
  .ui-question-options {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--clerk-radius-lg);
    box-shadow: var(--clerk-shadow-input);
  }
  .ui-question-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color var(--duration-controls);
    & + & {
      border-top: 1px solid var(--clerk-neutral-100);
    }
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-neutral-25);
      }
    }
    &:has(.ui-question-radio[data-checked]) {
      background-color: var(--clerk-neutral-50);
    }
    &:has(.ui-question-radio[data-disabled]) {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-question-radio {
    box-sizing: border-box;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background-color: var(--clerk-input);
    box-shadow: var(--clerk-shadow-input);
    cursor: pointer;
    outline: 0;
    transition-property: background-color, box-shadow;
    transition-duration: var(--duration-controls);
    &:focus-visible {
      box-shadow: var(--clerk-shadow-input-focus);
    }
    &[data-checked] {
      background-color: var(--clerk-primary);
      box-shadow: 0 0 0 1px var(--clerk-primary), var(--clerk-shadow-button);
    }
    &[data-checked]:focus-visible {
      box-shadow: 0 0 0 1px var(--clerk-primary), var(--clerk-ring);
    }
  }
  .ui-question-indicator {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background-color: var(--clerk-primary-foreground);
    &:not([data-checked]) {
      display: none;
    }
  }
  .ui-question-option-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
  }
  .ui-question-option-label {
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-medium);
  }
  .ui-question-option-description {
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
  }
  .ui-question-shortcut {
    box-sizing: border-box;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    margin-top: 1px;
    padding: 1px 4px;
    border-radius: var(--clerk-radius-sm);
    background-color: var(--clerk-neutral-50);
    box-shadow: var(--clerk-shadow-badge-ring);
    color: var(--clerk-neutral-600);
    font-family: inherit;
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-micro);
  }
  .ui-question-option:has(.ui-question-radio[data-checked]) .ui-question-shortcut {
    background-color: var(--clerk-chat-primary-bg);
    box-shadow: var(--clerk-shadow-badge);
    color: var(--clerk-chat-primary-text);
  }
  .ui-question-other {
    box-sizing: border-box;
    width: 100%;
    height: 32px;
    margin: 0;
    padding: 7px 12px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-input);
    box-shadow: var(--clerk-shadow-input);
    color: var(--clerk-input-foreground);
    font: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    outline: 0;
    transition-property: box-shadow;
    transition-duration: var(--duration-controls);
    &::placeholder {
      color: var(--clerk-muted-foreground);
    }
    @media (hover: hover) {
      &:hover {
        box-shadow: var(--clerk-shadow-input-hover);
      }
    }
    &:focus {
      box-shadow: var(--clerk-shadow-input-focus);
    }
  }
  .ui-question-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px -20px -16px;
    padding: 12px 20px;
    background: var(--clerk-muted);
    box-shadow: inset 0 1px 0 var(--clerk-neutral-100);
  }
  .ui-question-progress {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .ui-question-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background-color: var(--clerk-neutral-200);
    transition-property: width, background-color;
    transition-duration: var(--duration-slow);
    transition-timing-function: var(--ease-bezier);
    &[data-state="complete"] {
      background-color: var(--clerk-neutral-500);
    }
    &[data-state="current"] {
      width: 16px;
      background-color: var(--clerk-primary);
    }
  }
  .ui-question-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-question-dot {
      transition-property: background-color;
    }
  }
}
:scope {
  .ui-queue {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-prompt-card-bg);
    box-shadow: inset 0 0 0 1px var(--clerk-prompt-card-ring);
    color: var(--clerk-chat-prose);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-queue-section {
    display: flex;
    flex-direction: column;
    & + & {
      border-top: 1px solid var(--clerk-prompt-card-rule);
    }
  }
  .ui-queue-section-trigger {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 16px 0 12px;
    border: 0;
    background-color: transparent;
    color: var(--clerk-chat-text);
    font: inherit;
    font-weight: var(--font-weight-semibold);
    text-align: start;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition: background-color var(--duration-chat-ghost) var(--clerk-chat-ease);
    &:focus-visible {
      box-shadow: inset var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-neutral-25);
      }
    }
  }
  .ui-queue-chevron {
    width: 12px;
    height: 12px;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    transition: transform var(--duration-slow) var(--ease-out);
    [data-panel-open] > & {
      transform: rotate(90deg);
    }
  }
  .ui-queue-section-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-queue-section-count {
    display: inline-flex;
    flex: none;
    align-items: center;
    padding: 1px 6px;
    border-radius: var(--clerk-radius-sm);
    background-color: var(--clerk-neutral-50);
    box-shadow: var(--clerk-shadow-badge-ring);
    color: var(--clerk-neutral-600);
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-micro);
    font-variant-numeric: tabular-nums;
  }
  .ui-queue-section-content {
    box-sizing: border-box;
    height: var(--collapsible-panel-height);
    overflow: hidden;
    transition:
      height var(--duration-slow) var(--ease-out),
      opacity var(--duration-slow) var(--ease-out);
    &[data-starting-style],
    &[data-ending-style] {
      height: 0;
      opacity: 0;
    }
  }
  .ui-queue-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0 8px 8px;
    list-style: none;
  }
  .ui-queue-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 8px;
    border-radius: var(--clerk-radius-md);
    transition: background-color var(--duration-controls);
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-chat-bg);
      }
    }
  }
  .ui-queue-item-indicator {
    box-sizing: border-box;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    border-radius: var(--clerk-radius-sm);
    background-color: var(--clerk-input);
    box-shadow: var(--clerk-shadow-input);
    color: transparent;
    transition-property: background-color, box-shadow, color;
    transition-duration: var(--duration-focus-ring);
    transition-timing-function: var(--ease-common);
    & svg {
      width: 12px;
      height: 12px;
    }
  }
  .ui-queue-item-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .ui-queue-item-label {
    color: var(--clerk-chat-text);
    font-weight: var(--font-weight-medium);
  }
  .ui-queue-item-description {
    color: var(--clerk-chat-muted-text);
  }
  .ui-queue-item[data-done] {
    & .ui-queue-item-indicator {
      background-color: var(--clerk-primary);
      box-shadow: none;
      color: var(--clerk-primary-foreground);
    }
    & .ui-queue-item-label {
      color: var(--clerk-chat-muted-text);
      font-weight: var(--font-weight-normal);
      text-decoration: line-through;
      text-decoration-color: var(--clerk-chat-subtle-text);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-queue-section-content,
    .ui-queue-chevron,
    .ui-queue-item-indicator {
      transition: none;
    }
  }
}
:scope {
  .ui-radio-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .ui-radio-group-item {
    box-sizing: border-box;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background-color: var(--clerk-input);
    box-shadow:
      0 0 0 1px var(--clerk-neutral-150),
      0 0 1px 0 var(--clerk-neutral-100);
    cursor: pointer;
    outline: 0;
    transition-property: background-color, box-shadow, opacity;
    transition-timing-function: ease;
    transition-duration: var(--duration-focus-ring);
    @media (hover: hover) {
      &:hover:not([data-disabled], [data-checked]) {
        box-shadow:
          0 0 0 1px var(--clerk-neutral-300),
          0 0 1px 0 var(--clerk-neutral-150);
      }
    }
    &:focus-visible {
      box-shadow:
        0 0 0 1px var(--clerk-neutral-300),
        0 0 1px 0 var(--clerk-neutral-150),
        0 0 0 4px var(--clerk-neutral-150);
    }
    &[data-checked] {
      background-color: var(--clerk-primary);
      box-shadow: 0 0 0 1px var(--clerk-primary);
    }
    &[data-checked]:focus-visible {
      box-shadow:
        0 0 0 1px var(--clerk-primary),
        0 0 0 4px var(--clerk-neutral-150);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-radio-group-indicator {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background-color: var(--clerk-primary-foreground);
  }
}
:scope {
  .ui-reasoning {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--clerk-chat-muted-text);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-reasoning-trigger {
    box-sizing: border-box;
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    height: 26px;
    margin: 0 0 0 -6px;
    padding: 0 6px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    color: var(--clerk-chat-muted-text);
    font: inherit;
    font-style: italic;
    text-align: start;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, color, box-shadow;
    transition-duration: var(--duration-chat-ghost);
    transition-timing-function: var(--clerk-chat-ease);
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-chat-ghost-hover);
        color: var(--clerk-chat-text);
      }
    }
  }
  .ui-reasoning-icon {
    display: flex;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    & :is(svg, .ui-spinner) {
      width: 14px;
      height: 14px;
    }
    & .ui-spinner {
      width: 12px;
      height: 12px;
      margin: 1px;
      border-width: 1.5px;
    }
  }
  .ui-reasoning-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-reasoning-description {
    flex: none;
    color: var(--clerk-chat-subtle-text);
    font-variant-numeric: tabular-nums;
  }
  .ui-reasoning-chevron {
    width: 12px;
    height: 12px;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    transition: transform var(--duration-slow) var(--ease-out);
    [data-panel-open] > & {
      transform: rotate(90deg);
    }
  }
  .ui-reasoning[data-status="running"] .ui-reasoning-title::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 14px;
    margin-left: 4px;
    border-radius: 999px;
    background-color: var(--clerk-chat-subtle-text);
    vertical-align: -2px;
    animation: clerk-reasoning-cursor var(--duration-chat-cursor) steps(1, end) infinite;
  }
  .ui-reasoning-content {
    box-sizing: border-box;
    height: var(--collapsible-panel-height);
    margin: 2px 0 0 1px;
    padding: 4px 0 4px 12px;
    overflow: hidden;
    border-left: 1px solid var(--clerk-chat-border);
    color: var(--clerk-chat-muted-text);
    font-size: var(--font-size-small);
    line-height: var(--clerk-line-height-chat);
    white-space: pre-wrap;
    transition:
      height var(--duration-slow) var(--ease-out),
      padding-block var(--duration-slow) var(--ease-out),
      opacity var(--duration-slow) var(--ease-out);
    &[data-starting-style],
    &[data-ending-style] {
      height: 0;
      padding-block: 0;
      opacity: 0;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-reasoning[data-status="running"] .ui-reasoning-title::after {
      animation: none;
      opacity: 0.6;
    }
    .ui-reasoning-content,
    .ui-reasoning-chevron {
      transition: none;
    }
  }
}
:scope {
  .ui-scroll-area {
    box-sizing: border-box;
  }
  .ui-scroll-area-viewport {
    box-sizing: border-box;
    height: 100%;
    border-radius: inherit;
    outline: none;
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
  }
  .ui-scroll-area-scrollbar {
    box-sizing: border-box;
    display: flex;
    background-color: var(--clerk-neutral-50);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-slow);
    &[data-orientation="vertical"] {
      width: 6px;
    }
    &[data-orientation="horizontal"] {
      height: 6px;
    }
    &[data-hovering],
    &[data-scrolling] {
      opacity: 1;
      pointer-events: auto;
    }
    &[data-scrolling] {
      transition-duration: 0s;
    }
  }
  .ui-scroll-area-thumb {
    border-radius: var(--clerk-radius-sm);
    background-color: var(--clerk-neutral-600);
    transition: background-color var(--duration-fast) var(--ease-common);
    &[data-orientation="vertical"] {
      width: 100%;
    }
    &[data-orientation="horizontal"] {
      height: 100%;
    }
    &:hover,
    &:active {
      background-color: var(--clerk-neutral-700);
    }
  }
}
:scope {
  .ui-select-trigger {
    --button-shadow: var(--clerk-shadow-outline-ring);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 32px;
    margin: 0;
    padding: 0 12px 0 14px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    box-shadow: var(--button-shadow);
    color: var(--clerk-neutral-600);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-small);
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, color, box-shadow, opacity;
    transition-duration: var(--duration-controls);
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--clerk-neutral-50);
      }
    }
    &[data-popup-open] {
      background-color: var(--clerk-neutral-50);
    }
    &:focus-visible {
      box-shadow: var(--button-shadow), var(--clerk-ring);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
    & svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }
  }
  .ui-select-positioner {
    outline: none;
  }
  .ui-select-popup {
    box-sizing: border-box;
    min-width: var(--anchor-width);
    overflow: hidden;
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-menu);
    color: var(--clerk-foreground);
    font-family: var(--font-regular);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
    outline: none;
    transform-origin: top center;
    animation: clerk-menu-dropdown var(--duration-slower) var(--ease-slow-bezier);
    &[data-side="bottom"] {
      translate: 0 2px;
    }
    &[data-side="top"] {
      translate: 0 -2px;
      transform-origin: bottom center;
    }
    &[data-side="none"] {
      animation: none;
    }
  }
  .ui-select-list {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: var(--available-height);
    padding: 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 2px;
    outline: none;
  }
  .ui-select-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    min-height: 30px;
    padding: 6px 16px;
    border-radius: var(--clerk-radius-sm);
    color: var(--clerk-foreground);
    cursor: pointer;
    user-select: none;
    outline: none;
    &[data-highlighted] {
      background: var(--clerk-muted);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-select-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-select-indicator {
    display: flex;
    color: var(--clerk-foreground);
    & svg {
      width: 16px;
      height: 16px;
    }
  }
  .ui-select-shortcut {
    margin-left: 16px;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
  }
  .ui-select-separator {
    height: 1px;
    margin: 0 -2px;
    background-color: var(--clerk-neutral-100);
  }
}
:scope {
  .ui-separator {
    flex-shrink: 0;
    border: 0 solid var(--clerk-neutral-100);
    &[data-orientation="horizontal"] {
      width: 100%;
      height: 0;
      border-bottom-width: 1px;
    }
    &[data-orientation="vertical"] {
      align-self: stretch;
      width: 0;
      border-left-width: 1px;
    }
  }
}
:scope {
  .ui-shimmer {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 4px 0;
    color: var(--clerk-chat-muted-text);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-style: italic;
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
    &::before {
      content: "";
      width: 6px;
      height: 14px;
      border-radius: 999px;
      background-color: var(--clerk-chat-subtle-text);
      animation: clerk-shimmer-cursor var(--duration-chat-cursor) steps(1, end) infinite;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-shimmer::before {
      animation: none;
      opacity: 0.6;
    }
  }
}
:scope {
  .ui-shipment {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 16px 20px;
    overflow: hidden;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-table);
    color: var(--clerk-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
  }
  .ui-shipment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin-bottom: 14px;
  }
  .ui-shipment-logo {
    box-sizing: border-box;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-neutral-50);
    box-shadow: var(--clerk-shadow-badge-ring);
    color: var(--clerk-neutral-700);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    & svg,
    & img {
      width: 18px;
      height: 18px;
    }
  }
  .ui-shipment-merchant {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .ui-shipment-name {
    overflow: hidden;
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-medium);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-shipment-meta {
    overflow: hidden;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-shipment-status {
    color: var(--clerk-foreground);
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-large);
  }
  .ui-shipment[data-status="delivered"] .ui-shipment-status {
    color: var(--clerk-chat-success-text);
  }
  .ui-shipment[data-status="delayed"] .ui-shipment-status {
    color: var(--clerk-chat-warning-text);
  }
  .ui-shipment-arrival {
    color: var(--clerk-foreground);
  }
  .ui-shipment-item {
    color: var(--clerk-muted-foreground);
  }
  .ui-shipment-progress {
    position: relative;
    margin: 16px 0 4px;
    padding: 0 5px 22px;
  }
  .ui-shipment-track {
    position: absolute;
    top: 4px;
    right: 5px;
    left: 5px;
    height: 2px;
    overflow: hidden;
    border-radius: 999px;
    background-color: var(--clerk-neutral-100);
  }
  .ui-shipment-fill {
    display: block;
    width: calc(var(--progress) * 100%);
    height: 100%;
    border-radius: inherit;
    background-color: var(--clerk-primary);
    transition: width var(--duration-slower) var(--ease-bezier);
  }
  .ui-shipment-steps {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .ui-shipment-step {
    position: relative;
    width: 0;
  }
  .ui-shipment-node {
    position: absolute;
    top: 0;
    left: -5px;
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background-color: var(--clerk-background);
    box-shadow: inset 0 0 0 1.5px var(--clerk-neutral-200);
  }
  .ui-shipment-step[data-state="complete"] .ui-shipment-node {
    background-color: var(--clerk-primary);
    box-shadow: none;
  }
  .ui-shipment-step[data-state="current"] .ui-shipment-node {
    box-shadow:
      inset 0 0 0 3px var(--clerk-primary),
      0 0 0 3px var(--clerk-neutral-150);
  }
  .ui-shipment-step-label {
    position: absolute;
    top: 16px;
    left: 0;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
    white-space: nowrap;
    translate: -50% 0;
  }
  .ui-shipment-step:first-child .ui-shipment-step-label {
    left: -5px;
    translate: 0 0;
  }
  .ui-shipment-step:last-child .ui-shipment-step-label {
    right: -5px;
    left: auto;
    translate: 0 0;
  }
  .ui-shipment-step[data-state="current"] .ui-shipment-step-label {
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-medium);
  }
  .ui-shipment-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 12px -20px -16px;
    padding: 12px 20px;
    background: var(--clerk-muted);
    box-shadow: inset 0 1px 0 var(--clerk-neutral-100);
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-shipment-fill {
      transition: none;
    }
  }
}
:scope {
  .ui-skeleton {
    display: block;
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-neutral-100);
  }
  .ui-skeleton[data-variant="text"] {
    width: 100%;
    height: 1lh;
    border-radius: var(--clerk-radius-sm);
  }
  .ui-skeleton[data-variant="line"] {
    width: 100%;
    height: 8px;
  }
  .ui-skeleton[data-variant="input"] {
    width: 100%;
    height: 40px;
  }
  .ui-skeleton[data-variant="circle"] {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
  }
  .ui-skeleton[data-variant="rect"] {
    width: 100%;
    height: 80px;
    border-radius: var(--clerk-radius-lg);
  }
}
:scope {
  .ui-slider {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    row-gap: 4px;
    width: 240px;
    max-width: 100%;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    &[data-disabled] {
      opacity: 0.6;
    }
  }
  .ui-slider-label {
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-medium);
  }
  .ui-slider-value {
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    font-variant-numeric: tabular-nums;
  }
  .ui-slider-control {
    box-sizing: border-box;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    padding-block: 6px;
    touch-action: none;
    user-select: none;
  }
  .ui-slider-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background-color: var(--clerk-neutral-150);
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06) inset;
  }
  .ui-slider-indicator {
    border-radius: inherit;
    background-color: var(--clerk-primary);
  }
  .ui-slider-thumb {
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-switch);
    transition: box-shadow var(--duration-focus-ring) var(--ease-common);
    &:has(:focus-visible) {
      box-shadow:
        var(--clerk-shadow-switch),
        var(--clerk-ring);
    }
  }
}
:scope {
  .ui-sources {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--clerk-chat-muted-text);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-sources-trigger {
    box-sizing: border-box;
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    height: 26px;
    margin: 0 0 0 -6px;
    padding: 0 6px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    color: var(--clerk-chat-muted-text);
    font: inherit;
    font-weight: var(--font-weight-medium);
    text-align: start;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, color, box-shadow;
    transition-duration: var(--duration-chat-ghost);
    transition-timing-function: var(--clerk-chat-ease);
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-chat-ghost-hover);
        color: var(--clerk-chat-text);
      }
    }
  }
  .ui-sources-icon {
    display: flex;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    & svg {
      width: 14px;
      height: 14px;
    }
  }
  .ui-sources-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-sources-chevron {
    width: 12px;
    height: 12px;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    transition: transform var(--duration-slow) var(--ease-out);
    [data-panel-open] > & {
      transform: rotate(90deg);
    }
  }
  .ui-sources-content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: var(--collapsible-panel-height);
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid var(--clerk-chat-border);
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-chat-bg);
    transition:
      height var(--duration-slow) var(--ease-out),
      opacity var(--duration-slow) var(--ease-out);
    &[data-starting-style],
    &[data-ending-style] {
      height: 0;
      opacity: 0;
    }
  }
  .ui-sources-source {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    padding: 8px 12px 8px 10px;
    color: inherit;
    text-decoration: none;
    outline: 0;
    transition: background-color var(--duration-chat-ghost) var(--clerk-chat-ease);
    & + & {
      border-top: 1px solid var(--clerk-chat-border);
    }
    &:focus-visible {
      box-shadow: inset var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-chat-muted-bg);
        & .ui-sources-source-title {
          text-decoration-color: currentColor;
        }
        & .ui-sources-source-arrow {
          color: var(--clerk-chat-text);
          translate: 2px 0;
        }
      }
    }
  }
  .ui-sources-source-icon {
    box-sizing: border-box;
    display: flex;
    grid-row: 1 / span 2;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-chat-pill-bg);
    box-shadow: inset 0 0 0 1px var(--clerk-chat-pill-ring);
    color: var(--clerk-chat-muted-text);
    & :is(svg, img) {
      width: 14px;
      height: 14px;
    }
  }
  .ui-sources-source-title {
    grid-column: 2;
    overflow: hidden;
    color: var(--clerk-chat-link);
    font-weight: var(--font-weight-medium);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: text-decoration-color var(--duration-chat-ghost) var(--clerk-chat-ease);
  }
  .ui-sources-source-description {
    grid-column: 2;
    overflow: hidden;
    color: var(--clerk-chat-subtle-text);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-sources-source-hint {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .ui-sources-source-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
    width: 14px;
    height: 14px;
    color: var(--clerk-chat-subtle-text);
    transition-property: color, translate;
    transition-duration: var(--duration-chat-ghost);
    transition-timing-function: var(--clerk-chat-ease);
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-sources-content,
    .ui-sources-chevron,
    .ui-sources-source-arrow {
      transition: none;
    }
    .ui-sources-source:hover .ui-sources-source-arrow {
      translate: none;
    }
  }
}
:scope {
  .ui-spinner {
    --spinner-size: 16px;
    box-sizing: border-box;
    display: inline-block;
    flex-shrink: 0;
    width: var(--spinner-size);
    height: var(--spinner-size);
    border: 2px solid var(--clerk-primary);
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-radius: 99999px;
    animation: clerk-spinner-spin var(--duration-spinner) linear infinite;
  }
  .ui-spinner[data-size="xs"] {
    --spinner-size: 12px;
  }
  .ui-spinner:is([data-size="sm"], [data-size="medium"]) {
    --spinner-size: 16px;
  }
  .ui-spinner[data-size="md"] {
    --spinner-size: 20px;
  }
  .ui-spinner[data-size="lg"] {
    --spinner-size: 24px;
  }
  .ui-spinner[data-size="xl"] {
    --spinner-size: 32px;
  }
}
:scope {
  .ui-stack-trace {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--clerk-chat-prose);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-stack-trace-trigger {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-chat-danger-bg);
    color: var(--clerk-chat-danger-text);
    font: inherit;
    text-align: start;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition-property: border-radius, box-shadow, filter;
    transition-duration: var(--duration-chat-ghost);
    transition-timing-function: var(--clerk-chat-ease);
    &:focus-visible {
      box-shadow: 0 0 0 4px var(--clerk-danger-200);
    }
    @media (hover: hover) {
      &:hover {
        filter: brightness(0.98);
      }
    }
    &[data-panel-open] {
      border-bottom-right-radius: 0;
      border-bottom-left-radius: 0;
    }
  }
  .ui-stack-trace-icon {
    display: flex;
    flex: none;
    & svg {
      width: 16px;
      height: 16px;
    }
  }
  .ui-stack-trace-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-weight: var(--font-weight-medium);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-stack-trace-chevron {
    width: 12px;
    height: 12px;
    flex: none;
    opacity: 0.7;
    transition: transform var(--duration-slow) var(--ease-out);
    [data-panel-open] > & {
      transform: rotate(90deg);
    }
  }
  .ui-stack-trace-content {
    box-sizing: border-box;
    height: var(--collapsible-panel-height);
    overflow: hidden;
    border: 1px solid var(--clerk-chat-border);
    border-top: 0;
    border-radius: 0 0 var(--clerk-radius-lg) var(--clerk-radius-lg);
    background-color: var(--clerk-chat-bg);
    transition:
      height var(--duration-slow) var(--ease-out),
      opacity var(--duration-slow) var(--ease-out);
    &[data-starting-style],
    &[data-ending-style] {
      height: 0;
      opacity: 0;
    }
  }
  .ui-stack-trace-error {
    margin: 0;
    padding: 12px 14px 8px;
    color: var(--clerk-chat-text);
    font-family: var(--font-monospace);
    font-size: 13px;
    line-height: 20px;
    overflow-wrap: anywhere;
  }
  .ui-stack-trace-error-type {
    color: var(--clerk-chat-danger-text);
    font-weight: var(--font-weight-semibold);
  }
  .ui-stack-trace-error-message {
    color: var(--clerk-chat-text);
  }
  .ui-stack-trace-frames {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0 14px 12px;
    list-style: none;
    font-family: var(--font-monospace);
    font-size: var(--font-size-mini);
    line-height: 20px;
  }
  .ui-stack-trace-frame {
    display: flex;
    flex-wrap: wrap;
    column-gap: 6px;
    min-width: 0;
    padding-left: 12px;
    border-left: 1px solid var(--clerk-chat-border);
  }
  .ui-stack-trace-at {
    color: var(--clerk-chat-subtle-text);
  }
  .ui-stack-trace-function {
    color: var(--clerk-chat-text);
    font-weight: var(--font-weight-medium);
  }
  .ui-stack-trace-location {
    min-width: 0;
    color: var(--clerk-chat-muted-text);
    overflow-wrap: anywhere;
  }
  .ui-stack-trace-frame[data-internal] {
    & .ui-stack-trace-function,
    & .ui-stack-trace-location {
      color: var(--clerk-chat-subtle-text);
      font-weight: var(--font-weight-normal);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-stack-trace-content,
    .ui-stack-trace-chevron {
      transition: none;
    }
  }
}
:scope {
  .ui-stock {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 16px 20px;
    overflow: hidden;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-table);
    color: var(--clerk-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
  }
  .ui-stock-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
  }
  .ui-stock-symbol {
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-bold);
  }
  .ui-stock-name {
    overflow: hidden;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-stock-quote {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: -8px;
  }
  .ui-stock-price {
    color: var(--clerk-foreground);
    font-size: var(--font-size-title2);
    font-weight: var(--font-weight-bold);
    line-height: 32px;
    font-variant-numeric: tabular-nums;
  }
  .ui-stock-change {
    color: var(--clerk-muted-foreground);
    font-weight: var(--font-weight-medium);
    font-variant-numeric: tabular-nums;
  }
  .ui-stock[data-direction="up"] .ui-stock-change {
    color: var(--clerk-chat-success-text);
  }
  .ui-stock[data-direction="down"] .ui-stock-change {
    color: var(--clerk-chat-danger-text);
  }
  .ui-stock-chart {
    display: block;
    width: 100%;
    height: 96px;
    overflow: visible;
  }
  .ui-stock-area {
    fill: var(--clerk-neutral-50);
    stroke: none;
  }
  .ui-stock-line {
    fill: none;
    stroke: var(--clerk-neutral-500);
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .ui-stock[data-direction="up"] {
    & .ui-stock-area {
      fill: var(--clerk-success-50);
    }
    & .ui-stock-line {
      stroke: var(--clerk-success);
    }
  }
  .ui-stock[data-direction="down"] {
    & .ui-stock-area {
      fill: var(--clerk-danger-50);
    }
    & .ui-stock-line {
      stroke: var(--clerk-danger);
    }
  }
  .ui-stock-baseline {
    stroke: var(--clerk-neutral-300);
    stroke-width: 1px;
    stroke-dasharray: 3 3;
    vector-effect: non-scaling-stroke;
  }
  .ui-stock-ranges {
    display: flex;
  }
  .ui-stock-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--clerk-neutral-150);
  }
  .ui-stock-stat {
    display: flex;
    flex-direction: column;
    min-width: 0;
    & dt {
      color: var(--clerk-neutral-600);
      font-size: var(--font-size-mini);
      line-height: var(--line-height-mini);
    }
    & dd {
      margin: 0;
      color: var(--clerk-foreground);
      font-weight: var(--font-weight-medium);
      font-variant-numeric: tabular-nums;
    }
  }
}
:scope {
  .ui-subagent {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-chat-bg);
    box-shadow: var(--clerk-shadow-docs-code);
    color: var(--clerk-chat-muted-text);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-subagent-trigger {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 14px 0 10px;
    border: 0;
    background-color: transparent;
    color: var(--clerk-chat-text);
    font: inherit;
    font-weight: var(--font-weight-medium);
    text-align: start;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition: background-color var(--duration-chat-ghost) var(--clerk-chat-ease);
    &:focus-visible {
      box-shadow: inset var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-chat-muted-bg);
      }
    }
  }
  .ui-subagent-icon {
    box-sizing: border-box;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-chat-pill-bg);
    box-shadow: inset 0 0 0 1px var(--clerk-chat-pill-ring);
    color: var(--clerk-chat-muted-text);
    & :is(svg, .ui-spinner) {
      width: 14px;
      height: 14px;
    }
    & .ui-spinner {
      width: 12px;
      height: 12px;
      margin: 1px;
      border-width: 1.5px;
    }
  }
  .ui-subagent-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-subagent-description {
    flex: none;
    color: var(--clerk-chat-subtle-text);
    font-weight: var(--font-weight-normal);
    font-variant-numeric: tabular-nums;
  }
  .ui-subagent-chevron {
    width: 12px;
    height: 12px;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    transition: transform var(--duration-slow) var(--ease-out);
    [data-panel-open] > & {
      transform: rotate(90deg);
    }
  }
  .ui-subagent[data-status="running"] .ui-subagent-title::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 14px;
    margin-left: 4px;
    border-radius: 999px;
    background-color: var(--clerk-chat-subtle-text);
    vertical-align: -2px;
    animation: clerk-subagent-cursor var(--duration-chat-cursor) steps(1, end) infinite;
  }
  .ui-subagent[data-status="error"] .ui-subagent-title {
    color: var(--clerk-chat-danger-text);
  }
  .ui-subagent-content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: var(--collapsible-panel-height);
    padding: 12px 14px 14px;
    overflow: hidden;
    border-top: 1px solid var(--clerk-chat-border);
    transition:
      height var(--duration-slow) var(--ease-out),
      padding-block var(--duration-slow) var(--ease-out),
      opacity var(--duration-slow) var(--ease-out);
    &[data-starting-style],
    &[data-ending-style] {
      height: 0;
      padding-block: 0;
      opacity: 0;
    }
  }
  .ui-subagent-prompt {
    position: relative;
    margin: 0;
    padding: 0 0 0 12px;
    color: var(--clerk-chat-prose);
    font-size: var(--clerk-font-size-chat);
    line-height: 1.5;
    &::before {
      content: "";
      position: absolute;
      top: 2px;
      bottom: 2px;
      left: 0;
      width: 2px;
      border-radius: 2px;
      background-color: var(--clerk-callout-bar);
    }
  }
  .ui-subagent-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .ui-subagent-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .ui-subagent-step {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--clerk-chat-muted-text);
  }
  .ui-subagent-step[data-status="running"] {
    color: var(--clerk-chat-text);
  }
  .ui-subagent-step[data-status="error"] {
    color: var(--clerk-chat-danger-text);
  }
  .ui-subagent-step-icon {
    display: flex;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    & :is(svg, .ui-spinner) {
      width: 14px;
      height: 14px;
    }
    & .ui-spinner {
      width: 12px;
      height: 12px;
      margin: 1px;
      border-width: 1.5px;
    }
  }
  .ui-subagent-step-label {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .ui-subagent-result {
    padding-top: 12px;
    border-top: 1px solid var(--clerk-chat-border);
    color: var(--clerk-chat-prose);
    font-size: var(--clerk-font-size-chat);
    line-height: var(--clerk-line-height-chat);
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-subagent[data-status="running"] .ui-subagent-title::after {
      animation: none;
      opacity: 0.6;
    }
    .ui-subagent-content,
    .ui-subagent-chevron {
      transition: none;
    }
  }
}
:scope {
  .ui-suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
  }
  .ui-suggestion {
    box-sizing: border-box;
    display: inline-flex;
    flex: none;
    align-items: center;
    max-width: 100%;
    height: 28px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background-color: var(--clerk-chat-pill-bg);
    box-shadow: inset 0 0 0 1px var(--clerk-chat-pill-ring);
    color: var(--clerk-chat-pill-text);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, color, box-shadow;
    transition-duration: var(--duration-chat-ghost);
    transition-timing-function: var(--clerk-chat-ease);
    &:focus-visible {
      box-shadow:
        inset 0 0 0 1px var(--clerk-chat-pill-ring),
        var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--clerk-chat-pill-bg-hover);
        color: var(--clerk-chat-text);
      }
    }
    &:active:not([data-disabled]) {
      scale: 0.98;
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-suggestion:has(> .ui-suggestion-icon) {
    gap: 6px;
    padding-left: 10px;
  }
  .ui-suggestion-icon {
    display: flex;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    & svg {
      width: 14px;
      height: 14px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-suggestion:active:not([data-disabled]) {
      scale: none;
    }
  }
}
:scope {
  .ui-switch {
    box-sizing: border-box;
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    width: 24px;
    height: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background-color: var(--clerk-neutral-150);
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06) inset;
    cursor: pointer;
    outline: none;
    transition: background-color var(--duration-slow);
    &:focus-visible {
      box-shadow:
        0 0 0 1px rgb(0 0 0 / 0.06) inset,
        var(--clerk-ring);
    }
    &[data-checked] {
      background-color: var(--clerk-primary);
    }
    &[data-disabled] {
      opacity: 0.6;
      cursor: not-allowed;
    }
  }
  .ui-switch-thumb {
    position: absolute;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-switch);
    transform: translateX(0);
    transition: transform var(--duration-slow);
    &[data-checked] {
      transform: translateX(8px);
    }
  }
}
:scope {
  .ui-table-container {
    box-sizing: border-box;
    width: 100%;
    padding: 4px;
    overflow-x: auto;
  }
  .ui-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--clerk-radius-lg);
    box-shadow: var(--clerk-shadow-table);
    color: var(--clerk-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
    text-align: start;
  }
  .ui-table-head {
    padding: 8px 16px 8px 8px;
    color: rgb(from var(--clerk-foreground) r g b / 0.62);
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-normal);
    line-height: 18px;
    text-align: start;
    white-space: nowrap;
  }
  .ui-table-cell {
    padding: 8px 16px 8px 8px;
    border-top: 1px solid var(--clerk-neutral-150);
    vertical-align: middle;
  }
  .ui-table-head:first-child,
  .ui-table-cell:first-child {
    padding-left: 20px;
  }
  .ui-table-body .ui-table-row {
    & > .ui-table-cell {
      transition: background-color var(--duration-controls);
    }
    @media (hover: hover) {
      &:hover > .ui-table-cell {
        background-color: var(--clerk-neutral-50);
      }
    }
    &:last-child {
      & > :first-child {
        border-bottom-left-radius: var(--clerk-radius-lg);
      }
      & > :last-child {
        border-bottom-right-radius: var(--clerk-radius-lg);
      }
    }
  }
  .ui-table-caption {
    caption-side: bottom;
    padding: 12px 16px 0;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
    text-align: start;
  }
}
:scope {
  .ui-tabs-list {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--clerk-neutral-100);
    &[data-orientation="vertical"] {
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
      border-bottom: 0;
      border-left: 1px solid var(--clerk-neutral-100);
    }
  }
  .ui-tabs-tab {
    box-sizing: border-box;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    margin: 0;
    padding: 10px 1px;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    color: var(--clerk-neutral-700);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-small);
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, background, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: var(--duration-controls);
    &[data-orientation="horizontal"][data-active] {
      margin-bottom: -1px;
      border-bottom: 1px solid;
    }
    &[data-orientation="vertical"] {
      margin-left: -1px;
      padding: 6px 12px;
      border-left: 1px solid transparent;
    }
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
    &[data-active] {
      color: var(--clerk-primary);
      border-color: var(--clerk-primary);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
    & svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }
  }
  .ui-tabs-panel {
    color: var(--clerk-foreground);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    outline: none;
    &:focus-visible {
      border-radius: var(--clerk-radius-md);
      box-shadow: var(--clerk-ring);
    }
  }
}
:scope {
  .ui-tag {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    margin-inline-end: 1px;
    padding: 2px 6px;
    overflow: hidden;
    border: 0;
    border-radius: var(--clerk-radius-sm);
    background-color: var(--clerk-neutral-50);
    box-shadow: var(--clerk-shadow-badge-ring);
    color: var(--clerk-primary);
    font-family: inherit;
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-mini);
    white-space: nowrap;
    transition: background-color var(--duration-controls);
    &[data-removable] {
      padding-inline-end: 4px;
    }
    &[data-removable]:hover {
      background-color: var(--clerk-neutral-100);
    }
  }
  .ui-tag-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--tag-color);
  }
  .ui-tag-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ui-tag-remove {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--clerk-radius-sm);
    background: transparent;
    color: var(--clerk-muted-foreground);
    cursor: pointer;
    outline: 0;
    transition: color var(--duration-controls);
    & svg {
      width: 16px;
      height: 16px;
    }
    .ui-tag:hover > & {
      color: var(--clerk-danger);
    }
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
  }
}
:scope {
  .ui-tag-input {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    min-height: 80px;
    padding: 6px 8px;
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-input);
    box-shadow: var(--clerk-shadow-input);
    color: var(--clerk-input-foreground);
    font-family: inherit;
    cursor: text;
    transition-property: background-color, color, opacity, box-shadow;
    transition-timing-function: ease;
    transition-duration: var(--duration-focus-ring);
    @media (hover: hover) {
      &:hover {
        box-shadow: var(--clerk-shadow-input-hover);
      }
    }
    &:focus-within {
      box-shadow: var(--clerk-shadow-input-focus);
    }
  }
  .ui-tag-input-chips {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .ui-tag-input-chip {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 2px 4px 2px 6px;
    overflow: hidden;
    border-radius: var(--clerk-radius-sm);
    background-color: var(--clerk-neutral-50);
    box-shadow: var(--clerk-shadow-badge-ring);
    color: var(--clerk-primary);
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-mini);
    white-space: nowrap;
    cursor: pointer;
    outline: 0;
    transition: background-color var(--duration-controls);
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-neutral-100);
      }
    }
    &[data-highlighted],
    &:focus-visible {
      background-color: var(--clerk-neutral-100);
    }
  }
  .ui-tag-input-chip-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ui-tag-input-chip-remove {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--clerk-muted-foreground);
    cursor: pointer;
    transition: color var(--duration-controls);
    & svg {
      width: 16px;
      height: 16px;
    }
    .ui-tag-input-chip:is(:hover, [data-highlighted]) > & {
      color: var(--clerk-danger);
    }
  }
  .ui-tag-input-input {
    flex: 1;
    min-width: 80px;
    height: 20px;
    margin: 0;
    padding: 0 0 0 4px;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: 20px;
    letter-spacing: normal;
    outline: 0;
    &::placeholder {
      color: var(--clerk-muted-foreground);
    }
  }
}
:scope {
  .ui-task {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--clerk-chat-muted-text);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-task-trigger {
    box-sizing: border-box;
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    height: 26px;
    margin: 0 0 0 -6px;
    padding: 0 6px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    color: var(--clerk-chat-text);
    font: inherit;
    font-weight: var(--font-weight-medium);
    text-align: start;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, box-shadow;
    transition-duration: var(--duration-chat-ghost);
    transition-timing-function: var(--clerk-chat-ease);
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-chat-ghost-hover);
      }
    }
  }
  .ui-task-icon {
    display: flex;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    & :is(svg, .ui-spinner) {
      width: 14px;
      height: 14px;
    }
    & .ui-spinner {
      width: 12px;
      height: 12px;
      margin: 1px;
      border-width: 1.5px;
    }
  }
  .ui-task-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-task-description {
    flex: none;
    color: var(--clerk-chat-subtle-text);
    font-weight: var(--font-weight-normal);
    font-variant-numeric: tabular-nums;
  }
  .ui-task-chevron {
    width: 12px;
    height: 12px;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    transition: transform var(--duration-slow) var(--ease-out);
    [data-panel-open] > & {
      transform: rotate(90deg);
    }
  }
  .ui-task[data-status="running"] .ui-task-title::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 14px;
    margin-left: 4px;
    border-radius: 999px;
    background-color: var(--clerk-chat-subtle-text);
    vertical-align: -2px;
    animation: clerk-task-cursor var(--duration-chat-cursor) steps(1, end) infinite;
  }
  .ui-task[data-status="error"] .ui-task-title {
    color: var(--clerk-chat-danger-text);
  }
  .ui-task-content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: var(--collapsible-panel-height);
    padding: 4px 0 0;
    overflow: hidden;
    transition:
      height var(--duration-slow) var(--ease-out),
      padding-block var(--duration-slow) var(--ease-out),
      opacity var(--duration-slow) var(--ease-out);
    &[data-starting-style],
    &[data-ending-style] {
      height: 0;
      padding-block: 0;
      opacity: 0;
    }
  }
  .ui-task-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 26px;
    color: var(--clerk-chat-muted-text);
  }
  .ui-task-item[data-status="error"] {
    color: var(--clerk-chat-danger-text);
  }
  .ui-task-item-icon {
    display: flex;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    & :is(svg, .ui-spinner) {
      width: 14px;
      height: 14px;
    }
    & .ui-spinner {
      width: 12px;
      height: 12px;
      margin: 1px;
      border-width: 1.5px;
    }
  }
  .ui-task-item-label {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .ui-task-file {
    padding: 3px 6px;
    border: 1px solid var(--clerk-chat-inline-code-border);
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-chat-inline-code-bg);
    color: var(--clerk-chat-inline-code-text);
    font-family: var(--font-monospace);
    font-size: var(--font-size-mini);
    white-space: nowrap;
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-task[data-status="running"] .ui-task-title::after {
      animation: none;
      opacity: 0.6;
    }
    .ui-task-content,
    .ui-task-chevron {
      transition: none;
    }
  }
}
:scope {
  .ui-terminal {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0 4px 4px;
    border-radius: 16px;
    background-color: var(--clerk-docs-code-frame);
    box-shadow: inset 0 0 0 1px var(--clerk-callout-ring);
    color: var(--clerk-docs-code-text);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-terminal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 6px 0 12px;
  }
  .ui-terminal-title {
    flex: none;
    padding-right: 10px;
    border-right: 1px solid var(--clerk-callout-ring);
    color: var(--clerk-docs-code-muted);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: 20px;
    white-space: nowrap;
  }
  .ui-terminal-copy {
    box-sizing: border-box;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    color: var(--clerk-docs-code-icon);
    cursor: pointer;
    outline: 0;
    transition-property: color, background-color, box-shadow;
    transition-duration: var(--duration-chat-copy);
    transition-timing-function: var(--ease-common);
    & svg {
      width: 16px;
      height: 16px;
    }
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover {
        color: var(--clerk-docs-code-icon-hover);
      }
    }
    &[data-copied] {
      color: var(--clerk-chat-success-text);
    }
  }
  .ui-terminal-command {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--clerk-docs-code-text);
    font-family: var(--font-monospace);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-terminal-prompt {
    color: var(--clerk-docs-code-icon);
    user-select: none;
  }
  .ui-terminal-status {
    flex: none;
    color: var(--clerk-docs-code-muted);
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-mini);
    font-variant-numeric: tabular-nums;
  }
  .ui-terminal[data-status="error"] .ui-terminal-status {
    color: var(--clerk-chat-danger-text);
  }
  .ui-terminal[data-status="done"] .ui-terminal-status {
    color: var(--clerk-chat-success-text);
  }
  .ui-terminal-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 4px;
  }
  .ui-terminal-output {
    box-sizing: border-box;
    max-height: 280px;
    margin: 0;
    padding: 12px 16px;
    overflow: auto;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-docs-code-bg);
    box-shadow: var(--clerk-shadow-docs-code);
    color: var(--clerk-docs-code-text);
    font-family: var(--font-monospace);
    font-size: 13px;
    line-height: 20px;
    tab-size: 2;
    white-space: pre;
    scrollbar-width: thin;
    scrollbar-color: var(--clerk-neutral-300) transparent;
    outline: none;
    &:focus-visible {
      box-shadow: var(--clerk-shadow-docs-code), var(--clerk-ring);
    }
  }
  .ui-terminal[data-status="running"] .ui-terminal-output::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 14px;
    margin-left: 2px;
    border-radius: 999px;
    background-color: var(--clerk-docs-code-icon);
    vertical-align: -2px;
    animation: clerk-terminal-cursor var(--duration-chat-cursor) steps(1, end) infinite;
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-terminal[data-status="running"] .ui-terminal-output::after {
      animation: none;
      opacity: 0.6;
    }
  }
}
:scope {
  .ui-test-results {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-chat-bg);
    box-shadow: var(--clerk-shadow-table);
    color: var(--clerk-chat-prose);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-test-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px 10px;
  }
  .ui-test-results-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }
  .ui-test-results-count {
    --count-fg: var(--clerk-neutral-600);
    --count-bg: var(--clerk-neutral-50);
    --count-ring: var(--clerk-neutral-100);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 1px 6px;
    border-radius: var(--clerk-radius-sm);
    background-color: var(--count-bg);
    box-shadow:
      0 0 0 1px var(--count-ring),
      var(--clerk-shadow-badge);
    color: var(--count-fg);
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-micro);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    &::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background-color: currentColor;
    }
  }
  .ui-test-results-count[data-status="passed"] {
    --count-fg: var(--clerk-chat-success-text);
    --count-bg: var(--clerk-success-50);
    --count-ring: var(--clerk-success-300);
  }
  .ui-test-results-count[data-status="failed"] {
    --count-fg: var(--clerk-chat-danger-text);
    --count-bg: var(--clerk-danger-50);
    --count-ring: var(--clerk-danger-300);
  }
  .ui-test-results-count[data-status="running"] {
    --count-fg: var(--clerk-chat-warning-text);
    --count-bg: var(--clerk-warning-50);
    --count-ring: var(--clerk-warning-300);
  }
  .ui-test-results-duration {
    flex: none;
    color: var(--clerk-chat-subtle-text);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
    font-variant-numeric: tabular-nums;
  }
  .ui-test-results-progress {
    display: flex;
    gap: 2px;
    height: 6px;
    margin: 0 14px 12px;
    overflow: hidden;
    border-radius: 999px;
    background-color: var(--clerk-neutral-100);
  }
  .ui-test-results-segment {
    height: 100%;
    background-color: var(--clerk-neutral-200);
    min-width: 0;
    transition: width var(--duration-slower) var(--ease-slow-bezier);
  }
  .ui-test-results-segment[data-status="passed"] {
    background-color: var(--clerk-success);
  }
  .ui-test-results-segment[data-status="failed"] {
    background-color: var(--clerk-danger);
  }
  .ui-test-results-segment[data-status="running"] {
    background-color: var(--clerk-warning);
  }
  .ui-test-results-suites {
    display: flex;
    flex-direction: column;
  }
  .ui-test-results-suite {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--clerk-chat-border);
  }
  .ui-test-results-suite-trigger {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 14px 0 12px;
    border: 0;
    background-color: transparent;
    color: var(--clerk-chat-text);
    font: inherit;
    text-align: start;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition: background-color var(--duration-chat-ghost) var(--clerk-chat-ease);
    &:focus-visible {
      box-shadow: inset var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-chat-muted-bg);
      }
    }
  }
  .ui-test-results-chevron {
    width: 12px;
    height: 12px;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    transition: transform var(--duration-slow) var(--ease-out);
    [data-panel-open] > & {
      transform: rotate(90deg);
    }
  }
  .ui-test-results-suite-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-family: var(--font-monospace);
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-medium);
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-test-results-suite[data-status="failed"] .ui-test-results-suite-name {
    color: var(--clerk-chat-danger-text);
  }
  .ui-test-results-suite-stats {
    flex: none;
    color: var(--clerk-chat-subtle-text);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
    font-variant-numeric: tabular-nums;
  }
  .ui-test-results-suite-content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: var(--collapsible-panel-height);
    padding: 0 14px 10px 32px;
    overflow: hidden;
    transition:
      height var(--duration-slow) var(--ease-out),
      padding-block var(--duration-slow) var(--ease-out),
      opacity var(--duration-slow) var(--ease-out);
    &[data-starting-style],
    &[data-ending-style] {
      height: 0;
      padding-block: 0;
      opacity: 0;
    }
  }
  .ui-test-results-test {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 28px;
    color: var(--clerk-chat-prose);
  }
  .ui-test-results-indicator {
    width: 14px;
    height: 14px;
    flex: none;
    color: var(--clerk-chat-subtle-text);
  }
  .ui-test-results-test[data-status="passed"] .ui-test-results-indicator {
    color: var(--clerk-success);
  }
  .ui-test-results-test[data-status="failed"] {
    color: var(--clerk-chat-danger-text);
    & .ui-test-results-indicator {
      color: var(--clerk-danger);
    }
  }
  .ui-test-results-test[data-status="skipped"] {
    color: var(--clerk-chat-subtle-text);
  }
  .ui-test-results-test-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-test-results-test-duration {
    flex: none;
    color: var(--clerk-chat-subtle-text);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
    font-variant-numeric: tabular-nums;
  }
  .ui-test-results-error {
    margin: 2px 0 6px 22px;
    padding: 8px 12px;
    overflow-x: auto;
    border-radius: var(--clerk-radius-lg);
    background-color: var(--clerk-chat-danger-bg);
    color: var(--clerk-chat-danger-text);
    font-family: var(--font-monospace);
    font-size: var(--font-size-mini);
    line-height: 18px;
    white-space: pre;
    scrollbar-width: thin;
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-test-results-suite-content,
    .ui-test-results-chevron,
    .ui-test-results-segment {
      transition: none;
    }
  }
}
:scope {
  .ui-text {
    margin: 0;
    color: var(--clerk-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
    text-wrap: pretty;
  }
  .ui-text[data-variant="h1"] {
    font-size: var(--font-size-title2);
    font-weight: var(--font-weight-semibold);
    line-height: calc(16 / 12);
  }
  .ui-text:is([data-variant="h2"], [data-variant="heading"]) {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-large);
  }
  .ui-text[data-variant="h3"] {
    font-weight: var(--font-weight-bold);
  }
  .ui-text[data-variant="subtitle"] {
    font-weight: var(--font-weight-medium);
  }
  .ui-text[data-variant="caption"] {
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-micro);
  }
  .ui-text:is([data-tone="secondary"], [data-tone="tertiary"]) {
    color: var(--clerk-muted-foreground);
  }
  .ui-text[data-tone="tertiary"] {
    opacity: 0.62;
  }
  .ui-text[data-tone="danger"] {
    color: var(--clerk-danger);
  }
  .ui-text[data-tone="success"] {
    color: var(--clerk-success);
  }
  .ui-text[data-tone="warning"] {
    color: var(--clerk-warning);
  }
}
:scope {
  .ui-textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 80px;
    margin: 0;
    padding: 7px 12px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-input);
    box-shadow: var(--clerk-shadow-input);
    color: var(--clerk-input-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
    letter-spacing: normal;
    resize: vertical;
    outline: transparent solid 2px;
    outline-offset: 2px;
    transition-property: background-color, color, opacity, box-shadow;
    transition-timing-function: ease;
    transition-duration: var(--duration-focus-ring);
    &::placeholder {
      color: var(--clerk-muted-foreground);
    }
    @media (hover: hover) {
      &:hover:not(:disabled) {
        box-shadow: var(--clerk-shadow-input-hover);
      }
    }
    &:focus {
      box-shadow: var(--clerk-shadow-input-focus);
    }
    &:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
    &[aria-invalid="true"] {
      box-shadow: var(--clerk-shadow-input-invalid);
      @media (hover: hover) {
        &:hover:not(:disabled) {
          box-shadow: var(--clerk-shadow-input-invalid-hover);
        }
      }
      &:focus {
        box-shadow: var(--clerk-shadow-input-invalid-focus);
      }
    }
  }
}
:scope {
  .ui-toast-viewport {
    position: fixed;
    z-index: 1;
    right: 16px;
    bottom: 16px;
    width: 340px;
    max-width: calc(100vw - 32px);
  }
  .ui-toast {
    --gap: 8px;
    --peek: 8px;
    --scale: calc(max(0, 1 - (var(--toast-index) * 0.05)));
    --shrink: calc(1 - var(--scale));
    --height: var(--toast-frontmost-height, var(--toast-height));
    --offset-y: calc(
      var(--toast-offset-y) * -1 + (var(--toast-index) * var(--gap) * -1) + var(--toast-swipe-movement-y)
    );
    box-sizing: border-box;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: calc(1000 - var(--toast-index));
    width: 100%;
    height: var(--height);
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-popover);
    color: var(--clerk-foreground);
    font-family: var(--font-regular);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
    cursor: default;
    user-select: none;
    outline: 0;
    transform-origin: bottom center;
    transform: translateX(var(--toast-swipe-movement-x))
      translateY(
        calc(var(--toast-swipe-movement-y) - (var(--toast-index) * var(--peek)) - (var(--shrink) * var(--height)))
      )
      scale(var(--scale));
    transition:
      transform var(--duration-drawer) var(--ease-bezier),
      opacity var(--duration-drawer) var(--ease-bezier),
      height var(--duration-slow) ease-out;
    &::after {
      content: "";
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      height: calc(var(--gap) + 1px);
    }
    &[data-expanded] {
      height: var(--toast-height);
      transform: translateX(var(--toast-swipe-movement-x)) translateY(var(--offset-y));
    }
    &[data-starting-style],
    &[data-ending-style] {
      transform: translateY(calc(100% + 16px));
    }
    &[data-limited] {
      opacity: 0;
    }
    &[data-ending-style] {
      opacity: 0;
      &[data-swipe-direction="down"] {
        transform: translateY(calc(var(--toast-swipe-movement-y) + 100% + 16px));
      }
      &[data-swipe-direction="right"] {
        transform: translateX(calc(var(--toast-swipe-movement-x) + 100% + 16px)) translateY(var(--offset-y));
      }
    }
    &:focus-visible {
      box-shadow:
        var(--clerk-shadow-popover),
        var(--clerk-ring);
    }
  }
  .ui-toast-content {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 16px;
    overflow: hidden;
    transition: opacity var(--duration-slow) ease-out;
    &[data-behind] {
      opacity: 0;
    }
    &[data-expanded] {
      opacity: 1;
    }
  }
  .ui-toast-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .ui-toast-title {
    margin: 0;
    color: var(--clerk-foreground);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-small);
  }
  .ui-toast-description {
    margin: 0;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-small);
  }
  .ui-toast-action {
    flex-shrink: 0;
    height: 24px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    box-shadow: var(--clerk-shadow-outline-ring);
    color: var(--clerk-neutral-600);
    font-family: inherit;
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-mini);
    white-space: nowrap;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, box-shadow;
    transition-duration: var(--duration-controls);
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-neutral-50);
      }
    }
    &:focus-visible {
      box-shadow:
        var(--clerk-shadow-outline-ring),
        var(--clerk-ring);
    }
  }
  .ui-toast-close {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    color: var(--clerk-muted-foreground);
    cursor: pointer;
    outline: 0;
    transition-property: background-color, color, box-shadow;
    transition-duration: var(--duration-controls);
    & svg {
      width: 12px;
      height: 12px;
    }
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-neutral-50);
        color: var(--clerk-foreground);
      }
    }
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
  }
}
:scope {
  .ui-toggle {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    color: var(--clerk-muted-foreground);
    font-family: inherit;
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, color, box-shadow, opacity;
    transition-duration: var(--duration-controls);
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover:not([data-disabled], [data-pressed]) {
        background-color: var(--clerk-neutral-25);
        color: var(--clerk-foreground);
      }
    }
    &[data-pressed] {
      background-color: var(--clerk-neutral-100);
      color: var(--clerk-primary);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
    & svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }
  }
  .ui-toggle[data-size="small"] {
    height: 24px;
    min-width: 24px;
    padding: 0 12px;
    gap: 6px;
    font-size: var(--font-size-micro);
    line-height: var(--line-height-micro);
    & svg {
      width: 12px;
      height: 12px;
    }
  }
  .ui-toggle[data-size="medium"] {
    height: 32px;
    min-width: 32px;
    padding: 0 12px;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-toggle[data-size="large"] {
    height: 38px;
    min-width: 38px;
    padding: 0 20px;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-toggle[data-icon-only] {
    padding: 0;
  }
}
:scope {
  .ui-toggle-group-group {
    box-sizing: border-box;
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--clerk-neutral-100);
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-neutral-50);
    &[data-orientation="vertical"] {
      flex-direction: column;
    }
    &[data-disabled] {
      opacity: 0.5;
    }
    & > .ui-toggle {
      height: auto;
      min-height: 24px;
      padding: 7px 12px;
      border-radius: calc(var(--clerk-radius-md) - 1px);
      color: var(--clerk-muted-foreground);
      font-size: var(--font-size-micro);
      line-height: calc(18 / 13);
      &[data-size="medium"],
      &[data-size="large"] {
        font-size: var(--font-size-small);
        line-height: var(--line-height-small);
      }
      .ui-toggle-group-group[data-size="md"] > & {
        font-size: var(--font-size-micro);
        line-height: calc(18 / 13);
      }
      .ui-toggle-group-group[data-size="lg"] > & {
        font-size: var(--font-size-small);
        line-height: var(--line-height-small);
      }
      @media (hover: hover) {
        &:hover:not([data-disabled], [data-pressed]) {
          background-color: transparent;
          color: var(--clerk-foreground);
        }
      }
      &[data-pressed] {
        background-color: var(--clerk-background);
        color: var(--clerk-foreground);
        box-shadow: var(--clerk-shadow-segmented);
      }
      &[data-pressed]:focus-visible,
      &:focus-visible {
        box-shadow: var(--clerk-ring);
      }
    }
  }
}
:scope {
  .ui-tool {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--clerk-chat-muted-text);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
  }
  .ui-tool-trigger {
    box-sizing: border-box;
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    height: 26px;
    margin: 0 0 0 -6px;
    padding: 0 6px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    color: var(--clerk-chat-muted-text);
    font: inherit;
    font-style: italic;
    text-align: start;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, color, box-shadow;
    transition-duration: var(--duration-chat-ghost);
    transition-timing-function: var(--clerk-chat-ease);
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover {
        background-color: var(--clerk-chat-ghost-hover);
        color: var(--clerk-chat-text);
      }
    }
  }
  .ui-tool-icon {
    display: flex;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    & :is(svg, .ui-spinner) {
      width: 14px;
      height: 14px;
    }
    & .ui-spinner {
      width: 12px;
      height: 12px;
      margin: 1px;
      border-width: 1.5px;
    }
  }
  .ui-tool-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ui-tool-description {
    flex: none;
    color: var(--clerk-chat-subtle-text);
    font-variant-numeric: tabular-nums;
  }
  .ui-tool-chevron {
    width: 12px;
    height: 12px;
    flex: none;
    color: var(--clerk-chat-subtle-text);
    transition: transform var(--duration-slow) var(--ease-out);
    [data-panel-open] > & {
      transform: rotate(90deg);
    }
  }
  .ui-tool[data-status="error"] :is(.ui-tool-title, .ui-tool-icon) {
    color: var(--clerk-chat-danger-text);
  }
  .ui-tool[data-status="running"] .ui-tool-title::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 14px;
    margin-left: 4px;
    border-radius: 999px;
    background-color: var(--clerk-chat-subtle-text);
    vertical-align: -2px;
    animation: clerk-tool-cursor var(--duration-chat-cursor) steps(1, end) infinite;
  }
  .ui-tool-content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: var(--collapsible-panel-height);
    margin-top: 4px;
    padding: 0 4px 4px;
    overflow: hidden;
    border-radius: 16px;
    background-color: var(--clerk-docs-code-frame);
    box-shadow: inset 0 0 0 1px var(--clerk-callout-ring);
    transition:
      height var(--duration-slow) var(--ease-out),
      padding-block var(--duration-slow) var(--ease-out),
      opacity var(--duration-slow) var(--ease-out);
    &[data-starting-style],
    &[data-ending-style] {
      height: 0;
      padding-block: 0;
      opacity: 0;
    }
  }
  .ui-tool-section {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .ui-tool-label {
    display: flex;
    align-items: center;
    height: 36px;
    margin: 0;
    padding: 0 12px;
    color: var(--clerk-docs-code-muted);
    font-family: var(--font-monospace);
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-medium);
    line-height: 20px;
  }
  .ui-tool-code {
    margin: 0;
    padding: 10px 12px;
    overflow-x: auto;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-docs-code-bg);
    box-shadow: var(--clerk-shadow-docs-code);
    color: var(--clerk-docs-code-text);
    font-family: var(--font-monospace);
    font-size: 13px;
    line-height: 20px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .ui-tool-section[data-error] {
    & .ui-tool-label {
      color: var(--clerk-chat-danger-text);
    }
    & .ui-tool-code {
      background-color: var(--clerk-chat-danger-bg);
      box-shadow: inset 0 0 0 1px var(--clerk-danger-200);
      color: var(--clerk-chat-danger-text);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .ui-tool[data-status="running"] .ui-tool-title::after {
      animation: none;
      opacity: 0.6;
    }
    .ui-tool-content,
    .ui-tool-chevron {
      transition: none;
    }
  }
}
:scope {
  .ui-toolbar {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-popover);
    color: var(--clerk-foreground);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    &[data-orientation="vertical"] {
      flex-direction: column;
      align-items: stretch;
    }
  }
  .ui-toolbar-group {
    display: flex;
    align-items: center;
    gap: 2px;
    &[data-orientation="vertical"] {
      flex-direction: column;
      align-items: stretch;
    }
  }
  .ui-toolbar-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 28px;
    min-width: 28px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: var(--clerk-radius-sm);
    background-color: transparent;
    color: var(--clerk-neutral-600);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-small);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, color, box-shadow, opacity;
    transition-duration: var(--duration-controls);
    &:focus-visible {
      box-shadow: var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--clerk-neutral-50);
        color: var(--clerk-neutral-700);
      }
    }
    &[data-popup-open] {
      background-color: var(--clerk-neutral-50);
      color: var(--clerk-neutral-700);
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
    & svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }
  }
  .ui-toolbar-input {
    box-sizing: border-box;
    height: 28px;
    min-width: 0;
    margin: 0;
    padding: 0 8px;
    border: 0;
    border-radius: var(--clerk-radius-sm);
    background-color: transparent;
    color: var(--clerk-input-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    outline: none;
    transition: background-color var(--duration-controls);
    &::placeholder {
      color: var(--clerk-muted-foreground);
    }
    &:focus {
      background-color: var(--clerk-neutral-100);
    }
    &[data-disabled] {
      opacity: 0.5;
    }
  }
  .ui-toolbar-separator {
    flex-shrink: 0;
    border: 0 solid var(--clerk-neutral-100);
    &[data-orientation="vertical"] {
      align-self: stretch;
      width: 0;
      margin: -2px 2px;
      border-left-width: 1px;
    }
    &[data-orientation="horizontal"] {
      height: 0;
      margin: 2px -2px;
      border-bottom-width: 1px;
    }
  }
}
:scope {
  .ui-tooltip-popup {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 240px;
    padding: 4px 6px;
    border-radius: var(--clerk-radius-md);
    background-color: black;
    color: white;
    font-family: var(--font-regular);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
    transition:
      opacity var(--duration-slow),
      transform var(--duration-slow);
    &[data-side="top"] {
      translate: 0 2px;
    }
    &[data-side="bottom"] {
      translate: 0 -2px;
    }
    &[data-side="left"] {
      translate: 2px 0;
    }
    &[data-side="right"] {
      translate: -2px 0;
    }
    &[data-starting-style],
    &[data-ending-style] {
      opacity: 0;
      transform: translateY(-4px);
    }
    &[data-side="top"][data-starting-style],
    &[data-side="top"][data-ending-style] {
      transform: translateY(4px);
    }
    &[data-instant] {
      transition-duration: 0s;
    }
  }
  .ui-tooltip-label {
    font-weight: var(--font-weight-normal);
  }
  .ui-tooltip-popup > kbd {
    padding: 0 4px;
    border-radius: var(--clerk-radius-sm);
    background-color: rgb(255 255 255 / 0.15);
    box-shadow: none;
    color: rgb(255 255 255 / 0.73);
  }
}
:scope {
  .ui-voice-message {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    padding: 8px 12px 8px 8px;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-table);
    color: var(--clerk-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
  }
  .ui-voice-message-play {
    box-sizing: border-box;
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: var(--clerk-primary);
    box-shadow: var(--clerk-shadow-solid);
    color: var(--clerk-primary-foreground);
    cursor: pointer;
    outline: 0;
    transition-property: background-color, box-shadow;
    transition-duration: var(--duration-controls);
    & svg {
      width: 14px;
      height: 14px;
    }
    &:focus-visible {
      box-shadow: var(--clerk-shadow-solid), var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--clerk-primary-hover);
      }
    }
    &[data-disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }
  .ui-voice-message-waveform {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 2px;
    min-width: 96px;
    height: 28px;
  }
  .ui-voice-message-bar {
    flex: 1;
    min-width: 2px;
    max-width: 3px;
    height: calc(var(--bar-height) * 100%);
    min-height: 3px;
    border-radius: 999px;
    background-color: var(--clerk-neutral-200);
    transition: background-color var(--duration-controls);
    &[data-played] {
      background-color: var(--clerk-primary);
    }
  }
  .ui-voice-message-speed {
    box-sizing: border-box;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 24px;
    margin: 0;
    padding: 0 8px;
    border: 0;
    border-radius: var(--clerk-radius-md);
    background-color: transparent;
    box-shadow: var(--clerk-shadow-outline-ring);
    color: var(--clerk-neutral-600);
    font: inherit;
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-mini);
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    outline: 0;
    transition-property: background-color, color, box-shadow;
    transition-duration: var(--duration-controls);
    &:focus-visible {
      box-shadow: var(--clerk-shadow-outline-ring), var(--clerk-ring);
    }
    @media (hover: hover) {
      &:hover:not([data-disabled]) {
        background-color: var(--clerk-neutral-50);
        color: var(--clerk-neutral-700);
      }
    }
  }
  .ui-voice-message-duration {
    flex: none;
    min-width: 30px;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
    text-align: end;
    font-variant-numeric: tabular-nums;
  }
}
:scope {
  .ui-weather {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 16px 20px;
    overflow: hidden;
    border-radius: var(--clerk-radius-xl);
    background-color: var(--clerk-background);
    box-shadow: var(--clerk-shadow-table);
    color: var(--clerk-foreground);
    font-family: inherit;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    -webkit-font-smoothing: antialiased;
  }
  .ui-weather-header {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .ui-weather-location {
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-medium);
  }
  .ui-weather-summary {
    color: var(--clerk-muted-foreground);
  }
  .ui-weather-current {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .ui-weather-icon {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--clerk-neutral-600);
    &[data-condition="clear"] {
      color: var(--clerk-warning);
    }
  }
  .ui-weather-current .ui-weather-icon {
    width: 36px;
    height: 36px;
  }
  .ui-weather-temperature {
    color: var(--clerk-foreground);
    font-size: var(--font-size-title2);
    font-weight: var(--font-weight-bold);
    line-height: 32px;
    font-variant-numeric: tabular-nums;
  }
  .ui-weather-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
    font-variant-numeric: tabular-nums;
    text-align: end;
  }
  .ui-weather-forecast {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    margin: 0 -20px -16px;
    padding: 12px 8px;
    list-style: none;
    background: var(--clerk-muted);
    box-shadow: inset 0 1px 0 var(--clerk-neutral-100);
  }
  .ui-weather-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    font-variant-numeric: tabular-nums;
  }
  .ui-weather-day-label {
    color: var(--clerk-neutral-600);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
  }
  .ui-weather-day:first-child .ui-weather-day-label {
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-medium);
  }
  .ui-weather-high {
    color: var(--clerk-foreground);
    font-weight: var(--font-weight-medium);
  }
  .ui-weather-low {
    color: var(--clerk-muted-foreground);
    font-size: var(--font-size-mini);
    line-height: var(--line-height-mini);
  }
}
}
