/**
 * @license
 * Copyright 2025 Qwen Team
 * SPDX-License-Identifier: Apache-2.0
 */

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com
 */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: var(--app-font-sans, system-ui, sans-serif); /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: var(--app-font-mono, ui-monospace, monospace); /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {

  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {

  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {

  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {

  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {

  .container {
    max-width: 1536px;
  }
}
.pointer-events-none {
  pointer-events: none;
}
.\!visible {
  visibility: visible !important;
}
.visible {
  visibility: visible;
}
.invisible {
  visibility: hidden;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.inset-0 {
  inset: 0px;
}
.inset-x-0 {
  left: 0px;
  right: 0px;
}
.-top-7 {
  top: -1.75rem;
}
.bottom-0 {
  bottom: 0px;
}
.bottom-full {
  bottom: 100%;
}
.left-0 {
  left: 0px;
}
.left-1\/2 {
  left: 50%;
}
.left-3 {
  left: 0.75rem;
}
.left-\[3px\] {
  left: 3px;
}
.left-full {
  left: 100%;
}
.right-0 {
  right: 0px;
}
.right-3 {
  right: 0.75rem;
}
.right-full {
  right: 100%;
}
.top-0 {
  top: 0px;
}
.top-1\/2 {
  top: 50%;
}
.top-\[-0\.1em\] {
  top: -0.1em;
}
.top-\[10px\] {
  top: 10px;
}
.top-\[3px\] {
  top: 3px;
}
.top-full {
  top: 100%;
}
.z-50 {
  z-index: 50;
}
.z-\[1000\] {
  z-index: 1000;
}
.z-\[1\] {
  z-index: 1;
}
.z-\[999\] {
  z-index: 999;
}
.col-start-3 {
  grid-column-start: 3;
}
.m-0 {
  margin: 0px;
}
.m-\[2px\] {
  margin: 2px;
}
.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}
.mb-0\.5 {
  margin-bottom: 0.125rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-\[2px\] {
  margin-bottom: 2px;
}
.ml-3 {
  margin-left: 0.75rem;
}
.ml-4 {
  margin-left: 1rem;
}
.ml-auto {
  margin-left: auto;
}
.mr-1\.5 {
  margin-right: 0.375rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-\[2px\] {
  margin-top: 2px;
}
.box-border {
  box-sizing: border-box;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.h-1 {
  height: 0.25rem;
}
.h-1\.5 {
  height: 0.375rem;
}
.h-2 {
  height: 0.5rem;
}
.h-4 {
  height: 1rem;
}
.h-5 {
  height: 1.25rem;
}
.h-\[60px\] {
  height: 60px;
}
.h-\[80px\] {
  height: 80px;
}
.h-full {
  height: 100%;
}
.max-h-\[300px\] {
  max-height: 300px;
}
.max-h-\[50vh\] {
  max-height: 50vh;
}
.max-h-\[min\(500px\2c 50vh\)\] {
  max-height: min(500px,50vh);
}
.min-h-0 {
  min-height: 0px;
}
.w-1\.5 {
  width: 0.375rem;
}
.w-2 {
  width: 0.5rem;
}
.w-2\.5 {
  width: 0.625rem;
}
.w-4 {
  width: 1rem;
}
.w-\[60px\] {
  width: 60px;
}
.w-\[80px\] {
  width: 80px;
}
.w-\[min\(400px\2c calc\(100vw-32px\)\)\] {
  width: min(400px,calc(100vw - 32px));
}
.w-full {
  width: 100%;
}
.min-w-0 {
  min-width: 0px;
}
.min-w-\[10px\] {
  min-width: 10px;
}
.max-w-\[300px\] {
  max-width: 300px;
}
.max-w-\[400px\] {
  max-width: 400px;
}
.max-w-\[50\%\] {
  max-width: 50%;
}
.max-w-full {
  max-width: 100%;
}
.max-w-md {
  max-width: 28rem;
}
.max-w-sm {
  max-width: 24rem;
}
.max-w-xs {
  max-width: 20rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.shrink-0 {
  flex-shrink: 0;
}
.-translate-x-1\/2 {
  --tw-translate-x: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-translate-x-full {
  --tw-translate-x: -100%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-translate-y-1 {
  --tw-translate-y: -0.25rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-x-0 {
  --tw-translate-x: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-x-1\/2 {
  --tw-translate-x: 50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-y-1 {
  --tw-translate-y: 0.25rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-y-1\/2 {
  --tw-translate-y: 50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-y-\[-50\%\] {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-rotate-45 {
  --tw-rotate: -45deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.animate-\[fadeIn_0\.2s_ease-in\] {
  animation: fadeIn 0.2s ease-in;
}
.animate-\[typingPulse_1\.4s_infinite_ease-in-out\] {
  animation: typingPulse 1.4s infinite ease-in-out;
}
@keyframes completion-menu-enter {

  0% {
    opacity: 0;
    transform: translateY(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-completion-menu-enter {
  animation: completion-menu-enter 150ms ease-out both;
}
@keyframes slide-up {

  0% {
    transform: translateY(100%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.animate-slide-up {
  animation: slide-up 200ms ease-out both;
}
@keyframes spin {

  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.cursor-default {
  cursor: default;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.cursor-pointer {
  cursor: pointer;
}
.cursor-text {
  cursor: text;
}
.select-none {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.select-text {
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}
.resize {
  resize: both;
}
.list-none {
  list-style-type: none;
}
.appearance-none {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
.grid-cols-\[80px_1fr\] {
  grid-template-columns: 80px 1fr;
}
.grid-cols-\[auto_1fr\] {
  grid-template-columns: auto 1fr;
}
.flex-row {
  flex-direction: row;
}
.flex-col {
  flex-direction: column;
}
.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.items-baseline {
  align-items: baseline;
}
.justify-start {
  justify-content: flex-start;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-0 {
  gap: 0px;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-1\.5 {
  gap: 0.375rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}
.gap-\[2px\] {
  gap: 2px;
}
.gap-\[var\(--app-list-gap\)\] {
  gap: var(--app-list-gap);
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.overflow-y-hidden {
  overflow-y: hidden;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-ellipsis {
  text-overflow: ellipsis;
}
.whitespace-normal {
  white-space: normal;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}
.break-words {
  overflow-wrap: break-word;
}
.break-all {
  word-break: break-all;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-\[2px\] {
  border-radius: 2px;
}
.rounded-\[4px\] {
  border-radius: 4px;
}
.rounded-\[var\(--app-list-border-radius\)\] {
  border-radius: var(--app-list-border-radius);
}
.rounded-\[var\(--corner-radius-small\)\] {
  border-radius: var(--corner-radius-small);
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-sm {
  border-radius: 0.125rem;
}
.border {
  border-width: 1px;
}
.border-0 {
  border-width: 0px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-b-2 {
  border-bottom-width: 2px;
}
.border-l {
  border-left-width: 1px;
}
.border-l-2 {
  border-left-width: 2px;
}
.border-none {
  border-style: none;
}
.border-\[\#74c991\] {
  --tw-border-opacity: 1;
  border-color: rgb(116 201 145 / var(--tw-border-opacity, 1));
}
.border-\[var\(--app-input-border\)\] {
  border-color: var(--app-input-border);
}
.border-\[var\(--app-input-border\2c \#374151\)\] {
  border-color: var(--app-input-border,#374151);
}
.border-\[var\(--app-primary-border-color\)\] {
  border-color: var(--app-primary-border-color);
}
.border-gray-300 {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.border-red-500 {
  --tw-border-opacity: 1;
  border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
}
.bg-\[\#2196f3\] {
  --tw-bg-opacity: 1;
  background-color: rgb(33 150 243 / var(--tw-bg-opacity, 1));
}
.bg-\[\#4caf50\] {
  --tw-bg-opacity: 1;
  background-color: rgb(76 175 80 / var(--tw-bg-opacity, 1));
}
.bg-\[\#f44336\] {
  --tw-bg-opacity: 1;
  background-color: rgb(244 67 54 / var(--tw-bg-opacity, 1));
}
.bg-\[\#ffc107\] {
  --tw-bg-opacity: 1;
  background-color: rgb(255 193 7 / var(--tw-bg-opacity, 1));
}
.bg-\[var\(--app-background\)\] {
  background-color: var(--app-background);
}
.bg-\[var\(--app-header-background\)\] {
  background-color: var(--app-header-background);
}
.bg-\[var\(--app-input-background\)\] {
  background-color: var(--app-input-background);
}
.bg-\[var\(--app-list-active-background\)\] {
  background-color: var(--app-list-active-background);
}
.bg-\[var\(--app-menu-background\)\] {
  background-color: var(--app-menu-background);
}
.bg-\[var\(--app-primary\2c var\(--app-button-background\)\)\] {
  background-color: var(--app-primary,var(--app-button-background));
}
.bg-\[var\(--app-primary-background\)\] {
  background-color: var(--app-primary-background);
}
.bg-\[var\(--app-primary-background\2c \#1f2937\)\] {
  background-color: var(--app-primary-background,#1f2937);
}
.bg-\[var\(--app-secondary-foreground\)\] {
  background-color: var(--app-secondary-foreground);
}
.bg-\[var\(--app-tool-background\)\] {
  background-color: var(--app-tool-background);
}
.bg-blue-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));
}
.bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}
.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.bg-gray-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}
.bg-gray-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
}
.bg-red-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}
.bg-transparent {
  background-color: transparent;
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}
.from-transparent {
  --tw-gradient-from: transparent var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-\[var\(--app-primary-background\)\] {
  --tw-gradient-to: var(--app-primary-background) var(--tw-gradient-to-position);
}
.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}
.p-0 {
  padding: 0px;
}
.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.p-\[var\(--app-list-item-padding\)\] {
  padding: var(--app-list-item-padding);
}
.p-\[var\(--app-list-padding\)\] {
  padding: var(--app-list-padding);
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.py-0 {
  padding-top: 0px;
  padding-bottom: 0px;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.pb-1 {
  padding-bottom: 0.25rem;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pl-10 {
  padding-left: 2.5rem;
}
.pl-6 {
  padding-left: 1.5rem;
}
.pl-\[30px\] {
  padding-left: 30px;
}
.pr-10 {
  padding-right: 2.5rem;
}
.pr-2 {
  padding-right: 0.5rem;
}
.pt-\[2px\] {
  padding-top: 2px;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.align-middle {
  vertical-align: middle;
}
.font-mono {
  font-family: var(--app-font-mono, ui-monospace, monospace);
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-\[0\.85em\] {
  font-size: 0.85em;
}
.text-\[0\.9em\] {
  font-size: 0.9em;
}
.text-\[1\.1em\] {
  font-size: 1.1em;
}
.text-\[11px\] {
  font-size: 11px;
}
.text-\[13px\] {
  font-size: 13px;
}
.text-\[14px\] {
  font-size: 14px;
}
.text-\[15px\] {
  font-size: 15px;
}
.text-\[16px\] {
  font-size: 16px;
}
.text-\[8px\] {
  font-size: 8px;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-\[600\] {
  font-weight: 600;
}
.font-\[var\(--vscode-chat-font-family\)\] {
  font-weight: var(--vscode-chat-font-family);
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.font-normal {
  font-weight: 400;
}
.font-semibold {
  font-weight: 600;
}
.italic {
  font-style: italic;
}
.leading-\[1\.5\] {
  line-height: 1.5;
}
.leading-none {
  line-height: 1;
}
.leading-normal {
  line-height: 1.5;
}
.leading-relaxed {
  line-height: 1.625;
}
.text-\[\#c74e39\] {
  --tw-text-opacity: 1;
  color: rgb(199 78 57 / var(--tw-text-opacity, 1));
}
.text-\[\#e1c08d\] {
  --tw-text-opacity: 1;
  color: rgb(225 192 141 / var(--tw-text-opacity, 1));
}
.text-\[var\(--app-button-foreground\2c \#ffffff\)\] {
  color: var(--app-button-foreground,#ffffff);
}
.text-\[var\(--app-list-active-foreground\)\] {
  color: var(--app-list-active-foreground);
}
.text-\[var\(--app-menu-foreground\)\] {
  color: var(--app-menu-foreground);
}
.text-\[var\(--app-monospace-font-size\)\] {
  color: var(--app-monospace-font-size);
}
.text-\[var\(--app-primary-foreground\)\] {
  color: var(--app-primary-foreground);
}
.text-\[var\(--app-primary-foreground\2c \#f9fafb\)\] {
  color: var(--app-primary-foreground,#f9fafb);
}
.text-\[var\(--app-secondary-foreground\)\] {
  color: var(--app-secondary-foreground);
}
.text-\[var\(--vscode-chat-font-size\2c 13px\)\] {
  color: var(--vscode-chat-font-size,13px);
}
.text-\[var\(--vscode-symbolIcon-fileForeground\2c \#cccccc\)\] {
  color: var(--vscode-symbolIcon-fileForeground,#cccccc);
}
.text-app-primary-foreground {
  color: var(--app-primary-foreground, #ffffff);
}
.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.text-gray-800 {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}
.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.line-through {
  text-decoration-line: line-through;
}
.no-underline {
  text-decoration-line: none;
}
.opacity-0 {
  opacity: 0;
}
.opacity-25 {
  opacity: 0.25;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-60 {
  opacity: 0.6;
}
.opacity-70 {
  opacity: 0.7;
}
.opacity-75 {
  opacity: 0.75;
}
.opacity-80 {
  opacity: 0.8;
}
.opacity-85 {
  opacity: 0.85;
}
.opacity-90 {
  opacity: 0.9;
}
.shadow-\[0_4px_16px_rgba\(0\2c 0\2c 0\2c 0\.1\)\] {
  --tw-shadow: 0 4px 16px rgba(0,0,0,0.1);
  --tw-shadow-colored: 0 4px 16px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-\[inset_0_0_0_1px_var\(--app-transparent-inner-border\)\] {
  --tw-shadow: inset 0 0 0 1px var(--app-transparent-inner-border);
  --tw-shadow-colored: inset 0 0 0 1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.outline {
  outline-style: solid;
}
.ring {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-100 {
  transition-duration: 100ms;
}
.duration-150 {
  transition-duration: 150ms;
}
.duration-200 {
  transition-duration: 200ms;
}
.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
.\[animation-delay\:0\.2s\] {
  animation-delay: 0.2s;
}
.\[animation-delay\:0\.4s\] {
  animation-delay: 0.4s;
}
.\[animation-delay\:0s\] {
  animation-delay: 0s;
}

/**
 * Default CSS variables for @qwen-code/webui
 * These provide fallback values when running outside of VSCode.
 * In VSCode, these will be overridden by VSCode's design tokens.
 */
:root {
  /* ===========================
     Primary Colors
     =========================== */
  --app-primary: #3b82f6;
  --app-primary-hover: #2563eb;
  --app-primary-foreground: #e4e4e7;
  --app-secondary-foreground: #a1a1aa;

  /* ===========================
     Background Colors
     =========================== */
  --app-background: #1e1e1e;
  --app-primary-background: #1e1e1e;
  --app-background-secondary: #252526;
  --app-secondary-background: #252526;
  --app-background-tertiary: #2d2d2d;

  /* ===========================
     Foreground/Text Colors
     =========================== */
  --app-foreground: #e4e4e7;
  --app-foreground-secondary: #a1a1aa;
  --app-foreground-muted: #71717a;

  /* ===========================
     Border Colors
     =========================== */
  --app-border: #3f3f46;
  --app-border-focus: #3b82f6;
  --app-primary-border-color: #3f3f46;

  /* ===========================
     Status Colors
     =========================== */
  --app-success: #10b981;
  --app-warning: #f59e0b;
  --app-error: #ef4444;
  --app-info: #3b82f6;

  /* ===========================
     Typography
     =========================== */
  --app-font-sans: system-ui, -apple-system, sans-serif;
  --app-font-mono: var(
    --app-monospace-font-family,
    ui-monospace,
    'SF Mono',
    monospace
  );
  --app-monospace-font-size: 13px;
  --font-size-xs: 11px;

  /* ===========================
     Link Styles
     =========================== */
  --app-link-foreground: #007acc;
  --app-link-active-foreground: #005a9e;

  /* ===========================
     Brand Colors
     =========================== */
  --app-qwen-ivory: #f5f5dc;

  /* ===========================
     Border Radius
     =========================== */
  --app-radius-sm: 0.25rem;
  --app-radius-md: 0.375rem;
  --app-radius-lg: 0.5rem;
  --qwen-corner-radius-small: 6px;
  --qwen-corner-radius-medium: 8px;
  --corner-radius-small: var(--app-radius-sm, 4px);
  --corner-radius-medium: var(--app-radius-md, 6px);
  --border-radius-medium: var(--corner-radius-medium, 6px);

  /* ===========================
     Spacing
     =========================== */
  --app-spacing-xs: 0.25rem;
  --app-spacing-sm: 0.5rem;
  --app-spacing-md: 1rem;
  --app-spacing-medium: 8px;
  --app-spacing-lg: 1.5rem;
  --app-spacing-xl: 2rem;
  --spacing-medium: var(--app-spacing-medium, 8px);
  --spacing-large: 12px;

  /* ===========================
     Input Styles
     =========================== */
  --app-input-background: #3c3c3c;
  --app-input-secondary-background: #2d2d2d;
  --app-input-border: #3f3f46;
  --app-input-foreground: #e4e4e7;
  --app-input-placeholder-foreground: #71717a;

  /* ===========================
     Button Styles
     =========================== */
  --app-ghost-button-hover-background: rgba(90, 93, 94, 0.31);
  --app-button-background: #3c3c3c;
  --app-button-foreground: #ffffff;
  --app-button-hover-background: var(--app-primary-hover);
  --app-transparent-inner-border: rgba(255, 255, 255, 0.1);

  /* ===========================
     Header Styles
     =========================== */
  --app-header-background: #252526;

  /* ===========================
     List Styles
     =========================== */
  --app-list-padding: 0px;
  --app-list-item-padding: 4px 8px;
  --app-list-border-color: transparent;
  --app-list-border-radius: 4px;
  --app-list-hover-background: rgba(90, 93, 94, 0.31);
  --app-list-active-background: #094771;
  --app-list-active-foreground: #ffffff;
  --app-list-gap: 2px;

  /* ===========================
     Menu Styles
     =========================== */
  --app-menu-background: #252526;
  --app-menu-border: #454545;
  --app-menu-foreground: #cccccc;
  --app-menu-selection-background: #094771;
  --app-menu-selection-foreground: #ffffff;

  /* ===========================
     Tool Call Styles
     =========================== */
  --app-tool-background: #1e1e1e;
  --app-code-background: #2d2d2d;

  /* ===========================
     Warning/Error Styles
     =========================== */
  --app-warning-background: rgba(255, 204, 0, 0.1);
  --app-warning-border: #ffcc00;
  --app-warning-foreground: #ffcc00;

  /* ===========================
     VSCode Compatibility
     =========================== */
  --vscode-chat-font-size: 13px;
  --vscode-chat-font-family: var(--app-font-sans);
  --vscode-focusBorder: var(--app-border-focus);
  --vscode-symbolIcon-fileForeground: var(--app-secondary-foreground);
}

/* Light theme override (can be toggled via class or media query) */
@media (prefers-color-scheme: light) {
  :root.auto-theme {
    --app-primary-foreground: #1f2937;
    --app-secondary-foreground: #6b7280;
    --app-background: #ffffff;
    --app-primary-background: #ffffff;
    --app-background-secondary: #f3f4f6;
    --app-background-tertiary: #e5e7eb;
    --app-foreground: #1f2937;
    --app-foreground-secondary: #6b7280;
    --app-foreground-muted: #9ca3af;
    --app-border: #e5e7eb;
    --app-primary-border-color: #e5e7eb;
    --app-input-background: #ffffff;
    --app-input-border: #d1d5db;
    --app-input-placeholder-foreground: #9ca3af;
    --app-ghost-button-hover-background: rgba(0, 0, 0, 0.05);
    --app-header-background: #f9fafb;
    --app-list-hover-background: rgba(0, 0, 0, 0.05);
    --app-list-active-background: #3b82f6;
    --app-menu-background: #ffffff;
    --app-menu-border: #e5e7eb;
    --app-menu-foreground: #1f2937;
    --app-tool-background: #ffffff;
    --app-code-background: #f3f4f6;
  }
}
.placeholder\:text-\[var\(--app-input-placeholder-foreground\)\]::-moz-placeholder {
  color: var(--app-input-placeholder-foreground);
}
.placeholder\:text-\[var\(--app-input-placeholder-foreground\)\]::placeholder {
  color: var(--app-input-placeholder-foreground);
}
.placeholder\:opacity-60::-moz-placeholder {
  opacity: 0.6;
}
.placeholder\:opacity-60::placeholder {
  opacity: 0.6;
}
.placeholder\:opacity-70::-moz-placeholder {
  opacity: 0.7;
}
.placeholder\:opacity-70::placeholder {
  opacity: 0.7;
}
.hover\:relative:hover {
  position: relative;
}
.hover\:border-0:hover {
  border-width: 0px;
}
.hover\:bg-\[var\(--app-button-background\)\]:hover {
  background-color: var(--app-button-background);
}
.hover\:bg-\[var\(--app-ghost-button-hover-background\)\]:hover {
  background-color: var(--app-ghost-button-hover-background);
}
.hover\:bg-\[var\(--app-input-border\)\]:hover {
  background-color: var(--app-input-border);
}
.hover\:bg-\[var\(--app-list-hover-background\)\]:hover {
  background-color: var(--app-list-hover-background);
}
.hover\:bg-\[var\(--app-primary-hover\2c var\(--app-button-hover-background\)\)\]:hover {
  background-color: var(--app-primary-hover,var(--app-button-hover-background));
}
.hover\:bg-black\/5:hover {
  background-color: rgb(0 0 0 / 0.05);
}
.hover\:bg-blue-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-300:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.hover\:bg-red-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));
}
.hover\:font-bold:hover {
  font-weight: 700;
}
.hover\:text-\[var\(--app-button-foreground\)\]:hover {
  color: var(--app-button-foreground);
}
.hover\:text-\[var\(--app-primary-foreground\)\]:hover {
  color: var(--app-primary-foreground);
}
.hover\:underline:hover {
  text-decoration-line: underline;
}
.hover\:\!opacity-100:hover {
  opacity: 1 !important;
}
.hover\:opacity-100:hover {
  opacity: 1;
}
.focus\:rounded-\[2px\]:focus {
  border-radius: 2px;
}
.focus\:border-blue-500:focus {
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}
.focus\:border-red-500:focus {
  --tw-border-opacity: 1;
  border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
}
.focus\:bg-\[var\(--app-ghost-button-hover-background\)\]:focus {
  background-color: var(--app-ghost-button-hover-background);
}
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus\:outline:focus {
  outline-style: solid;
}
.focus\:outline-1:focus {
  outline-width: 1px;
}
.focus\:outline-offset-2:focus {
  outline-offset: 2px;
}
.focus\:outline-\[var\(--vscode-focusBorder\)\]:focus {
  outline-color: var(--vscode-focusBorder);
}
.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-blue-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1));
}
.focus\:ring-gray-400:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity, 1));
}
.focus\:ring-gray-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity, 1));
}
.focus\:ring-red-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity, 1));
}
.focus\:ring-offset-2:focus {
  --tw-ring-offset-width: 2px;
}
.active\:scale-95:active {
  --tw-scale-x: .95;
  --tw-scale-y: .95;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.active\:opacity-80:active {
  opacity: 0.8;
}
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}
.group:hover .group-hover\:opacity-70 {
  opacity: 0.7;
}
@media (min-width: 640px) {

  .sm\:inline {
    display: inline;
  }
}
@media (min-width: 768px) {

  .md\:max-w-md {
    max-width: 28rem;
  }

  .md\:p-10 {
    padding: 2.5rem;
  }
}
@media (min-width: 1024px) {

  .lg\:max-w-lg {
    max-width: 32rem;
  }
}
@media (prefers-color-scheme: dark) {

  .dark\:opacity-60 {
    opacity: 0.6;
  }
}
.\[\&\:not\(\:first-child\)\]\:mt-2:not(:first-child) {
  margin-top: 0.5rem;
}
.\[\&\>svg\]\:h-5>svg {
  height: 1.25rem;
}
.\[\&\>svg\]\:w-5>svg {
  width: 1.25rem;
}
/**
 * @license
 * Copyright 2025 Qwen Team
 * SPDX-License-Identifier: Apache-2.0
 *
 * Shared timeline styles - base classes only
 * Individual component styles are in their respective CSS files:
 * - LayoutComponents.css (tool calls)
 * - AssistantMessage.css (assistant messages)
 * 
 * Timeline connectors are inferred from DOM order; data-first/data-last can override
 */

/* Base message item styles */
.message-item {
  padding: 8px 0;
  width: 100%;
  align-items: flex-start;
  padding-left: 30px;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
  position: relative;
}

/* User message container spacing */
.user-message-container {
  margin-top: 16px;
}

.user-message-container:first-child {
  margin-top: 0;
}

/*
 * Timeline fallback for environments without data-first/data-last.
 * Uses sibling selectors and :has() to detect AI sequence boundaries.
 */
.qwen-message.message-item:not(.user-message-container):first-child::after,
.user-message-container
  + .qwen-message.message-item:not(.user-message-container)::after,
.chat-messages
  > :not(.qwen-message.message-item)
  + .qwen-message.message-item:not(.user-message-container)::after,
.chat-viewer-messages
  > :not(.qwen-message.message-item)
  + .qwen-message.message-item:not(.user-message-container)::after {
  top: var(--timeline-center-offset, 13px);
}

.qwen-message.message-item:not(.user-message-container):has(+ .user-message-container)::after,
.qwen-message.message-item:not(.user-message-container):has(
    + :not(.qwen-message.message-item)
  )::after,
.qwen-message.message-item:not(.user-message-container):last-child::after {
  bottom: calc(100% - var(--timeline-center-offset, 13px));
}

.qwen-message.message-item[data-first='true']::after {
  top: var(--timeline-center-offset, 13px);
}

.qwen-message.message-item[data-last='true']::after {
  bottom: calc(100% - var(--timeline-center-offset, 13px));
}

.qwen-message.message-item[data-first='true'][data-last='true']::after {
  display: none;
}
/**
 * @license
 * Copyright 2025 Qwen Team
 * SPDX-License-Identifier: Apache-2.0
 *
 * Common component styles for webui
 * These styles are shared across all platforms (vscode, web, etc.)
 */

/* ===========================
   Global Reset
   =========================== */
.webui-root * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes typingPulse {
  0%,
  60%,
  100% {
    transform: scale(0.7);
    opacity: 0.6;
  }
  30% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===========================
   Chat Container Styles
   =========================== */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background-color: var(--app-primary-background);
  color: var(--app-primary-foreground);
  font-family: var(--vscode-chat-font-family, var(--app-font-sans));
  font-size: var(--vscode-chat-font-size, 13px);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  scroll-behavior: smooth;
}

/* Disable overflow anchoring on individual items for manual scroll control */
.chat-messages > * {
  overflow-anchor: none;
}

/* ===========================
   Input Form Styles
   =========================== */
.input-form {
  display: flex;
  background-color: var(--app-primary-background);
  border-top: 1px solid var(--app-primary-border-color);
}

.input-field {
  flex: 1;
  padding: 10px 12px;
  background-color: var(--app-input-background);
  color: var(--app-input-foreground);
  border: 1px solid var(--app-input-border);
  border-radius: var(--app-radius-sm, 4px);
  font-size: var(--vscode-chat-font-size, 13px);
  font-family: var(--vscode-chat-font-family, var(--app-font-sans));
  outline: none;
  line-height: 1.5;
}

.input-field:focus {
  border-color: var(--app-primary, #3b82f6);
}

.input-field:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.input-field::-moz-placeholder {
  color: var(--app-input-placeholder-foreground);
}

.input-field::placeholder {
  color: var(--app-input-placeholder-foreground);
}

.send-button {
  padding: 10px 20px;
  background-color: var(--app-primary, #3b82f6);
  color: var(--app-button-foreground, white);
  border: none;
  border-radius: var(--app-radius-sm, 4px);
  font-size: var(--vscode-chat-font-size, 13px);
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.send-button:hover:not(:disabled) {
  filter: brightness(1.1);
}

.send-button:active:not(:disabled) {
  filter: brightness(0.9);
}

.send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===========================
   Code Block Styles
   =========================== */
.code-block {
  font-family: var(--app-font-mono);
  font-size: var(--app-monospace-font-size, 13px);
  background: var(--app-primary-background);
  border: 1px solid var(--app-input-border);
  border-radius: var(--app-radius-sm, 4px);
  padding: var(--app-spacing-medium, 8px);
  overflow-x: auto;
  margin: 4px 0 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 300px;
  overflow-y: auto;
}

/* ===========================
   Diff Display Styles
   =========================== */
.diff-display-container {
  margin: 8px 0;
  border: 1px solid var(--app-input-border);
  border-radius: var(--app-radius-md, 6px);
  overflow: hidden;
}

.diff-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--app-input-secondary-background, var(--app-background-secondary));
  border-bottom: 1px solid var(--app-input-border);
}

.diff-file-path {
  font-family: var(--app-font-mono);
  font-size: 13px;
  color: var(--app-primary-foreground);
}

.open-diff-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid var(--app-input-border);
  border-radius: var(--app-radius-sm, 4px);
  color: var(--app-primary-foreground);
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.15s;
}

.open-diff-button:hover {
  background: var(--app-ghost-button-hover-background);
}

.open-diff-button svg {
  width: 16px;
  height: 16px;
}

.diff-section {
  margin: 0;
}

.diff-label {
  padding: 8px 12px;
  background: var(--app-primary-background);
  border-bottom: 1px solid var(--app-input-border);
  font-size: 11px;
  font-weight: 600;
  color: var(--app-secondary-foreground);
  text-transform: uppercase;
}

.diff-section .code-block {
  border: none;
  border-radius: 0;
  margin: 0;
  max-height: none;
  overflow-y: visible;
}

.diff-section .code-content {
  display: block;
}

/* ===========================
   Tool Call Card Styles
   =========================== */
.toolcall-card {
  padding-left: 30px;
}

/* ===========================
   Button Styles
   =========================== */
.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s;
  color: var(--app-primary-foreground);
  font-size: var(--vscode-chat-font-size, 13px);
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: var(--app-ghost-button-hover-background);
}

/* Icon-only button, compact square */
.btn-icon-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: var(--app-radius-sm, 4px);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  color: var(--app-secondary-foreground);
}

.btn-icon-compact:hover {
  background-color: var(--app-ghost-button-hover-background);
}

.btn-icon-compact svg {
  width: 16px;
  height: 16px;
}

/* Active/primary state for icon button */
.btn-icon-compact--active {
  background-color: var(--app-primary, #3b82f6);
  color: white;
}

/* Text button (icon + label) */
.btn-text-compact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  border-radius: 2px;
  cursor: pointer;
  background: transparent;
  border: 0;
  min-width: 0;
  flex-shrink: 1;
  font-size: 0.85em;
  transition: background-color 0.15s;
  color: var(--app-secondary-foreground);
}

.btn-text-compact:hover {
  background-color: var(--app-ghost-button-hover-background);
}

.btn-text-compact > svg {
  height: 1em;
  width: 1em;
  flex-shrink: 0;
}

.btn-text-compact > span {
  display: inline-block;
  min-width: 0;
  max-width: 200px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* ===========================
   Context Indicator Styles
   =========================== */
.context-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  border-radius: var(--app-radius-sm, 4px);
  font-size: 0.8em;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  color: var(--app-secondary-foreground);
}

.context-indicator svg {
  width: 20px;
  height: 20px;
}

.context-indicator__track,
.context-indicator__progress {
  fill: none;
  stroke-width: 2.5;
}

.context-indicator__track {
  stroke: var(--app-secondary-foreground);
  opacity: 0.35;
}

.context-indicator__progress {
  stroke: var(--app-secondary-foreground);
  stroke-linecap: round;
}

/* ===========================
   Composer Styles (Input Form)
   =========================== */
.composer-root {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.composer-form {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 680px;
  margin: 0 auto;
  border-radius: var(--app-radius-lg, 8px);
  border: 1px solid var(--app-input-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s;
  z-index: 1;
  background: var(--app-input-secondary-background, var(--app-background-secondary));
  color: var(--app-input-foreground);
}

.composer-form:focus-within {
  border-color: var(--app-primary, #3b82f6);
  box-shadow: 0 1px 2px rgba(59, 130, 246, 0.2);
}

.composer-input {
  flex: 1;
  align-self: stretch;
  padding: 10px 14px;
  outline: none;
  overflow-y: auto;
  position: relative;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
  min-height: 1.5em;
  max-height: 200px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow-x: hidden;
  word-break: break-word;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: var(--vscode-chat-font-size, 13px);
  color: var(--app-input-foreground);
}

.composer-input:empty::before,
.composer-input[data-empty="true"]::before {
  content: attr(data-placeholder);
  color: var(--app-input-placeholder-foreground);
  pointer-events: none;
  position: absolute;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 28px);
}

.composer-input:focus {
  outline: none;
}

.composer-input:disabled,
.composer-input[contenteditable="false"] {
  color: #999;
  cursor: not-allowed;
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  z-index: 1;
  padding: 5px;
  color: var(--app-secondary-foreground);
  border-top: 0.5px solid var(--app-input-border);
}

.composer-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--app-radius-lg, 8px);
  z-index: 0;
  background: var(--app-input-background);
}

/* Send button in composer */
.btn-send-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border-radius: var(--app-radius-sm, 4px);
  background-color: var(--app-primary, #3b82f6);
  color: white;
  border: none;
  cursor: pointer;
}

.btn-send-compact:hover:not(:disabled) {
  filter: brightness(1.1);
}

.btn-send-compact:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===========================
   File Link Styles
   =========================== */
.toolcall-content-wrapper .file-link-path {
  font-size: 0.85em;
  padding-top: 1px;
  word-break: break-all;
  min-width: 0;
  font-family: var(--app-font-mono);
  overflow-wrap: anywhere;
}

/* ===========================
   Icon SVG Styles
   =========================== */
.icon-svg {
  display: block;
}

/* ===========================
   Utility: Line Clamp
   =========================== */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
/**
 * @license
 * Copyright 2025 Qwen Team
 * SPDX-License-Identifier: Apache-2.0
 *
 * Styles for MarkdownRenderer component
 */

.markdown-content {
  /* Base styles for markdown content */
  line-height: 1.6;
  color: var(--app-primary-foreground);
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.markdown-content h1 {
  font-size: 1.75em;
  border-bottom: 1px solid var(--app-primary-border-color);
  padding-bottom: 0.3em;
}

.markdown-content h2 {
  font-size: 1.5em;
  border-bottom: 1px solid var(--app-primary-border-color);
  padding-bottom: 0.3em;
}

.markdown-content h3 {
  font-size: 1.25em;
}

.markdown-content h4 {
  font-size: 1.1em;
}

.markdown-content h5,
.markdown-content h6 {
  font-size: 1em;
}

.markdown-content p {
  margin-top: 0;
}

.markdown-content ul,
.markdown-content ol {
  margin-top: 1em;
  margin-bottom: 1em;
  padding-left: 2em;
}

/* Ensure list markers are visible even with global CSS resets */
.markdown-content ul {
  list-style-type: disc;
  list-style-position: outside;
}

.markdown-content ol {
  list-style-type: decimal;
  list-style-position: outside;
}

/* Nested list styles */
.markdown-content ul ul {
  list-style-type: circle;
}

.markdown-content ul ul ul {
  list-style-type: square;
}

.markdown-content ol ol {
  list-style-type: lower-alpha;
}

.markdown-content ol ol ol {
  list-style-type: lower-roman;
}

/* Style the marker explicitly so themes don't hide it */
.markdown-content li::marker {
  color: var(--app-secondary-foreground);
}

.markdown-content li {
  margin-bottom: 0.25em;
}

.markdown-content li > p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.markdown-content blockquote {
  margin: 0 0 1em;
  padding: 0 1em;
  border-left: 0.25em solid var(--app-primary-border-color);
  color: var(--app-secondary-foreground);
}

.markdown-content a {
  color: var(--app-link-foreground, #007acc);
  text-decoration: none;
}

.markdown-content a:hover {
  color: var(--app-link-active-foreground, #005a9e);
  text-decoration: underline;
}

.markdown-content code {
  font-family: var(
    --app-monospace-font-family,
    'SF Mono',
    Monaco,
    'Cascadia Code',
    'Roboto Mono',
    Consolas,
    'Courier New',
    monospace
  );
  font-size: 0.9em;
  background-color: var(--app-code-background, rgba(0, 0, 0, 0.05));
  border: 1px solid var(--app-primary-border-color);
  border-radius: var(--corner-radius-small, 4px);
  padding: 0.2em 0.4em;
  white-space: pre-wrap; /* Support automatic line wrapping */
  word-break: break-word; /* Break words when necessary */
}

.markdown-content pre {
  margin: 1em 0;
  padding: 1em;
  overflow-x: auto;
  background-color: var(--app-code-background, rgba(0, 0, 0, 0.05));
  border: 1px solid var(--app-primary-border-color);
  border-radius: var(--corner-radius-small, 4px);
  font-family: var(
    --app-monospace-font-family,
    'SF Mono',
    Monaco,
    'Cascadia Code',
    'Roboto Mono',
    Consolas,
    'Courier New',
    monospace
  );
  font-size: 0.9em;
  line-height: 1.5;
}

.markdown-content pre code {
  background: none;
  border: none;
  padding: 0;
  white-space: pre-wrap; /* Support automatic line wrapping */
  word-break: break-word; /* Break words when necessary */
}

.markdown-content .file-path-link {
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(
    --app-monospace-font-family,
    'SF Mono',
    Monaco,
    'Cascadia Code',
    'Roboto Mono',
    Consolas,
    'Courier New',
    monospace
  );
  font-size: 0.95em;
  color: var(--app-link-foreground, #007acc);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.1s ease;
}

.markdown-content .file-path-link:hover {
  color: var(--app-link-active-foreground, #005a9e);
}

.markdown-content hr {
  border: none;
  border-top: 1px solid var(--app-primary-border-color);
  margin: 1.5em 0;
}

.markdown-content img {
  max-width: 100%;
  height: auto;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.markdown-content th,
.markdown-content td {
  padding: 0.5em 1em;
  border: 1px solid var(--app-primary-border-color);
  text-align: left;
}

.markdown-content th {
  background-color: var(--app-secondary-background);
  font-weight: 600;
}
/**
 * @license
 * Copyright 2025 Qwen Team
 * SPDX-License-Identifier: Apache-2.0
 *
 * AssistantMessage Component Styles
 * Pseudo-elements (::before) for bullet points and (::after) for timeline connectors
 */

/* Base assistant message styles */
.assistant-message-container {
  position: relative;
  --timeline-center-offset: 13px;
  padding-left: 30px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 6px;
}

/*
 * Timeline positioning calculation (same as ToolCallContainer):
 * - Container padding-top: 8px
 * - Bullet font-size: 10px, line-height ~10px
 * - Bullet vertical center: 8px + 5px = 13px from top
 * - Line left: 12px (centered under bullet at left: 8px + ~4px offset)
 */

/* Bullet point indicator - all states use same position */
.assistant-message-container.assistant-message-default::before,
.assistant-message-container.assistant-message-success::before,
.assistant-message-container.assistant-message-error::before,
.assistant-message-container.assistant-message-warning::before,
.assistant-message-container.assistant-message-loading::before {
  content: '\25cf';
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 10px;
  line-height: 20px;
  z-index: 1;
}

/* Status colors */
.assistant-message-container.assistant-message-default::before {
  color: var(--app-secondary-foreground);
}

.assistant-message-container.assistant-message-success::before {
  color: #74c991;
}

.assistant-message-container.assistant-message-error::before {
  color: #c74e39;
}

.assistant-message-container.assistant-message-warning::before {
  color: #e1c08d;
}

.assistant-message-container.assistant-message-loading::before {
  color: var(--app-secondary-foreground);
  animation: assistantPulse 1s linear infinite;
}

@keyframes assistantPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Timeline connector line - full height by default */
.assistant-message-container::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--app-primary-border-color, rgba(255, 255, 255, 0.15));
}

/* First item in sequence: connector starts from bullet center */
.assistant-message-container:first-child::after {
  top: var(--timeline-center-offset, 13px);
}

/* Last item in sequence: connector ends at bullet center */
.assistant-message-container:last-child::after {
  bottom: calc(100% - var(--timeline-center-offset, 13px));
}

/* Single item (both first and last): no connector */
.assistant-message-container:first-child:last-child::after {
  display: none;
}

/* Loading state doesn't show timeline */
.assistant-message-container.assistant-message-loading::after {
  display: none;
}
/**
 * @license
 * Copyright 2025 Qwen Team
 * SPDX-License-Identifier: Apache-2.0
 *
 * LayoutComponents.css - Tool call layout styles with timeline support
 */

/* ToolCallContainer with timeline support */
.toolcall-container {
  position: relative;
  --timeline-center-offset: 15px;
  padding-left: 30px;
  padding-top: 8px;
  padding-bottom: 8px;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
  align-items: flex-start;
  border-radius: 6px;
}

/*
 * Timeline positioning calculation:
 * - Container padding-top: 8px
 * - Bullet font-size: 10px, line-height: 20px (to match content height)
 * - Bullet vertical center: 8px (container padding) + 2px (padding-top) + 5px (half of 10px bullet) = 15px from top
 * - Line left: 12px (centered under bullet at left: 8px + ~4px offset)
 */

/* Default timeline connector line - full height */
.toolcall-container::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--app-primary-border-color, rgba(255, 255, 255, 0.15));
}

/* First item in sequence: connector starts from bullet center */
.toolcall-container:first-child::after {
  top: var(--timeline-center-offset, 15px);
}

/* Last item in sequence: connector ends at bullet center */
.toolcall-container:last-child::after {
  bottom: calc(100% - var(--timeline-center-offset, 15px));
}

/* Single item (both first and last): no connector */
.toolcall-container:first-child:last-child::after {
  display: none;
}

/*
 * Status bullet points - all use consistent positioning
 * Following the same calculation as AssistantMessage for consistency
 */
.toolcall-container.toolcall-status-default::before,
.toolcall-container.toolcall-status-success::before,
.toolcall-container.toolcall-status-error::before,
.toolcall-container.toolcall-status-warning::before,
.toolcall-container.toolcall-status-loading::before {
  content: '\25cf';
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 10px;
  line-height: 1.5;
  z-index: 1;
}

/* Status colors */
.toolcall-container.toolcall-status-default::before {
  color: var(--app-secondary-foreground);
}

.toolcall-container.toolcall-status-success::before {
  color: #74c991;
}

.toolcall-container.toolcall-status-error::before {
  color: #c74e39;
}

.toolcall-container.toolcall-status-warning::before {
  color: #e1c08d;
}

.toolcall-container.toolcall-status-loading::before {
  color: var(--app-secondary-foreground);
  animation: toolcallPulse 1s linear infinite;
}

/* Loading animation */
@keyframes toolcallPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Content wrapper */
.toolcall-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

/* Legacy card styles */
.toolcall-card {
  grid-template-columns: auto 1fr;
  gap: var(--spacing-medium);
  background: var(--app-input-background);
  border: 1px solid var(--app-input-border);
  border-radius: var(--border-radius-medium);
  padding: var(--spacing-large);
  margin: var(--spacing-medium) 0;
  align-items: start;
  animation: fadeIn 0.2s ease-in;
}

/* Legacy row styles */
.toolcall-row {
  grid-template-columns: 80px 1fr;
  gap: var(--spacing-medium);
  min-width: 0;
}

.toolcall-row-label {
  font-size: var(--font-size-xs);
  color: var(--app-secondary-foreground);
  font-weight: 500;
  padding-top: 2px;
}

.toolcall-row-content {
  color: var(--app-primary-foreground);
  min-width: 0;
  word-break: break-word;
}

/* Locations list */
.toolcall-locations-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 100%;
}

/* ToolCall header with loading indicator */
.toolcall-header {
  position: relative;
}

.toolcall-header::before {
  content: '\25cf';
  position: absolute;
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  line-height: 1;
  z-index: 1;
  color: #e1c08d;
  animation: toolcallHeaderPulse 1.5s ease-in-out infinite;
}

/* Loading animation for toolcall header */
@keyframes toolcallHeaderPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* In-progress toolcall specific styles */
.in-progress-toolcall .toolcall-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1;
  min-width: 0;
  max-width: 100%;
}

.in-progress-toolcall .toolcall-header {
  display: flex;
  align-items: center;
  gap: 2;
  position: relative;
  min-width: 0;
}

.in-progress-toolcall .toolcall-content-text {
  word-break: break-word;
  white-space: pre-wrap;
  width: 100%;
}
/**
 * @license
 * Copyright 2025 Qwen Team
 * SPDX-License-Identifier: Apache-2.0
 *
 * Shell tool call styles - shared styles for bash/execute variants
 */

/**
 * Bash variant styles (class prefix: bash-*)
 */
.bash-toolcall-card {
  border: 0.5px solid var(--app-input-border);
  border-radius: 5px;
  background: var(--app-tool-background);
  margin: 8px 0;
  max-width: 100%;
  font-size: 1em;
  align-items: start;
}

.bash-toolcall-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px;
}

.bash-toolcall-row {
  display: grid;
  grid-template-columns: max-content 1fr;
  border-top: 0.5px solid var(--app-input-border);
  padding: 4px;
}

.bash-toolcall-row:first-child {
  border-top: none;
}

.bash-toolcall-label {
  grid-column: 1;
  color: var(--app-secondary-foreground);
  text-align: left;
  opacity: 50%;
  padding: 4px 8px 4px 4px;
  font-family: var(--app-font-mono);
  font-size: 0.85em;
}

.bash-toolcall-row-content {
  grid-column: 2;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  padding: 4px;
}

.bash-toolcall-row-content:not(.bash-toolcall-full) {
  max-height: 60px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    var(--app-primary-background) 40px,
    transparent 60px
  );
          mask-image: linear-gradient(
    to bottom,
    var(--app-primary-background) 40px,
    transparent 60px
  );
  overflow: hidden;
}

.bash-toolcall-pre {
  margin-block: 0;
  overflow: hidden;
  font-family: var(--app-font-mono);
  font-size: 0.85em;
}

.bash-toolcall-code {
  margin: 0;
  padding: 0;
  font-family: var(--app-font-mono);
  font-size: 0.85em;
}

.bash-toolcall-output-subtle {
  background-color: var(--app-code-background);
  white-space: pre;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.bash-toolcall-error-content {
  color: #c74e39;
}

.bash-toolcall-row-with-copy {
  position: relative;
  grid-template-columns: max-content 1fr max-content;
}

/**
 * Execute variant styles (class prefix: execute-*)
 */
.execute-toolcall-card {
  border: 0.5px solid var(--app-input-border);
  border-radius: 5px;
  background: var(--app-tool-background);
  margin: 8px 0;
  max-width: 100%;
  font-size: 1em;
  align-items: start;
}

.execute-toolcall-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px;
}

.execute-toolcall-row {
  display: grid;
  grid-template-columns: max-content 1fr;
  border-top: 0.5px solid var(--app-input-border);
  padding: 4px;
}

.execute-toolcall-row:first-child {
  border-top: none;
}

.execute-toolcall-label {
  grid-column: 1;
  color: var(--app-secondary-foreground);
  text-align: left;
  opacity: 50%;
  padding: 4px 8px 4px 4px;
  font-family: var(--app-font-mono);
  font-size: 0.85em;
}

.execute-toolcall-row-content {
  grid-column: 2;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  padding: 4px;
}

.execute-toolcall-row-content:not(.execute-toolcall-full) {
  max-height: 60px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    var(--app-primary-background) 40px,
    transparent 60px
  );
          mask-image: linear-gradient(
    to bottom,
    var(--app-primary-background) 40px,
    transparent 60px
  );
  overflow: hidden;
}

.execute-toolcall-pre {
  margin-block: 0;
  overflow: hidden;
  font-family: var(--app-font-mono);
  font-size: 0.85em;
}

.execute-toolcall-code {
  margin: 0;
  padding: 0;
  font-family: var(--app-font-mono);
  font-size: 0.85em;
}

.execute-toolcall-output-subtle {
  white-space: pre;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.execute-toolcall-error-content {
  color: #c74e39;
}

.execute-toolcall-row-with-copy {
  position: relative;
  grid-template-columns: max-content 1fr max-content;
}
/**
 * @license
 * Copyright 2025 Qwen Team
 * SPDX-License-Identifier: Apache-2.0
 *
 * ChatViewer component styles - matching vscode-ide-companion visual appearance
 * Note: Timeline styles are inherited from shared styles/timeline.css
 */

/* ===========================
   Main Chat Viewer Container
   =========================== */
.chat-viewer-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: var(--app-background, var(--app-primary-background, #1e1e1e));
  color: var(--app-primary-foreground, #cccccc);
  font-family: var(--vscode-chat-font-family, var(--vscode-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif));
  font-size: var(--vscode-chat-font-size, 13px);
  overflow: hidden;
}

/* ===========================
   Messages Container (scrollable)
   =========================== */
.chat-viewer-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  /* Enable smooth scrolling for auto-scroll */
  scroll-behavior: smooth;
}

/* Dark theme scrollbar styling */
.chat-viewer-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-viewer-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-viewer-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.chat-viewer-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Light theme scrollbar styling */
@media (prefers-color-scheme: light) {
  .chat-viewer-container.auto-theme .chat-viewer-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
  }
  
  .chat-viewer-container.auto-theme .chat-viewer-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
  }
}

/* Force light theme scrollbar */
.chat-viewer-container.light-theme .chat-viewer-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
}

.chat-viewer-container.light-theme .chat-viewer-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Message item base styles */
.chat-viewer-messages > * {
  display: flex;
  gap: 0;
  align-items: flex-start;
  text-align: left;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-direction: column;
  position: relative;
  animation: chatViewerFadeIn 0.2s ease-in;
}

.chat-viewer-messages > .chat-viewer-scroll-anchor {
  padding: 0;
  display: block;
}

/* Disable overflow anchoring on individual items for manual scroll control */
.chat-viewer-messages > * {
  overflow-anchor: none;
}

/* User message container spacing */
.chat-viewer-messages .user-message-container:first-child {
  margin-top: 0;
}

/* ===========================
   Animations
   =========================== */
@keyframes chatViewerFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   Empty State
   =========================== */
.chat-viewer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  color: var(--app-secondary-foreground, rgba(255, 255, 255, 0.6));
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.chat-viewer-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.chat-viewer-empty-text {
  max-width: 300px;
  line-height: 1.5;
}

/* ===========================
   Scroll Anchor (for auto-scroll)
   =========================== */
.chat-viewer-scroll-anchor {
  height: 1px;
  overflow-anchor: auto;
}

/* ===========================
   ChatViewer-specific Styles
   =========================== */

/* Better spacing between message groups */
.chat-viewer-messages .user-message-container {
  margin-top: 16px;
}

/* Ensure proper stacking context */
.chat-viewer-messages > * {
  isolation: isolate;
}

/* Responsive adjustments for ChatViewer */
@media (max-width: 600px) {
  .chat-viewer-messages {
    padding: 12px;
  }
}
