/* src/src/ai/styles.css */
#ai-chat-root,
#ai-chat-root * {
  box-sizing: border-box;
}
#ai-chat-root {
  transition: width 0.3s ease;
  border-left: 1px solid #eee;
  background: #fff;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif !important;
  color: #111;
  overflow: hidden;
}
.appearance--dark #ai-chat-root {
  border-left: 1px solid rgba(0, 0, 0, 0.4);
  background: #202124;
  color: #e5e6ea;
}
.ai-chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  user-select: text !important;
  -webkit-user-select: text !important;
  background: inherit;
}
.ai-resize-handle {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  cursor: col-resize;
  z-index: 20;
  background: transparent;
  transition: background 0.15s;
}
.ai-resize-handle:hover,
.ai-resize-handle:active {
  background: rgba(59, 130, 246, 0.35);
}
.ai-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 16px;
  height: 48px;
  overflow: visible;
}
.ai-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.appearance--dark .ai-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}
.ai-header-brand {
  display: flex;
  align-items: center;
}
.ai-header-brand-text {
  font-weight: 600;
  font-size: 14px;
  background:
    linear-gradient(
      135deg,
      #3b82f6 0%,
      #a855f7 50%,
      #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
  line-height: normal;
}
.ai-header-btn {
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  transition: all 0.2s;
  color: #666;
  flex-shrink: 0;
  padding: 0 !important;
  margin: 0 !important;
}
.appearance--dark .ai-header-btn {
  color: #aaa;
}
.ai-header-btn:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}
.appearance--dark .ai-header-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}
.ai-header-btn--active {
  color: #7c3aed !important;
  background: #f3eeff !important;
}
.appearance--dark .ai-header-btn--active {
  color: #a78bfa !important;
  background: #2e1f5e !important;
}
.ai-header-btn svg {
  font-size: 20px !important;
}
.ai-input-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 6px;
  padding: 0 6px;
}
.ai-model-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 10px;
  color: #c4c7ce;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
  flex-shrink: 0;
}
.ai-model-btn:hover {
  color: #9ca3af;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.appearance--dark .ai-model-btn {
  color: #55565a;
}
.appearance--dark .ai-model-btn:hover {
  color: #7a7d8a;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ai-meta-sep {
  font-size: 10px;
  opacity: 0.35;
  flex-shrink: 0;
}
.ai-model-menu {
  margin: 0 0 4px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  overflow: hidden;
}
.ai-model-menu-item {
  padding: 6px 14px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
  transition: background 0.1s;
}
.ai-model-menu-item:hover {
  background: rgba(59, 130, 246, 0.08);
}
.ai-model-menu-item--active {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  font-weight: 600;
}
.appearance--dark .ai-model-menu {
  background: #2a2b2f;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.appearance--dark .ai-model-menu-item {
  color: #d1d5db;
}
.appearance--dark .ai-model-menu-item:hover {
  background: rgba(139, 92, 246, 0.15);
}
.appearance--dark .ai-model-menu-item--active {
  background: rgba(139, 92, 246, 0.15);
  color: #818cf8;
}
.ai-overflow-btn-wrap {
  position: relative;
}
.ai-overflow-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 200;
  min-width: 148px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  overflow: hidden;
}
.ai-overflow-menu-item {
  padding: 7px 14px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: background 0.1s;
  user-select: none;
}
.ai-overflow-menu-item:hover {
  background: rgba(59, 130, 246, 0.08);
}
.ai-overflow-menu-item--active {
  color: #7c3aed;
  font-weight: 600;
}
.ai-overflow-menu-sep {
  height: 1px;
  background: rgba(0, 0, 0, 0.07);
  margin: 2px 0;
}
.appearance--dark .ai-overflow-menu {
  background: #2a2b2f;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.appearance--dark .ai-overflow-menu-item {
  color: #d1d5db;
}
.appearance--dark .ai-overflow-menu-item:hover {
  background: rgba(139, 92, 246, 0.15);
}
.appearance--dark .ai-overflow-menu-item--active {
  color: #a78bfa;
}
.appearance--dark .ai-overflow-menu-sep {
  background: rgba(255, 255, 255, 0.08);
}
.ai-history-panel {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: #f9f9fb;
}
.appearance--dark .ai-history-panel {
  background: #1e1f24;
}
.ai-history-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  flex-shrink: 0;
}
.appearance--dark .ai-history-header {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
.ai-history-back-btn {
  background: none !important;
  border: none !important;
  padding: 2px 0 !important;
  margin: 0 !important;
  cursor: pointer;
  font-size: 14px;
  color: #3b82f6;
  font-weight: 500;
}
.ai-history-back-btn:hover {
  opacity: 0.7;
}
.ai-history-title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.appearance--dark .ai-history-title {
  color: #d1d5db;
}
.ai-history-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ai-history-empty {
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
  margin-top: 32px;
  line-height: 1.6;
}
.ai-history-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: default;
}
.appearance--dark .ai-history-item {
  background: #2a2b2f;
  border-color: rgba(255, 255, 255, 0.07);
}
.ai-history-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.ai-history-item-date {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.appearance--dark .ai-history-item-date {
  color: #9ca3af;
}
.ai-history-item-count {
  font-size: 11px;
  color: #9ca3af;
}
.ai-history-item-preview {
  font-size: 12px;
  color: #374151;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
}
.appearance--dark .ai-history-item-preview {
  color: #d1d5db;
}
.ai-history-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-history-restore-btn {
  background: #3b82f6 !important;
  border: none !important;
  border-radius: 5px !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 3px 10px !important;
  cursor: pointer;
  transition: opacity 0.1s;
}
.ai-history-restore-btn:hover {
  opacity: 0.85;
}
.ai-history-delete-btn {
  background: none !important;
  border: none !important;
  padding: 3px 6px !important;
  margin: 0 !important;
  cursor: pointer;
  font-size: 12px;
  color: #9ca3af;
  border-radius: 4px !important;
}
.ai-history-delete-btn:hover {
  background: rgba(239, 68, 68, 0.10) !important;
  color: #ef4444 !important;
}
.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 30vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ai-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  word-wrap: break-word;
}
.ai-message-user {
  align-self: flex-end;
  background: #a855f7;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-card-chip-label {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
span.nirvana-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(100, 116, 139, 0.15);
  border: none;
  border-radius: 4px;
  padding: 1px 5px 1px 4px;
  margin: 0 1px;
  font-size: 0.85em;
  font-family: inherit !important;
  font-weight: 500;
  color: #1e293b !important;
  cursor: pointer;
  text-decoration: none;
  line-height: inherit;
  vertical-align: -1px;
  white-space: nowrap;
  transition: background 0.1s ease;
  max-width: 280px;
  min-width: 0 !important;
  box-shadow: none;
}
.nirvana-link-text {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
span.nirvana-link:hover {
  background: rgba(100, 116, 139, 0.25);
  color: #0f172a !important;
}
span.nirvana-link:active {
  background: rgba(100, 116, 139, 0.35);
}
.appearance--dark span.nirvana-link {
  background: rgba(148, 163, 184, 0.18) !important;
  border: none !important;
  color: #f1f5f9 !important;
  box-shadow: none;
}
.appearance--dark span.nirvana-link:hover {
  background: rgba(148, 163, 184, 0.28) !important;
  color: #ffffff !important;
}
.ai-message-assistant {
  align-self: stretch;
  max-width: 100%;
  background: transparent;
  border: none;
  padding-left: 2px;
  padding-right: 2px;
}
.ai-thought-container {
  margin-bottom: 12px;
}
.ai-thought-toggle {
  display: flex;
  align-items: center;
  background: transparent !important;
  border: none !important;
  color: #9ca3af !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.ai-thought-toggle:hover {
  opacity: 1;
}
.appearance--dark .ai-thought-toggle {
  color: #6b7280 !important;
}
.ai-thought-content {
  margin-top: 8px;
  padding: 10px 12px;
  background: #f9fafb;
  border-left: 2px solid #e5e7eb;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 0 4px 4px 0;
  white-space: pre-wrap;
}
.appearance--dark .ai-thought-content {
  background: #1a1b1e;
  border-left-color: #374151;
  color: #9ca3af;
}
.ai-feedback-bar {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
#ai-chat-root .ai-message-assistant:hover .ai-feedback-bar,
#ai-chat-root .ai-message-assistant:focus-within .ai-feedback-bar,
#ai-chat-root .ai-feedback-bar--voted {
  opacity: 1 !important;
}
#ai-chat-root .ai-feedback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none !important;
  border-radius: 4px;
  background: transparent !important;
  color: #c4c7ce !important;
  cursor: pointer;
  min-width: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
  transition: color 0.1s, background 0.1s;
  line-height: 1;
}
#ai-chat-root .ai-feedback-btn:hover {
  color: #6b7280 !important;
  background: #f3f4f6 !important;
}
#ai-chat-root .ai-feedback-btn--active {
  color: #7c3aed !important;
  background: transparent !important;
}
#ai-chat-root .ai-feedback-btn--active:hover {
  color: #7c3aed !important;
  background: #f3eeff !important;
}
.appearance--dark #ai-chat-root .ai-feedback-btn {
  color: #45464a !important;
}
.appearance--dark #ai-chat-root .ai-feedback-btn:hover {
  color: #d5d6da !important;
  background: #2a2b2f !important;
}
.appearance--dark #ai-chat-root .ai-feedback-btn--active {
  color: #a78bfa !important;
}
.appearance--dark #ai-chat-root .ai-feedback-btn--active:hover {
  color: #a78bfa !important;
  background: #2e1f5e !important;
}
#ai-chat-root .ai-message-assistant h1,
#ai-chat-root .ai-message-assistant h2,
#ai-chat-root .ai-message-assistant h3,
#ai-chat-root .ai-message-assistant h4,
#ai-chat-root .ai-message-assistant h5,
#ai-chat-root .ai-message-assistant h6 {
  font-family: inherit !important;
  font-size: 1em !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin: 10px 0 4px !important;
  padding: 0 !important;
  color: inherit !important;
  background: none !important;
  border: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
