/* src/styles/globals.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --app-content-bg: #f8fafd;
  --app-content-max-width: 1280px;
  --app-content-gutter: 16px;
  --app-frame-bg: #ffffff;
  --app-frame-border: #e7ebf0;
  --app-frame-radius: 12px;
  --app-frame-padding: 20px;
  --app-frame-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  --navigation-sidebar-topbar-bg: rgba(255, 255, 255, 0.92);
  --navigation-sidebar-bg: var(--navigation-sidebar-topbar-bg);
  --navigation-sidebar-border: #d7e0ea;
  --navigation-sidebar-topbar-border: #dce5ef;
  --navigation-sidebar-section-divider: #d5deea;
  --navigation-sidebar-footer-border: #e2e8f0;
}
html,
body,
#root {
  height: 100%;
}
body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--app-content-bg, #f6f8fb);
}
.auth-landing-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #0a0e17;
}
.auth-landing-shell__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-landing-shell__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(7, 12, 24, 0.82) 0%,
      rgba(7, 12, 24, 0.64) 40%,
      rgba(7, 12, 24, 0.72) 100%),
    radial-gradient(
      circle at top left,
      rgba(83, 123, 255, 0.22),
      transparent 38%),
    radial-gradient(
      circle at bottom right,
      rgba(112, 230, 201, 0.18),
      transparent 30%);
}
.auth-landing-shell__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
}
.auth-landing-shell__glow--primary {
  top: 8%;
  left: -6%;
  width: 22rem;
  height: 22rem;
  background: rgba(61, 109, 255, 0.45);
}
.auth-landing-shell__glow--secondary {
  right: -4%;
  bottom: 4%;
  width: 18rem;
  height: 18rem;
  background: rgba(76, 201, 240, 0.28);
}
.auth-landing-shell__content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem 5vw;
}
.auth-landing-shell__hero {
  max-width: 40rem;
  color: rgba(244, 247, 255, 0.96);
}
.auth-landing-shell__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(9, 16, 31, 0.34);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(152, 185, 255, 0.92);
  backdrop-filter: blur(10px);
}
.auth-landing-shell__title {
  margin: 0;
  font-family:
    "Noto Serif SC",
    "Songti SC",
    serif;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.auth-landing-shell__description {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(223, 230, 244, 0.82);
}
.auth-landing-shell__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}
.auth-landing-shell__metric {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background:
    linear-gradient(
      180deg,
      rgba(14, 22, 39, 0.62),
      rgba(8, 12, 23, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}
.auth-landing-shell__metric-value {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
}
.auth-landing-shell__metric-label {
  display: block;
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(210, 219, 237, 0.72);
}
.auth-landing-shell__form-pane {
  flex: 0 0 min(28rem, 100%);
  width: min(28rem, 100%);
}
.auth-landing-shell__form-pane .ant-card {
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 28px 80px rgba(3, 8, 20, 0.38);
}
.auth-landing-shell__form-pane .ant-card-body {
  padding: 2rem;
}
.app-content-shell {
  height: 100%;
  overflow: auto;
  background: var(--app-content-bg, #f6f8fb);
}
.app-content-shell__inner {
  max-width: var(--app-shell-max-width, var(--app-content-max-width, 1280px));
  margin: 0 auto;
  padding: var(--app-content-gutter, 16px);
}
.app-content-frame {
  background: var(--app-frame-bg, #ffffff);
  border: 1px solid var(--app-frame-border, #e7ebf0);
  border-radius: var(--app-frame-radius, 12px);
  box-shadow: var(--app-frame-shadow, 0 1px 2px rgba(15, 23, 42, 0.04));
  padding: var(--app-frame-padding, 20px);
}
@media (max-width: 768px) {
  :root {
    --app-content-gutter: 12px;
    --app-frame-padding: 16px;
    --app-frame-radius: 10px;
  }
  .auth-landing-shell__content {
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 1.25rem;
  }
  .auth-landing-shell__hero {
    max-width: 100%;
    text-align: center;
  }
  .auth-landing-shell__metrics {
    grid-template-columns: 1fr;
  }
  .auth-landing-shell__title {
    font-size: 2rem;
  }
  .auth-landing-shell__description {
    font-size: 0.95rem;
    line-height: 1.65;
  }
  .auth-landing-shell__form-pane {
    width: min(28rem, 100%);
  }
  .auth-landing-shell__form-pane .ant-card {
    border-radius: 1rem;
  }
  .auth-landing-shell__form-pane .ant-card-body {
    padding: 1.25rem;
  }
}

/* packages/app-host/src/client/content-shell.css */
.host-content-shell {
  height: 100%;
  overflow: auto;
  background: var(--host-content-bg, var(--app-content-bg, var(--auth-content-bg, #f6f8fb)));
}
.host-content-shell__inner {
  max-width: var(--host-content-max-width, var(--app-shell-max-width, var(--auth-shell-max-width, var(--auth-content-max-width, 1280px))));
  margin: 0 auto;
  padding: var(--host-content-gutter, var(--auth-content-gutter, 16px));
}
.host-content-frame {
  background: var(--host-frame-bg, var(--auth-frame-bg, #ffffff));
  border: 1px solid var(--host-frame-border, var(--auth-frame-border, #e7ebf0));
  border-radius: var(--host-frame-radius, var(--auth-frame-radius, 12px));
  box-shadow: var(--host-frame-shadow, var(--auth-frame-shadow, 0 1px 2px rgba(15, 23, 42, 0.04)));
  padding: var(--host-frame-padding, var(--auth-frame-padding, 20px));
}
@media (max-width: 768px) {
  .host-content-shell__inner {
    padding: 12px;
  }
  .host-content-frame {
    border-radius: 10px;
    padding: 16px;
  }
}

/* node_modules/react-image-crop/dist/ReactCrop.css */
@keyframes marching-ants {
  0% {
    background-position:
      0 0,
      0 100%,
      0 0,
      100% 0;
  }
  to {
    background-position:
      20px 0,
      -20px 100%,
      0 -20px,
      100% 20px;
  }
}
:root {
  --rc-drag-handle-size: 12px;
  --rc-drag-handle-mobile-size: 24px;
  --rc-drag-handle-bg-colour: rgba(0, 0, 0, .2);
  --rc-drag-bar-size: 6px;
  --rc-border-color: rgba(255, 255, 255, .7);
  --rc-focus-color: #0088ff;
}
.ReactCrop {
  position: relative;
  display: inline-block;
  cursor: crosshair;
  max-width: 100%;
}
.ReactCrop *,
.ReactCrop *:before,
.ReactCrop *:after {
  box-sizing: border-box;
}
.ReactCrop--disabled,
.ReactCrop--locked {
  cursor: inherit;
}
.ReactCrop__child-wrapper {
  overflow: hidden;
  max-height: inherit;
}
.ReactCrop__child-wrapper > img,
.ReactCrop__child-wrapper > video {
  display: block;
  max-width: 100%;
  max-height: inherit;
}
.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper > img,
.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper > video {
  touch-action: none;
}
.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__crop-selection {
  touch-action: none;
}
.ReactCrop__crop-mask {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  width: calc(100% + .5px);
  height: calc(100% + .5px);
}
.ReactCrop__crop-selection {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateZ(0);
  cursor: move;
}
.ReactCrop--disabled .ReactCrop__crop-selection {
  cursor: inherit;
}
.ReactCrop--circular-crop .ReactCrop__crop-selection {
  border-radius: 50%;
}
.ReactCrop--circular-crop .ReactCrop__crop-selection:after {
  pointer-events: none;
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: -1px;
  left: -1px;
  border: 1px solid var(--rc-border-color);
  opacity: .3;
}
.ReactCrop--no-animate .ReactCrop__crop-selection {
  outline: 1px dashed white;
}
.ReactCrop__crop-selection:not(.ReactCrop--no-animate .ReactCrop__crop-selection) {
  animation: marching-ants 1s;
  background-image:
    linear-gradient(
      to right,
      #fff 50%,
      #444 50%),
    linear-gradient(
      to right,
      #fff 50%,
      #444 50%),
    linear-gradient(
      to bottom,
      #fff 50%,
      #444 50%),
    linear-gradient(
      to bottom,
      #fff 50%,
      #444 50%);
  background-size:
    10px 1px,
    10px 1px,
    1px 10px,
    1px 10px;
  background-position:
    0 0,
    0 100%,
    0 0,
    100% 0;
  background-repeat:
    repeat-x,
    repeat-x,
    repeat-y,
    repeat-y;
  color: #fff;
  animation-play-state: running;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.ReactCrop__crop-selection:focus {
  outline: 2px solid var(--rc-focus-color);
  outline-offset: -1px;
}
.ReactCrop--invisible-crop .ReactCrop__crop-mask,
.ReactCrop--invisible-crop .ReactCrop__crop-selection {
  display: none;
}
.ReactCrop__rule-of-thirds-vt:before,
.ReactCrop__rule-of-thirds-vt:after,
.ReactCrop__rule-of-thirds-hz:before,
.ReactCrop__rule-of-thirds-hz:after {
  content: "";
  display: block;
  position: absolute;
  background-color: #fff6;
}
.ReactCrop__rule-of-thirds-vt:before,
.ReactCrop__rule-of-thirds-vt:after {
  width: 1px;
  height: 100%;
}
.ReactCrop__rule-of-thirds-vt:before {
  left: 33.3333333333%;
}
.ReactCrop__rule-of-thirds-vt:after {
  left: 66.6666666667%;
}
.ReactCrop__rule-of-thirds-hz:before,
.ReactCrop__rule-of-thirds-hz:after {
  width: 100%;
  height: 1px;
}
.ReactCrop__rule-of-thirds-hz:before {
  top: 33.3333333333%;
}
.ReactCrop__rule-of-thirds-hz:after {
  top: 66.6666666667%;
}
.ReactCrop__drag-handle {
  position: absolute;
  width: var(--rc-drag-handle-size);
  height: var(--rc-drag-handle-size);
  background-color: var(--rc-drag-handle-bg-colour);
  border: 1px solid var(--rc-border-color);
}
.ReactCrop__drag-handle:focus {
  background: var(--rc-focus-color);
}
.ReactCrop .ord-nw {
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  cursor: nw-resize;
}
.ReactCrop .ord-n {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: n-resize;
}
.ReactCrop .ord-ne {
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
  cursor: ne-resize;
}
.ReactCrop .ord-e {
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
  cursor: e-resize;
}
.ReactCrop .ord-se {
  bottom: 0;
  right: 0;
  transform: translate(50%, 50%);
  cursor: se-resize;
}
.ReactCrop .ord-s {
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  cursor: s-resize;
}
.ReactCrop .ord-sw {
  bottom: 0;
  left: 0;
  transform: translate(-50%, 50%);
  cursor: sw-resize;
}
.ReactCrop .ord-w {
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  cursor: w-resize;
}
.ReactCrop__disabled .ReactCrop__drag-handle {
  cursor: inherit;
}
.ReactCrop__drag-bar {
  position: absolute;
}
.ReactCrop__drag-bar.ord-n {
  top: 0;
  left: 0;
  width: 100%;
  height: var(--rc-drag-bar-size);
  transform: translateY(-50%);
}
.ReactCrop__drag-bar.ord-e {
  right: 0;
  top: 0;
  width: var(--rc-drag-bar-size);
  height: 100%;
  transform: translate(50%);
}
.ReactCrop__drag-bar.ord-s {
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--rc-drag-bar-size);
  transform: translateY(50%);
}
.ReactCrop__drag-bar.ord-w {
  top: 0;
  left: 0;
  width: var(--rc-drag-bar-size);
  height: 100%;
  transform: translate(-50%);
}
.ReactCrop--new-crop .ReactCrop__drag-bar,
.ReactCrop--new-crop .ReactCrop__drag-handle,
.ReactCrop--fixed-aspect .ReactCrop__drag-bar,
.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-n,
.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-e,
.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-s,
.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-w {
  display: none;
}
@media (pointer: coarse) {
  .ReactCrop .ord-n,
  .ReactCrop .ord-e,
  .ReactCrop .ord-s,
  .ReactCrop .ord-w {
    display: none;
  }
  .ReactCrop__drag-handle {
    width: var(--rc-drag-handle-mobile-size);
    height: var(--rc-drag-handle-mobile-size);
  }
}

/* packages/jsonform/src/widgets/TableEditor.css */
.table-editor {
  background: var(--background-base-color, #fff);
  border-radius: 6px;
  padding-bottom: 8px;
  position: relative;
  overflow: visible;
  max-width: 100%;
}
.table-editor-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent !important;
}
.table-editor .ant-table-container {
  overflow: visible !important;
  border: none !important;
  border-radius: 6px !important;
  background: var(--background-base-color, #fff) !important;
  box-shadow: none !important;
}
.table-editor .ant-table-content {
  overflow: visible !important;
  border-radius: 6px !important;
}
.table-editor .ant-table-body {
  overflow: visible !important;
}
.table-editor .ant-table-wrapper {
  overflow: visible !important;
  border: 1px solid var(--border-color, #d9d9d9) !important;
  border-radius: 6px !important;
  background: var(--background-base-color, #fff) !important;
}
.table-editor .ant-table,
.table-editor .ant-table-content table {
  background: transparent !important;
}
.table-editor .ant-select-dropdown {
  z-index: 1050 !important;
}
.table-editor .ant-select {
  overflow: visible !important;
}
.table-editor .ant-table-cell {
  overflow: visible !important;
}
.table-editor .ant-table-tbody .ant-table-cell {
  padding: 2px !important;
}
.table-editor-table .ant-table-thead > tr > th {
  background: var(--background-layer-color, #fafafa);
  color: var(--text-primary-color, rgba(0, 0, 0, 0.88));
  font-weight: 500;
  border-bottom: 1px solid var(--border-color, #d9d9d9) !important;
}
.table-editor-table .ant-table-tbody > tr > td {
  border-bottom: 1px solid var(--border-color, #d9d9d9) !important;
  padding: 4px 8px;
}
.table-editor-table .ant-table-tbody > tr:last-child > td {
  border-bottom: none !important;
}
.table-editor-table .ant-table-tbody > tr:last-child > td:first-child {
  border-bottom-left-radius: 6px;
}
.table-editor-table .ant-table-tbody > tr:last-child > td:last-child {
  border-bottom-right-radius: 6px;
}
.table-editor-table .ant-table-tbody > tr:hover > td {
  background: transparent !important;
}
.table-editor-add-row {
  border: 1px dashed var(--border-color, #d9d9d9);
  color: var(--text-secondary-color, rgba(0, 0, 0, 0.45));
  transition: var(--theme-transition, all 0.3s);
}
.table-editor-add-row:hover {
  border-color: var(--primary-color, #1677ff);
  color: var(--primary-color, #1677ff);
}
.table-editor-table .ant-input,
.table-editor-table .ant-input-number,
.table-editor-table .ant-select-selector {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 2px 4px !important;
  outline: none !important;
}
.table-editor-table .table-editor-enum-cell .ant-select-selector,
.table-editor-table .table-editor-enum-cell .ant-select-focused .ant-select-selector,
.table-editor-table .table-editor-enum-cell .ant-select:hover .ant-select-selector,
.table-editor-table .table-editor-enum-cell .ant-select-open .ant-select-selector {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
.table-editor-table .table-editor-enum-cell .ant-select,
.table-editor-table .table-editor-enum-cell .ant-select:hover,
.table-editor-table .table-editor-enum-cell .ant-select-focused,
.table-editor-table .table-editor-enum-cell .ant-select-open {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  outline: none !important;
}
.table-editor-table .table-editor-enum-cell .ant-select-arrow,
.table-editor-table .table-editor-enum-cell .ant-select-suffix {
  opacity: 0 !important;
  transition: opacity 0.15s ease;
}
.table-editor-table .table-editor-enum-cell:hover .ant-select-arrow,
.table-editor-table .table-editor-enum-cell:hover .ant-select-suffix,
.table-editor-table .table-editor-enum-cell .ant-select-focused .ant-select-arrow,
.table-editor-table .table-editor-enum-cell .ant-select-focused .ant-select-suffix,
.table-editor-table .table-editor-enum-cell .ant-select-open .ant-select-arrow,
.table-editor-table .table-editor-enum-cell .ant-select-open .ant-select-suffix,
.table-editor-table .table-editor-enum-cell .ant-select:hover .ant-select-arrow,
.table-editor-table .table-editor-enum-cell .ant-select:hover .ant-select-suffix {
  opacity: 1 !important;
}
.table-editor-table .ant-input:-webkit-autofill,
.table-editor-table .ant-input:-webkit-autofill:hover,
.table-editor-table .ant-input:-webkit-autofill:focus,
.table-editor-table .ant-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  box-shadow: 0 0 0 1000px transparent inset !important;
  background-color: transparent !important;
  background-image: none !important;
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}
.table-editor-table input:-webkit-autofill,
.table-editor-table input:-webkit-autofill:hover,
.table-editor-table input:-webkit-autofill:focus,
.table-editor-table input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  box-shadow: 0 0 0 1000px transparent inset !important;
  background-color: transparent !important;
  background-image: none !important;
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  transition: background-color 5000s ease-in-out 0s;
}
.table-editor-table input {
  background: transparent !important;
  background-color: transparent !important;
}
.table-editor-table .ant-input:focus,
.table-editor-table .ant-input-number:focus,
.table-editor-table .ant-select-focused .ant-select-selector,
.table-editor-table .ant-input:hover,
.table-editor-table .ant-input-number:hover,
.table-editor-table .ant-select:hover .ant-select-selector {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.table-editor-table .ant-input-status-error,
.table-editor-table .ant-input-number-status-error,
.table-editor-table .ant-select-status-error .ant-select-selector {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
.table-editor-table .ant-input-number-affix-wrapper.ant-input-number-status-error .ant-input-number-suffix .ant-form-item-feedback-icon,
.table-editor-table .ant-input-affix-wrapper.ant-input-status-error .ant-input-suffix .ant-form-item-feedback-icon,
.table-editor-table .ant-form-item-feedback-icon-error {
  color: var(--warning-color, #faad14) !important;
}
.table-editor-table .ant-input-number-affix-wrapper.ant-input-number-status-error,
.table-editor-table .ant-input-affix-wrapper.ant-input-status-error {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
.table-editor-table .ant-input-number-affix-wrapper.ant-input-number-status-error .ant-input-number,
.table-editor-table .ant-input-number-affix-wrapper.ant-input-number-status-error .ant-input-number-input {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
.table-editor-table .table-cell-error {
  background-color: var(--background-layer-color, #fafafa) !important;
}
.table-editor-required {
  color: var(--warning-color, #faad14);
  margin-left: 2px;
}
.table-editor-table.ant-table-small .ant-table-tbody > tr > td {
  padding: 2px 4px;
}
.table-editor-table .ant-btn-sm {
  padding: 0;
  width: 24px;
  height: 24px;
  line-height: 22px;
}

/* packages/agent-sdk/src/ui/styles/chat.css */
:root {
  --chat-primary-color: #1677ff;
  --chat-primary-hover: #4096ff;
  --chat-primary-active: #0958d9;
  --chat-primary-light: #e6f4ff;
  --chat-success-color: #52c41a;
  --chat-warning-color: #f5222d;
  --chat-text-primary: #000;
  --chat-text-secondary: #595959;
  --chat-text-disabled: #bfbfbf;
  --chat-bg-base: #fff;
  --chat-bg-elevated: #fafafa;
  --chat-bg-layer: #f5f5f5;
  --chat-bg-hover: #f0f0f0;
  --chat-border-color: #f0f0f0;
  --chat-radius: 6px;
  --chat-font:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  --chat-font-mono:
    Consolas,
    Monaco,
    "Andale Mono",
    "Ubuntu Mono",
    monospace;
}
@keyframes chat-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes chat-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
@keyframes chat-bounce-dot {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
}
@keyframes chat-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: relative;
  font-family: var(--chat-font);
  font-size: 13px;
}
.chat-panel-header {
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
}
.chat-session-title {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-header-bar {
  position: relative;
  z-index: 21;
  height: var(--workspace-panel-header-height, 44px);
  min-height: var(--workspace-panel-header-height, 44px);
  padding: 0 14px;
  background: transparent;
  border-bottom: 1px solid #e3e8ef;
  box-sizing: border-box;
}
.chat-header-bar__inner {
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.chat-header-bar__title {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: rgba(0, 0, 0, 0.88);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  transform: translateY(-0.5px);
}
.chat-header-bar__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.chat-header-model-switcher {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: min(360px, 45vw);
  position: relative;
  z-index: 22;
}
.chat-header-chip {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
  background: var(--chat-bg-layer);
  color: var(--chat-text-secondary);
}
.chat-header-chip--ok {
  background: #f6ffed;
  color: #389e0d;
}
.chat-header-chip--warn {
  background: #fffbe6;
  color: #ad6800;
}
.chat-header-chip--compact {
  background: #e6f4ff;
  color: #0958d9;
}
.chat-header-chip--todo {
  background: #f0f5ff;
  color: #1d39c4;
}
.chat-header-chip--model {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 20px 16px 20px 12px;
  scrollbar-gutter: stable;
}
.chat-messages-inner {
  display: flex;
  flex-direction: column;
  padding-right: 4px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  color: var(--chat-text-disabled);
  user-select: none;
}
.chat-empty-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      var(--chat-primary-light),
      #e8ecf4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-empty-icon svg {
  width: 28px;
  height: 28px;
  color: var(--chat-primary-color);
}
.chat-empty-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--chat-text-secondary);
  margin-bottom: 4px;
}
.chat-empty-sub {
  font-size: 13px;
  color: var(--chat-text-disabled);
}
.chat-msg {
  width: 100%;
  padding: 2px 0;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 6px;
}
.chat-msg--user {
  justify-content: flex-end;
}
.chat-msg-content {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 95%;
  min-width: 0;
}
.chat-msg-content:not(.chat-msg-content--user) {
  width: 100%;
  max-width: 100%;
  gap: 4px;
}
.chat-msg-content--user {
  min-width: 0;
  justify-content: flex-end;
  width: 95%;
}
.chat-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.chat-avatar--agent {
  background: var(--chat-primary-color);
  color: #fff;
}
.chat-avatar--agent svg {
  width: 18px;
  height: 18px;
}
.chat-avatar--user {
  background: var(--chat-bg-layer);
  color: var(--chat-text-secondary);
}
.chat-avatar--user svg {
  width: 18px;
  height: 18px;
}
.chat-bubble {
  background: transparent;
  color: var(--chat-text-primary);
  padding: 8px 12px;
  line-height: 1.8;
  word-break: break-word;
  min-width: 0;
  flex: 1;
  max-width: 100%;
  position: relative;
  container-type: inline-size;
}
.chat-bubble--user {
  background: #e8f0fe;
  color: var(--chat-text-primary);
  border-radius: 12px;
  flex: 0 1 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  max-width: min(100%, 344px);
  container-type: normal;
  transition: box-shadow 0.2s ease;
}
.chat-bubble--user:hover {
  box-shadow: 0 2px 8px var(--chat-text-disabled);
}
.chat-bubble h1,
.chat-bubble h2,
.chat-bubble h3,
.chat-bubble h4,
.chat-bubble h5,
.chat-bubble h6,
.chat-bubble p,
.chat-bubble ol,
.chat-bubble ul,
.chat-bubble dl,
.chat-bubble blockquote,
.chat-bubble pre,
.chat-bubble figure {
  margin-bottom: 0;
}
.chat-bubble p {
  margin: 0.4em 0;
}
.chat-bubble p:first-child {
  margin-top: 0;
}
.chat-bubble p:last-child {
  margin-bottom: 0;
}
.chat-bubble ul,
.chat-bubble ol {
  margin: 0.4em 0;
  padding-left: 1.5em;
}
.chat-bubble blockquote {
  margin: 0.5em 0;
  padding-left: 12px;
  border-left: 3px solid var(--chat-border-color);
  color: var(--chat-text-secondary);
}
.chat-bubble a {
  color: var(--chat-primary-color);
}
.chat-bubble a:hover {
  color: var(--chat-primary-hover);
}
.chat-bubble table {
  border-collapse: collapse;
  margin: 8px 0;
  width: 100%;
}
.chat-bubble th,
.chat-bubble td {
  border: 1px solid var(--chat-border-color);
  padding: 8px;
}
.chat-bubble th {
  background: var(--chat-bg-elevated);
  font-weight: 500;
}
.chat-bubble code {
  background: var(--chat-bg-layer);
  padding: 0.2em 0.4em;
  margin: 0;
  border-radius: 4px;
  font-size: 85%;
  font-family: var(--chat-font-mono);
}
.chat-bubble pre code {
  background: transparent;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
  display: block;
  border-radius: 0;
}
.chat-codeblock {
  position: relative;
  overflow: hidden;
  border-radius: var(--chat-radius);
  background: #1e1e1e;
  color: #d4d4d4;
  font-size: 13px;
  margin: 8px 0;
  width: fit-content;
  max-width: 100%;
}
.chat-codeblock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #2d2d2d;
  font-size: 12px;
  color: #999;
}
.chat-codeblock-copy {
  opacity: 0;
  transition: opacity 0.15s;
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: inherit;
}
.chat-codeblock:hover .chat-codeblock-copy {
  opacity: 1;
}
.chat-codeblock-copy:hover {
  background: #444;
  color: #fff;
}
.chat-codeblock pre {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
}
.chat-codeblock pre code {
  font-family: var(--chat-font-mono);
  font-size: 12px;
  line-height: 1.5;
  background: none;
  padding: 0;
  color: inherit;
}
.chat-codeblock-cm {
  overflow: auto;
}
.chat-codeblock-cm .cm-editor {
  background: transparent;
}
.chat-codeblock-custom {
  display: flex;
  justify-content: center;
  margin: 8px 0;
  overflow: auto;
}
.chat-codeblock-custom svg {
  max-width: 100%;
  height: auto;
}
.chat-codeblock-custom pre {
  margin: 0;
  padding: 12px;
  white-space: pre-wrap;
  color: #999;
  font-family: var(--chat-font-mono);
  font-size: 12px;
}
.chat-thinking-block {
  font-size: 13px;
  margin: 4px 0;
}
.chat-thinking-header {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
  color: var(--chat-text-secondary);
}
.chat-thinking-chevron {
  display: inline-block;
  font-size: 10px;
  transition: transform 0.2s ease;
  color: var(--chat-text-disabled);
}
.chat-thinking-block--open .chat-thinking-chevron {
  transform: rotate(90deg);
}
.chat-thinking-title {
  font-size: 13px;
  color: var(--chat-text-secondary);
}
.chat-thinking-title--shimmer {
  background:
    linear-gradient(
      90deg,
      var(--chat-text-secondary) 25%,
      var(--chat-text-disabled) 50%,
      var(--chat-text-secondary) 75%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chat-shimmer 2s linear infinite;
}
.chat-thinking-content {
  margin-top: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--chat-border-color);
  color: var(--chat-text-secondary);
}
.chat-thinking-content .chat-bubble {
  padding: 4px 8px;
}
.chat-thinking-redacted {
  font-style: italic;
  color: var(--chat-text-disabled);
}
.chat-usage {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--chat-text-disabled);
  margin-top: 8px;
  user-select: none;
  width: 100%;
  min-width: 0;
}
.chat-usage-tokens {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-usage-model {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.chat-usage svg {
  width: 12px;
  height: 12px;
}
.chat-error-block {
  margin-top: 8px;
  padding: 10px 12px;
  background: #fff1f0;
  color: #cf1322;
  border-radius: var(--chat-radius);
  font-size: 13px;
}
.chat-aborted {
  font-size: 13px;
  color: var(--chat-warning-color);
  font-style: italic;
}
.chat-typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  margin-left: 12px;
}
.chat-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--chat-text-disabled);
}
.chat-typing-dot:nth-child(1) {
  animation: chat-bounce-dot 1.4s infinite ease-in-out 0s;
}
.chat-typing-dot:nth-child(2) {
  animation: chat-bounce-dot 1.4s infinite ease-in-out 0.2s;
}
.chat-typing-dot:nth-child(3) {
  animation: chat-bounce-dot 1.4s infinite ease-in-out 0.4s;
}
.chat-cursor {
  display: inline-block;
  width: 5px;
  height: 16px;
  background: var(--chat-text-disabled);
  border-radius: 2px;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: chat-pulse 1s infinite;
}
.chat-input-area {
  position: sticky;
  bottom: 0;
  width: 100%;
  background: var(--chat-bg-base);
  border-top: 1px solid var(--chat-border-color);
  z-index: 10;
}
.chat-context-bar {
  height: 3px;
  width: 100%;
  background: transparent;
  cursor: default;
}
.chat-context-bar-fill {
  height: 100%;
  background: var(--chat-accent-color, #1677ff);
  opacity: 0.35;
  transition:
    width 0.4s ease,
    background 0.3s,
    opacity 0.3s;
  border-radius: 0 1.5px 1.5px 0;
}
.chat-context-bar-fill--warn {
  background: #faad14;
  opacity: 0.6;
}
.chat-context-bar-fill--danger {
  background: #ff4d4f;
  opacity: 0.8;
}
.chat-scroll-bottom {
  position: absolute;
  top: -44px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--chat-border-color);
  background: var(--chat-bg-base);
  color: var(--chat-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  z-index: 11;
}
.chat-scroll-bottom:hover {
  background: var(--chat-bg-hover);
  color: var(--chat-primary-color);
}
.chat-input-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 20px;
  max-width: 900px;
  margin: 0 auto;
}
.chat-input-inner--drag-active {
  background:
    linear-gradient(
      180deg,
      rgba(22, 119, 255, 0.06),
      rgba(22, 119, 255, 0.02));
  box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.2);
  border-radius: 12px;
}
.chat-input-previews {
  display: flex;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
}
.chat-input-preview-card {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--chat-border-color);
  background: var(--chat-bg-elevated);
}
.chat-input-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-input-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}
.chat-input-error {
  width: 100%;
  font-size: 12px;
  color: var(--chat-warning-color);
}
.chat-btn-attach {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--chat-border-color);
  border-radius: 8px;
  background: var(--chat-bg-base);
  color: var(--chat-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.chat-btn-attach svg {
  width: 16px;
  height: 16px;
}
.chat-btn-attach:hover:not(:disabled) {
  border-color: var(--chat-primary-color);
  color: var(--chat-primary-color);
}
.chat-btn-attach:disabled {
  background: var(--chat-bg-layer);
  color: var(--chat-text-disabled);
  cursor: not-allowed;
}
.chat-model-selector {
  width: 100%;
  padding: 0 0 2px;
  position: relative;
}
.chat-header-model-switcher .chat-model-selector {
  width: auto;
  padding: 0;
}
.chat-header-model-switcher .chat-model-trigger {
  max-width: min(360px, 45vw);
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--chat-bg-layer);
}
.chat-header-model-switcher .chat-model-trigger:hover {
  background: var(--chat-bg-hover);
}
.chat-header-model-switcher .chat-model-dropdown {
  top: calc(100% + 6px);
  bottom: auto;
  left: auto;
  right: 0;
}
.chat-model-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  font-size: 10px;
  color: var(--chat-text-secondary);
  font-family: var(--chat-font);
  cursor: pointer;
  outline: none;
  padding: 2px 4px;
  border-radius: 4px;
  max-width: 100%;
}
.chat-model-trigger:hover {
  background: var(--chat-bg-hover);
}
.chat-model-trigger-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-model-trigger-arrow {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.chat-model-trigger-arrow.open {
  transform: rotate(180deg);
}
.chat-model-dropdown {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--chat-bg-base);
  border: 1px solid var(--chat-border-color);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  z-index: 1200;
  padding: 4px 0;
}
.chat-model-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--chat-text-primary);
  position: sticky;
  top: 0;
  background: var(--chat-bg-base);
  z-index: 1;
  user-select: none;
}
.chat-model-group-header:hover {
  background: var(--chat-bg-hover);
}
.chat-model-group-header.has-selected {
  color: var(--chat-primary-color);
}
.chat-model-group-arrow {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.chat-model-group-arrow.expanded {
  transform: rotate(90deg);
}
.chat-model-group-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-model-group-count {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--chat-text-disabled);
  background: var(--chat-bg-layer);
  padding: 0 5px;
  border-radius: 8px;
  line-height: 16px;
}
.chat-model-group-items {
  padding: 0 0 2px;
}
.chat-model-item {
  padding: 5px 12px 5px 28px;
  font-size: 12px;
  color: var(--chat-text-secondary);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-model-item:hover {
  background: var(--chat-bg-hover);
  color: var(--chat-text-primary);
}
.chat-model-item.selected {
  color: var(--chat-primary-color);
  background: var(--chat-primary-light);
}
.chat-input-inner textarea {
  flex: 1;
  resize: none;
  overflow: hidden;
  border: 1px solid var(--chat-border-color);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--chat-font);
  line-height: 1.6;
  outline: none;
  background: var(--chat-bg-base);
  color: var(--chat-text-primary);
  transition: border-color 0.2s;
}
.chat-input-inner textarea:focus {
  border-color: var(--chat-primary-color);
}
.chat-input-inner textarea::placeholder {
  color: var(--chat-text-disabled);
}
.chat-input-inner textarea:disabled {
  background: var(--chat-bg-elevated);
  color: var(--chat-text-disabled);
}
.chat-btn-send {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--chat-font);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--chat-primary-color);
  color: #fff;
}
.chat-btn-send:hover {
  background: var(--chat-primary-hover);
}
.chat-btn-send:disabled {
  background: var(--chat-bg-layer);
  color: var(--chat-text-disabled);
  cursor: not-allowed;
}
.chat-btn-stop {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-btn-stop::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--chat-text-disabled);
  border-top-color: var(--chat-primary-color);
  border-radius: 50%;
  animation: chat-spin 1s linear infinite;
}
.chat-btn-stop-inner {
  width: 20px;
  height: 20px;
  background: var(--chat-primary-color);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 2;
}
.chat-btn-stop-inner:hover {
  background: var(--chat-warning-color);
  transform: scale(1.1);
}
.chat-btn-stop-inner:active {
  transform: scale(0.95);
}
.chat-btn-stop-inner svg {
  width: 8px;
  height: 8px;
}
.chat-user-image-wrap {
  margin-top: 8px;
}
.chat-user-image-wrap:first-child {
  margin-top: 0;
}
.chat-user-image-button {
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}
.chat-user-image {
  display: block;
  max-width: min(320px, 100%);
  max-height: 240px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.chat-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 14, 20, 0.78);
  backdrop-filter: blur(8px);
}
.chat-image-viewer__dialog {
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.chat-image-viewer__image {
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 56px);
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.04);
}
.chat-image-viewer__actions {
  display: flex;
  justify-content: center;
}
.chat-image-viewer__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(4px);
}
.chat-image-viewer__link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.chat-image-viewer__close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.chat-image-viewer__close:hover {
  background: rgba(15, 23, 42, 0.96);
}
.todo-panel {
  position: relative;
  z-index: 4;
  border-bottom: 1px solid var(--chat-border-color);
  background: var(--chat-bg-color);
  font-size: 13px;
}
.todo-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 16px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--chat-text-color);
  font-size: 13px;
  text-align: left;
}
.todo-panel-header:hover {
  background: var(--chat-hover-bg);
}
.todo-panel-icon {
  font-size: 10px;
  color: var(--chat-text-muted);
  flex-shrink: 0;
}
.todo-panel-summary {
  white-space: nowrap;
  flex-shrink: 0;
}
.todo-panel-bar-wrap {
  flex: 1;
  height: 4px;
  background: var(--chat-border-color);
  border-radius: 2px;
  overflow: hidden;
  min-width: 40px;
}
.todo-panel-bar-fill {
  display: block;
  height: 100%;
  background: var(--chat-primary-color);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.todo-panel-list {
  list-style: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 12px;
  right: 12px;
  z-index: 8;
  margin: 0;
  padding: 10px 16px 12px 16px;
  border: 1px solid var(--chat-border-color);
  border-radius: 10px;
  background: color-mix(in srgb, var(--chat-bg-base) 96%, #f5f9ff 4%);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  max-height: min(40vh, 320px);
  overflow: auto;
}
.todo-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 3px 0;
  color: var(--chat-text-color);
}
.todo-panel-item--done {
  color: var(--chat-text-muted);
  text-decoration: line-through;
}
.todo-panel-check {
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}
.todo-panel-item--done .todo-panel-check {
  color: var(--chat-primary-color);
}
.todo-panel-text {
  line-height: 1.5;
}

/* packages/schemaeditor/src/SchemaEditor.css */
.schema-editor {
  min-height: 60px;
  position: relative;
}
.schema-editor-empty {
  text-align: center;
  padding: 20px 0;
  color: var(--text-disabled-color, rgba(0, 0, 0, 0.25));
}
.schema-editor-empty-text {
  font-style: italic;
}
.schema-property {
  margin-bottom: 12px;
  padding: 8px;
  background: var(--background-base-color, #fff);
  border-radius: 5px;
  border: 1px solid var(--border-color, #d9d9d9);
  position: relative;
}
.schema-property:last-child {
  margin-bottom: 8px;
}
.schema-property-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.schema-name-input {
  width: 27% !important;
  flex-shrink: 0;
}
.schema-colon {
  color: var(--text-primary-color, rgba(0, 0, 0, 0.88));
  font-weight: 500;
}
.schema-type-select {
  width: 90px !important;
  flex-shrink: 0;
}
.schema-default-input {
  flex: 1;
  min-width: 100px;
  margin-left: 8px;
}
.schema-array-btn {
  flex-shrink: 0;
  min-width: 28px;
}
.schema-dots {
  flex: 1;
  text-align: center;
  color: var(--border-color, #d9d9d9);
  font-size: 12px;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
  min-width: 20px;
}
.schema-required-check {
  flex-shrink: 0;
}
.schema-delete-btn {
  position: absolute;
  top: -12px;
  right: -12px;
  flex-shrink: 0;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px;
  padding: 0 !important;
  border-radius: 50% !important;
  opacity: 0;
  transition: opacity 0.2s ease;
  background-color: var(--warning-color, #faad14) !important;
  border-color: var(--warning-color, #faad14) !important;
  color: var(--warning-light-color, #fff) !important;
  z-index: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.schema-delete-btn:hover,
.schema-delete-btn:focus {
  background-color: var(--warning-hover-color, #ffc53d) !important;
  border-color: var(--warning-hover-color, #ffc53d) !important;
  color: var(--warning-light-color, #fff) !important;
}
.schema-property:hover > .schema-delete-btn {
  opacity: 1;
}
.schema-property:has(.object-properties-section :hover) > .schema-delete-btn {
  opacity: 0 !important;
}
.schema-property.has-hovered-child > .schema-delete-btn {
  opacity: 0 !important;
}
.schema-description-row {
  margin-bottom: 4px;
  padding-left: 24px;
}
.schema-description-input {
  border: 1px solid transparent !important;
  background: transparent !important;
  padding: 2px 8px !important;
  font-style: italic;
  color: var(--text-secondary-color, rgba(0, 0, 0, 0.45));
  font-size: 12px;
  box-shadow: none !important;
  border-radius: 5px !important;
  transition: all 0.2s;
}
.schema-description-input:focus {
  border: 1px solid var(--primary-color, #1677ff) !important;
  background: var(--background-base-color, #fff) !important;
  border-radius: 5px !important;
  padding: 2px 8px !important;
  box-shadow: 0 0 0 2px var(--primary-light-color, rgba(22, 119, 255, 0.1)) !important;
  font-style: normal;
}
.schema-constraints-row {
  padding-left: 24px;
}
.schema-constraints-text {
  font-size: 11px;
  color: var(--text-disabled-color, rgba(0, 0, 0, 0.25));
  font-style: italic;
}
.schema-constraints-inputs {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 4px;
  flex-wrap: nowrap;
}
.constraint-label {
  font-size: 11px;
  color: var(--text-secondary-color, rgba(0, 0, 0, 0.45));
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 30px;
}
.constraint-clickable {
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
}
.constraint-clickable:hover {
  color: var(--primary-color, #1677ff);
}
.enum-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.enum-display-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--background-base-color, #fff);
  border: 1px solid var(--border-color, #d9d9d9);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: calc(50% - 40px);
  height: 24px;
  position: relative;
  z-index: 1;
}
.enum-display-trigger:hover {
  border-color: var(--primary-color, #1677ff);
  background: var(--primary-light-color, rgba(22, 119, 255, 0.1));
}
.enum-display-text {
  font-size: 11px;
  color: var(--text-secondary-color, rgba(0, 0, 0, 0.45));
  flex: 1;
}
.enum-display-icon {
  font-size: 10px;
  color: var(--text-disabled-color, rgba(0, 0, 0, 0.25));
  transition: transform 0.2s ease;
}
.enum-display-trigger:hover .enum-display-icon {
  color: var(--primary-color, #1677ff);
}
.enum-dropdown-panel {
  background: var(--background-base-color, #fff);
  border: 1px solid var(--border-color, #d9d9d9);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 8px;
  min-width: 200px;
  z-index: 1050;
  position: relative;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}
.enum-dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
  align-items: stretch;
}
.enum-dropdown-content::-webkit-scrollbar {
  width: 4px;
}
.enum-dropdown-content::-webkit-scrollbar-track {
  background: transparent;
}
.enum-dropdown-content::-webkit-scrollbar-thumb {
  background: var(--border-color, #d9d9d9);
  border-radius: 2px;
}
.enum-dropdown-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-disabled-color, rgba(0, 0, 0, 0.25));
}
.enum-dropdown-item {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-start;
}
.enum-dropdown-input {
  flex: 1;
  min-width: 100px !important;
  text-align: left;
}
.enum-dropdown-delete-btn {
  flex-shrink: 0;
  padding: 0 4px !important;
  color: var(--warning-color, #faad14) !important;
  height: 24px !important;
}
.enum-dropdown-delete-btn:hover {
  background-color: var(--warning-light-color, rgba(250, 173, 20, 0.1)) !important;
}
.enum-dropdown-add-btn {
  font-size: 11px !important;
  height: 24px !important;
  margin-top: 4px;
  border-style: dashed !important;
}
.enum-dropdown-empty {
  text-align: left;
  padding: 8px;
  color: var(--text-disabled-color, rgba(0, 0, 0, 0.25));
}
.enum-dropdown-empty-text {
  font-size: 11px;
  font-style: italic;
}
.schema-editor .enum-dropdown-overlay {
  position: absolute !important;
  z-index: 1050 !important;
  left: 65px !important;
  right: 20px !important;
  width: auto !important;
  height: auto !important;
}
.schema-editor .enum-dropdown-overlay .ant-dropdown {
  position: relative !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  transform: none !important;
  width: 100% !important;
}
.schema-editor .enum-dropdown-overlay .enum-dropdown-panel {
  width: 100% !important;
  min-width: 250px !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box;
}
.schema-constraints-inputs {
  position: relative;
  z-index: 1;
}
.enum-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.enum-input {
  flex: 1;
  min-width: 80px !important;
}
.enum-delete-btn {
  flex-shrink: 0;
  padding: 0 4px !important;
  color: var(--warning-color, #faad14) !important;
}
.enum-add-btn {
  align-self: flex-start;
  font-size: 11px !important;
  height: 24px !important;
  padding: 0 8px !important;
}
.constraint-input {
  width: calc(25% - 27px) !important;
  flex-shrink: 0;
}
.constraint-input.ant-input[type=number]::-webkit-outer-spin-button,
.constraint-input.ant-input[type=number]::-webkit-inner-spin-button,
.schema-default-input.ant-input[type=number]::-webkit-outer-spin-button,
.schema-default-input.ant-input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.constraint-input.ant-input[type=number],
.schema-default-input.ant-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.constraint-separator {
  color: var(--text-disabled-color, rgba(0, 0, 0, 0.25));
  font-size: 12px;
  flex-shrink: 0;
  margin: 0 2px;
}
.constraint-spacer {
  width: 12.5px;
  flex-shrink: 0;
}
.constraint-select {
  width: 80px !important;
  flex-shrink: 0;
}
.schema-constraints-summary {
  margin-top: 2px;
}
.schema-add-section {
  text-align: center;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color, #d9d9d9);
  margin-top: 8px;
}
.schema-add-btn {
  min-width: 120px;
}
.object-properties-section {
  margin-top: 8px;
  padding: 8px 0;
  position: relative;
}
.schema-object-label {
  color: var(--text-secondary-color, rgba(0, 0, 0, 0.45));
  font-size: 12px;
  font-style: italic;
}

/* packages/devbench/src/client/workbench/file-panel.css */
.panel-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #fff;
}
.panel-frame__header {
  height: var(--workspace-panel-header-height, 44px);
  min-height: var(--workspace-panel-header-height, 44px);
  flex-shrink: 0;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  box-sizing: border-box;
}
.panel-frame__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.panel-frame__footer {
  flex-shrink: 0;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.panel-tab-bar {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
}
.panel-tab-bar__nav {
  flex-shrink: 0;
}
.panel-tab-bar__nav--leading {
  margin-left: 4px;
}
.panel-tab-bar__nav--trailing {
  margin-right: 4px;
}
.panel-tab-strip {
  display: flex;
  flex: 1;
  align-items: stretch;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
.panel-tab-bar__trailing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 4px;
  flex-shrink: 0;
}
.panel-tab-item {
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: stretch;
  min-height: 100%;
  padding: 0 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 12px;
  color: #666;
  background: transparent;
  border-right: 1px solid #e5e7eb;
  border-bottom: 2px solid transparent;
  box-sizing: border-box;
  position: relative;
}
.panel-tab-item[data-active=true] {
  color: #333;
  background: #fff;
  border-bottom-color: #1677ff;
}
.file-tree {
  font-size: 13px;
  padding: 6px 0;
  user-select: none;
  outline: none;
}
.file-tree.dragging {
  cursor: copy;
}
.file-tree:focus-visible {
  box-shadow: inset 0 0 0 1px #93c5fd;
}
.file-tree.root-drop-target {
  background:
    linear-gradient(
      180deg,
      rgba(219, 234, 254, 0.45),
      rgba(219, 234, 254, 0.12));
}
.file-tree-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.file-tree-item:hover {
  background: #f1f5f9;
}
.file-tree-item.active {
  background: #e2e8f0;
}
.file-tree-item.active:hover {
  background: #dbe7f5;
}
.file-tree-item.draggable {
  cursor: pointer;
}
.file-tree-item.draggable * {
  cursor: pointer;
}
.file-tree-item.drop-target {
  background: #dbeafe;
  box-shadow: inset 0 0 0 1px #60a5fa;
}
.file-tree-item.drop-target-descendant {
  background: rgba(219, 234, 254, 0.45);
}
.file-tree-chevron {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #94a3b8;
}
.file-tree-chevron-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.file-tree-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-user-drag: none;
  user-drag: none;
}
.file-tree-icon svg {
  width: 16px;
  height: 16px;
}
.file-tree-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-user-drag: none;
  user-drag: none;
}
.file-tree-input {
  flex: 1;
  min-width: 0;
}
.panel-tab-strip {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.panel-tab-strip::-webkit-scrollbar {
  display: none;
}
.editor-tab-dropdown-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6b7280;
  transform: scaleY(0.85);
}

/* packages/devbench/src/client/workbench/editor-panel.css */
.devbench-editor-panel {
  height: 100%;
  min-height: 0;
  background: #fff;
}
.devbench-editor-panel__empty-state {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 0;
  padding: 24px;
}
.devbench-editor-panel__editor-surface {
  height: 100%;
  min-height: 0;
}
.devbench-editor-panel__preview {
  margin: 0;
  padding: 18px;
  height: 100%;
  min-height: 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--chat-font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  background: #fff;
  box-sizing: border-box;
}
.devbench-editor-panel__html-preview {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.devbench-editor-panel__path {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #64748b;
}
.editor-panel__dirty-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1677ff;
  flex-shrink: 0;
  display: inline-block;
}
.editor-panel__close-icon {
  font-size: 10px;
  color: #9aa1ab;
  padding: 2px;
}
.editor-panel__close-icon.is-active {
  color: #64748b;
}
.editor-panel__viewport {
  height: 100%;
  overflow: auto;
  position: relative;
}
/*# sourceMappingURL=/dist/main.css.map */
