/* [project]/apps/web/src/components/Navigation.module.css [app-client] (css) */
@media (max-width: 760px) {
  .Navigation-module__mLD2Aq__desktopOnly {
    display: none;
  }
}

/* [project]/apps/web/src/components/chat.css [app-client] (css) */
.chat-aside-new-btn {
  border-radius: var(--ds-radius-pill, 9999px);
  background: var(--ds-brand);
  color: #fff;
  cursor: pointer;
  border: 0;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  transition: background .15s, opacity .15s;
  display: inline-flex;
}

.chat-aside-new-btn:hover {
  background: var(--ds-brand-hover);
}

.chat-aside-new-btn svg {
  width: 12px !important;
  min-width: 12px !important;
  height: 12px !important;
}

.chat-aside-history-list {
  flex-direction: column;
  gap: 3px;
  max-height: 380px;
  padding-right: 2px;
  display: flex;
  overflow: hidden auto;
}

.chat-aside-empty {
  text-align: center;
  color: var(--ds-ink-light);
  padding: 20px 8px;
  font-size: 12.5px;
}

.chat-aside-history-item {
  border-radius: var(--ds-radius-sm);
  width: 100%;
  min-height: 36px;
  color: var(--ds-ink-muted);
  font-size: var(--ds-font-size-caption, 13px);
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  background: none;
  border: 1px solid #0000;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  line-height: 1.4;
  transition: background .15s, color .15s, border-color .15s;
  display: flex;
}

.chat-aside-history-item:hover {
  background: var(--ds-surface-subtle);
  color: var(--ds-ink);
}

.chat-aside-history-item.is-active {
  background: var(--ds-brand-soft);
  color: var(--ds-brand);
  border-color: #4a7c5926;
  font-weight: 600;
}

.chat-aside-history-item-icon {
  color: currentColor;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 15px;
  min-width: 15px;
  max-width: 15px;
  height: 15px;
  display: inline-flex;
}

.chat-aside-history-item-icon svg {
  stroke-width: 1.8px;
  width: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  height: 14px !important;
}