#ai-chat-root .ai-message-assistant h1 {
  font-size: 1.15em !important;
}
#ai-chat-root .ai-message-assistant h2 {
  font-size: 1.08em !important;
}
#ai-chat-root .ai-message-assistant h3 {
  font-size: 1.0em !important;
}
#ai-chat-root .ai-message-assistant h4 {
  font-size: 0.95em !important;
}
#ai-chat-root .ai-message-assistant h5 {
  font-size: 0.9em !important;
}
#ai-chat-root .ai-message-assistant h6 {
  font-size: 0.85em !important;
}
#ai-chat-root .ai-message-assistant p {
  font-family: inherit !important;
  font-size: 1em !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
}
#ai-chat-root .ai-message-assistant p:last-child {
  margin-bottom: 0 !important;
}
#ai-chat-root .ai-message-assistant ul,
#ai-chat-root .ai-message-assistant ol {
  font-family: inherit !important;
  font-size: 1em !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  margin: 4px 0 4px 20px !important;
  padding: 0 !important;
}
#ai-chat-root .ai-message-assistant ul {
  list-style: disc outside !important;
}
#ai-chat-root .ai-message-assistant ol {
  list-style: decimal outside !important;
}
#ai-chat-root .ai-message-assistant ul ul {
  list-style: circle outside !important;
}
#ai-chat-root .ai-message-assistant ol ol {
  list-style: lower-alpha outside !important;
}
#ai-chat-root .ai-message-assistant ul > li {
  list-style-type: disc !important;
  list-style-position: outside !important;
}
#ai-chat-root .ai-message-assistant ol > li {
  list-style-type: decimal !important;
  list-style-position: outside !important;
}
#ai-chat-root .ai-message-assistant ul ul > li {
  list-style-type: circle !important;
  list-style-position: outside !important;
}
#ai-chat-root .ai-message-assistant ol ol > li {
  list-style-type: lower-alpha !important;
  list-style-position: outside !important;
}
#ai-chat-root .ai-message-assistant li {
  font-family: inherit !important;
  font-size: 1em !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  margin: 2px 0 !important;
  padding: 0 !important;
  display: list-item !important;
  background: none !important;
}
#ai-chat-root .ai-message-assistant li::before {
  content: none !important;
  display: none !important;
}
#ai-chat-root .ai-message-assistant li::after {
  content: none !important;
  display: none !important;
}
#ai-chat-root .ai-message-assistant strong {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 600 !important;
  line-height: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
}
#ai-chat-root .ai-message-assistant em {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  font-style: italic !important;
  line-height: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
}
#ai-chat-root .ai-message-assistant hr {
  border: none !important;
  border-top: 1px solid #e5e7eb !important;
  height: 0 !important;
  margin: 10px 0 !important;
  padding: 0 !important;
  background: none !important;
}
#ai-chat-root .ai-message-assistant code {
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace !important;
  font-size: 0.85em !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 1px 4px !important;
  background: #f3f4f6 !important;
  border-radius: 3px !important;
  color: inherit !important;
}
#ai-chat-root .ai-message-assistant pre {
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace !important;
  font-size: 0.85em !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  margin: 6px 0 !important;
  padding: 10px 12px !important;
  background: #f3f4f6 !important;
  border-radius: 6px !important;
  overflow-x: auto !important;
}
#ai-chat-root .ai-message-assistant pre code {
  font-size: 1em !important;
  font-weight: 400 !important;
  line-height: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}
