/* src/styles.css */
.chat-msg-content {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.chat-msg-content table {
  width: max-content;
  max-width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}
.chat-msg-content table th,
.chat-msg-content table td {
  padding: 0.375rem 0.625rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.chat-msg-content table th {
  background: var(--muted);
  font-weight: 600;
}
.chat-msg-content ul:has(input[type=checkbox]),
.chat-msg-content ul.contains-task-list {
  list-style: none;
  padding-left: 0;
}
.chat-msg-content li:has(input[type=checkbox]),
.chat-msg-content li.task-list-item {
  list-style: none;
  padding-left: 0;
}
.chat-msg-content li:has(input[type=checkbox])::marker,
.chat-msg-content li.task-list-item::marker {
  content: "";
}
.chat-msg-content input[type=checkbox] {
  margin-right: 0.375rem;
}
.chat-msg-content code {
  max-width: 100%;
  padding: 0.08rem 0.25rem;
  border-radius: 0.25rem;
  background: rgb(243 244 246);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.chat-msg-content pre {
  display: block;
  max-width: 100%;
  margin: 0.75rem 0;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgb(243 244 246) !important;
  color: var(--foreground);
  font-size: 0.8125rem;
  line-height: 1.55;
  white-space: pre;
  overflow-x: auto;
}
.chat-msg-content .chat-msg-code-block {
  margin: 0.75rem 0;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgb(243 244 246) !important;
  color: var(--foreground);
  font-size: 0.8125rem;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.55);
  white-space: pre;
  overflow-x: auto;
}
.chat-msg-content pre code,
.chat-msg-content .chat-msg-code-block code {
  display: block;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
  font-family:
    ui-monospace,
    SFMono-Regular,
    "SF Mono",
    Consolas,
    "Liberation Mono",
    Menlo,
    monospace;
}
.chat-scroll-area [data-slot=scroll-area-viewport] > div {
  display: block !important;
  min-width: 100% !important;
}
.chat-scroll-area [data-radix-scroll-area-viewport],
.chat-scroll-area [data-slot=scroll-area-viewport],
.chat-scroll-area .ai-chat-scroll-viewport {
  overflow-y: auto !important;
  scrollbar-width: none !important;
}
.chat-scroll-area [data-radix-scroll-area-viewport]::-webkit-scrollbar,
.chat-scroll-area [data-slot=scroll-area-viewport]::-webkit-scrollbar,
.chat-scroll-area .ai-chat-scroll-viewport::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
@keyframes ai-chat-tool-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.ai-chat-tool-shimmer {
  color: transparent;
  background-image:
    linear-gradient(
      90deg,
      color-mix(in oklab, var(--color-muted-foreground) 45%, transparent) 0%,
      color-mix(in oklab, var(--color-foreground) 88%, transparent) 50%,
      color-mix(in oklab, var(--color-muted-foreground) 45%, transparent) 100%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: ai-chat-tool-shimmer 1.8s linear infinite;
}
body[data-resizing-chat=true] iframe {
  pointer-events: none !important;
}
.ai-chat-composer {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: color-mix(in oklab, var(--popover) 95%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent),
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.ai-chat-composer-inner {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
}
.ai-chat-composer-main {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: flex-end;
  gap: 0.5rem;
}
.ai-chat-composer-toolbar {
  display: contents;
}
.ai-chat-composer-toolbar-spacer {
  display: none;
}
.ai-chat-composer-textarea {
  min-height: 2.5rem;
  max-height: 7.5rem;
  padding: 0.5rem 0;
  line-height: 1.5rem;
}
.ai-chat-voice-dictation {
  box-sizing: border-box;
  display: flex;
  width: min(74vw, 22.5rem);
  max-width: 100%;
  min-width: 0;
  min-height: 2.72rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in oklab, var(--popover) 95%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent),
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.ai-chat-voice-dictation-btn {
  width: 2rem !important;
  height: 2rem !important;
  min-width: 2rem !important;
  padding: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}
.ai-chat-voice-dictation-glyph {
  width: 1rem !important;
  height: 1rem !important;
}
.ai-chat-voice-dictation-stop-glyph {
  width: 0.75rem !important;
  height: 0.75rem !important;
}
.ai-chat-voice-dictation-cancel,
.ai-chat-voice-dictation-stop {
  background: rgb(236 236 239) !important;
  color: rgb(17 24 39) !important;
}
.ai-chat-voice-dictation-cancel:hover,
.ai-chat-voice-dictation-stop:hover,
.ai-chat-voice-dictation-cancel:focus-visible,
.ai-chat-voice-dictation-stop:focus-visible {
  background: rgb(226 226 230) !important;
}
.ai-chat-voice-dictation-waveform {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  height: 1.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5px;
  padding-inline: 0.45rem;
  overflow: hidden;
}
.ai-chat-voice-dictation-bar {
  flex: 1 1 0;
  max-width: 3px;
  min-width: 2px;
  border-radius: 999px;
  background: rgb(120 120 128 / 0.92);
  transition: height 60ms linear;
}
.ai-chat-voice-dictation-waveform.is-processing .ai-chat-voice-dictation-bar {
  opacity: 0.45;
}
.ai-chat-voice-dictation-send {
  background: var(--ai-chat-accent, var(--primary, #111827)) !important;
  color: var(--ai-chat-accent-foreground, var(--primary-foreground, #fff)) !important;
  opacity: 1 !important;
}
.ai-chat-voice-dictation-send:hover,
.ai-chat-voice-dictation-send:focus-visible {
  filter: brightness(0.92);
}
.ai-chat-voice-dictation-send:disabled {
  opacity: 0.55 !important;
}
.ai-chat-voice-dictation-send-mark {
  display: block;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 20V7.83l-4.59 4.58L5 11l7-7 7 7-1.41 1.41L13 7.83V20h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 20V7.83l-4.59 4.58L5 11l7-7 7 7-1.41 1.41L13 7.83V20h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ai-chat-composer.is-voice-recording {
  width: min(74vw, 22.5rem);
  max-width: 100%;
  min-height: 0;
  padding: 0;
  border: none !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  overflow: visible;
}
.ai-chat-composer.is-voice-recording .ai-chat-composer-inner {
  min-height: 0;
  padding: 0;
  justify-content: center;
  background: transparent;
}
@media (max-width: 767px) {
  .ai-chat-sheet-content.ai-chat-sheet-content[data-side=right] {
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: visible !important;
  }
}
@supports (-webkit-touch-callout: none) {
  @media (max-width: 767px) {
    .ai-chat-sheet-content.ai-chat-sheet-content[data-side=right] {
      height: 100vh !important;
      min-height: 100vh !important;
      max-height: 100vh !important;
    }
  }
}
@media (max-width: 767px) {
  .ai-chat-mobile-page {
    --ai-chat-mobile-header-underlap: calc(3.75rem + env(safe-area-inset-top));
  }
  .ai-chat-mobile-page {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    height: var(--ai-chat-visual-viewport-height, 100dvh);
    min-height: 0;
    max-height: var(--ai-chat-visual-viewport-height, 100dvh);
    overflow-x: hidden;
    overflow-y: hidden;
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    contain: none;
    isolation: isolate;
    perspective: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    background: var(--background) !important;
    transform: translate3d(0, 0, 0);
    transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
    touch-action: pan-y;
  }
  .ai-chat-mobile-page .chat-jr-hscroll {
    touch-action: pan-x pan-y;
  }
  .ai-chat-mobile-page[data-motion=enter],
  .ai-chat-mobile-page[data-motion=exit] {
    transform: translate3d(100%, 0, 0);
    will-change: transform;
  }
  .ai-chat-mobile-page[data-motion=open] {
    transform: translate3d(0, 0, 0);
    will-change: auto;
  }
  .ai-chat-mobile-page::before,
  .ai-chat-mobile-page::after {
    content: "";
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 18;
    pointer-events: none;
  }
  .ai-chat-mobile-page::before {
    height: calc(7.5rem + env(safe-area-inset-bottom) + var(--ai-chat-browser-bottom-inset, 0px));
    background:
      linear-gradient(
        to top,
        rgb(255 255 255 / 0.76) 0%,
        rgb(255 255 255 / 0.58) 38%,
        transparent 100%),
      linear-gradient(
        to top,
        rgb(17 24 39 / 0.035) 0%,
        rgb(17 24 39 / 0.018) 48%,
        transparent 100%);
    mask-image:
      linear-gradient(
        to top,
        black 0%,
        black 34%,
        transparent 100%);
    -webkit-mask-image:
      linear-gradient(
        to top,
        black 0%,
        black 34%,
        transparent 100%);
  }
  .ai-chat-mobile-page::after {
    height: calc(8.5rem + env(safe-area-inset-bottom) + var(--ai-chat-browser-bottom-inset, 0px));
    background:
      linear-gradient(
        to top,
        rgb(17 24 39 / 0.025) 0%,
        rgb(17 24 39 / 0.012) 44%,
        transparent 100%),
      linear-gradient(
        to top,
        rgb(255 255 255 / 0.34) 0%,
        rgb(255 255 255 / 0.12) 48%,
        transparent 100%);
    mask-image:
      linear-gradient(
        to top,
        black 0%,
        rgb(0 0 0 / 0.70) 54%,
        transparent 100%);
    -webkit-mask-image:
      linear-gradient(
        to top,
        black 0%,
        rgb(0 0 0 / 0.70) 54%,
        transparent 100%);
  }
  .ai-chat-mobile-page.ai-chat-mobile-page-split::before,
  .ai-chat-mobile-page.ai-chat-mobile-page-split::after {
    content: none !important;
    display: none !important;
  }
  @supports (width: 100dvw) {
    .ai-chat-mobile-page {
      width: 100dvw;
      max-width: 100dvw;
    }
  }
  .ai-chat-mobile-page .ai-chat-body {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow-x: hidden;
    overflow-y: hidden;
    contain: none;
    transform: none !important;
    perspective: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    margin-top: calc(var(--ai-chat-mobile-header-underlap) * -1);
  }
  .ai-chat-mobile-page .ai-chat-body > * {
    max-width: 100%;
  }
  .ai-chat-mobile-page .chat-scroll-area {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    background: transparent !important;
  }
  .ai-chat-mobile-page .chat-scroll-area [data-slot=scroll-area-viewport],
  .ai-chat-mobile-page .chat-scroll-area [data-radix-scroll-area-viewport] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    scrollbar-width: none;
  }
  .ai-chat-mobile-page .chat-scroll-area [data-slot=scroll-area-viewport]::-webkit-scrollbar,
  .ai-chat-mobile-page .chat-scroll-area [data-radix-scroll-area-viewport]::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  .ai-chat-mobile-page .chat-scroll-area [data-slot=scroll-area-viewport] > div,
  .ai-chat-mobile-page .chat-scroll-area [data-radix-scroll-area-viewport] > div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .ai-chat-mobile-page .ai-chat-scroll-content {
    position: relative;
    isolation: isolate;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-bottom-space {
    position: relative;
    height: var( --ai-chat-composer-scroll-pad, calc( 6.75rem + env(safe-area-inset-bottom) + var(--ai-chat-browser-bottom-inset, 0px) + var(--ai-chat-floating-toolbar-guard, 0px) ) );
    margin: 0 -1rem;
    pointer-events: none;
  }
  .ai-chat-mobile-page .ai-chat-message-column {
    width: min(92vw, 42rem) !important;
    max-width: min(92vw, 42rem) !important;
  }
  .ai-chat-mobile-page .ai-chat-message-column-user {
    width: fit-content !important;
    max-width: min(72vw, 32rem) !important;
    align-items: flex-end;
  }
  .ai-chat-mobile-page .ai-chat-user-bubble {
    width: fit-content !important;
    max-width: 100% !important;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
  .ai-chat-mobile-page .ai-chat-message-column-assistant {
    width: 100% !important;
    max-width: 100% !important;
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
  }
  .ai-chat-mobile-page .chat-msg-content,
  .ai-chat-mobile-page .chat-msg-content * {
    max-width: 100% !important;
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
  }
  .ai-chat-mobile-page .chat-scroll-area [data-slot=scroll-area-scrollbar],
  .ai-chat-mobile-page .chat-scroll-area [data-radix-scroll-area-scrollbar] {
    display: none !important;
  }
  .ai-chat-mobile-page > .ai-chat-progressive-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    flex: 0 0 auto;
    transform: none !important;
    will-change: auto;
    width: 100vw;
    max-width: 100vw;
  }
  .ai-chat-mobile-page > .ai-chat-progressive-header {
    overscroll-behavior: contain;
    touch-action: manipulation;
  }
  .ai-chat-mobile-page .ai-chat-scroll-content {
    padding-top: calc(var(--ai-chat-mobile-header-underlap) + 0.75rem) !important;
  }
  .ai-chat-mobile-page.ai-chat-mobile-page-split {
    background: #f6f7f8 !important;
  }
  .ai-chat-composer-portal-root {
    position: static;
    z-index: 2147483600;
    width: 0;
    height: 0;
    pointer-events: none;
    background: transparent;
  }
  .ai-chat-composer-portal-root.is-sliding {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    transform: translate3d(0, 0, 0);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }
  .ai-chat-composer-portal-root.is-sliding[data-motion=enter],
  .ai-chat-composer-portal-root.is-sliding[data-motion=exit] {
    transform: translate3d(100%, 0, 0);
  }
  .ai-chat-composer-portal-root.is-sliding .ai-chat-composer-footer {
    position: absolute !important;
    width: 100% !important;
  }
  .ai-chat-split-layout {
    position: relative;
    isolation: isolate;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
      linear-gradient(
        to bottom,
        #ffffff 0%,
        #ffffff 34%,
        #eef0f2 48%,
        #eef0f2 54%,
        #ffffff 70%);
  }
  .ai-chat-context-page {
    position: relative;
    z-index: 2;
    flex: 0 0 clamp(9.5rem, calc((var(--ai-chat-visual-viewport-height, 100dvh) - var(--ai-chat-mobile-header-underlap)) * var(--ai-chat-preview-split, 0.42)), 76vh);
    min-height: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    contain: paint;
    border: 0;
    border-top: 0;
    border-radius: 0 0 1.85rem 1.85rem;
    background: #fff;
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.95) inset;
  }
  .ai-chat-context-page > * {
    height: 100%;
    min-height: 0;
  }
  .ai-chat-split-divider {
    position: relative;
    z-index: 6;
    flex: 0 0 0.12rem;
    width: 100%;
    height: 0.12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: visible;
    background: transparent !important;
  }
  .ai-chat-split-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    width: 5.5rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    color: rgb(15 23 42 / 0.46);
    background: transparent;
    box-shadow: none;
    transform: translate(-50%, -50%);
    touch-action: none;
    cursor: ns-resize;
  }
  .ai-chat-split-handle::before {
    content: none;
  }
  .ai-chat-split-handle span {
    position: relative;
    display: block;
    width: 2.85rem;
    height: 0.25rem;
    border-radius: 999px;
    background: rgb(156 156 160);
    box-shadow: none;
  }
  .ai-chat-conversation-page {
    position: relative;
    z-index: 2;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
    contain: paint;
    background: #fff;
    border-top: 0;
    border-radius: 1.65rem 1.65rem 0 0;
    box-shadow: none;
  }
  .ai-chat-conversation-page::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 12;
    height: 7.25rem;
    pointer-events: none;
    border-radius: inherit;
    background:
      linear-gradient(
        to bottom,
        rgb(255 255 255 / 0.64) 0%,
        rgb(255 255 255 / 0.36) 42%,
        rgb(255 255 255 / 0.12) 72%,
        transparent 100%),
      linear-gradient(
        to bottom,
        rgb(17 24 39 / 0.026) 0%,
        rgb(17 24 39 / 0.012) 42%,
        transparent 86%);
    backdrop-filter: blur(30px) saturate(1.12);
    -webkit-backdrop-filter: blur(30px) saturate(1.12);
    mask-image:
      linear-gradient(
        to bottom,
        black 0%,
        rgb(0 0 0 / 0.94) 34%,
        rgb(0 0 0 / 0.62) 62%,
        rgb(0 0 0 / 0.18) 88%,
        transparent 100%);
    -webkit-mask-image:
      linear-gradient(
        to bottom,
        black 0%,
        rgb(0 0 0 / 0.94) 34%,
        rgb(0 0 0 / 0.62) 62%,
        rgb(0 0 0 / 0.18) 88%,
        transparent 100%);
  }
  .ai-chat-conversation-page::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 11;
    height: 9rem;
    pointer-events: none;
    border-radius: inherit;
    background:
      linear-gradient(
        to bottom,
        rgb(255 255 255 / 0.34) 0%,
        rgb(255 255 255 / 0.18) 34%,
        rgb(255 255 255 / 0.06) 66%,
        transparent 100%),
      linear-gradient(
        to bottom,
        rgb(17 24 39 / 0.016) 0%,
        rgb(17 24 39 / 0.006) 58%,
        transparent 100%);
    backdrop-filter: blur(10px) saturate(1.06);
    -webkit-backdrop-filter: blur(10px) saturate(1.06);
    mask-image:
      linear-gradient(
        to bottom,
        rgb(0 0 0 / 0.74) 0%,
        rgb(0 0 0 / 0.52) 36%,
        rgb(0 0 0 / 0.20) 72%,
        transparent 100%);
    -webkit-mask-image:
      linear-gradient(
        to bottom,
        rgb(0 0 0 / 0.74) 0%,
        rgb(0 0 0 / 0.52) 36%,
        rgb(0 0 0 / 0.20) 72%,
        transparent 100%);
  }
  .ai-chat-conversation-page > .ai-chat-progressive-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    max-width: 100%;
    padding: 0.72rem 0.5rem 1.2rem 0.9rem !important;
    border-radius: inherit;
    overflow: hidden;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    will-change: auto;
    overscroll-behavior: contain;
    touch-action: manipulation;
  }
  .ai-chat-conversation-page > .ai-chat-progressive-header::before,
  .ai-chat-conversation-page > .ai-chat-progressive-header::after {
    content: none !important;
    display: none !important;
  }
  .ai-chat-mobile-page.ai-chat-mobile-page-split .chat-scroll-area,
  .ai-chat-mobile-page.ai-chat-mobile-page-split .chat-scroll-area [data-slot=scroll-area-viewport],
  .ai-chat-mobile-page.ai-chat-mobile-page-split .chat-scroll-area [data-radix-scroll-area-viewport] {
    border-radius: inherit;
    clip-path: inset(0 round 1.65rem 1.65rem 0 0);
    overflow-anchor: none;
  }
  body[data-resizing-chat=true] .ai-chat-mobile-page.ai-chat-mobile-page-split .chat-scroll-area [data-slot=scroll-area-viewport],
  body[data-resizing-chat=true] .ai-chat-mobile-page.ai-chat-mobile-page-split .chat-scroll-area [data-radix-scroll-area-viewport] {
    overflow-y: hidden !important;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
  }
  .ai-chat-mobile-page.ai-chat-mobile-page-split .ai-chat-scroll-content,
  .ai-chat-mobile-page.ai-chat-mobile-page-split .ai-chat-scroll-content * {
    overflow-anchor: none;
  }
  .ai-chat-conversation-page > .ai-chat-progressive-header .ai-chat-header-new-button,
  .ai-chat-conversation-page > .ai-chat-progressive-header .ai-chat-header-preview-open-button,
  .ai-chat-conversation-page > .ai-chat-progressive-header .ai-chat-context-menu-button {
    width: 2rem !important;
    min-width: 2rem !important;
    height: 2rem !important;
    padding: 0 !important;
    border-radius: 999px !important;
  }
  .ai-chat-conversation-page > .ai-chat-progressive-header .ai-chat-header-new-button svg,
  .ai-chat-conversation-page > .ai-chat-progressive-header .ai-chat-header-preview-open-button svg,
  .ai-chat-conversation-page > .ai-chat-progressive-header .ai-chat-context-menu-button svg {
    width: 1.05rem !important;
    height: 1.05rem !important;
    stroke-width: 2.25;
  }
  .ai-chat-conversation-page > .ai-chat-progressive-header > div:last-child {
    margin-left: auto !important;
  }
  .ai-chat-conversation-page > .ai-chat-progressive-header button[aria-label="Close chat"] {
    width: 2rem !important;
    height: 2rem !important;
    padding: 0 !important;
    border-radius: 999px !important;
  }
  .ai-chat-conversation-page > .ai-chat-progressive-header .ai-chat-context-menu-button {
    width: 2rem !important;
    min-width: 2rem !important;
    height: 2rem !important;
    padding: 0 !important;
    border-radius: 999px !important;
  }
  .ai-chat-mobile-page.ai-chat-mobile-page-split .ai-chat-body {
    flex: 1 1 auto;
    height: 100%;
    margin-top: 0;
    container-type: size;
  }
  .ai-chat-mobile-page.ai-chat-mobile-page-split .ai-chat-scroll-content {
    padding-top: 4.65rem !important;
  }
  .ai-chat-mobile-page.ai-chat-mobile-page-split .ai-chat-composer-bottom-space {
    height: var( --ai-chat-composer-scroll-pad, calc( clamp(2.35rem, 12cqh, 5.75rem) + env(safe-area-inset-bottom) + min(var(--ai-chat-browser-bottom-inset, 0px), 12px) + var(--ai-chat-floating-toolbar-guard, 0px) ) );
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-footer {
    position: fixed;
    box-sizing: border-box;
    left: 0 !important;
    right: 0 !important;
    width: 100vw;
    max-width: none;
    z-index: 2147483600 !important;
    bottom: calc(max(env(safe-area-inset-bottom), var(--ai-chat-browser-bottom-inset, 0px), var(--ai-chat-floating-toolbar-guard, 0px)) + 3px) !important;
    padding-inline: clamp(1.8rem, 6vw, 2.35rem) !important;
    padding-bottom: 0;
    transform: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    overscroll-behavior: none;
    touch-action: manipulation;
    transition: padding-inline 240ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-footer.is-focused,
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-footer:focus-within {
    top: auto !important;
    bottom: calc(var(--ai-chat-keyboard-bottom-inset, 0px) + var(--ai-chat-floating-toolbar-guard, 0px) + 8px) !important;
    overscroll-behavior: none;
    touch-action: manipulation;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-footer.is-idle {
    padding-inline: 0 !important;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-footer.is-expanded {
    padding-inline: clamp(0.9rem, 3.25vw, 1.2rem) !important;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-footer.is-voice-active {
    transition: none;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-error-pill {
    width: fit-content;
    max-width: min(86vw, 24rem);
    margin: 0 auto 0.45rem;
    border: 1px solid rgb(248 113 113 / 0.24);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.94);
    box-shadow: 0 10px 24px -18px rgb(127 29 29 / 0.38), 0 1px 4px rgb(15 23 42 / 0.08);
    color: rgb(153 27 27);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.05rem;
    padding: 0.38rem 0.7rem;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    backdrop-filter: blur(14px) saturate(1.1);
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer {
    position: relative;
    isolation: isolate;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--popover) 95%, transparent) !important;
    box-shadow:
      0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent),
      0 10px 15px -3px rgb(0 0 0 / 0.1),
      0 4px 6px -4px rgb(0 0 0 / 0.1) !important;
    filter: none !important;
    -webkit-filter: none !important;
    -webkit-backdrop-filter: blur(4px) !important;
    backdrop-filter: blur(4px) !important;
    transition: background-color 180ms ease, box-shadow 180ms ease;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer.is-expanded,
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer:focus-within {
    background: var(--popover, #fff) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-footer.is-focused .ai-chat-composer {
    overscroll-behavior: none;
    touch-action: manipulation;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer::before,
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer::after {
    content: none !important;
    display: none !important;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer.is-idle {
    width: min(74vw, 22.5rem);
    min-height: 2.62rem;
    border-radius: 999px;
    overflow: visible;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer.is-voice-recording {
    width: min(74vw, 22.5rem);
    min-height: 0;
    border: none !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    overflow: visible;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer.is-voice-recording .ai-chat-composer-inner {
    padding: 0;
    min-height: 0;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer.is-expanded {
    width: 100%;
    max-width: none;
    min-height: 5.35rem;
    border-radius: 1.45rem;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-footer.is-focused .ai-chat-composer.is-expanded {
    box-shadow:
      0 0 48px 2px rgb(15 23 42 / 0.1),
      0 -20px 52px -20px rgb(15 23 42 / 0.22),
      0 20px 52px -20px rgb(15 23 42 / 0.24),
      -22px 0 44px -18px rgb(15 23 42 / 0.16),
      22px 0 44px -18px rgb(15 23 42 / 0.16) !important;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.45rem 0.55rem;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer.is-idle .ai-chat-composer-inner {
    justify-content: center;
    min-height: 2.45rem;
    padding: 0.375rem 0.5rem;
    overflow: visible;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer.is-expanded .ai-chat-composer-inner {
    min-height: 5.2rem;
    padding: 0.48rem 0.52rem 0.48rem;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-main {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 0.48rem;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer.is-expanded .ai-chat-composer-main {
    align-items: flex-start;
    min-height: 1.35rem;
    padding: 0.1rem 0.3rem 0;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-textarea {
    box-sizing: border-box;
    border-radius: 0 !important;
    min-height: 1.35rem !important;
    max-height: 7.5rem;
    padding: 0;
    color: rgb(17 24 39) !important;
    font-size: 16px;
    line-height: 1.35rem;
    touch-action: pan-y;
    overscroll-behavior: none;
    opacity: 1 !important;
    -webkit-text-fill-color: rgb(17 24 39);
    -webkit-user-select: text;
    user-select: text;
    caret-color: rgb(17 24 39);
    transition: none;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer.is-expanded .ai-chat-composer-textarea {
    flex: 1 1 auto;
    width: 100%;
    min-height: 1.35rem !important;
    padding: 0;
    line-height: 1.35rem;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer.is-expanded .ai-chat-composer-textarea.has-text {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer.is-idle .ai-chat-composer-textarea {
    min-height: 1.5rem !important;
    height: 1.5rem;
    padding: 0.075rem 0.2rem;
    line-height: 1.35rem;
    overflow: visible !important;
    caret-color: rgb(17 24 39);
    transform: none;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-textarea::placeholder {
    color: rgb(126 134 148 / 0.68);
    opacity: 1;
    line-height: 1.35rem;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer.is-idle .ai-chat-composer-textarea::placeholder {
    color: rgb(132 140 154 / 0.62);
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-textarea:focus::placeholder,
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-textarea:focus-visible::placeholder {
    color: transparent;
    -webkit-text-fill-color: transparent;
    opacity: 0;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-toolbar {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.42rem;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-toolbar-spacer {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-icon {
    width: 2.05rem;
    height: 2.05rem;
    min-width: 2.05rem;
    border-radius: 999px;
    color: rgb(17 24 39 / 0.96);
    background: transparent;
    box-shadow: none;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer.is-idle .ai-chat-composer-main {
    align-items: center;
    gap: 0.34rem;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer.is-idle .ai-chat-composer-icon {
    width: 1.9rem;
    height: 1.9rem;
    min-width: 1.9rem;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer.is-idle .ai-chat-composer-icon svg {
    width: 1.08rem;
    height: 1.08rem;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-icon:hover,
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-icon:focus-visible {
    background: rgb(17 24 39 / 0.06);
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-voice[data-state=open],
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-voice:not(:disabled)[data-variant=default],
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-voice.is-active {
    background: #111827;
    color: #ffffff;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-send {
    background: var(--ai-chat-accent, var(--primary, #111827));
    color: var(--ai-chat-accent-foreground, var(--primary-foreground, #ffffff));
    opacity: 1 !important;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-send svg {
    color: currentColor;
    opacity: 1 !important;
    stroke: currentColor;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-stop {
    width: 1.78rem;
    height: 1.78rem;
    min-width: 1.78rem;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer .ai-chat-composer-stop svg {
    width: 0.78rem !important;
    height: 0.78rem !important;
    stroke-width: 0;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-send-mark {
    display: block;
    width: 1.05rem;
    height: 1.05rem;
    background: currentColor;
    opacity: 1 !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 20V7.83l-4.59 4.58L5 11l7-7 7 7-1.41 1.41L13 7.83V20h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 20V7.83l-4.59 4.58L5 11l7-7 7 7-1.41 1.41L13 7.83V20h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-send:hover,
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-send:focus-visible {
    filter: brightness(0.92);
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-send:disabled {
    background: rgb(17 24 39 / 0.12);
    color: rgb(17 24 39 / 0.72);
    opacity: 1 !important;
  }
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-attachments {
    border-color: rgb(17 24 39 / 0.08);
    padding: 0.7rem;
  }
  .ai-chat-mobile-page .ai-chat-progressive-footer,
  .ai-chat-mobile-page .ai-chat-scroll-bottom-space,
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-bottom-space::before,
  :is(.ai-chat-mobile-page, .ai-chat-composer-portal-root) .ai-chat-composer-bottom-space::after,
  .ai-chat-mobile-page .ai-chat-progressive-footer::before,
  .ai-chat-mobile-page .ai-chat-progressive-footer::after,
  .ai-chat-mobile-page .ai-chat-scroll-bottom-space::before,
  .ai-chat-mobile-page .ai-chat-scroll-bottom-space::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }
}
.ai-chat-progressive-header {
  background: transparent;
  isolation: isolate;
}
.ai-chat-progressive-header > * {
  position: relative;
  z-index: 1;
}
.ai-chat-header-new-button,
.ai-chat-header-preview-open-button,
.ai-chat-context-menu-button {
  box-shadow:
    0 6px 14px -11px rgb(15 23 42 / 0.34),
    0 1px 5px -3px rgb(15 23 42 / 0.22),
    inset 0 1px 0 rgb(255 255 255 / 0.74) !important;
}
.ai-chat-context-menu {
  color: rgb(15 23 42);
  background: rgb(255 255 255 / 0.88) !important;
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  box-shadow:
    0 -10px 22px -18px rgb(15 23 42 / 0.22),
    0 12px 24px -18px rgb(15 23 42 / 0.24),
    -8px 8px 18px -18px rgb(15 23 42 / 0.18),
    8px 8px 18px -18px rgb(15 23 42 / 0.18),
    0 0 0 1px rgb(15 23 42 / 0.08) !important;
}
.ai-chat-progressive-header::before,
.ai-chat-progressive-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}
.ai-chat-progressive-header::before {
  height: 7.1rem;
  background:
    linear-gradient(
      to bottom,
      rgb(255 255 255 / 0.72) 0%,
      rgb(255 255 255 / 0.46) 34%,
      rgb(255 255 255 / 0.18) 64%,
      transparent 96%),
    linear-gradient(
      to bottom,
      rgb(17 24 39 / 0.024) 0%,
      rgb(17 24 39 / 0.01) 46%,
      transparent 88%);
  backdrop-filter: blur(30px) saturate(1.16);
  -webkit-backdrop-filter: blur(30px) saturate(1.16);
  mask-image:
    linear-gradient(
      to bottom,
      black 0%,
      rgb(0 0 0 / 0.96) 34%,
      rgb(0 0 0 / 0.72) 58%,
      rgb(0 0 0 / 0.28) 82%,
      transparent 100%);
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      black 0%,
      rgb(0 0 0 / 0.96) 34%,
      rgb(0 0 0 / 0.72) 58%,
      rgb(0 0 0 / 0.28) 82%,
      transparent 100%);
}
.ai-chat-progressive-header::after {
  height: 4.55rem;
  background:
    linear-gradient(
      to bottom,
      rgb(17 24 39 / 0.028) 0%,
      rgb(17 24 39 / 0.01) 42%,
      transparent 100%),
    linear-gradient(
      to bottom,
      rgb(255 255 255 / 0.62) 0%,
      rgb(255 255 255 / 0.22) 54%,
      transparent 100%);
  mask-image:
    linear-gradient(
      to bottom,
      black 0%,
      rgb(0 0 0 / 0.64) 52%,
      rgb(0 0 0 / 0.16) 82%,
      transparent 100%);
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      black 0%,
      rgb(0 0 0 / 0.64) 52%,
      rgb(0 0 0 / 0.16) 82%,
      transparent 100%);
}
@keyframes ai-chat-ui-skeleton-sweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes ai-chat-ui-skeleton-accent-breathe {
  0%, 100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
@keyframes ai-chat-ui-skeleton-spinner {
  to {
    transform: rotate(360deg);
  }
}
.ai-chat-ui-skeleton-card {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid var(--color-border, #e4e4e7);
  background: var(--color-card, #ffffff);
  border-radius: 14px;
  overflow: hidden;
  padding: 12px 12px 12px 16px;
  box-shadow: 0 1px 0 rgb(0 0 0 / 2%);
}
.ai-chat-ui-skeleton-accent {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: #facc15;
  animation: ai-chat-ui-skeleton-accent-breathe 1.8s ease-in-out infinite;
}
.ai-chat-ui-skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      transparent 25%,
      color-mix(in oklab, var(--color-muted-foreground, #71717a) 12%, transparent) 50%,
      transparent 75%);
  transform: translateX(-100%);
  animation: ai-chat-ui-skeleton-sweep 1.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.ai-chat-ui-skeleton-body {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-chat-ui-skeleton-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-chat-ui-skeleton-row-header {
  justify-content: space-between;
}
.ai-chat-ui-skeleton-bar {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: color-mix(in oklab, var(--color-muted-foreground, #71717a) 16%, transparent);
}
.ai-chat-ui-skeleton-bar-title {
  width: 42%;
  height: 12px;
}
.ai-chat-ui-skeleton-bar-chip {
  width: 56px;
  height: 18px;
  border-radius: 9px;
  background: color-mix(in oklab, var(--color-muted-foreground, #71717a) 14%, transparent);
}
.ai-chat-ui-skeleton-bar-line {
  width: 100%;
  height: 8px;
}
.ai-chat-ui-skeleton-bar-line-short {
  width: 68%;
  height: 8px;
}
.ai-chat-ui-skeleton-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--color-muted-foreground, #71717a);
  font-weight: 500;
}
.ai-chat-ui-skeleton-label-text {
  background-image:
    linear-gradient(
      90deg,
      color-mix(in oklab, var(--color-muted-foreground, #71717a) 45%, transparent) 0%,
      color-mix(in oklab, var(--color-foreground, #0a0a0a) 88%, transparent) 50%,
      color-mix(in oklab, var(--color-muted-foreground, #71717a) 45%, transparent) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ai-chat-tool-shimmer 1.8s linear infinite;
}
.ai-chat-ui-skeleton-spinner {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--color-muted-foreground, #71717a);
  animation: ai-chat-ui-skeleton-spinner 0.9s linear infinite;
}
.chat-json-render {
  min-width: 0;
  max-width: 100%;
  padding-left: 2px;
  padding-right: 2px;
}
.chat-json-render .chat-jr-hscroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}
.chat-json-render .chat-jr-hscroll::-webkit-scrollbar {
  height: 6px;
}
.chat-json-render .chat-jr-hscroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgb(15 23 42 / 0.18);
}
.chat-json-render [data-jr-item] [data-jr-item] .chat-jr-headicon {
  display: none;
}
@keyframes ai-chat-ui-jr-reveal {
  from {
    opacity: 0;
    filter: blur(9px);
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}
.chat-json-render-smooth [data-jr-item] {
  animation: ai-chat-ui-jr-reveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change:
    opacity,
    filter,
    transform;
}
@media (prefers-reduced-motion: reduce) {
  .chat-json-render-smooth [data-jr-item] {
    animation: none;
  }
}
.ai-chat-context-menu .ai-chat-context-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ai-chat-context-menu .ai-chat-context-label {
  padding-bottom: 0.125rem;
  color: rgb(15 23 42 / 0.58);
  font-size: 0.75rem;
  font-weight: 500;
}
.ai-chat-context-menu .ai-chat-context-compact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
}
.ai-chat-context-menu .ai-chat-context-segmented {
  position: relative;
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  min-height: 2rem;
  padding: 0.14rem;
  border-radius: 999px;
  background: rgb(15 23 42 / 0.06);
}
.ai-chat-context-menu .ai-chat-context-segment-indicator {
  position: absolute;
  inset: 0.14rem auto 0.14rem 0.14rem;
  z-index: 0;
  width: var(--ai-chat-context-segment-width);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 1px 4px rgb(15 23 42 / 0.1);
  transform: translateX(var(--ai-chat-context-segment-translate));
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), width 180ms ease;
}
.ai-chat-context-menu .ai-chat-context-segmented button {
  position: relative;
  z-index: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgb(15 23 42 / 0.58);
  font: inherit;
  font-size: 0.76rem;
  transition: color 160ms ease;
}
.ai-chat-context-menu .ai-chat-context-segmented button[aria-pressed=true] {
  color: rgb(15 23 42 / 0.9);
}
.ai-chat-context-menu .ai-chat-context-segmented--icon-only button {
  min-width: 2rem;
  display: grid;
  place-items: center;
  padding: 0;
}
.ai-chat-context-menu .ai-chat-context-segmented--icon-only button svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke-width: 1.85;
}
.ai-chat-context-menu .ai-chat-context-segmented--flags button {
  font-size: 0.9rem;
  line-height: 1;
}
.ai-chat-context-menu {
  overflow: visible !important;
}
.ai-chat-context-menu .ai-chat-context-select-field {
  position: relative;
  display: block;
  min-width: 0;
}
.ai-chat-context-menu .ai-chat-context-select-trigger {
  width: 100%;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid rgb(15 23 42 / 0.08);
  border-radius: 999px;
  padding: 0 0.65rem 0 0.72rem;
  background: rgb(255 255 255 / 0.72);
  color: rgb(15 23 42 / 0.72);
  font: inherit;
  font-size: 0.78rem;
  text-align: left;
  outline: none;
}
.ai-chat-context-menu .ai-chat-context-select-trigger > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-chat-context-menu .ai-chat-context-select-trigger > svg {
  flex: 0 0 auto;
  width: 0.9rem;
  height: 0.9rem;
  color: rgb(15 23 42 / 0.5);
  transition: transform 160ms ease;
}
.ai-chat-context-menu [data-ai-chat-context-select-open=true] .ai-chat-context-select-trigger > svg {
  transform: rotate(180deg);
}
.ai-chat-context-menu .ai-chat-context-select-options {
  position: absolute;
  z-index: 20;
  inset: calc(100% + 0.25rem) 0 auto;
  max-height: min(18rem, 45vh);
  overflow-y: auto;
  padding: 0.25rem;
  border: 1px solid rgb(15 23 42 / 0.08);
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 8px 20px -14px rgb(15 23 42 / 0.35);
}
.ai-chat-context-menu .ai-chat-context-select-options button {
  width: 100%;
  min-height: 1.85rem;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.3rem 0.5rem;
  background: transparent;
  color: rgb(15 23 42 / 0.72);
  font: inherit;
  font-size: 0.75rem;
  text-align: left;
}
.ai-chat-context-menu .ai-chat-context-select-options button:hover,
.ai-chat-context-menu .ai-chat-context-select-options button:focus-visible {
  background: rgb(15 23 42 / 0.06);
  outline: none;
}
.ai-chat-context-menu .ai-chat-context-select-options button[aria-selected=true] {
  background: rgb(15 23 42 / 0.08);
  color: rgb(15 23 42 / 0.92);
  font-weight: 600;
}
.ai-chat-context-menu .ai-chat-context-separator {
  height: 1px;
  background: rgb(15 23 42 / 0.08);
}
.ai-chat-context-menu .ai-chat-context-action {
  width: 100%;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  background: rgb(15 23 42 / 0.06);
  color: rgb(15 23 42 / 0.68);
  font: inherit;
  font-size: 0.76rem;
}
.ai-chat-context-menu .ai-chat-context-action svg {
  width: 0.875rem;
  height: 0.875rem;
}
.ai-chat-context-action[data-variant=primary] {
  background: rgb(15 23 42);
  color: white;
  box-shadow: 0 8px 18px -12px rgb(15 23 42 / 0.56), 0 2px 7px -5px rgb(15 23 42 / 0.45);
}
.ai-chat-context-action[data-variant=primary]:hover,
.ai-chat-context-action[data-variant=primary]:focus-visible {
  background: rgb(2 6 23);
}
.ai-chat-overlay-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  width: 100%;
  height: 4.15rem;
  padding: 0.28rem 0.72rem 0;
  pointer-events: none;
  overflow: hidden;
  color: rgb(15 23 42 / 0.58);
}
.ai-chat-overlay-header-content {
  width: 100%;
  min-width: 0;
  min-height: 1.7rem;
  display: flex;
  align-items: center;
  gap: 0.32rem;
  pointer-events: auto;
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
}
.ai-chat-overlay-header::before {
  height: 4.15rem;
  background:
    linear-gradient(
      to bottom,
      rgb(255 255 255 / 0.46) 0%,
      rgb(255 255 255 / 0.38) 24%,
      rgb(255 255 255 / 0.26) 48%,
      rgb(255 255 255 / 0.13) 70%,
      rgb(255 255 255 / 0.045) 88%,
      transparent 100%),
    linear-gradient(
      to bottom,
      rgb(17 24 39 / 0.012) 0%,
      transparent 92%);
  backdrop-filter: blur(14px) saturate(1.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.06);
  mask-image:
    linear-gradient(
      to bottom,
      rgb(0 0 0 / 0.88) 0%,
      rgb(0 0 0 / 0.76) 28%,
      rgb(0 0 0 / 0.56) 54%,
      rgb(0 0 0 / 0.3) 76%,
      rgb(0 0 0 / 0.1) 91%,
      transparent 100%);
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      rgb(0 0 0 / 0.88) 0%,
      rgb(0 0 0 / 0.76) 28%,
      rgb(0 0 0 / 0.56) 54%,
      rgb(0 0 0 / 0.3) 76%,
      rgb(0 0 0 / 0.1) 91%,
      transparent 100%);
}
.ai-chat-overlay-header::after {
  height: 2.9rem;
  background:
    linear-gradient(
      to bottom,
      rgb(255 255 255 / 0.14) 0%,
      rgb(255 255 255 / 0.07) 50%,
      transparent 100%);
  mask-image:
    linear-gradient(
      to bottom,
      rgb(0 0 0 / 0.72) 0%,
      rgb(0 0 0 / 0.38) 58%,
      transparent 100%);
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      rgb(0 0 0 / 0.72) 0%,
      rgb(0 0 0 / 0.38) 58%,
      transparent 100%);
}
.ai-chat-progressive-header.ai-chat-has-layered-blur::before,
.ai-chat-progressive-header.ai-chat-has-layered-blur::after {
  content: none !important;
  display: none !important;
}
.ai-chat-progressive-header > .ai-chat-progressive-blur {
  position: absolute;
  inset: -2px 0 auto;
  z-index: 0;
  width: 100%;
  height: calc(4.5rem + 2px);
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
  transform: translateZ(0);
}
.ai-chat-progressive-header > .ai-chat-progressive-blur.is-compact {
  height: calc(3rem + 2px);
}
.ai-chat-progressive-blur-layer,
.ai-chat-progressive-blur-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateZ(0);
  will-change: backdrop-filter;
}
.ai-chat-progressive-blur-layer.is-1 {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  mask-image:
    linear-gradient(
      to bottom,
      black 0%,
      black 8%,
      rgb(0 0 0 / 0.82) 35%,
      transparent 100%);
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      black 0%,
      black 8%,
      rgb(0 0 0 / 0.82) 35%,
      transparent 100%);
}
.ai-chat-progressive-blur-layer.is-2 {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  mask-image:
    linear-gradient(
      to bottom,
      black 0%,
      black 6%,
      rgb(0 0 0 / 0.76) 28%,
      transparent 88%);
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      black 0%,
      black 6%,
      rgb(0 0 0 / 0.76) 28%,
      transparent 88%);
}
.ai-chat-progressive-blur-layer.is-3 {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask-image:
    linear-gradient(
      to bottom,
      black 0%,
      black 4%,
      rgb(0 0 0 / 0.7) 20%,
      transparent 75%);
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      black 0%,
      black 4%,
      rgb(0 0 0 / 0.7) 20%,
      transparent 75%);
}
.ai-chat-progressive-blur-scrim {
  background: transparent;
}
@media (max-width: 767px) {
  .ai-chat-conversation-page::before,
  .ai-chat-conversation-page::after {
    content: none !important;
    display: none !important;
  }
  .ai-chat-conversation-page > .ai-chat-progressive-header.ai-chat-has-layered-blur {
    overflow: visible !important;
  }
}
.ai-chat-progressive-header > :not(.ai-chat-progressive-blur) {
  z-index: 2;
  transform: translateZ(1px);
  -webkit-font-smoothing: antialiased;
}
.ai-chat-overlay-header.is-bottom {
  inset: auto 0 0;
  padding: 0 1.5rem 0.1rem 1.65rem;
  display: flex;
  align-items: flex-end;
}
.ai-chat-progressive-header > .ai-chat-progressive-blur.is-bottom {
  inset: auto 0 -2px;
}
.ai-chat-progressive-blur.is-bottom .ai-chat-progressive-blur-layer.is-1 {
  mask-image:
    linear-gradient(
      to top,
      black 0%,
      black 8%,
      rgb(0 0 0 / 0.82) 35%,
      transparent 100%);
  -webkit-mask-image:
    linear-gradient(
      to top,
      black 0%,
      black 8%,
      rgb(0 0 0 / 0.82) 35%,
      transparent 100%);
}
.ai-chat-progressive-blur.is-bottom .ai-chat-progressive-blur-layer.is-2 {
  mask-image:
    linear-gradient(
      to top,
      black 0%,
      black 6%,
      rgb(0 0 0 / 0.76) 28%,
      transparent 88%);
  -webkit-mask-image:
    linear-gradient(
      to top,
      black 0%,
      black 6%,
      rgb(0 0 0 / 0.76) 28%,
      transparent 88%);
}
.ai-chat-progressive-blur.is-bottom .ai-chat-progressive-blur-layer.is-3 {
  mask-image:
    linear-gradient(
      to top,
      black 0%,
      black 4%,
      rgb(0 0 0 / 0.7) 20%,
      transparent 75%);
  -webkit-mask-image:
    linear-gradient(
      to top,
      black 0%,
      black 4%,
      rgb(0 0 0 / 0.7) 20%,
      transparent 75%);
}
.ai-chat-progressive-blur.is-bottom .ai-chat-progressive-blur-scrim {
  background:
    linear-gradient(
      to top,
      rgb(255 255 255 / 0.98) 0%,
      rgb(255 255 255 / 0.98) 5%,
      rgb(255 255 255 / 0.7) 17%,
      rgb(255 255 255 / 0.34) 33%,
      rgb(255 255 255 / 0.12) 50%,
      rgb(255 255 255 / 0.03) 70%,
      transparent 100%);
}
.ai-chat-overlay-header.is-bottom .ai-chat-overlay-header-content {
  min-height: 1.35rem;
}
@media (max-width: 767px) {
  .ai-chat-split-layout::before,
  .ai-chat-split-layout::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
    background: #fff;
  }
  .ai-chat-split-layout::before {
    top: 0;
    height: clamp(9.5rem, calc((var(--ai-chat-visual-viewport-height, 100dvh) - var(--ai-chat-mobile-header-underlap)) * var(--ai-chat-preview-split, 0.42)), 76vh);
    border-radius: 0 0 1.85rem 1.85rem;
    box-shadow:
      0 10px 24px -18px rgb(15 23 42 / 0.26),
      -14px 8px 22px -21px rgb(15 23 42 / 0.2),
      14px 8px 22px -21px rgb(15 23 42 / 0.2);
  }
  .ai-chat-split-layout::after {
    top: calc(clamp(9.5rem, calc((var(--ai-chat-visual-viewport-height, 100dvh) - var(--ai-chat-mobile-header-underlap)) * var(--ai-chat-preview-split, 0.42)), 76vh) + 0.12rem);
    bottom: 0;
    border-radius: 1.65rem 1.65rem 0 0;
    box-shadow:
      0 -10px 24px -18px rgb(15 23 42 / 0.24),
      -14px -8px 22px -21px rgb(15 23 42 / 0.18),
      14px -8px 22px -21px rgb(15 23 42 / 0.18);
  }
}
.ai-chat-progressive-blur.is-bottom .ai-chat-progressive-blur-scrim {
  background: transparent;
}
.ai-chat-preview-workspace {
  position: relative !important;
  isolation: isolate !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  touch-action: pan-x pan-y;
  user-select: none;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fafafa 100%) !important;
}
.ai-chat-preview-transform-layer {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center center;
  will-change: transform;
}
.ai-chat-preview-workspace.is-gesturing,
.ai-chat-preview-workspace.is-gesturing * {
  touch-action: none !important;
}
@keyframes ai-chat-desktop-sheet-in {
  from {
    transform: translate3d(100%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes ai-chat-desktop-sheet-out {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(100%, 0, 0);
  }
}
@keyframes ai-chat-desktop-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes ai-chat-desktop-overlay-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.ai-chat-sheet-overlay {
  animation-duration: 280ms;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}
.ai-chat-sheet-overlay[data-state=open] {
  animation-name: ai-chat-desktop-overlay-in;
}
.ai-chat-sheet-overlay[data-state=closed] {
  animation-name: ai-chat-desktop-overlay-out;
}
.ai-chat-sheet-content[data-side=right] {
  border-left: 1px solid rgb(15 23 42 / 0.12);
  box-shadow: none;
  will-change: transform;
  animation-duration: 280ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
}
.ai-chat-sheet-content[data-side=right][data-state=open] {
  animation-name: ai-chat-desktop-sheet-in;
}
.ai-chat-sheet-content[data-side=right][data-state=closed] {
  animation-name: ai-chat-desktop-sheet-out;
}
@media (min-width: 768px) {
  .ai-chat-sheet-content[data-side=right] {
    width: var(--ai-chat-desktop-sidebar-width, 26.25rem) !important;
    max-width: none !important;
  }
  .ai-chat-desktop-sidebar-slot {
    position: relative;
    z-index: 50;
    flex: 0 0 auto;
    align-self: stretch;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    transition: width 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .ai-chat-desktop-sidebar {
    position: relative;
    display: flex;
    width: var(--ai-chat-desktop-sidebar-width, 26.25rem);
    min-width: 0;
    max-width: none;
    min-height: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid rgb(15 23 42 / 0.12);
    background: var(--background);
    color: var(--foreground);
    box-shadow: none;
  }
  body[data-resizing-chat=true] .ai-chat-desktop-sidebar-slot {
    transition: none !important;
  }
  @media (prefers-reduced-motion: reduce) {
    .ai-chat-desktop-sidebar-slot {
      transition: none !important;
    }
    .ai-chat-sheet-content[data-side=right],
    .ai-chat-sheet-overlay {
      animation: none !important;
    }
  }
  .ai-chat-desktop-resize-handle {
    position: absolute;
    inset-block: 0;
    left: -4px;
    z-index: 60;
    width: 8px;
    cursor: col-resize;
    background: transparent;
  }
  .ai-chat-desktop-resize-handle::after {
    content: "";
    position: absolute;
    inset-block: 0;
    left: 3px;
    width: 2px;
    background: transparent;
    transition: background-color 120ms ease;
  }
  .ai-chat-desktop-resize-handle:hover::after,
  .ai-chat-desktop-resize-handle:active::after {
    background: color-mix(in oklab, var(--primary) 35%, transparent);
  }
  .ai-chat-desktop-sidebar .ai-chat-body {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }
  .ai-chat-desktop-sidebar .ai-chat-progressive-header {
    width: 100%;
    min-width: 0;
  }
  .ai-chat-desktop-sidebar .ai-chat-composer-footer {
    bottom: 0;
    box-sizing: border-box;
    padding: 0.85rem 1rem 1rem;
    background: transparent;
    pointer-events: none;
  }
  .ai-chat-desktop-sidebar .ai-chat-composer-footer > form {
    width: 100%;
    max-width: 100%;
    pointer-events: auto;
  }
  .ai-chat-desktop-sidebar .ai-chat-composer-error-pill {
    width: fit-content;
    max-width: calc(100% - 2rem);
    margin: 0 auto 0.5rem;
  }
  .ai-chat-desktop-sidebar .ai-chat-composer-bottom-space {
    height: var(--ai-chat-composer-scroll-pad, 9rem);
  }
}
@media (min-width: 768px) {
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-progressive-header {
    box-sizing: border-box;
    min-height: 3.75rem;
    padding: 0.75rem 0.75rem 0.9rem 1rem !important;
    align-items: center;
    gap: 0.45rem;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-progressive-header > :first-of-type {
    min-width: 0;
  }
  .ai-chat-desktop-actions {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .ai-chat-desktop-mode-button,
  .ai-chat-close-button {
    display: inline-flex;
    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-radius: 999px !important;
    line-height: 1;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-progressive-blur-layer.is-1 {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-progressive-blur-layer.is-2 {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-progressive-blur-layer.is-3 {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-progressive-blur-scrim {
    background:
      linear-gradient(
        to bottom,
        rgb(255 255 255 / 0.3),
        rgb(255 255 255 / 0.1) 58%,
        transparent);
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-body {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-footer {
    bottom: 0;
    box-sizing: border-box;
    padding: 0.85rem 1rem 1rem;
    background: transparent;
    pointer-events: none;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--popover) 95%, transparent) !important;
    box-shadow:
      0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent),
      0 10px 15px -3px rgb(0 0 0 / 0.1),
      0 4px 6px -4px rgb(0 0 0 / 0.1) !important;
    filter: none !important;
    -webkit-filter: none !important;
    -webkit-backdrop-filter: blur(4px) !important;
    backdrop-filter: blur(4px) !important;
    transition:
      width 180ms ease,
      border-radius 180ms ease,
      background-color 180ms ease,
      box-shadow 180ms ease,
      min-height 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer.is-idle {
    width: min(22.5rem, calc(100% - 2rem));
    min-height: 2.62rem;
    border-radius: 999px;
    overflow: visible;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer.is-voice-recording {
    width: auto;
    max-width: 100%;
    min-height: 0;
    border: none !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    overflow: visible;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer.is-voice-recording .ai-chat-composer-inner {
    padding: 0;
    min-height: 0;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer.is-expanded {
    width: 100%;
    min-height: 5.35rem;
    border-radius: 1.45rem;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.45rem 0.55rem;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer.is-idle .ai-chat-composer-inner {
    justify-content: center;
    min-height: 2.45rem;
    padding: 0.28rem 0.55rem;
    overflow: visible;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer.is-expanded .ai-chat-composer-inner {
    min-height: 5.2rem;
    padding: 0.48rem 0.52rem;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-main {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 0.48rem;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer.is-expanded .ai-chat-composer-main {
    position: relative;
    align-items: flex-start;
    min-height: 1.35rem;
    padding: 0.1rem 0.3rem 0;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-textarea {
    box-sizing: border-box;
    border-radius: 0 !important;
    min-height: 1.35rem !important;
    max-height: 7.5rem;
    padding: 0;
    color: rgb(17 24 39) !important;
    font-size: 16px;
    line-height: 1.35rem;
    opacity: 1 !important;
    -webkit-text-fill-color: rgb(17 24 39);
    caret-color: rgb(17 24 39);
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer.is-idle .ai-chat-composer-textarea {
    min-height: 1.5rem !important;
    height: 1.5rem;
    padding: 0.075rem 0.2rem;
    line-height: 1.35rem;
    overflow: visible !important;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-textarea:focus::placeholder,
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-textarea:focus-visible::placeholder {
    color: transparent;
    -webkit-text-fill-color: transparent;
    opacity: 0;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer.is-expanded .ai-chat-composer-textarea {
    flex: 1 1 auto;
    min-height: 1.35rem !important;
    height: 1.35rem;
    padding: 0 !important;
    line-height: 1.35rem;
    text-indent: 0;
    overflow: visible !important;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer.is-expanded .ai-chat-composer-textarea.has-text {
    height: auto;
    overflow-y: auto !important;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-toolbar {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.42rem;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-toolbar-spacer {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-icon {
    width: 2.05rem;
    height: 2.05rem;
    min-width: 2.05rem;
    border-radius: 999px;
    color: rgb(17 24 39 / 0.96);
    background: transparent;
    box-shadow: none;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-icon:hover,
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-icon:focus-visible {
    background: rgb(17 24 39 / 0.06);
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-voice[data-state=open],
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-voice:not(:disabled)[data-variant=default],
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-voice.is-active {
    background: #111827;
    color: #ffffff;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-footer.is-voice-active {
    transition: none;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-send {
    background: var(--ai-chat-accent, var(--primary, #111827));
    color: var(--ai-chat-accent-foreground, var(--primary-foreground, #fff));
    opacity: 1 !important;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-send:disabled {
    background: rgb(17 24 39 / 0.12);
    color: rgb(17 24 39 / 0.72);
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-stop svg {
    width: 0.78rem !important;
    height: 0.78rem !important;
    stroke-width: 0;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-send-mark {
    display: block;
    width: 1.05rem;
    height: 1.05rem;
    background: currentColor;
    opacity: 1 !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M11 20V7.83l-4.59 4.58L5 11l7-7 7 7-1.41 1.41L13 7.83V20h-2z%27/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M11 20V7.83l-4.59 4.58L5 11l7-7 7 7-1.41 1.41L13 7.83V20h-2z%27/%3E%3C/svg%3E") center / contain no-repeat;
  }
  :is(.ai-chat-desktop-sidebar, .ai-chat-sheet-content) .ai-chat-composer-bottom-space {
    height: var(--ai-chat-composer-scroll-pad, 9rem);
  }
}
.ai-chat-copy-response-icons {
  position: relative;
  display: block;
  width: 0.875rem;
  height: 0.875rem;
}
.ai-chat-copy-response-icons > svg {
  position: absolute;
  inset: 0;
  transition: opacity 150ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ai-chat-copy-response-copy {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.ai-chat-copy-response-check {
  color: rgb(22 163 74);
  opacity: 0;
  transform: scale(0.55) rotate(-18deg);
}
.ai-chat-copy-response[data-copied=true] .ai-chat-copy-response-copy {
  opacity: 0;
  transform: scale(0.65) rotate(12deg);
}
.ai-chat-copy-response[data-copied=true] .ai-chat-copy-response-check {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
@media (prefers-reduced-motion: reduce) {
  .ai-chat-copy-response-icons > svg {
    transition: none;
  }
}
.ai-chat-progressive-header > .ai-chat-progressive-blur:not(.is-bottom) .ai-chat-progressive-blur-scrim {
  background:
    linear-gradient(
      to bottom,
      rgb(241 245 249 / 0.82) 0%,
      rgb(248 250 252 / 0.58) 46%,
      rgb(248 250 252 / 0.18) 76%,
      transparent 100%);
}
.ai-chat-progressive-header .ai-chat-header-action-button {
  color: rgb(30 41 59 / 0.78) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.ai-chat-progressive-header .ai-chat-header-action-button:hover,
.ai-chat-progressive-header .ai-chat-header-action-button:focus-visible {
  color: rgb(15 23 42) !important;
  background: rgb(226 232 240 / 0.52) !important;
}
.ai-chat-progressive-header :is(.ai-chat-header-action-button, .ai-chat-thread-trigger) svg {
  filter: drop-shadow(0 1px 1px rgb(15 23 42 / 0.2));
}
.ai-chat-progressive-header .ai-chat-thread-trigger {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: 100%;
  overflow: hidden;
  flex-shrink: 1 !important;
  color: rgb(15 23 42 / 0.9) !important;
  text-shadow: 0 1px 1px rgb(255 255 255 / 0.72);
}
.ai-chat-progressive-header .ai-chat-thread-trigger-title {
  display: block;
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-chat-progressive-header :is(.ai-chat-header-action-button, .ai-chat-desktop-actions, .ai-chat-preview-controls-slot) {
  flex-shrink: 0;
}
.ai-chat-thread-menu-item {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.ai-chat-thread-menu-item-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-chat-overview-briefing {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  padding: 4px 0 8px;
  color: var(--foreground);
}
.ai-chat-overview-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.ai-chat-overview-updated {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted-foreground);
}
.ai-chat-overview-greeting {
  margin: 0;
  font-size: 34px;
  line-height: 41px;
  font-weight: 600;
  letter-spacing: -0.8px;
  color: var(--foreground);
}
.ai-chat-overview-narrative {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 26px;
  text-wrap: pretty;
}
.ai-chat-overview-prose-muted {
  color: var(--foreground);
}
.ai-chat-overview-prose-strong {
  color: var(--foreground);
  font-weight: 600;
}
.ai-chat-overview-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  margin: 0;
  padding: 0 8px;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.06);
  color: var(--foreground);
}
.ai-chat-overview-chip-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.ai-chat-overview-chip-label {
  letter-spacing: -0.15px;
}
.ai-chat-overview-chip-suffix {
  font-size: 11.5px;
  line-height: 14px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.62;
  white-space: nowrap;
}
.ai-chat-overview-ledger-equivalent {
  display: block;
  margin-top: 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.ai-chat-overview-chip.ai-chat-overview-tone-default {
  color: #252525;
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.1);
}
.ai-chat-overview-chip.ai-chat-overview-tone-bad {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.22);
}
.ai-chat-overview-chip.ai-chat-overview-tone-good {
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.24);
}
.ai-chat-overview-chip.ai-chat-overview-tone-warn {
  color: #b45309;
  background: rgba(255, 202, 18, 0.28);
  border-color: rgba(255, 202, 18, 0.42);
}
.ai-chat-overview-chip.ai-chat-overview-tone-info {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.24);
}
.ai-chat-overview-versions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.1rem 0 0.3rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
}
.ai-chat-overview-versions::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.ai-chat-overview-versions > :last-child {
  margin-right: 0.25rem;
}
.ai-chat-overview-version {
  flex: 0 0 auto;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--border) 82%, transparent);
  background: color-mix(in oklab, var(--muted) 55%, transparent);
  color: var(--muted-foreground);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.ai-chat-overview-version:hover {
  color: var(--foreground);
  border-color: color-mix(in oklab, var(--border) 100%, transparent);
}
.ai-chat-overview-version-active {
  background: var(--foreground);
  border-color: var(--foreground);
  color: var(--background);
}
.ai-chat-overview-strip {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 14px;
  min-width: 0;
  width: 100%;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  overflow: visible;
}
.ai-chat-overview-strip::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.ai-chat-overview-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--foreground);
}
.ai-chat-overview-strip-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 0;
  color: #3b82f6;
}
.ai-chat-overview-strip-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  white-space: normal;
  color: var(--foreground);
}
.ai-chat-overview-strip-item.ai-chat-overview-tone-bad .ai-chat-overview-strip-icon {
  color: #ef4444;
}
.ai-chat-overview-strip-item.ai-chat-overview-tone-good .ai-chat-overview-strip-icon {
  color: #22c55e;
}
.ai-chat-overview-strip-item.ai-chat-overview-tone-warn .ai-chat-overview-strip-icon {
  color: #f59e0b;
}
.ai-chat-overview-strip-item.ai-chat-overview-tone-info .ai-chat-overview-strip-icon,
.ai-chat-overview-strip-item.ai-chat-overview-tone-default .ai-chat-overview-strip-icon {
  color: #3b82f6;
}
.ai-chat-overview-panel {
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.ai-chat-overview-panel-title,
.ai-chat-overview-ledger-title,
.ai-chat-overview-watch-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: none;
  color: var(--foreground);
}
.ai-chat-overview-priorities {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ai-chat-overview-priority {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
}
.ai-chat-overview-priority-index {
  display: inline-block;
  width: 1.4em;
  height: auto;
  flex-shrink: 0;
  margin-top: 0;
  border-radius: 0;
  background: transparent;
  color: var(--foreground);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}
.ai-chat-overview-priority-copy {
  min-width: 0;
}
.ai-chat-overview-priority-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  color: var(--foreground);
}
.ai-chat-overview-priority-detail {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 20px;
  color: var(--muted-foreground);
}
.ai-chat-overview-watch {
  margin-top: 0;
}
.ai-chat-overview-watch-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ai-chat-overview-watch-item {
  position: relative;
  padding-left: 14px;
  font-size: 18px;
  line-height: 26px;
  color: var(--foreground);
  text-wrap: pretty;
}
.ai-chat-overview-watch-item::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(113, 113, 122, 0.55);
}
.ai-chat-overview-ledger {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.ai-chat-overview-ledger-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ai-chat-overview-ledger-section-follow {
  margin-top: 4px;
}
.ai-chat-overview-ledger-section-heading {
  margin: 0;
  padding: 2px 0;
  list-style: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.ai-chat-overview-ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  padding: 8px 0;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.18);
}
.ai-chat-overview-ledger-row + .ai-chat-overview-ledger-row:not(.ai-chat-overview-ledger-row-total) {
  border-top: 0;
}
.ai-chat-overview-ledger-cols-3 .ai-chat-overview-ledger-row {
  display: flex;
  align-items: baseline;
}
.ai-chat-overview-ledger-metrics {
  display: flex;
  flex: none;
  align-items: baseline;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}
.ai-chat-overview-ledger-cols-3 .ai-chat-overview-ledger-metrics {
  gap: 12px;
}
.ai-chat-overview-ledger-row:has(+ .ai-chat-overview-ledger-row-total) {
  border-bottom: 0;
}
.ai-chat-overview-ledger-row:last-child {
  border-bottom: 0;
}
.ai-chat-overview-ledger-row-total {
  margin-top: 1px;
  padding-top: 5px;
  padding-bottom: 4px;
  border-top: 1px solid rgba(15, 23, 42, 0.14);
  border-bottom: 0;
  font-weight: 600;
}
.ai-chat-overview-ledger-label {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-chat-overview-ledger-cols-3 .ai-chat-overview-ledger-row-total .ai-chat-overview-ledger-label {
  color: var(--foreground);
}
.ai-chat-overview-ledger-detail {
  display: block;
  margin-top: 2px;
  flex: none;
  width: auto;
  min-width: 0;
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
}
.ai-chat-overview-ledger-detail.ai-chat-overview-tone-good {
  color: #047857;
}
.ai-chat-overview-ledger-detail.ai-chat-overview-tone-bad {
  color: #be123c;
}
.ai-chat-overview-ledger-value {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  min-width: 90px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 13.5px;
  text-align: right;
}
.ai-chat-overview-ledger-amount {
  white-space: nowrap;
}
.ai-chat-overview-ledger-value.ai-chat-overview-tone-default {
  color: var(--foreground);
}
.ai-chat-overview-chapters {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.ai-chat-show-more {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  margin-top: 0.15rem;
  border: 0;
}
.ai-chat-show-more-trigger {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 0.3rem;
  width: 100%;
  min-width: 0;
  height: auto;
  padding: 0.55rem 0.25rem 0.2rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted-foreground);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.ai-chat-show-more-trigger:hover {
  color: var(--foreground);
}
.ai-chat-show-more-label {
  flex: none;
  white-space: nowrap;
}
.ai-chat-show-more-chevron {
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 0.2s ease;
}
.ai-chat-show-more[data-state=open] .ai-chat-show-more-chevron {
  transform: rotate(180deg);
}
.ai-chat-show-more-panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  transition: grid-template-rows 280ms ease;
}
.ai-chat-show-more[data-state=open] .ai-chat-show-more-panel {
  grid-template-rows: 1fr;
}
.ai-chat-show-more-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  width: 100%;
  padding-top: 0.55rem;
}
@media (prefers-reduced-motion: reduce) {
  .ai-chat-show-more-panel {
    transition: none;
  }
  .ai-chat-show-more-chevron {
    transition: none;
  }
}
.ai-chat-more-heading {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.ai-chat-more-block + .ai-chat-more-block {
  padding-top: 0.15rem;
}
.ai-chat-overview-chapter {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.ai-chat-overview-chapter-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
  color: inherit;
}
.ai-chat-overview-chapter-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.12rem;
}
.ai-chat-overview-chapter-title {
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--foreground);
}
.ai-chat-overview-chapter-teaser {
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--muted-foreground);
}
.ai-chat-overview-chapter-chevron {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.15s ease;
}
.ai-chat-overview-chapter[data-state=open] .ai-chat-overview-chapter-chevron {
  transform: rotate(90deg);
}
.ai-chat-overview-chapter-content {
  overflow: hidden;
}
.ai-chat-overview-chapter-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0 0.85rem 0.85rem;
}
.ai-chat-overview-chapter-body .ai-chat-overview-strip,
.ai-chat-overview-chapter-body .ai-chat-overview-ledger,
.ai-chat-overview-chapter-body .ai-chat-overview-narrative {
  margin: 0;
}
.ai-chat-overview-chapter-body .chat-msg-content {
  font-size: 0.92rem;
  line-height: 1.45;
}
.ai-chat-overview-chapter-body .chat-msg-content > *:first-child {
  margin-top: 0;
}
.ai-chat-overview-chapter-body .chat-msg-content > *:last-child {
  margin-bottom: 0;
}
.ai-chat-overview-drill {
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.18);
}
.ai-chat-overview-drill:last-child {
  border-bottom: 0;
}
.ai-chat-overview-drill-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
}
.ai-chat-overview-drill-summary::-webkit-details-marker {
  display: none;
}
.ai-chat-overview-drill-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}
.ai-chat-overview-drill-title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
}
.ai-chat-overview-drill-teaser {
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-chat-overview-drill[open] .ai-chat-overview-drill-teaser {
  display: none;
}
.ai-chat-overview-drill .ai-chat-more-block {
  padding: 0 0 14px;
}
.ai-chat-overview-briefing .ai-chat-overview-more {
  padding-top: 20px;
}
.ai-chat-overview-panel[aria-label=Browse] .ai-chat-overview-drill {
  border-bottom: 0;
}
.ai-chat-overview-drill-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted-foreground);
}