.chat-aside-history-item-title {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.chat-aside-suggestions {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.chat-aside-suggestion-chip {
  border-radius: var(--ds-radius-sm);
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border);
  color: var(--ds-ink-muted);
  text-align: left;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  font-size: 12.5px;
  transition: background .15s, border-color .15s, color .15s;
  display: flex;
}

.chat-aside-suggestion-chip:hover {
  background: var(--ds-brand-soft);
  border-color: var(--ds-brand);
  color: var(--ds-brand-hover);
}

.chat-aside-suggestion-chip .chip-arrow {
  color: var(--ds-ink-light);
  flex-shrink: 0;
  font-size: 12px;
  transition: transform .15s, color .15s;
}

.chat-aside-suggestion-chip:hover .chip-arrow {
  color: var(--ds-brand);
  transform: translateX(2px);
}

.chat-main-pane {
  background: var(--ds-content-bg);
  flex-direction: column;
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  position: relative;
  overflow: hidden;
}

.chat-drawer-backdrop {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 1000;
  background: #00000040;
  justify-content: flex-end;
  animation: .16s ease-out chat-fade-in;
  display: flex;
  position: fixed;
  inset: 0;
}

.chat-history-drawer {
  background: var(--ds-surface);
  border-left: 1px solid var(--ds-border);
  flex-direction: column;
  width: 360px;
  max-width: 90vw;
  height: 100%;
  animation: .2s cubic-bezier(.16, 1, .3, 1) chat-slide-in;
  display: flex;
  box-shadow: -8px 0 32px #0000001f;
}

@keyframes chat-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes chat-slide-in {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.chat-drawer-header {
  border-bottom: 1px solid var(--ds-border-subtle);
  background: var(--ds-surface);
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 14px;
  display: flex;
}

.chat-drawer-title-group {
  color: var(--ds-ink);
  align-items: center;
  gap: 8px;
  display: flex;
}

.chat-drawer-title-group svg {
  color: var(--ds-brand);
  width: 17px !important;
  height: 17px !important;
}

.chat-drawer-title {
  letter-spacing: -.2px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.chat-drawer-close-btn {
  border-radius: var(--ds-radius-sm);
  width: 28px;
  height: 28px;
  color: var(--ds-ink-light);
  cursor: pointer;
  justify-content: center;
  align-items: center;
  transition: background .15s, color .15s;
  display: flex;
}

.chat-drawer-close-btn:hover {
  background: var(--ds-surface-subtle);
  color: var(--ds-ink);
}

.chat-drawer-close-btn svg {
  width: 16px !important;
  height: 16px !important;
}

.chat-drawer-list {
  flex-direction: column;
  flex: 1;
  gap: 3px;
  min-height: 0;
  padding: 10px 12px;
  display: flex;
  overflow-y: auto;
}

.chat-drawer-empty {
  text-align: center;
  color: var(--ds-ink-light);
  padding: 48px 16px;
  font-size: 13px;
}

.chat-drawer-item {
  border-radius: var(--ds-radius-md);
  width: 100%;
  color: var(--ds-ink-muted);
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  background: none;
  border: 1px solid #0000;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  transition: background .15s, color .15s, border-color .15s;
  display: flex;
}

.chat-drawer-item:hover {
  background: var(--ds-surface-subtle);
  color: var(--ds-ink);
}

.chat-drawer-item.is-selected {
  background: var(--ds-brand-soft);
  color: var(--ds-brand-hover);
  border-color: #4a7c5929;
  font-weight: 600;
}

.chat-drawer-item-icon {
  color: currentColor;
  opacity: .75;
  flex-shrink: 0;
  align-items: center;
  display: flex;
}

.chat-drawer-item-icon svg {
  width: 15px !important;
  height: 15px !important;
}

.chat-drawer-item-title {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.chat-drawer-item-active-tag {
  border-radius: var(--ds-radius-pill);
  background: var(--ds-brand);
  color: #fff;
  flex-shrink: 0;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
}

.chat-drawer-item svg {
  color: var(--ds-ink-light);
  flex-shrink: 0;
  width: 14px !important;
  height: 14px !important;
}

.chat-drawer-footer {
  border-top: 1px solid var(--ds-border-subtle);
  background: var(--ds-surface);
  flex-shrink: 0;
  padding: 14px 16px 20px;
}

.chat-drawer-new-action {
  border-radius: var(--ds-radius-md);
  background: var(--ds-brand-soft);
  width: 100%;
  height: 38px;
  color: var(--ds-brand-hover);
  cursor: pointer;
  border: 1px solid #4a7c592e;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .15s, color .15s;
  display: flex;
}

.chat-drawer-new-action:hover {
  background: var(--ds-brand);
  color: #fff;
}

.chat-drawer-new-action svg {
  width: 14px !important;
  height: 14px !important;
}

.chat-greeting-view {
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 40px 16px 20px;
  display: flex;
}

.chat-greeting-hero {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 620px;
  display: flex;
}

.chat-scroll-area {
  scroll-behavior: smooth;
  flex: 1;
  min-height: 0;
  padding: 28px 24px 16px;
  overflow: hidden auto;
}

.chat-reading-column {
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
}

.chat-greeting-card {
  box-shadow: none;
  text-align: center;
  background: none;
  border: 0;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 44px 20px 20px;
  display: flex;
}

.chat-greeting-icon {
  background: var(--ds-brand-soft);
  width: 48px;
  height: 48px;
  color: var(--ds-brand);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  display: flex;
  box-shadow: 0 2px 8px #4a7c591f;
}

.chat-greeting-icon svg {
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
}

.chat-greeting-title {
  color: var(--ds-ink);
  letter-spacing: -.02em;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.chat-greeting-desc {
  color: var(--ds-ink-muted);
  max-width: 480px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
}

.chat-greeting-chips {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  display: flex;
}

.chat-greeting-chip {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-pill, 9999px);
  color: var(--ds-ink);
  cursor: pointer;
  align-items: center;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
  display: inline-flex;
  box-shadow: 0 1px 2px #00000008;
}

.chat-greeting-chip:hover {
  background: var(--ds-brand-soft);
  border-color: var(--ds-brand);
  color: var(--ds-brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px #0000000d;
}

.chat-turn {
  flex-direction: column;
  gap: 14px;
  width: 100%;
  display: flex;
}

.chat-user-row {
  justify-content: flex-end;
  width: 100%;
  display: flex;
}

.chat-user-bubble {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  max-width: 82%;
  color: var(--ds-ink);
  word-break: break-word;
  border-radius: 16px 16px 4px;
  padding: 11px 16px;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 1px 3px #00000005;
}

.chat-assistant-row {
  flex-direction: column;
  gap: 10px;
  width: 100%;
  display: flex;
}

.chat-assistant-header {
  color: var(--ds-ink);
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  display: flex;
}

.chat-assistant-header svg {
  color: var(--ds-brand);
  width: 15px !important;
  min-width: 15px !important;
  max-width: 15px !important;
  height: 15px !important;
}

.chat-assistant-bubble {
  width: 100%;
  color: var(--ds-ink);
  font-size: 14.5px;
  line-height: 1.7;
}

.chat-assistant-bubble p {
  margin: 0 0 10px;
}

.chat-assistant-bubble p:last-child {
  margin-bottom: 0;
}

.chat-assistant-bubble ul {
  margin: 6px 0 12px 20px;
  padding: 0;
}

.chat-assistant-bubble li {
  margin-bottom: 6px;
}

.chat-assistant-bubble strong {
  color: var(--ds-ink);
  font-weight: 600;
}

.chat-stage-badge {
  background: var(--ds-brand-soft);
  border-radius: var(--ds-radius-pill, 9999px);
  color: var(--ds-brand-hover);
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
}

.chat-stage-badge svg {
  animation: 1.2s linear infinite chat-spin;
  width: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  height: 14px !important;
}

@keyframes chat-spin {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

.chat-thinking-block {
  flex-direction: column;
  margin: 4px 0 8px;
  display: flex;
}

.chat-thinking-trigger {
  border-radius: var(--ds-radius-pill, 9999px);
  color: var(--ds-ink-light, #8c959f);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  background: none;
  border: 0;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-left: -4px;
  padding: 3px 8px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  transition: all .15s;
  display: inline-flex;
}

.chat-thinking-trigger:hover {
  background: var(--ds-surface-subtle, #f6f8fa);
  color: var(--ds-ink, #24292f);
}

.chat-thinking-trigger.is-running {
  color: var(--ds-brand, #4a7c59);
}

.chat-thinking-icon {
  color: currentColor;
  justify-content: center;
  align-items: center;
  width: 14px;
  height: 14px;
  display: inline-flex;
}

.chat-thinking-icon svg {
  width: 13px !important;
  min-width: 13px !important;
  height: 13px !important;
}

.chat-thinking-trigger.is-running .chat-thinking-icon svg {
  animation: 1.4s linear infinite chat-spin;
}

.chat-thinking-label {
  letter-spacing: -.01em;
}

.chat-thinking-chevron {
  color: var(--ds-ink-light, #8c959f);
  transition: transform .2s cubic-bezier(.16, 1, .3, 1);
  width: 12px !important;
  min-width: 12px !important;
  height: 12px !important;
}

.chat-thinking-chevron.is-expanded {
  transform: rotate(180deg);
}

.chat-thinking-content {
  border-left: 2px solid var(--ds-border, #e1e4e8);
  flex-direction: column;
  gap: 8px;
  margin: 3px 0 8px 8px;
  padding: 6px 0 6px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  animation: .2s ease-out thinking-content-fade;
  display: flex;
}

@keyframes thinking-content-fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.thinking-step {
  align-items: flex-start;
  gap: 8px;
  display: flex;
}

.thinking-step-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  transition: all .2s;
}

.thinking-step-dot.is-pending {
  background: var(--ds-border, #d0d7de);
}

.thinking-step-dot.is-running {
  background: var(--ds-brand, #4a7c59);
  animation: 1.4s ease-in-out infinite trace-dot-pulse;
  box-shadow: 0 0 0 3px #4a7c5938;
}

.thinking-step-dot.is-done {
  background: var(--ds-brand, #4a7c59);
}

.thinking-step-dot.is-error {
  background: #c62828;
}

.thinking-step-body {
  flex: 1;
  min-width: 0;
}

.thinking-step-title {
  color: var(--ds-ink, #24292f);
  font-size: 12px;
  font-weight: 500;
}

.thinking-step-desc {
  color: var(--ds-ink-light, #6e7781);
  margin-top: 2px;
  font-size: 11.5px;
}

.thinking-model-monologue {
  border-radius: var(--ds-radius-sm, 8px);
  background: var(--ds-surface-subtle, #f4f6f7);
  border-left: 2px solid var(--ds-border-strong, #d0d7de);
  color: var(--ds-ink-muted, #57606a);
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 6px;
  padding: 8px 10px;
  font-size: 11.5px;
  line-height: 1.55;
}

.thinking-step-tags {
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
  display: flex;
}

.thinking-tag {
  border-radius: var(--ds-radius-pill, 9999px);
  background: var(--ds-surface, #fff);
  border: 1px solid var(--ds-border-hairline, #00000014);
  color: var(--ds-ink-muted, #57606a);
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  font-size: 11px;
  display: inline-flex;
}

.thinking-tag svg {
  color: var(--ds-brand, #4a7c59);
  width: 10px !important;
  height: 10px !important;
}

.chat-sources-strip {
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 10px;
  display: flex;
}

.chat-sources-strip-header {
  color: var(--ds-ink-light, #8c959f);
  -webkit-user-select: none;
  user-select: none;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 550;
  display: inline-flex;
}

.chat-sources-strip-header svg {
  width: 12px !important;
  min-width: 12px !important;
  height: 12px !important;
}

.chat-sources-strip-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: center;
  gap: 8px;
  padding: 4px 2px 6px;
  display: flex;
  overflow: auto hidden;
}

.chat-sources-strip-scroll::-webkit-scrollbar {
  display: none;
}

.chat-source-chip-wrapper {
  flex-shrink: 0;
  display: inline-flex;
  position: relative;
}

.chat-source-chip {
  border-radius: var(--ds-radius-pill, 9999px);
  background: var(--ds-surface, #fff);
  border: 1px solid var(--ds-border-hairline, #0000001f);
  height: 28px;
  color: var(--ds-ink-muted, #57606a);
  cursor: pointer;
  white-space: nowrap;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  font-size: 11.5px;
  text-decoration: none;
  transition: all .15s;
  display: inline-flex;
  box-shadow: 0 1px 2px #00000008;
}

.chat-source-chip:hover {
  background: var(--ds-surface-subtle, #f6f8fa);
  border-color: var(--ds-brand, #4a7c59);
  color: var(--ds-ink, #1f2328);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px #0000000f;
}

.source-chip-badge {
  color: var(--ds-brand, #4a7c59);
  font-size: 11px;
  font-weight: 600;
}

.source-chip-date {
  color: var(--ds-ink-light, #8c959f);
  font-size: 11px;
}

.source-chip-kind {
  font-size: 11px;
  font-weight: 500;
}

.chat-citation-wrapper {
  vertical-align: baseline;
  align-items: center;
  display: inline-flex;
  position: relative;
}

.chat-citation-pill {
  min-width: 17px;
  height: 16px;
  color: var(--ds-brand-hover, #3d6949);
  background: var(--ds-brand-soft, #4a7c591a);
  cursor: pointer;
  vertical-align: 1px;
  -webkit-user-select: none;
  user-select: none;
  border: 1px solid #4a7c5938;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  margin: 0 2px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: all .12s;
  display: inline-flex;
}

.chat-citation-pill:hover, .chat-citation-pill.is-active {
  background: var(--ds-brand, #4a7c59);
  color: #fff;
  border-color: var(--ds-brand, #4a7c59);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px #4a7c5940;
}

.chat-citation-pill.is-unavailable {
  background: var(--ds-surface-subtle);
  border-color: var(--ds-border);
  color: var(--ds-ink-light);
  cursor: default;
}

.chat-citation-popover {
  background: var(--ds-surface, #fff);
  border: 1px solid var(--ds-border, #e1e4e8);
  border-radius: var(--ds-radius-md, 8px);
  z-index: 99999;
  text-align: left;
  pointer-events: auto;
  box-sizing: border-box;
  flex-direction: column;
  gap: 8px;
  width: 350px;
  max-width: calc(100vw - 32px);
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.45;
  animation: .15s cubic-bezier(.16, 1, .3, 1) citation-popover-in;
  display: flex;
  position: fixed;
  box-shadow: 0 14px 30px -4px #00000029, 0 8px 12px -6px #00000014;
}

@keyframes citation-popover-in {
  from {
    opacity: 0;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.citation-popover-header {
  border-bottom: 1px solid var(--ds-border-hairline, #0000000f);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 7px;
  display: flex;
}

.citation-popover-meta {
  color: var(--ds-ink-muted, #57606a);
  cursor: pointer;
  border-radius: var(--ds-radius-sm, 4px);
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .12s;
  display: flex;
}

.citation-popover-meta:hover {
  opacity: .85;
}

.citation-popover-meta:hover .citation-popover-date {
  color: var(--ds-brand, #4a7c59);
}

.citation-popover-badge {
  color: var(--ds-brand, #4a7c59);
  flex-shrink: 0;
  font-weight: 600;
}

.citation-popover-date {
  color: var(--ds-ink, #24292f);
  white-space: nowrap;
}

.citation-popover-kind {
  color: var(--ds-ink-muted, #57606a);
  white-space: nowrap;
}

.citation-popover-actions {
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  display: flex;
}

.citation-popover-link {
  color: var(--ds-brand, #4a7c59);
  white-space: nowrap;
  border-radius: var(--ds-radius-sm, 4px);
  align-items: center;
  gap: 3px;
  padding: 2px 4px;
  font-size: 11.5px;
  font-weight: 550;
  text-decoration: none;
  transition: background .12s;
  display: inline-flex;
}

.citation-popover-link:hover {
  background: var(--ds-brand-soft, #4a7c591a);
}

.citation-popover-link svg {
  width: 10px !important;
  height: 10px !important;
}

.citation-popover-close {
  width: 20px;
  height: 20px;
  color: var(--ds-ink-light, #8c959f);
  border-radius: var(--ds-radius-sm, 4px);
  cursor: pointer;
  background: none;
  border: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: all .12s;
  display: inline-flex;
}

.citation-popover-close:hover {
  background: var(--ds-surface-subtle, #f6f8fa);
  color: var(--ds-ink, #24292f);
}

.citation-popover-close svg {
  width: 13px !important;
  height: 13px !important;
}

.citation-popover-body {
  color: var(--ds-ink, #24292f);
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--ds-surface-subtle, #f6f8fa);
  border-radius: var(--ds-radius-sm, 4px);
  border: 1px solid var(--ds-border-hairline, #0000000a);
  max-height: 150px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.55;
  overflow-y: auto;
}

.chat-composer-section {
  background: linear-gradient(180deg, #f4f6f700 0%, #f4f6f7f5 24%, var(--ds-content-bg) 100%);
  z-index: 10;
  flex-shrink: 0;
  padding: 8px 24px 20px;
  position: relative;
}

.chat-composer-container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.chat-composer-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: 16px;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 10px;
  transition: border-color .15s, box-shadow .15s;
  display: flex;
  box-shadow: 0 4px 18px #0000000a;
}

.chat-composer-card:focus-within {
  border-color: var(--ds-brand);
  box-shadow: 0 4px 20px #0000000f, 0 0 0 3px var(--ds-brand-soft);
}

.chat-textarea {
  resize: none;
  width: 100%;
  color: var(--ds-ink);
  box-sizing: border-box;
  background: none;
  border: 0;
  outline: 0;
  min-height: 40px;
  max-height: 160px;
  padding: 2px 0;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.chat-composer-bottom {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.chat-composer-hint {
  color: var(--ds-ink-light);
  font-size: 11.5px;
}

.chat-composer-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.chat-stop-btn {
  border-radius: var(--ds-radius-pill, 9999px);
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border);
  height: 32px;
  color: var(--ds-ink-muted);
  cursor: pointer;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  font-size: 13px;
  transition: background .12s;
  display: inline-flex;
}

.chat-stop-btn:hover {
  background: var(--ds-border);
  color: var(--ds-ink);
}

.chat-stop-btn svg {
  width: 13px !important;
  min-width: 13px !important;
  max-width: 13px !important;
  height: 13px !important;
}

.chat-send-btn {
  border-radius: var(--ds-radius-pill, 9999px);
  background: var(--ds-brand);
  color: #fff;
  cursor: pointer;
  border: 0;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 550;
  transition: opacity .15s, background .15s;
  display: inline-flex;
}

.chat-send-btn:hover:not(:disabled) {
  background: var(--ds-brand-hover);
}

.chat-send-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.chat-send-btn svg {
  width: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  height: 14px !important;
}

.chat-scroll-bottom-btn {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-pill, 9999px);
  color: var(--ds-ink);
  cursor: pointer;
  z-index: 15;
  align-items: center;
  gap: 4px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 550;
  transition: transform .12s, background .12s, box-shadow .12s;
  display: inline-flex;
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 14px #00000014;
}

.chat-scroll-bottom-btn:hover {
  background: var(--ds-surface-subtle);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 18px #0000001f;
}

.chat-scroll-bottom-btn svg {
  width: 12px !important;
  min-width: 12px !important;
  max-width: 12px !important;
  height: 12px !important;
}

@media (max-width: 760px) {
  .chat-mobile-drawer {
    background: var(--ds-surface);
    z-index: 1000;
    box-sizing: border-box;
    flex-direction: column;
    gap: 12px;
    width: min(85vw, 320px);
    padding: 18px 16px;
    transition: transform .25s cubic-bezier(.2, 0, 0, 1);
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    transform: translateX(100%);
    box-shadow: -4px 0 24px #00000026;
  }

  .chat-mobile-drawer.is-drawer-open {
    transform: translateX(0);
  }

  .chat-mobile-drawer-header {
    border-bottom: 1px solid var(--ds-border);
    color: var(--ds-ink);
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    font-size: 14px;
    display: flex;
  }

  .chat-mobile-drawer-close {
    border-radius: var(--ds-radius-sm);
    background: var(--ds-surface-subtle);
    width: 28px;
    height: 28px;
    color: var(--ds-ink-muted);
    cursor: pointer;
    border: 0;
    justify-content: center;
    align-items: center;
    display: inline-flex;
  }

  .chat-mobile-drawer-close svg {
    width: 16px !important;
    height: 16px !important;
  }

  .chat-backdrop {
    z-index: 998;
    background: #00000059;
    position: fixed;
    inset: 0;
  }

  .chat-mobile-bar {
    display: flex;
  }

  .chat-composer-section {
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

.knowledge-index-pill {
  border-radius: var(--ds-radius-pill, 9999px);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  height: 32px;
  color: var(--ds-ink);
  cursor: pointer;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 550;
  transition: background .15s, border-color .15s, transform .1s;
  display: inline-flex;
  box-shadow: 0 1px 3px #0000000a;
}

.knowledge-index-pill:hover {
  background: var(--ds-surface-subtle);
  border-color: var(--ds-border-hover);
  transform: translateY(-1px);
}

.knowledge-index-pill svg {
  color: var(--ds-brand);
  width: 14px !important;
  min-width: 14px !important;
  height: 14px !important;
}

.knowledge-index-pill.is-indexing .index-pill-dot {
  background: #f59e0b;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  animation: 1.6s infinite index-pulse;
  box-shadow: 0 0 0 2px #f59e0b33;
}

.knowledge-index-pill.is-done .index-pill-dot {
  background: var(--ds-brand);
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

@keyframes index-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.85);
  }
}

.dialog.sheet:has(.knowledge-index-modal-body) {
  width: min(94vw, 680px);
  max-height: 88vh;
}

.knowledge-index-modal-body {
  color: var(--ds-ink);
  flex-direction: column;
  gap: 16px;
  padding: 6px 4px 12px;
  font-family: inherit;
  display: flex;
}

.index-progress-card {
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-card);
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  display: flex;
}

.index-progress-top {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.index-progress-label {
  color: var(--ds-ink-light);
  letter-spacing: .2px;
  font-size: 12px;
  font-weight: 550;
}

.index-progress-big {
  color: var(--ds-ink);
  font-variant-numeric: tabular-nums;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
  font-size: 26px;
  font-weight: 700;
  display: flex;
}

.index-progress-fraction {
  color: var(--ds-ink-muted);
  font-size: 13.5px;
  font-weight: 400;
}

.index-status-pill {
  border-radius: var(--ds-radius-pill, 9999px);
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 550;
  display: inline-flex;
}

.index-status-pill.is-indexing {
  color: #92400e;
  background: #fef3c7;
}

.index-status-pill.is-indexing .index-status-dot {
  background: #d97706;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  animation: 1.4s infinite index-pulse;
}

.index-status-pill.is-complete {
  background: var(--ds-brand-soft);
  color: var(--ds-brand-hover);
}

.index-status-pill.is-complete .index-status-dot {
  background: var(--ds-brand);
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.index-progress-track {
  background: var(--ds-border);
  border-radius: 9999px;
  height: 8px;
  position: relative;
  overflow: hidden;
}

.index-progress-bar {
  background: var(--ds-brand);
  border-radius: 9999px;
  height: 100%;
  transition: width .3s;
}

.index-progress-note {
  color: var(--ds-ink-light);
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  display: flex;
}

.index-metrics-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  display: grid;
}

.index-metric-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  text-align: center;
  flex-direction: column;
  gap: 3px;
  padding: 12px 10px;
  display: flex;
}

.index-metric-num {
  color: var(--ds-ink);
  font-variant-numeric: tabular-nums;
  font-size: 19px;
  font-weight: 700;
}

.index-metric-card.ready .index-metric-num {
  color: var(--ds-brand);
}

.index-metric-card.running .index-metric-num {
  color: #2563eb;
}

.index-metric-card.pending .index-metric-num {
  color: #d97706;
}

.index-metric-title {
  color: var(--ds-ink-light);
  font-size: 11.5px;
}

.index-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 2px 0;
  display: flex;
}

.index-toolbar-left {
  align-items: center;
  gap: 8px;
  display: flex;
}

.index-action-btn {
  cursor: pointer;
  border-radius: var(--ds-radius-md);
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
  display: inline-flex;
}

.index-action-btn svg {
  width: 14px !important;
  min-width: 14px !important;
  height: 14px !important;
}

.index-auto-refresh {
  color: var(--ds-ink-muted);
  cursor: pointer;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  display: inline-flex;
}

.index-action-message {
  background: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  color: var(--ds-ink);
  padding: 8px 12px;
  font-size: 12.5px;
}

.index-config-banner {
  background: var(--ds-surface-subtle);
  border-radius: var(--ds-radius-md);
  color: var(--ds-ink-muted);
  padding: 7px 12px;
  font-size: 12px;
}

.index-queue-section {
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
  display: flex;
}

.index-queue-header {
  justify-content: space-between;
  align-items: baseline;
  display: flex;
}

.index-queue-header h4 {
  color: var(--ds-ink);
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
}

.index-queue-header small {
  color: var(--ds-ink-light);
  font-size: 11.5px;
}

.index-queue-list {
  flex-direction: column;
  gap: 6px;
  max-height: 250px;
  padding-right: 4px;
  display: flex;
  overflow-y: auto;
}

.index-queue-empty {
  text-align: center;
  color: var(--ds-ink-light);
  padding: 24px;
  font-size: 12.5px;
}

.index-queue-item {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  flex-direction: column;
  gap: 4px;
  padding: 9px 12px;
  transition: border-color .15s;
  display: flex;
}

.index-queue-item.running {
  background: #eff6ff;
  border-color: #3b82f6;
}

.index-queue-item.failed {
  background: #fef2f2;
  border-color: #ef4444;
}

.index-queue-item-top {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.index-queue-item-meta {
  align-items: center;
  gap: 8px;
  display: flex;
}

.index-queue-date {
  color: var(--ds-ink);
  align-items: center;
  gap: 3px;
  font-size: 12.5px;
  text-decoration: none;
  display: inline-flex;
}

.index-queue-date:hover {
  color: var(--ds-brand);
  text-decoration: underline;
}

.index-queue-date svg {
  width: 12px !important;
  min-width: 12px !important;
  height: 12px !important;
}

.index-item-badge {
  border-radius: var(--ds-radius-pill, 9999px);
  align-items: center;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 550;
  display: inline-flex;
}

.index-item-badge.is-ready {
  background: var(--ds-brand-soft);
  color: var(--ds-brand-hover);
}

.index-item-badge.is-running {
  color: #1d4ed8;
  background: #dbeafe;
  animation: 1.2s infinite index-pulse;
}

.index-item-badge.is-pending {
  background: var(--ds-surface-subtle);
  color: var(--ds-ink-muted);
}

.index-item-badge.is-failed {
  color: #b91c1c;
  background: #fee2e2;
}

.index-queue-time {
  color: var(--ds-ink-light);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}

.index-queue-preview {
  color: var(--ds-ink-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
}

/*# sourceMappingURL=apps_web_src_components_0x74t3bryran0._.css.map*/