#ai-chat-root .ai-message-assistant blockquote {
  font-family: inherit !important;
  font-size: 1em !important;
  font-weight: 400 !important;
  font-style: italic !important;
  line-height: 1.5 !important;
  margin: 6px 0 6px 0 !important;
  padding: 0 0 0 10px !important;
  border-left: 3px solid #d1d5db !important;
  color: #6b7280 !important;
  background: none !important;
}
#ai-chat-root .ai-message-assistant table {
  border-collapse: collapse !important;
  width: 100% !important;
  margin: 8px 0 !important;
  font-size: 0.9em !important;
  font-family: inherit !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  overflow-x: auto !important;
  display: block !important;
}
#ai-chat-root .ai-message-assistant thead {
  background: #f3f4f6 !important;
}
#ai-chat-root .ai-message-assistant th,
#ai-chat-root .ai-message-assistant td {
  border: 1px solid #e5e7eb !important;
  padding: 5px 10px !important;
  text-align: left !important;
  vertical-align: top !important;
  white-space: normal !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  background: none !important;
}
#ai-chat-root .ai-message-assistant th {
  font-weight: 600 !important;
  white-space: nowrap !important;
}
#ai-chat-root .ai-message-assistant tbody tr:nth-child(even) {
  background: #f9fafb !important;
}
.appearance--dark #ai-chat-root .ai-message-assistant thead {
  background: #25262a !important;
}
.appearance--dark #ai-chat-root .ai-message-assistant th,
.appearance--dark #ai-chat-root .ai-message-assistant td {
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.appearance--dark #ai-chat-root .ai-message-assistant tbody tr:nth-child(even) {
  background: #25262a !important;
}
.appearance--dark #ai-chat-root .ai-message-assistant hr {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}
.appearance--dark #ai-chat-root .ai-message-assistant code {
  background: #25262a !important;
}
.appearance--dark #ai-chat-root .ai-message-assistant pre {
  background: #25262a !important;
}
.appearance--dark #ai-chat-root .ai-message-assistant pre code {
  background: none !important;
}
.appearance--dark #ai-chat-root .ai-message-assistant blockquote {
  border-left-color: rgba(255, 255, 255, 0.12) !important;
  color: #95969a !important;
}
.appearance--dark .ai-message-assistant {
  background: transparent;
  border: none;
  color: #e5e6ea;
}
.ai-message-debug {
  align-self: stretch;
  background: #f8f6ff;
  border: 1px solid #e9e3f7;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 2px 0;
  max-width: 100%;
}
.ai-message-debug pre {
  margin: 0;
  font-size: 10px;
  font-family:
    "SF Mono",
    "Fira Mono",
    monospace;
  color: #7c3aed;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 160px;
  overflow-y: auto;
}
.appearance--dark .ai-message-debug {
  background: #1e1730;
  border-color: #3b2f6e;
}
.appearance--dark .ai-message-debug pre {
  color: #a78bfa;
}
.ai-greeting-section {
  padding: 10px 0 16px;
}
.ai-greeting-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  letter-spacing: -0.02em;
}
.appearance--dark .ai-greeting-title {
  color: #eee;
}
.ai-greeting-subtitle {
  margin: 3px 0 0;
  font-size: 14px;
  font-weight: 600;
  background:
    linear-gradient(
      135deg,
      #3b82f6 0%,
      #a855f7 50%,
      #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}
.ai-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ai-quick-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: transparent;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  width: 100%;
}
.ai-quick-card:hover {
  background: rgba(0, 0, 0, 0.04);
}
.appearance--dark .ai-quick-card:hover {
  background: rgba(255, 255, 255, 0.06);
}
.ai-quick-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-quick-card-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ai-quick-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.2;
}
.appearance--dark .ai-quick-card-title {
  color: #e5e6ea;
}
.ai-quick-card-desc {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.3;
}
.appearance--dark .ai-quick-card-desc {
  color: #9ca3af;
}
.ai-input-container {
  padding: 10px 16px;
  border-top: 1px solid #f0f0f0;
  background: inherit;
}
.appearance--dark .ai-input-container {
  border-top: 1px solid rgba(0, 0, 0, 0.35);
}
.ai-input-wrapper {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 6px 6px 6px 16px;
  display: flex;
  align-items: center;
  transition: all 0.2s;
  border: 1px solid transparent;
  min-height: 40px;
}
.ai-input-wrapper:focus-within {
  border-color: #3b82f6;
  background: #fff;
}
.appearance--dark .ai-input-wrapper {
  background: #2a2b2f;
}
.appearance--dark .ai-input-wrapper:focus-within {
  background: #202124;
  border-color: rgba(139, 92, 246, 0.5);
}
.ai-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  font-size: 14px;
  padding: 0;
  margin: 0;
  resize: none;
  max-height: 120px;
  font-family: inherit;
  line-height: 1.5;
  align-self: center;
  height: 20px;
  scrollbar-width: none;
}
.ai-input::-webkit-scrollbar {
  display: none;
}
.ai-send-btn {
  background: #111;
  color: #fff;
  border: none;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 0 !important;
  transition: all 0.2s;
  flex-shrink: 0;
}
.appearance--dark .ai-send-btn {
  background: #3b82f6;
}
.ai-send-btn:hover {
  transform: scale(1.05);
}
.ai-send-btn svg {
  width: 16px;
  height: 16px;
}
.ai-footer-note {
  font-size: 10px;
  color: #c4c7ce;
}
.appearance--dark .ai-footer-note {
  color: #55565a;
}
@keyframes ai-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.ai-thinking {
  display: flex;
  align-items: center;
  gap: 6px;
  font-style: italic;
  font-size: 12px;
  color: #aaa;
}
.ai-thinking-spinner {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(170, 170, 170, 0.3);
  border-top-color: #aaa;
  border-radius: 50%;
  animation: ai-spin 0.75s linear infinite;
  flex-shrink: 0;
}
.ai-messages::-webkit-scrollbar {
  width: 4px;
}
.ai-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}
.appearance--dark .ai-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}
.ai-flow-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  border-top: 1px solid rgba(168, 85, 247, 0.25);
  background: rgba(168, 85, 247, 0.05);
  gap: 8px;
}
.ai-flow-bar-label {
  font-size: 11px;
  font-weight: 600;
  color: #a855f7;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.ai-flow-bar-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.ai-flow-bar-end {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  background: transparent;
  color: #a855f7;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.ai-flow-bar-end:hover {
  background: rgba(168, 85, 247, 0.15);
}
.appearance--dark .ai-flow-bar {
  border-top-color: rgba(168, 85, 247, 0.2);
  background: rgba(168, 85, 247, 0.06);
}
.appearance--dark .ai-flow-bar-label {
  color: #c084fc;
}
.appearance--dark .ai-flow-bar-end {
  border-color: rgba(192, 132, 252, 0.45);
  color: #c084fc;
}
.appearance--dark .ai-flow-bar-end:hover {
  background: rgba(168, 85, 247, 0.18);
}
.ai-selection-indicator {
  font-size: 11px;
  line-height: 1;
  padding: 5px 12px 4px;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.07);
  border-top: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  gap: 5px;
  user-select: none;
}
.ai-selection-indicator-dot {
  font-size: 7px;
  opacity: 0.8;
}
.appearance--dark .ai-selection-indicator {
  color: #818cf8;
  background: rgba(99, 102, 241, 0.08);
  border-top-color: rgba(99, 102, 241, 0.2);
}
.ai-slash-menu {
  margin: 0 0 4px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  overflow: hidden;
}
.ai-slash-menu-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.1s;
}
.ai-slash-menu-item:hover,
.ai-slash-menu-item--active {
  background: rgba(59, 130, 246, 0.08);
}
.ai-slash-menu-sep {
  height: 1px;
  background: rgba(0, 0, 0, 0.07);
  margin: 3px 0;
}
.appearance--dark .ai-slash-menu-sep {
  background: rgba(255, 255, 255, 0.08);
}
.ai-slash-menu-cmd {
  font-size: 12px;
  font-weight: 600;
  color: #3b82f6;
  font-family: ui-monospace, monospace;
  min-width: 72px;
}
.ai-slash-menu-desc {
  font-size: 11px;
  color: #6b7280;
}
.appearance--dark .ai-slash-menu {
  background: #2a2b2f;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.appearance--dark .ai-slash-menu-item:hover,
.appearance--dark .ai-slash-menu-item--active {
  background: rgba(139, 92, 246, 0.15);
}
.appearance--dark .ai-slash-menu-cmd {
  color: #818cf8;
}
.appearance--dark .ai-slash-menu-desc {
  color: #9ca3af;
}
/*# sourceMappingURL=ai-bundle.css.map */
