/* fu.sion AI main layout & sidebar
 * Styles approximate the Tailwind-based sidebar from the design spec.
 */

.fusion-main-layout {
  display: flex;
  flex: 1 1 auto;
  overflow: hidden;
  width: 100%;
}

.fusion-main-sidebar {
  width: 58px;
  background: linear-gradient(to bottom, #1a1a2e, #16213e);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  gap: 1rem;
  z-index: 200;
  position: relative;
}

.fusion-main-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fusion-sidebar-button {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 120ms ease,
    box-shadow 150ms ease;
}

.fusion-sidebar-button:hover {
  background-color: #1f2937;
  color: #f9fafb;
}

.fusion-sidebar-button--home {
  background-color: #1f2937;
  color: #f9fafb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
}

.fusion-sidebar-button--home:hover {
  background-color: #374151;
}

.fusion-sidebar-button--active {
  background-image: linear-gradient(to bottom right, #f97316, #ea580c);
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.6);
}

.fusion-sidebar-button--active:hover {
  transform: scale(1.03);
}

.fusion-sidebar-button--orb {
  padding: 0.25rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
  background-color: #dd6b20;
  box-shadow: 0 14px 30px rgba(220, 104, 30, 0.7);
}

.fusion-sidebar-button--orb:hover {
  background-color: #f97316;
  transform: none;
}

.fusion-sidebar-orb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


/* RightMenu.css */
.right-menu {
    position: fixed;
    right: 0;
    top: 0;
    width: 700px;
    background-color: #fff;
  }
  
  .menu-content {
    padding-top: 59px;
  }
  
/* Message Content Container */
.message-content-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* Tool Reasoning — LiveThinking-style shell (markdown + pills unchanged) */
.tool-reasoning-section {
  margin-bottom: 12px;
  width: 100%;
}

.tool-reasoning-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 16px;
  margin: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.tool-reasoning-header:hover {
  border-color: #d1d5db;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tool-reasoning-header:focus-visible {
  outline: 2px solid #fb923c;
  outline-offset: 2px;
}

.tool-reasoning-header-brain {
  flex-shrink: 0;
  color: #f97316;
}

.tool-reasoning-header-brain--streaming {
  animation: tool-reasoning-soft-pulse 2s ease-in-out infinite;
}

@keyframes tool-reasoning-soft-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.55;
  }
}

.tool-reasoning-header-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.tool-reasoning-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  font-size: 0.75rem;
  color: #ea580c;
}

.tool-reasoning-live-dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}

.tool-reasoning-live-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #fb923c;
  opacity: 0.75;
  animation: tool-reasoning-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.tool-reasoning-live-dot::after {
  content: '';
  position: relative;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #ea580c;
}

@keyframes tool-reasoning-ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.tool-reasoning-live-label {
  white-space: nowrap;
}

.tool-reasoning-complete {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  font-size: 0.75rem;
  color: #16a34a;
}

.tool-reasoning-pills-row {
  margin-left: 4px;
}

.tool-reasoning-chevron-wrap {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: #9ca3af;
}

.tool-reasoning-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.tool-reasoning-chevron.is-open {
  transform: rotate(90deg);
}

.tool-usage-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 9999px;
  white-space: nowrap;
  line-height: 1.4;
}

.tool-reasoning-content-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease;
  opacity: 0;
}

.tool-reasoning-content-wrapper.expanded {
  max-height: 400px;
  opacity: 1;
  overflow-x: hidden;
  overflow-y: auto;
  margin-top: 8px;
}

.tool-reasoning-content-wrapper.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.tool-reasoning-content-wrapper.expanded::-webkit-scrollbar {
  width: 6px;
}

.tool-reasoning-content-wrapper.expanded::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.tool-reasoning-content-wrapper.expanded::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.tool-reasoning-content-wrapper.expanded::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.tool-reasoning-panel {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.tool-reasoning-content {
  padding: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #374151;
  background: transparent;
}

.tool-reasoning-type-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: #fb923c;
  border-radius: 2px;
  animation: tool-reasoning-soft-pulse 1s ease-in-out infinite;
}

.tool-reasoning-content .markdown-p {
  margin: 0.5rem 0;
}

.tool-reasoning-content .markdown-ul,
.tool-reasoning-content .markdown-ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

/* Response Section */
.response-section {
  width: 100%;
}

.response-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

/* Markdown Styling */
.inline-code {
  background: #f5f5f5;
  padding: 0.125rem 0.25rem;
  border-radius: 0.1875rem;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 0.8rem;
  color: inherit;
}

.code-block-wrapper {
  margin: 12px 0;
  border-radius: 8px;
  overflow: hidden;
}

.code-block {
  display: block;
  background: #f5f5f5;
  padding: 0.5rem;
  margin: 0;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 0.8rem;
  overflow-x: auto;
  line-height: 1.4;
  white-space: pre-wrap;
  border-radius: 0.3rem;
}

.table-wrapper {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: 8px;
}

.markdown-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  /* Smart column sizing - prevents layout shifts during streaming */
  border: 1px solid #ddd;
}

.markdown-th,
.markdown-table th {
  background: #333333;
  padding: 0.5rem;
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
  border: 1px solid #ddd;
  color: #ffffff;
}

.markdown-td,
.markdown-table td {
  padding: 0.5rem;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
  color: inherit;
}

.markdown-table tr:hover {
  background: #f8f9fa;
}

/* Smart table column sizing for AI-generated tables */
/* First column gets fixed width and bold text for better visual hierarchy */
.message-content-container table td:first-child,
.message-content-container table th:first-child,
.response-content table td:first-child,
.response-content table th:first-child,
.tool-reasoning-content table td:first-child,
.tool-reasoning-content table th:first-child {
  width: 18%;
  font-weight: 600;
}

/* First column data cells - center vertically only */
.message-content-container table td:first-child,
.response-content table td:first-child,
.tool-reasoning-content table td:first-child {
  vertical-align: middle;
  text-align: left;
}

.markdown-link {
  color: #0d6efd;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.markdown-link:hover {
  color: #0a58ca;
  border-bottom-color: #0a58ca;
}

.external-link-icon {
  font-size: 0.8em;
  opacity: 0.7;
}

.markdown-h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem 0;
  line-height: 1.2;
  color: #ff6f00;
}

.markdown-h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 1.25rem 0 0.625rem 0;
  line-height: 1.3;
  color: #ff6f00;
}

.markdown-h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem 0;
  line-height: 1.4;
  color: #ff6f00;
}

.markdown-h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0.875rem 0 0.4375rem 0;
  line-height: 1.4;
  color: #ff6f00;
}

.markdown-h5 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.75rem 0 0.375rem 0;
  line-height: 1.5;
  color: #ff6f00;
}

.markdown-h6 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.75rem 0 0.25rem 0;
  line-height: 1.5;
  color: #ff6f00;
}

.markdown-ul {
  list-style-type: disc !important;
  padding-left: 1.75rem !important;
  margin: 0.5rem 0 !important;
}

.markdown-ol {
  list-style-type: decimal !important;
  padding-left: 1.75rem !important;
  margin: 0.5rem 0 !important;
}

.markdown-li {
  margin: 0.25rem 0;
  line-height: 1.6;
  color: inherit;
}

.markdown-ul .markdown-ul {
  list-style-type: circle !important;
  margin: 4px 0;
}

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

.markdown-blockquote {
  border-left: 4px solid #ff6f00;
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  opacity: 0.9;
  color: inherit;
}

.markdown-p {
  margin: 0.75rem 0;
  line-height: 1.6;
  font-size: 0.95rem;
  color: inherit;
}

.markdown-strong {
  font-weight: 600;
  color: #ff6f00;
}

.markdown-em {
  font-style: italic;
  color: inherit;
}

.markdown-del {
  text-decoration: line-through;
  opacity: 0.7;
}

.markdown-checkbox {
  margin-right: 8px;
  cursor: not-allowed;
}

.markdown-li:has(.markdown-checkbox) {
  list-style-type: none !important;
  margin-left: -24px;
}

.markdown-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.markdown-hr {
  border: none;
  border-top: 2px solid #e0e0e0;
  margin: 1.5rem 0;
  opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .code-block {
    padding: 12px;
    font-size: 0.75em;
  }

  .markdown-th,
  .markdown-td,
  .markdown-table th,
  .markdown-table td {
    padding: 8px 10px;
    font-size: 0.9em;
  }

  .markdown-h1 {
    font-size: 1.75em;
  }

  .markdown-h2 {
    font-size: 1.35em;
  }

  .markdown-h3 {
    font-size: 1.15em;
  }

  .tool-reasoning-header {
    padding: 10px 12px;
  }

  .tool-reasoning-content {
    padding: 12px;
    font-size: 0.85rem;
  }

  .markdown-ul,
  .markdown-ol {
    padding-left: 20px !important;
  }
}
/* Fusion Agent Form Modal – Phase B.4 */

/*
 * Stacking: FusionHeader uses z-index ~1000–1002; sidebar ~200.
 * Backdrop must be above the app chrome but BELOW the dialog positioner (modal panel).
 * z-index on .fusion-form-content alone is wrong — the panel is fixed inside the
 * positioner’s stacking context, so the dimmer was painting over the card.
 */
.fusion-form-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4) !important;
  z-index: 1090 !important;
}

/* Ark/Chakra dialog positioner — must sit above .fusion-form-backdrop */
.fusion-form-dialog-positioner {
  z-index: 1100 !important;
}

/* Modal panel — no z-index; stacking comes from .fusion-form-dialog-positioner */
.fusion-form-content {
  position: fixed;
  top: 50%;
  left: calc(50% + 29px); /* offset half the sidebar width so it centers in the content area */
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fusion-form-topbar {
  background: #0f172a;
  color: #f9fafb;
  padding: 10px 20px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.fusion-form-topbar-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fusion-form-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.fusion-form-close:hover {
  background: transparent;
  color: #e5e7eb;
}

.fusion-form-header-section {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.fusion-form-agent-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fusion-form-agent-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.fusion-form-agent-info {
  flex: 1;
  min-width: 0;
}

.fusion-form-agent-name {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 6px;
}

/* Description: show in full, no truncation */
.fusion-form-agent-desc {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.45;
}

/* Body: column layout; scroll region + fixed footer */
.fusion-form-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.fusion-form-body-scroll {
  padding: 24px 24px 32px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
}

.fusion-form-slideout-content .fusion-form-header-section {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.fusion-form-slideout-content .fusion-form-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.fusion-form-slideout-content .fusion-form-body-scroll {
  padding: 24px 24px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
}

.fusion-form-slideout-content .fusion-form-footer {
  padding: 16px 24px 24px;
  flex-shrink: 0;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.fusion-form-rerun-banner {
  margin-bottom: 16px;
  padding: 16px;
  background: #fff7ed;
  border-left: 4px solid #f97316;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: #9a3412;
  line-height: 1.5;
}

.fusion-form-footer {
  padding: 16px 24px 24px;
  flex-shrink: 0;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.fusion-form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fusion-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fusion-form-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fusion-form-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
  display: block;
}

.fusion-form-required {
  color: #f97316;
  margin-left: 2px;
}

.fusion-form-optional {
  font-size: 12px;
  color: #9ca3af;
}

.fusion-form-help-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  transition: all 0.2s;
}

.fusion-form-help-icon:hover {
  background: #d1d5db;
  color: #374151;
}

.fusion-form-input,
.fusion-form-textarea {
  width: 100%;
  background: white;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #111827;
  transition: all 0.2s;
}

.fusion-form-input::placeholder,
.fusion-form-textarea::placeholder {
  color: #9ca3af;
}

.fusion-form-input:focus,
.fusion-form-textarea:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.fusion-form-textarea {
  resize: vertical;
  overflow-y: auto;
  min-height: 80px;
  max-height: 300px;
  line-height: 1.5;
}

/* Large text area (Media with Large Text Area, etc.) – taller box */
.fusion-form-textarea--large {
  min-height: 160px;
  max-height: 400px;
  resize: vertical;
}

.fusion-form-char-count {
  text-align: right;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}

/* File Upload */
.fusion-form-processing-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  font-size: 12px;
  color: #c2410c;
  margin-bottom: 12px;
}

.fusion-form-files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.fusion-form-file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  transition: all 0.2s;
}

.fusion-form-file-item.processing {
  background: #fff7ed;
  border-color: #fed7aa;
}

.fusion-form-file-item:hover .fusion-form-file-remove {
  opacity: 1;
}

.fusion-form-file-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fusion-form-file-item.processing .fusion-form-file-icon {
  background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
}

.fusion-form-file-svg {
  width: 20px;
  height: 20px;
  color: #ea580c;
}

.fusion-form-file-details {
  flex: 1;
  min-width: 0;
}

.fusion-form-file-name {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fusion-form-file-size {
  font-size: 12px;
  color: #6b7280;
}

.fusion-form-vectorizing {
  color: #ea580c;
  font-weight: 500;
}

.fusion-form-file-remove {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0;
  flex-shrink: 0;
}

.fusion-form-file-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

.fusion-form-dropzone {
  position: relative;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.fusion-form-dropzone:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.fusion-form-dropzone.dragging {
  border-color: #f97316;
  background: #fff7ed;
}

.fusion-form-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.fusion-form-dropzone-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.fusion-form-dropzone.dragging .fusion-form-dropzone-icon {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.fusion-form-download-icon {
  width: 20px;
  height: 20px;
  color: #9ca3af;
  transform: rotate(180deg);
  transition: all 0.2s;
}

.fusion-form-dropzone.dragging .fusion-form-download-icon {
  color: white;
}

.fusion-form-dropzone-text {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 4px;
  transition: all 0.2s;
}

.fusion-form-dropzone.dragging .fusion-form-dropzone-text {
  color: #ea580c;
}

.fusion-form-dropzone-hint {
  font-size: 12px;
  color: #9ca3af;
}

/* Submit button: stays at bottom of scroll area */
.fusion-form-submit {
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
  flex-shrink: 0;
}

.fusion-form-submit:hover:not(.disabled) {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
}

.fusion-form-submit.disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

.fusion-form-submit-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Processing Spinner */
.fusion-form-processing-spinner {
  animation: fusion-form-spin 1s linear infinite;
}

@keyframes fusion-form-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .fusion-form-content {
    max-width: 95%;
    max-height: 90vh;
  }

  .fusion-form-header-section,
  .fusion-form-body {
    padding: 20px 16px;
  }

  .fusion-form-agent-badge {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .fusion-form-agent-name {
    font-size: 16px;
  }

  .fusion-form-agent-desc {
    font-size: 13px;
  }
}

/* Thinking Status Component - Exact match to existing chat design */

.thinking-status-container {
  margin: 0 0 12px 0;
  animation: fadeInUp 0.3s ease-out;
  width: 100%;
}

.thinking-status-accordion {
  border: 1px solid #e0e0e0;
  border-radius: 0.625rem;
  background: #ffffff;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.thinking-status-header {
  padding: 0.625rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.thinking-status-header:hover {
  background: rgba(0, 0, 0, 0.02);
}

.thinking-status-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.phase-icon {
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.phase-icon.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.thinking-status-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.thinking-status-label {
  font-weight: 500;
  font-size: 1rem;
  color: #ff6f00;
}

.thinking-status-time {
  font-size: 0.75rem;
  color: #666;
}

.thinking-status-indicator {
  color: #808080;
  transition: transform 0.3s ease;
  font-size: 0.875rem;
}

.thinking-status-indicator.expanded {
  transform: rotate(180deg);
}

.thinking-status-body {
  padding: 0 0.625rem 0.625rem 0.625rem;
  border-top: 1px solid #eee;
  animation: slideDown 0.2s ease-out;
}

.phase-history {
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.phase-history-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phase-history-list {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.25rem;
}

.phase-history-list::-webkit-scrollbar {
  width: 6px;
}

.phase-history-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.phase-history-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.phase-history-list::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

.phase-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem;
  background: #f5f5f5;
  border-radius: 0.375rem;
  border-left: 3px solid #ff6f00;
  animation: slideInLeft 0.3s ease-out;
  animation-fill-mode: both;
}

.phase-history-item:nth-child(1) { animation-delay: 0.05s; }
.phase-history-item:nth-child(2) { animation-delay: 0.1s; }
.phase-history-item:nth-child(3) { animation-delay: 0.15s; }
.phase-history-item:nth-child(4) { animation-delay: 0.2s; }

.phase-history-item.thinking {
  border-left-color: #ff6f00;
}

.phase-history-item.reasoning {
  border-left-color: #ff6f00;
}

.phase-history-item.searching {
  border-left-color: #ff6f00;
}

.phase-history-item.responding {
  border-left-color: #ff6f00;
}

.phase-history-icon {
  font-size: 0.875rem;
}

.phase-history-text {
  flex: 1;
  font-size: 0.875rem;
  color: black;
  font-weight: 500;
}

.phase-history-duration {
  font-size: 0.75rem;
  color: #666;
  font-weight: 400;
}

.phase-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6f00;
  flex-shrink: 0;
  opacity: 0.6;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .thinking-status-header {
    padding: 0.5rem;
  }
  
  .phase-icon {
    font-size: 0.875rem;
    width: 18px;
    height: 18px;
  }
  
  .phase-history {
    padding: 0.375rem 0;
  }
  
  .thinking-status-label {
    font-size: 0.875rem;
  }
  
  .thinking-status-time {
    font-size: 0.6875rem;
  }
}

/* Subtle Animations - Matches existing design */

/* Fade in from bottom */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide in from right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide down */
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 1000px;
  }
}

/* Pulse animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

/* Fade in */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Blinking cursor for typing effect */
@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Respects user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Premium Chat Styles - Minimal, matches existing design */

:root {
  --brand-primary: #ff6f00;
  --brand-primary-hover: #ff8c00;
  --brand-primary-light: rgba(255, 111, 0, 0.1);
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-tertiary: #808080;
  --border-color: #e0e0e0;
  --background-white: #ffffff;
  --background-light: #f5f5f5;
  --shadow-sm: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  --shadow-md: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.12);
  --border-radius: 0.625rem;
  --border-radius-sm: 0.375rem;
}

/* Smooth transitions for all interactive elements */
button, a, .clickable {
  transition: all 0.2s ease;
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Ensure consistent font sizing */
.premium-text-sm {
  font-size: 0.75rem;
}

.premium-text-base {
  font-size: 0.875rem;
}

.premium-text-lg {
  font-size: 1rem;
}

/**
 * Responsive Layout - Mobile-first responsive design
 * Breakpoints and touch optimizations for all devices
 */

/* ===== BREAKPOINTS ===== */

:root {
  --breakpoint-mobile: 767px;
  --breakpoint-tablet: 1023px;
  --breakpoint-desktop: 1024px;
  --breakpoint-wide: 1440px;
}

/* ===== BASE MOBILE STYLES (0-767px) ===== */

/* Mobile-first approach - these are the default styles */
.chat-container-responsive {
  width: 100%;
  height: 100vh;
  padding: 0;
  overflow: hidden;
}

.chat-messages-responsive {
  padding: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.chat-input-responsive {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: white;
  border-top: 1px solid #e9ecef;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

/* Touch-friendly buttons */
.touch-button {
  min-width: 44px;
  min-height: 44px;
  padding: 12px;
  font-size: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

/* Touch-friendly inputs */
.touch-input {
  min-height: 44px;
  font-size: 16px; /* Prevents zoom on iOS */
  padding: 12px 16px;
  border-radius: 8px;
}

/* Mobile navigation */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: white;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile header */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: white;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Mobile content area */
.mobile-content {
  padding-top: 56px; /* Header height */
  padding-bottom: 60px; /* Nav height */
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Collapsible sections on mobile */
.mobile-collapsible {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-collapsible.open {
  max-height: 500px;
}

/* Mobile-optimized cards */
.mobile-card {
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Mobile-optimized text */
.mobile-text-sm {
  font-size: 0.875rem;
  line-height: 1.4;
}

.mobile-text-base {
  font-size: 1rem;
  line-height: 1.5;
}

.mobile-text-lg {
  font-size: 1.125rem;
  line-height: 1.6;
}

/* ===== TABLET STYLES (768px - 1023px) ===== */

@media (min-width: 768px) {
  .chat-container-responsive {
    padding: 16px;
  }

  .chat-messages-responsive {
    padding: 20px;
  }

  .chat-input-responsive {
    position: relative;
    padding: 16px 20px;
  }

  .touch-button {
    min-width: 40px;
    min-height: 40px;
    padding: 10px 16px;
  }

  .mobile-nav {
    display: none;
  }

  .mobile-header {
    height: 64px;
    padding: 0 24px;
  }

  .mobile-content {
    padding-top: 64px;
    padding-bottom: 0;
  }

  .mobile-card {
    padding: 20px;
    margin-bottom: 16px;
  }

  /* Two-column layout for tablet */
  .tablet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

/* ===== DESKTOP STYLES (1024px+) ===== */

@media (min-width: 1024px) {
  .chat-container-responsive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
  }

  .chat-messages-responsive {
    padding: 24px;
  }

  .chat-input-responsive {
    padding: 20px 24px;
  }

  .mobile-header {
    display: none;
  }

  .mobile-content {
    padding-top: 0;
  }

  .mobile-card {
    padding: 24px;
    margin-bottom: 20px;
  }

  /* Three-column layout for desktop */
  .desktop-grid {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 24px;
  }

  /* Hover effects enabled on desktop */
  .desktop-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

/* ===== WIDE SCREEN STYLES (1440px+) ===== */

@media (min-width: 1440px) {
  .chat-container-responsive {
    max-width: 1400px;
  }

  .desktop-grid {
    grid-template-columns: 350px 1fr 350px;
    gap: 32px;
  }
}

/* ===== TOUCH OPTIMIZATIONS ===== */

/* Remove hover effects on touch devices */
@media (hover: none) {
  .hover-effect:hover {
    transform: none;
    box-shadow: none;
  }

  /* Larger touch targets */
  button,
  a,
  input[type="button"],
  input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ===== SAFE AREA INSETS (iPhone X+) ===== */

@supports (padding: max(0px)) {
  .safe-area-top {
    padding-top: max(env(safe-area-inset-top), 16px);
  }

  .safe-area-bottom {
    padding-bottom: max(env(safe-area-inset-bottom), 16px);
  }

  .safe-area-left {
    padding-left: max(env(safe-area-inset-left), 16px);
  }

  .safe-area-right {
    padding-right: max(env(safe-area-inset-right), 16px);
  }

  .mobile-header {
    padding-top: env(safe-area-inset-top);
    height: calc(56px + env(safe-area-inset-top));
  }

  .mobile-nav {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(60px + env(safe-area-inset-bottom));
  }
}

/* ===== VIRTUAL KEYBOARD HANDLING ===== */

/* Adjust layout when keyboard is visible */
@media (max-height: 500px) {
  .mobile-content {
    padding-bottom: 0;
  }

  .mobile-nav {
    display: none;
  }

  .chat-input-responsive {
    position: relative;
  }
}

/* ===== ORIENTATION HANDLING ===== */

/* Landscape mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .mobile-header {
    height: 48px;
  }

  .mobile-content {
    padding-top: 48px;
  }

  .mobile-card {
    padding: 12px;
  }
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */

.responsive-heading-1 {
  font-size: 1.75rem;
  line-height: 1.2;
}

.responsive-heading-2 {
  font-size: 1.5rem;
  line-height: 1.3;
}

.responsive-heading-3 {
  font-size: 1.25rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .responsive-heading-1 {
    font-size: 2.25rem;
  }

  .responsive-heading-2 {
    font-size: 1.875rem;
  }

  .responsive-heading-3 {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .responsive-heading-1 {
    font-size: 2.5rem;
  }

  .responsive-heading-2 {
    font-size: 2rem;
  }

  .responsive-heading-3 {
    font-size: 1.75rem;
  }
}

/* ===== RESPONSIVE SPACING ===== */

.responsive-spacing-sm {
  padding: 8px;
}

.responsive-spacing-md {
  padding: 12px;
}

.responsive-spacing-lg {
  padding: 16px;
}

@media (min-width: 768px) {
  .responsive-spacing-sm {
    padding: 12px;
  }

  .responsive-spacing-md {
    padding: 16px;
  }

  .responsive-spacing-lg {
    padding: 24px;
  }
}

@media (min-width: 1024px) {
  .responsive-spacing-sm {
    padding: 16px;
  }

  .responsive-spacing-md {
    padding: 24px;
  }

  .responsive-spacing-lg {
    padding: 32px;
  }
}

/* ===== RESPONSIVE IMAGES ===== */

.responsive-image {
  width: 100%;
  height: auto;
  display: block;
}

.responsive-image-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.responsive-image-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== RESPONSIVE GRID ===== */

.responsive-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .responsive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .responsive-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1440px) {
  .responsive-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

/* ===== RESPONSIVE UTILITIES ===== */

/* Hide on mobile */
.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: block;
  }
}

/* Hide on tablet */
.hide-tablet {
  display: block;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hide-tablet {
    display: none;
  }
}

/* Hide on desktop */
.hide-desktop {
  display: block;
}

@media (min-width: 1024px) {
  .hide-desktop {
    display: none;
  }
}

/* Show only on mobile */
.show-mobile-only {
  display: block;
}

@media (min-width: 768px) {
  .show-mobile-only {
    display: none;
  }
}

/* Show only on tablet */
.show-tablet-only {
  display: none;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .show-tablet-only {
    display: block;
  }
}

/* Show only on desktop */
.show-desktop-only {
  display: none;
}

@media (min-width: 1024px) {
  .show-desktop-only {
    display: block;
  }
}

/* ===== PRINT STYLES ===== */

@media print {
  .mobile-nav,
  .mobile-header,
  .chat-input-responsive,
  .no-print {
    display: none !important;
  }

  .mobile-content {
    padding: 0;
  }

  .chat-container-responsive {
    max-width: 100%;
    padding: 0;
  }
}

/* fu.sion chat – shared UI primitives
 * These classes are scoped to the fusion chat experience only.
 */

/* Typography & base */
.fusion-text-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-width: 2px;
  border-style: solid;
  border-color: #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  font-size: 0.875rem;
  transition: all 150ms ease;
}

.fusion-text-input:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.4);
}

/* Buttons */
.fusion-primary-btn {
  background-image: linear-gradient(to right, #f97316, #ea580c);
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.625rem 1.25rem;
  box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
  border: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-position 150ms ease, opacity 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.fusion-primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 20px 25px -5px rgba(249, 115, 22, 0.4);
}

.fusion-primary-btn--disabled,
.fusion-primary-btn:disabled {
  background-image: none;
  background-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

.fusion-secondary-btn {
  background-color: #ffffff;
  border-width: 2px;
  border-style: solid;
  border-color: #e5e7eb;
  color: #374151;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.625rem 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.fusion-secondary-btn:hover:not(:disabled) {
  background-color: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.fusion-secondary-btn--disabled,
.fusion-secondary-btn:disabled {
  background-color: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

.fusion-tertiary-btn {
  background-color: transparent;
  color: #4b5563;
  font-weight: 500;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 150ms ease, background-color 150ms ease, opacity 150ms ease;
}

.fusion-tertiary-btn:hover:not(:disabled) {
  color: #f97316;
  background-color: #fff7ed;
}

.fusion-tertiary-btn--disabled,
.fusion-tertiary-btn:disabled {
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Toggle switch */
.fusion-toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  width: 2.75rem;
  border-radius: 9999px;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.fusion-toggle-switch--on {
  background-color: #f97316;
}

.fusion-toggle-switch--off {
  background-color: #d1d5db;
}

.fusion-toggle-switch__thumb {
  position: relative;
  height: 1rem;
  width: 1rem;
  border-radius: 9999px;
  background-color: #ffffff;
  transition: transform 150ms ease;
}

.fusion-toggle-switch__thumb--on {
  transform: translateX(1.25rem);
}

.fusion-toggle-switch__thumb--off {
  transform: translateX(0.25rem);
}

/* Response cards */
.fusion-response-card {
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06);
  max-width: 100%;
}

.fusion-response-card--user {
  margin-left: auto;
  background-color: #fef3c7;
  border: 1px solid #fbbf24;
}

.fusion-response-card--bot {
  margin-right: auto;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
}

/* Thinking block wrapper (for ThinkingStatus) */
.fusion-thinking-card {
  background-image: linear-gradient(to bottom right, #f8fafc, #ffffff);
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: all 150ms ease;
}


/* Fusion Chat Controls – Phase B.5 */

/* Chat title input - orange border on focus (Slide 14) */
.fusion-title-input:focus,
.fusion-title-input[data-focus] {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.25) !important;
  outline: none !important;
}

/* Send button – DomainSelection style; red when streaming (stop); no shadow, centered */
.fusion-chat-input-wrap .fusion-domain-send-icon,
.fusion-chat-input-wrap .fusion-domain-send-icon:not(:disabled),
.fusion-chat-input-wrap .fusion-domain-send-icon:hover:not(:disabled),
.fusion-chat-input-wrap .fusion-domain-send-icon.fusion-chat-send-sending,
.fusion-chat-input-wrap .fusion-domain-send-icon.fusion-chat-send-sending:hover {
  box-shadow: none !important;
}
.fusion-chat-input-wrap .fusion-domain-send-icon {
  bottom: 0.5rem;
}
.fusion-chat-input-wrap .fusion-domain-send-icon:hover:not(:disabled) {
  transform: scale(1.05);
}
.fusion-chat-input-wrap .fusion-domain-send-icon.fusion-chat-send-sending {
  background: linear-gradient(to right, #dc2626, #b91c1c) !important;
}
.fusion-chat-input-wrap .fusion-domain-send-icon.fusion-chat-send-sending:hover {
  background: linear-gradient(to right, #b91c1c, #991b1b) !important;
}

/* Scroll to Bottom wrapper - sits between messages and input, never overlaps */
.fusion-scroll-to-bottom-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0 2px;
  flex-shrink: 0;
  background: transparent;
}

/* Scroll to Bottom Button */
.fusion-scroll-to-bottom {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border: none;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4), 0 0 20px rgba(249, 115, 22, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
  animation: fusion-scroll-pulse 2s ease-in-out infinite;
}

.fusion-scroll-to-bottom:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5), 0 0 28px rgba(249, 115, 22, 0.3);
  transform: translateY(-2px);
}

.fusion-scroll-to-bottom:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(249, 115, 22, 0.35);
}

.fusion-scroll-to-bottom svg {
  color: white;
}

@keyframes fusion-scroll-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4), 0 0 20px rgba(249, 115, 22, 0.2); }
  50% { box-shadow: 0 4px 20px rgba(249, 115, 22, 0.5), 0 0 24px rgba(249, 115, 22, 0.3); }
}

/* Message Action Buttons - Premium Style */
.fusion-message-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.fusion-message-action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  color: #6b7280;
  opacity: 0.7;
  transition: all 0.2s;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  font-weight: 500;
}

.fusion-message-action-btn:hover {
  opacity: 1;
  background: #f9fafb;
  color: #111827;
}

.fusion-message-action-btn.copied {
  color: #10b981;
  opacity: 1;
}

/* Export Menu */
.fusion-export-menu {
  position: relative;
}

.fusion-export-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 140px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 4px;
  z-index: 1000;
}

.fusion-export-item {
  padding: 8px 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s;
  color: #374151;
}

.fusion-export-item:hover {
  background: #f9fafb;
  color: #111827;
}

.fusion-export-item svg {
  font-size: 14px;
}

/* Disclaimer Text */
.fusion-disclaimer {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  margin: 8px 0;
  padding: 0 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .fusion-scroll-to-bottom {
    width: 40px;
    height: 40px;
  }

  .fusion-message-action-btn {
    font-size: 12px;
    padding: 4px 8px;
  }
}

/* Fusion Chat Messages - Premium Styling */

/* Premium message cards (matches the "rounded-2xl" design spec) */
.fusion-message-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.08);
  border-left: 4px solid transparent;
}

.fusion-message-card--user {
  border-left-color: #3b82f6;
}

.fusion-message-card--bot {
  border-left-color: #f97316;
}

.fusion-message-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.fusion-message-avatar {
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.fusion-message-avatar--user {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
}

.fusion-message-avatar--bot {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
}

.fusion-message-header-main {
  flex: 1;
  min-width: 0;
}

.fusion-message-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fusion-message-author {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Specific agent label on assistant messages (not default fu.sion AI) */
.fusion-message-author--agent {
  color: #ea580c;
}

/* User message: agent name after "Invoking … - " (not the FOUNDRY product line) */
.fusion-invoking-agent-name {
  color: #ea580c;
  font-weight: 600;
}

.fusion-message-meta-sep {
  font-size: 12px;
  color: #9ca3af;
  flex-shrink: 0;
}

.fusion-message-time {
  font-size: 12px;
  color: #6b7280;
  flex-shrink: 0;
  white-space: nowrap;
}

.fusion-message-body {
  color: #111827;
  font-size: 15px;
  line-height: 1.65;
}

/* Accelerated Message Prefix */
.fusion-accelerated-prefix {
  display: inline-block;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}

/* Message Container */
.fusion-messages-container {
  display: flex;
  flex-direction: column;
  padding: 24px 32px;
  width: 100%;
  gap: 16px;
  background: white;
}

/* Thinking/Deep Thinking Block - Separate collapsible box */
.fusion-thinking-block {
  margin: 0 0 8px 0;
  padding: 0;
  background: #fff7ed;
  border-left: 4px solid #f97316;
  border-radius: 8px;
  overflow: hidden;
}

.fusion-thinking-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  cursor: pointer;
  user-select: none;
  background: #fff7ed;
  transition: background 0.2s;
  border: none;
  font: inherit;
  text-align: left;
}

.fusion-thinking-header:hover {
  background: #ffedd5;
}

.fusion-thinking-icon {
  color: #f97316;
  font-size: 16px;
  flex-shrink: 0;
}

.fusion-thinking-title {
  font-size: 13px;
  font-weight: 600;
  color: #ea580c;
  flex: 1;
}

.fusion-thinking-status {
  font-size: 11px;
  color: #9ca3af;
  margin-left: auto;
  margin-right: 8px;
}

.fusion-thinking-toggle {
  color: #9ca3af;
  font-size: 14px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.fusion-thinking-toggle.expanded {
  transform: rotate(180deg);
}

.fusion-thinking-content {
  padding: 20px 24px;
  background: white;
  border-top: 1px solid #fed7aa;
  font-size: 14px;
  color: #78350f;
  line-height: 1.6;
  max-height: 400px;
  overflow-y: auto;
}

.fusion-thinking-content.collapsed {
  display: none;
}

/* Web Search Citations */
.fusion-citation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 10px;
  font-weight: bold;
  background: linear-gradient(to bottom right, #fed7aa, #ffedd5);
  color: #ea580c;
  border-radius: 4px;
  border: 1px solid #fdba74;
  margin: 0 2px;
  vertical-align: top;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.fusion-citation:hover {
  background: linear-gradient(to bottom right, #fdba74, #fed7aa);
  border-color: #fb923c;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .fusion-message-card {
    padding: 20px;
    border-radius: 14px;
  }

  .fusion-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .fusion-thinking-header {
    padding: 12px 16px;
  }

  .fusion-thinking-content {
    padding: 16px;
  }
}

/* Fusion AI – Domain Selection (Phase B.2)
 * Matches premium prototype: white panel, orange accent, 3-col grid, general question area.
 */

.fusion-domain-root {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem 2.5rem;
  background-image: radial-gradient(circle at top left, rgba(249, 115, 22, 0.08), transparent 55%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.06), transparent 55%);
  background-color: #f9fafb;
  overflow-y: auto;
}

.fusion-domain-inner {
  width: 100%;
  max-width: 72rem;
  margin: 1.5rem auto 1.5rem;
  color: #111827;
}

.fusion-domain-panel {
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 2.25rem 2.75rem 2.5rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  border: 1px solid #e5e7eb;
}

.fusion-domain-header {
  margin-bottom: 2rem;
}

.fusion-domain-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 150ms ease;
}

.fusion-domain-back:hover {
  color: #111827;
}

.fusion-domain-back-icon {
  transform: rotate(180deg);
}

.fusion-domain-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2rem;
  font-weight: 300;
  color: #111827;
  margin: 0 0 0.5rem;
}

.fusion-domain-title-accent {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #ea580c, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.fusion-domain-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.fusion-domain-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.fusion-domain-scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -2rem;
  color: #9ca3af;
  opacity: 0.9;
}

.fusion-domain-scroll-indicator svg {
  animation: fusion-scroll-bounce 1.4s infinite;
}

@keyframes fusion-scroll-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

.fusion-domain-section {
  margin-bottom: 0.5rem;
}

/* Scrollable list of domain rows (one after another), scroll inside section only */
.fusion-domain-list-wrap {
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.fusion-domain-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fusion-domain-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.5rem;
  border-radius: 1rem;
  background-image: linear-gradient(to bottom right, #020617, #0f172a);
  border: 1px solid rgba(148, 163, 184, 0.3);
  cursor: pointer;
  text-align: left;
  transition:
    background-color 150ms ease,
    transform 120ms ease,
    border-color 150ms ease;
}

.fusion-domain-card:hover {
  background-image: linear-gradient(to bottom right, #020617, #1f2937);
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.8);
}

.fusion-domain-card-accent {
  width: 0.25rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-image: linear-gradient(to bottom, #fb923c, #ea580c);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.7);
}

.fusion-domain-card-main {
  flex: 1 1 auto;
  min-width: 0;
}

.fusion-domain-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fusion-domain-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #cbd5f5;
}

.fusion-domain-card-chevron {
  color: #9ca3af;
  flex-shrink: 0;
  transition: color 150ms ease;
}

.fusion-domain-card:hover .fusion-domain-card-chevron {
  color: #f9fafb;
}

.fusion-domain-empty {
  font-size: 0.9rem;
  color: #9ca3af;
  padding: 0.75rem 0;
}

/* Skeleton states --------------------------------------------------------- */

.fusion-domain-card-skeleton {
  cursor: default;
  pointer-events: none;
  background-image: linear-gradient(to bottom right, #020617, #020617);
  border-color: rgba(148, 163, 184, 0.5);
  opacity: 0.9;
}

.fusion-domain-skeleton-block {
  width: 60%;
  height: 0.9rem;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, #1f2933 0%, #111827 50%, #1f2933 100%);
  background-size: 200% 100%;
  animation: fusion-skeleton-shimmer 1.2s ease-in-out infinite;
}

.fusion-domain-skeleton-pill {
  width: 3rem;
  height: 0.7rem;
  border-radius: 9999px;
  background: #0f172a;
  opacity: 0.7;
}

.fusion-domain-skeleton-pill-wide {
  width: 5rem;
}

@keyframes fusion-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.fusion-domain-general {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fusion-domain-or-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.fusion-domain-or-line {
  flex: 1 1 auto;
  height: 1px;
  background-color: #e5e7eb;
}

.fusion-domain-or-label {
  font-weight: 500;
  color: #6b7280;
}

/* Narrower input block, centered; send icon inside like chat page */
.fusion-domain-input-wrap {
  width: 100%;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.fusion-domain-input-inner {
  position: relative;
  width: 100%;
}

.fusion-domain-textarea {
  width: 100%;
  min-height: 56px;
  max-height: 200px;
  padding: 0.875rem 1rem 0.875rem 1.25rem;
  padding-right: 3.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.5;
  color: #111827;
  background-color: #fff;
  resize: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.fusion-domain-textarea::placeholder {
  color: #9ca3af;
}

.fusion-domain-textarea:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.fusion-domain-send-icon {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  cursor: pointer;
  transition: background 150ms ease, transform 120ms ease, box-shadow 150ms ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.fusion-domain-send-icon:not(:disabled) {
  background: linear-gradient(to right, #f97316, #ea580c);
  box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.25);
}

.fusion-domain-send-icon:hover:not(:disabled) {
  background: linear-gradient(to right, #ea580c, #c2410c);
  transform: scale(1.05);
  box-shadow: 0 6px 12px -2px rgba(249, 115, 22, 0.35);
}

.fusion-domain-send-icon:disabled {
  cursor: not-allowed;
  background: #e5e7eb;
  color: #9ca3af;
}

/* Toggles on the right, same UI as chat page (ChatTabs) */
.fusion-domain-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.fusion-domain-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: transparent;
  color: #6b7280;
  font-size: 0.825rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 32px;
  overflow: hidden;
}

.fusion-domain-toggle:hover {
  border-color: #f97316;
  color: #ea580c;
}

.fusion-domain-toggle-on {
  border-color: #ff6f00;
  background-color: #fff7ed;
  color: #ff6f00;
  font-weight: 500;
}

.fusion-domain-toggle-on:hover {
  border-color: #ea580c;
  background-color: #ffedd5;
  color: #c2410c;
}

/* fu.sion AI Landing Page
 * Tailored, scoped styles to match the provided design.
 * This file does NOT rely on Tailwind; it approximates the same look & feel.
 */

/* Prototype: flex-1 flex flex-col items-center p-8 bg-gradient-to-br from-orange-50/30 via-slate-50 to-white */
.fusion-landing-root {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(to bottom right, rgba(255, 237, 213, 0.3), #f8fafc, #ffffff);
  overflow-y: auto;
}

/* Prototype: max-w-5xl w-full my-auto */
.fusion-landing-inner {
  width: 100%;
  max-width: 64rem;
  margin: auto 0;
}

/* Prototype: bg-white/60 backdrop-blur-sm rounded-3xl p-12 shadow-sm */
.fusion-landing-welcome-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 3rem;
}

/* Prototype: text-4xl font-light text-gray-900 mb-2 */
.fusion-landing-welcome-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2.25rem;
  font-weight: 300;
  color: #111827;
  margin: 0 0 0.5rem;
}

.fusion-landing-welcome-highlight {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-image: linear-gradient(to right, #f97316, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

/* Prototype: text-gray-500 text-lg */
.fusion-landing-welcome-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.125rem;
  color: #6b7280;
  margin: 0;
}

/* First-image format: single column, stacked (Welcome → Start New Consultation → Recent Work) */
.fusion-landing-main-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Prototype: group relative bg-gradient-to-br from-orange-500 to-orange-600 hover:from-orange-600 hover:to-orange-700
   rounded-2xl p-8 shadow-lg hover:shadow-2xl transform hover:-translate-y-1
   overlay: from-white/20 to-transparent opacity-0 group-hover:opacity-100 */
.fusion-landing-start-card {
  position: relative;
  border-radius: 1rem;
  padding: 2rem;
  text-align: left;
  background-image: linear-gradient(to bottom right, #f97316, #ea580c);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  color: #ffffff;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 200ms ease, transform 200ms ease, background-image 200ms ease;
}

.fusion-landing-start-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
  border-radius: 1rem;
}

.fusion-landing-start-card:hover {
  background-image: linear-gradient(to bottom right, #ea580c, #c2410c);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.fusion-landing-start-card:hover::before {
  opacity: 1;
}

.fusion-landing-start-icon {
  display: block;
  margin-bottom: 1rem;
  color: #ffffff;
}

/* Prototype: text-white text-2xl font-semibold mb-2 tracking-tight */
.fusion-landing-start-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
}

/* Prototype: text-orange-50 */
.fusion-landing-start-text {
  font-size: 0.9375rem;
  color: #fff7ed;
  margin: 0;
}

/* Prototype: mt-6 text-white flex items-center gap-2 font-medium group-hover:gap-3 */
.fusion-landing-start-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.fusion-landing-start-card:hover .fusion-landing-start-cta {
  gap: 0.75rem;
}

/* Prototype: bg-white rounded-2xl p-8 border border-gray-200 shadow-md */
.fusion-landing-recent-card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.fusion-landing-recent-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.fusion-landing-recent-header-icon {
  color: #334155;
}

/* Prototype: text-xl font-semibold text-gray-900 */
.fusion-landing-recent-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

/* Prototype: space-y-3 */
.fusion-landing-recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Prototype: p-4 bg-slate-50 hover:bg-orange-50 rounded-xl border border-slate-100 hover:border-orange-200 shadow-sm hover:shadow-md */
.fusion-landing-recent-item {
  width: 100%;
  text-align: left;
  padding: 1rem;
  border-radius: 0.75rem;
  background-color: #f8fafc;
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.fusion-landing-recent-item:hover {
  background-color: #fff7ed;
  border-color: #fed7aa;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
}

/* Prototype: text-gray-900 font-medium text-sm ... group-hover:text-orange-600 */
.fusion-landing-recent-item-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  transition: color 150ms ease;
}

.fusion-landing-recent-item:hover .fusion-landing-recent-item-title {
  color: #ea580c;
}

/* Prototype: text-gray-500 text-xs flex items-center gap-2 */
.fusion-landing-recent-item-meta {
  font-size: 0.75rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Recent Work skeleton rows (fixed height, no layout jumping) */
@keyframes fusion-landing-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.fusion-landing-recent-skeleton-row {
  height: 64px;
  border-radius: 0.75rem;
  border: 1px solid #f1f5f9;
  background: linear-gradient(
    90deg,
    rgba(241, 245, 249, 0.9) 0%,
    rgba(226, 232, 240, 0.9) 25%,
    rgba(241, 245, 249, 0.9) 50%
  );
  background-size: 200% 100%;
  animation: fusion-landing-shimmer 1.2s ease-in-out infinite;
}

.fusion-landing-recent-empty {
  font-size: 0.85rem;
  color: #9ca3af;
  padding: 0.5rem 0;
}

/* Prototype: w-full mt-4 text-orange-500 hover:text-orange-600 text-sm font-medium */
.fusion-landing-view-history {
  width: 100%;
  margin-top: 1rem;
  border: none;
  background: transparent;
  color: #f97316;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: color 150ms ease;
}

.fusion-landing-view-history:hover {
  color: #ea580c;
}

/* Prototype: flex items-center justify-center gap-6 text-sm */
.fusion-landing-quick-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.fusion-landing-quick-link {
  border: none;
  background: transparent;
  color: #4b5563;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: color 150ms ease;
}

.fusion-landing-quick-link:hover {
  color: #f97316;
}

.fusion-landing-quick-link:disabled,
.fusion-landing-quick-link[disabled] {
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.85;
}

.fusion-landing-quick-link:disabled:hover,
.fusion-landing-quick-link[disabled]:hover {
  color: #9ca3af;
}

.fusion-landing-divider {
  color: #d1d5db;
}


/* Fusion AI – Project Selection
 * Standalone styles that closely mirror the premium prototype.
 */

.fusion-project-root {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem 2.5rem;
  /* Match Fusion landing page background */
  background-image: radial-gradient(circle at top left, rgba(249, 115, 22, 0.08), transparent 55%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.06), transparent 55%);
  background-color: #f9fafb;
  overflow-y: auto;
}

.fusion-project-inner {
  width: 100%;
  max-width: 72rem;
  margin: 1.5rem auto 1.5rem;
  color: #111827;
}

.fusion-project-panel {
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 2.25rem 2.75rem 2.5rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  border: 1px solid #e5e7eb;
}

.fusion-project-header {
  margin-bottom: 2rem;
}

.fusion-project-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 150ms ease;
}

.fusion-project-back:hover {
  color: #111827;
}

.fusion-project-back-icon {
  transform: rotate(180deg);
}

.fusion-project-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2rem;
  font-weight: 300;
  color: #111827;
  margin: 0 0 0.5rem;
}

.fusion-project-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.fusion-project-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.fusion-project-scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  color: #9ca3af;
  opacity: 0.9;
}

.fusion-project-scroll-indicator svg {
  animation: fusion-scroll-bounce 1.4s infinite;
}

@keyframes fusion-scroll-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

.fusion-project-section {
  margin-bottom: 0.5rem;
}

.fusion-project-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 1rem;
}

.fusion-project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .fusion-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fusion-project-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.5rem;
  border-radius: 1rem;
  background-image: linear-gradient(to bottom right, #020617, #0f172a);
  border: 1px solid rgba(148, 163, 184, 0.3);
  cursor: pointer;
  text-align: left;
  transition:
    background-color 150ms ease,
    transform 120ms ease,
    border-color 150ms ease;
}

.fusion-project-card:hover {
  background-image: linear-gradient(to bottom right, #020617, #1f2937);
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.8);
}

.fusion-project-card-accent {
  width: 0.25rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-image: linear-gradient(to bottom, #fb923c, #ea580c);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.7);
}

.fusion-project-card-main {
  flex: 1 1 auto;
  min-width: 0;
}

.fusion-project-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fusion-project-card-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #cbd5f5;
}

.fusion-project-card-meta svg {
  flex-shrink: 0;
}

.fusion-project-card-chevron {
  color: #9ca3af;
  flex-shrink: 0;
  transition: color 150ms ease;
}

.fusion-project-card:hover .fusion-project-card-chevron {
  color: #f9fafb;
}

.fusion-project-empty {
  font-size: 0.9rem;
  color: #9ca3af;
  padding: 0.75rem 0;
}

.fusion-project-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.fusion-project-primary-action {
  flex: 1 1 200px;
  min-width: 200px;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.9rem;
  border: 2px solid #e5e7eb;
  background-color: #ffffff;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 120ms ease;
  white-space: nowrap;
}

.fusion-project-primary-action:hover {
  background-color: #f8fafc;
  border-color: #f97316;
  color: #ea580c;
  transform: translateY(-1px);
}

.fusion-project-secondary {
  text-align: center;
}

.fusion-project-or-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.fusion-project-or-line {
  flex: 1 1 auto;
  height: 1px;
  background-color: #4b5563;
}

.fusion-project-or-label {
  font-weight: 500;
}

.fusion-project-history-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  background: transparent;
  color: #fb923c;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 150ms ease;
}

.fusion-project-history-link:hover {
  color: #f97316;
}

/* Skeleton loading states ------------------------------------------------- */

.fusion-project-grid-skeleton .fusion-project-card-skeleton {
  cursor: default;
  pointer-events: none;
  background-image: linear-gradient(to bottom right, #020617, #020617);
  border-color: rgba(148, 163, 184, 0.5);
  opacity: 0.9;
}

.fusion-project-skeleton-block {
  width: 70%;
  height: 0.9rem;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, #1f2933 0%, #111827 50%, #1f2933 100%);
  background-size: 200% 100%;
  animation: fusion-skeleton-shimmer 1.2s ease-in-out infinite;
}

.fusion-project-skeleton-pill {
  width: 3rem;
  height: 0.7rem;
  border-radius: 9999px;
  background: #0f172a;
  opacity: 0.7;
}

.fusion-project-skeleton-pill-wide {
  width: 5.5rem;
}

@keyframes fusion-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}


/* Fusion AI – Agent Selection (Phase B.3)
 * Matches prototype: Back to Domains, FOUNDRY title, domain name in subtitle,
 * scrollable list of agent cards with order box, name, Beta badge, description.
 */

.fusion-agent-root {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem 2.5rem;
  background-image: radial-gradient(circle at top left, rgba(249, 115, 22, 0.08), transparent 55%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.06), transparent 55%);
  background-color: #f9fafb;
  overflow-y: auto;
}

.fusion-agent-inner {
  width: 100%;
  max-width: 72rem;
  margin: 1.5rem auto 1.5rem;
  color: #111827;
}

.fusion-agent-panel {
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 2.25rem 2.75rem 2.5rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  border: 1px solid #e5e7eb;
}

.fusion-agent-header {
  margin-bottom: 2rem;
}

.fusion-agent-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 150ms ease;
}

.fusion-agent-back:hover {
  color: #111827;
}

.fusion-agent-back-icon {
  transform: rotate(180deg);
}

.fusion-agent-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2rem;
  font-weight: 300;
  color: #111827;
  margin: 0 0 0.5rem;
}

.fusion-agent-title-accent {
  background: linear-gradient(135deg, #ea580c, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.fusion-agent-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.fusion-agent-domain-name {
  color: #ea580c;
  font-weight: 500;
}

.fusion-agent-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fusion-agent-scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  color: #9ca3af;
  opacity: 0.9;
}

.fusion-agent-scroll-indicator svg {
  animation: fusion-scroll-bounce 1.4s infinite;
}

@keyframes fusion-scroll-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

.fusion-agent-section {
  margin-bottom: 0.5rem;
}

/* Scrollable list when more than 4 agents */
.fusion-agent-list-wrap {
  max-height: 560px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.fusion-agent-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fusion-agent-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.5rem;
  border-radius: 1rem;
  background-image: linear-gradient(to bottom right, #1e293b, #0f172a);
  border: 1px solid rgba(148, 163, 184, 0.3);
  cursor: pointer;
  text-align: left;
  transition:
    background-image 150ms ease,
    transform 120ms ease,
    border-color 150ms ease;
}

.fusion-agent-card:hover {
  background-image: linear-gradient(to bottom right, #334155, #1e2937);
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.8);
}

.fusion-agent-order-box {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(to bottom right, #ea580c, #f97316);
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.fusion-agent-card-main {
  flex: 1 1 auto;
  min-width: 0;
}

.fusion-agent-card-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.fusion-agent-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f9fafb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fusion-agent-beta {
  font-size: 0.75rem;
  font-weight: 500;
  color: #93c5fd;
  background-color: rgba(59, 130, 246, 0.3);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.fusion-agent-card-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fusion-agent-card-chevron {
  color: #94a3b8;
  flex-shrink: 0;
  transition: color 150ms ease;
}

.fusion-agent-card:hover .fusion-agent-card-chevron {
  color: #f9fafb;
}

.fusion-agent-empty {
  font-size: 0.9rem;
  color: #9ca3af;
  padding: 0.75rem 0;
}

/* Skeleton states --------------------------------------------------------- */

.fusion-agent-card-skeleton {
  cursor: default;
  pointer-events: none;
  background-image: linear-gradient(to bottom right, #1e293b, #1e293b);
  border-color: rgba(148, 163, 184, 0.5);
  opacity: 0.9;
}

.fusion-agent-skeleton-box {
  background-image: linear-gradient(to bottom right, #4b5563, #020617);
}

.fusion-agent-skeleton-block {
  width: 65%;
  height: 0.9rem;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, #1f2933 0%, #111827 50%, #1f2933 100%);
  background-size: 200% 100%;
  animation: fusion-skeleton-shimmer 1.2s ease-in-out infinite;
}

.fusion-agent-skeleton-pill {
  width: 3rem;
  height: 0.7rem;
  border-radius: 9999px;
  background: #0f172a;
  opacity: 0.7;
}

.fusion-agent-skeleton-line {
  width: 90%;
  height: 0.5rem;
  border-radius: 0.5rem;
  background: #0f172a;
  opacity: 0.75;
  margin-bottom: 0.25rem;
}

.fusion-agent-skeleton-line-short {
  width: 60%;
}

@keyframes fusion-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Phase E: Drag-and-drop overlay and file upload destination modal */

/* ─── Drag overlay (full-screen when dragging files) ─── */
.fusion-dnd-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.05) 0%,
    rgba(15, 23, 42, 0.2) 50%,
    rgba(249, 115, 22, 0.05) 100%
  );
  backdrop-filter: blur(4px);
}

.fusion-dnd-overlay-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(229, 231, 235, 0.5),
    0 0 40px rgba(249, 115, 22, 0.1);
  padding: 48px;
  max-width: 28rem;
  text-align: center;
}

.fusion-dnd-overlay-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  box-shadow: 0 20px 25px -5px rgba(249, 115, 22, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fusion-dnd-overlay-icon-svg {
  font-size: 40px;
  color: #fff;
  transform: rotate(180deg);
}

.fusion-dnd-overlay-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}

.fusion-dnd-overlay-subtitle {
  font-size: 0.9375rem;
  color: #6b7280;
  margin: 0;
}

/* ─── File upload destination modal ─── */
.fusion-dnd-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  padding: 16px;
}

.fusion-dnd-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 32rem;
  width: 100%;
  overflow: hidden;
  border: 1px;
}

/* Header */
.fusion-dnd-modal-header {
  background: linear-gradient(90deg, #1e293b 0%, #334155 100%);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fusion-dnd-modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fusion-dnd-modal-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fusion-dnd-modal-header-icon-svg {
  font-size: 20px;
  color: #fff;
  transform: rotate(180deg);
}

.fusion-dnd-modal-header-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.fusion-dnd-modal-header-meta {
  font-size: 12px;
  color: #cbd5e1;
  margin: 0;
}

.fusion-dnd-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.fusion-dnd-modal-close:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.fusion-dnd-modal-close:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* File preview */
.fusion-dnd-modal-preview {
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.fusion-dnd-modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fusion-dnd-modal-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #374151;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fusion-dnd-modal-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f97316;
  flex-shrink: 0;
}

.fusion-dnd-modal-chip-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fusion-dnd-modal-chip-more {
  background: #e2e8f0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #475569;
}

/* Body – destination options */
.fusion-dnd-modal-body {
  padding: 24px;
}

.fusion-dnd-modal-prompt {
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  margin: 0 0 16px;
}

.fusion-dnd-modal-option {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  margin-bottom: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.fusion-dnd-modal-option:last-of-type {
  margin-bottom: 0;
}

.fusion-dnd-modal-option:hover:not(:disabled) {
  border-color: #fb923c;
  background: rgba(255, 237, 213, 0.5);
}

.fusion-dnd-modal-option:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.fusion-dnd-modal-option-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  font-size: 24px;
  color: #fff;
}

.fusion-dnd-modal-option-icon-session {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.fusion-dnd-modal-option-icon-project {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.fusion-dnd-modal-option-content {
  flex: 1;
  min-width: 0;
}

.fusion-dnd-modal-option-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.fusion-dnd-modal-option-label {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.fusion-dnd-modal-option-help {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  transition: background 0.2s;
}

.fusion-dnd-modal-option-help:hover {
  background: #cbd5e1;
}

.fusion-dnd-modal-option-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.fusion-dnd-modal-option-chevron {
  font-size: 20px;
  color: #9ca3af;
  flex-shrink: 0;
  margin-top: 12px;
  transition: color 0.2s, transform 0.2s;
}

.fusion-dnd-modal-option:hover:not(:disabled) .fusion-dnd-modal-option-chevron {
  color: #f97316;
  transform: translateX(4px);
}

/* Footer */
.fusion-dnd-modal-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
}

.fusion-dnd-modal-cancel {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.fusion-dnd-modal-cancel:hover:not(:disabled) {
  color: #111827;
}

.fusion-dnd-modal-cancel:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.icon-hover-effect {
  color: #000;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}
.icon-hover-effect:hover {
  color: #ff6f00;
  transform: scale(1.1);
}
.button-hover-outline {
  color: #000;
  border: 1px solid currentColor;
  background: transparent;
}
.button-hover-outline:hover {
  color: #ff6f00;
}

/* fu.sion AI – Under Construction page
 * Minimal, aesthetic design matching Fusion theme.
 * Inspired by modern coming-soon pages: clean typography, subtle gradients, ample whitespace.
 */

.fusion-uc-root {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-image: radial-gradient(circle at top left, rgba(249, 115, 22, 0.06), transparent 50%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.04), transparent 50%);
  background-color: #fafafa;
  overflow-y: auto;
}

.fusion-uc-inner {
  width: 100%;
  max-width: 28rem;
}

.fusion-uc-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1.25rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(229, 231, 235, 0.8);
  text-align: center;
}

.fusion-uc-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(234, 88, 12, 0.08));
  margin-bottom: 1.5rem;
}

.fusion-uc-icon {
  color: #ea580c;
  opacity: 0.9;
  animation: fusion-uc-float 3s ease-in-out infinite;
}

@keyframes fusion-uc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.fusion-uc-badge {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.fusion-uc-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.fusion-uc-accent {
  width: 2.5rem;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: 2px;
  margin: 0 auto 1.25rem;
  opacity: 0.85;
}

.fusion-uc-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
  max-width: 18rem;
  margin-left: auto;
  margin-right: auto;
}

/* Fusion Slide-out Panel – Re-run, Refine, Next Agent */

.fusion-slide-out-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1100;
  pointer-events: auto;
  cursor: default;
  animation: fusion-slide-backdrop-in 0.2s ease-out;
}

@keyframes fusion-slide-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fusion-slide-out-panel {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  background: white;
  border-left: 1px solid #e5e7eb;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  z-index: 1101;
  display: flex;
  flex-direction: column;
  animation: fusion-slide-panel-in 0.3s ease-out;
}

/* No-overlay mode: panel pushes content instead of overlaying (same look as Re-run) */
.fusion-slide-out-panel--no-overlay {
  position: relative;
  height: 100%;
  flex-shrink: 0;
  z-index: 0;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
  animation: fusion-slide-panel-in 0.3s ease-out;
}

@keyframes fusion-slide-panel-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.fusion-slide-out-resize-handle {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16px;
  cursor: ew-resize;
  z-index: 10;
}

.fusion-slide-out-resize-handle:hover {
  background: rgba(249, 115, 22, 0.08);
}

.fusion-slide-out-resize-handle::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 64px;
  background: #d1d5db;
  border-radius: 2px;
  transition: background 0.2s;
}

.fusion-slide-out-resize-handle:hover::after {
  background: #f97316;
}

.fusion-slide-out-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #1e293b;
  color: white;
  flex-shrink: 0;
}

.fusion-slide-out-title {
  font-size: 16px;
  font-weight: 600;
}

.fusion-slide-out-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.fusion-slide-out-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.fusion-slide-out-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Refine and Extend Form – Phase B.5+ */

.fusion-refine-form {
  padding: 24px;
}

.fusion-refine-intro {
  color: #6b7280;
  font-size: 14px;
  margin: 0 0 24px;
  line-height: 1.5;
}

.fusion-refine-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 12px;
}

.fusion-refine-quick {
  margin-bottom: 24px;
}

.fusion-refine-presets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fusion-refine-preset-btn {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.fusion-refine-preset-btn:hover {
  background: #fff7ed;
  border-color: #fdba74;
}

.fusion-refine-preset-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.fusion-refine-preset-btn:hover .fusion-refine-preset-title {
  color: #ea580c;
}

.fusion-refine-preset-desc {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.fusion-refine-custom {
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.fusion-refine-textarea {
  width: 100%;
  min-height: 100px;
  max-height: 200px;
  padding: 12px 16px;
  font-size: 14px;
  color: #111827;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  resize: vertical;
  transition: border-color 0.2s;
}

.fusion-refine-textarea:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.fusion-refine-textarea::placeholder {
  color: #9ca3af;
}

.fusion-refine-char-count {
  text-align: right;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 6px;
}

.fusion-refine-submit {
  width: 100%;
  margin-top: 16px;
  padding: 14px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.fusion-refine-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
}

.fusion-refine-submit:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

/* Fusion Chat Action Bar – Phase B.5 */

.fusion-action-bar {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 24px;
  flex-shrink: 0;
  position: relative;
  top: auto;
  z-index: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.fusion-action-bar-scroll-container {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding-top: 6px;
  margin-top: -6px;
}

.fusion-action-bar-scroll {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: min-content;
}

/* Back Button */
.fusion-action-back {
  color: #9ca3af;
  background: transparent;
  border: none;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.fusion-action-back:hover {
  color: #111827;
  background: #f1f5f9;
}

.fusion-action-back-icon {
  transform: rotate(180deg);
}

/* Chat Title */
.fusion-chat-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* Action Groups */
.fusion-action-group {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-shrink: 0;
}

/* Action Buttons */
.fusion-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
  overflow: visible;
}

/* Primary button (orange) */
.fusion-action-btn.primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.fusion-action-btn.primary:hover {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
  transform: translateY(-1px);
}

/* Secondary button (white with border) */
.fusion-action-btn.secondary {
  background: white;
  color: #374151;
  border: 2px solid #e5e7eb;
  box-shadow: none;
  padding: 0 18px 0 14px;
}

.fusion-action-btn.secondary:hover {
  color: #111827;
  border-color: #d1d5db;
  background: #f9fafb;
  transform: translateY(-1px);
}

/* Tertiary button (text-style) */
.fusion-action-btn.tertiary {
  background: transparent;
  color: #6b7280;
  border: none;
  box-shadow: none;
}

.fusion-action-btn.tertiary:hover {
  color: #f97316;
  background: #fff7ed;
}

.fusion-action-btn.tertiary.active {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.fusion-action-btn.tertiary.active:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: white;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

/* Disabled button */
.fusion-action-btn.disabled {
  background: #f3f4f6;
  color: #9ca3af;
  border: 2px solid #e5e7eb;
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.fusion-action-btn.disabled:hover {
  transform: none;
}

.fusion-action-btn-disabled,
.fusion-action-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

/* SOON badge - tag on top-right corner of button, fully visible */
.fusion-action-soon-badge {
  position: absolute;
  top: -5px;
  right: -2px;
  margin: 0 !important;
  background: #3b82f6;
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.4);
}

/* Checkmark for active state */
.fusion-action-checkmark {
  font-size: 12px;
  margin-left: 4px;
}

/* Divider */
.fusion-action-divider {
  width: 1px;
  height: 36px;
  background: #d1d5db;
  flex-shrink: 0;
  align-self: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .fusion-action-bar {
    padding: 12px 16px;
  }

  .fusion-action-bar-scroll {
    gap: 16px;
  }

  .fusion-action-btn {
    font-size: 13px;
    padding: 8px 12px;
    min-height: 40px;
  }
}

@media (max-width: 640px) {
  .fusion-action-bar-scroll {
    gap: 12px;
  }

  .fusion-action-btn span {
    display: none;
  }

  .fusion-action-btn {
    padding: 8px;
    min-width: 40px;
  }

  .fusion-action-soon-badge {
    display: none;
  }
}

.btn-danger {
  background: transparent;
  border: none;
  color: #dc3545;
}
.btn-danger:hover {
  background: transparent;
  border: none;
  color: #c82333;
}
.btn-danger:disabled {
  background: transparent;
  border: none;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.prompt-builder-container {
  display: flex;
  height: 100%;
  min-height: 0;
  background: #ffffff;
}
.main-content {
  flex: 1;
  margin-left: 0;
  padding: 36px;
  padding-bottom: calc(36px + 76px);
  overflow-y: auto;
  /* Hide scrollbar for Chrome, Safari and Opera */
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}
.main-content::-webkit-scrollbar {
  display: none;
}
.main-content .content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.header .title-section {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header .title-section h1 {
  margin: 0;
  font-family: 'General Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 24.3px;
  letter-spacing: -0.01em;
  color: #162A3B;
}
.header .title-section .status-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 4px 12px;
  border-radius: 4px;
  background: #F7F7F7;
  color: #97A0AC;
  font-size: 14px;
  font-weight: 500;
  gap: 4px;
  min-width: 54px;
  justify-content: center;
}
.header .title-section .version-tag {
  font-family: 'General Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 21.6px;
  letter-spacing: 0;
  color: #97A0AC;
}
.header .actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header .actions .btn {
  display: inline-flex;
  align-items: center;
  font-family: 'General Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 21.6px;
  letter-spacing: 0;
  height: 38px;
}
.header .actions .btn.btn-icon {
  gap: 6px;
  border: 1px solid #DDDDDD;
  border-radius: 6px;
  padding: 8px 16px;
}
.header .actions .btn.btn-icon img {
  width: 18px;
  height: 18px;
}
.header .actions .btn.btn-icon:first-child {
  width: 127px;
  color: #162A3B;
}
.header .actions .btn.btn-icon.text-danger {
  width: 105px;
  color: #E70000;
}
.header .actions .btn.btn-secondary {
  width: 110px;
  background: #F5F5F5;
  color: #162A3B;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  gap: 10px;
}
.header .actions .btn.btn-primary {
  min-width: 87px;
  background: #1D4A7C;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  gap: 10px;
  justify-content: center;
}
.divider {
  height: 1px;
  align-self: stretch;
  background: #DDDDDD;
  margin: 0;
  margin-bottom: 36px;
}
.builder-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
}
.builder-tabs .tab {
  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  background: #F7F7F7;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  cursor: pointer;
  transition: all 0.2s ease;
}
.builder-tabs .tab:hover {
  color: #1D4A7C;
}
.builder-tabs .tab.active {
  background: rgba(29, 74, 124, 0.1);
  color: #1D4A7C;
  box-shadow: none;
}
.form-section {
  background: white;
}
.form-section .section-title {
  align-self: stretch;
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.18px;
  margin-bottom: 16px;
}
.form-section .form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-section .form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}
.form-section .form-group {
  margin-bottom: 1.5rem;
}
.form-section .form-group.half-width {
  width: 50%;
}
.form-section .form-group label {
  display: block;
  align-self: stretch;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.225rem;
  margin-bottom: 0.5rem;
}
.form-section .form-group .select-wrapper {
  position: relative;
}
.form-section .form-group .select-wrapper select.form-control {
  display: flex;
  padding: 0.75rem;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.625rem;
  align-self: stretch;
  border-radius: 0.375rem;
  border: 1px solid #DDD;
  width: 100%;
  font-family: "General Sans", sans-serif;
  font-size: 0.875rem;
  line-height: 1.225rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 1.875rem;
  background-color: #FFFFFF;
}
.form-section .form-group .select-wrapper select.form-control::placeholder {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.225rem;
}
.form-section .form-group .select-wrapper .select-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #97A0AC;
}
.form-section .form-group input.form-control {
  display: flex;
  padding: 0.75rem;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.625rem;
  align-self: stretch;
  border-radius: 0.375rem;
  border: 1px solid #DDD;
  width: 100%;
  font-family: "General Sans", sans-serif;
  font-size: 0.875rem;
  line-height: 1.225rem;
}
.form-section .form-group input.form-control::placeholder {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.225rem;
}
.form-section .form-group textarea.form-control {
  display: flex;
  height: 120px;
  padding: 12px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  align-self: stretch;
  border-radius: 6px;
  border: 1px solid #DDD;
  width: 100%;
  resize: none;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  line-height: 19.6px;
}
.form-section .form-group textarea.form-control::placeholder {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 19.6px;
}
.form-section .form-group .btn-add-variable {
  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  background: rgba(29, 74, 124, 0.1);
  border: none;
  margin-bottom: 16px;
  cursor: pointer;
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.form-section .form-group .btn-add-variable i {
  font-size: 16px;
  color: #1D4A7C;
}
.form-section .form-group .btn-add-variable:hover {
  background: rgba(29, 74, 124, 0.15);
}
.form-section .available-variables {
  margin-top: 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-section .available-variables label {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  margin: 0;
  display: flex;
  align-items: center;
}
.form-section .available-variables .variable-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.form-section .available-variables .variable-tags .variable-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  height: 28px;
  background: #F7F7F7;
  border-radius: 6px;
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.6px;
  margin: 0;
}
.form-section .template-header {
  margin-bottom: 36px;
}
.form-section .template-header h1 {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32.4px;
  margin: 0 0 8px 0;
}
.form-section .template-header .description {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 21.6px;
  margin: 0 0 8px 0;
}
.form-section .template-header .subtitle {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 19.6px;
  margin: 0;
}
.form-section .user-input-section .input-field-row {
  background: #FFFFFF;
  border: 1px solid #DDDDDD;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}
.form-section .user-input-section .input-field-row .field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.form-section .user-input-section .input-field-row .field-header h3 {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 21.6px;
  margin: 0;
}
.form-section .user-input-section .input-field-row .field-header .field-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .required-tag {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch input:checked + label {
  background-color: #1D4A7C;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch input:checked + label:before {
  transform: translateX(16px);
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #DDD;
  transition: 0.4s;
  border-radius: 20px;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch label:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
.form-section .user-input-section .input-field-row .field-config {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}
.form-section .user-input-section .input-field-row .field-config .input-type {
  flex: 2;
}
.form-section .user-input-section .input-field-row .field-config .character-limit {
  flex: 1;
}
.form-section .user-input-section .input-field-row .field-config label {
  display: block;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.6px;
  margin-bottom: 8px;
}
.form-section .user-input-section .input-field-row .field-config select.form-control,
.form-section .user-input-section .input-field-row .field-config input.form-control {
  width: 100%;
  height: 44px;
  padding: 12px;
  border: 1px solid #DDD;
  border-radius: 6px;
  background: #FFFFFF;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
}
.form-section .user-input-section .input-field-row .variable-mapping .btn-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #F7F7F7;
  border: none;
  border-radius: 6px;
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.form-section .user-input-section .input-field-row .variable-mapping .btn-map i {
  font-size: 14px;
}
.form-section .user-input-section .input-field-row .variable-mapping .btn-map:hover {
  background: rgba(29, 74, 124, 0.1);
}
.knowledge-sources .source-item {
  display: flex;
  padding: 16px;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  border-radius: 6px;
  background: #F7F7F7;
  margin-bottom: 8px;
}
.knowledge-sources .source-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #97A0AC;
  background: #FFFFFF;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  margin: 0;
  flex-shrink: 0;
}
.knowledge-sources .source-item input[type="checkbox"]:checked {
  background: #1D4A7C;
  border-color: #1D4A7C;
}
.knowledge-sources .source-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.knowledge-sources .source-item input[type="checkbox"]:not(:checked) {
  background: #FFFFFF;
  border: 1px solid #97A0AC;
}
.knowledge-sources .source-item label {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.knowledge-sources .source-item label .knowledge-source-title {
  align-self: stretch;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.16px;
}
.knowledge-sources .source-item label .knowledge-source-description {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 19.6px;
}
.knowledge-sources .source-item:last-child {
  margin-bottom: 0;
}
.settings-sidebar {
  width: 320px;
  height: 100vh;
  background: #FFFFFF;
  border-left: 1px solid #DDDDDD;
  padding: 24px;
  padding-bottom: calc(24px + 76px);
  overflow-y: auto;
  /* Hide scrollbar for Chrome, Safari and Opera */
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}
.settings-sidebar::-webkit-scrollbar {
  display: none;
}
.settings-sidebar .settings-section {
  margin-bottom: 32px;
}
.settings-sidebar .settings-section h3 {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.18px;
  margin: 0 0 16px 0;
}
.settings-sidebar .settings-section h4 {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}
.settings-sidebar .settings-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.settings-sidebar .settings-section .section-header h4 {
  margin: 0;
}
.settings-sidebar .settings-section .section-header .btn-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.16px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  height: 24px;
}
.settings-sidebar .settings-section .section-header .btn-add img {
  width: 24px;
  height: 24px;
}
.settings-sidebar .settings-section .section-header .btn-add:hover {
  opacity: 0.8;
}
.settings-sidebar .settings-section .dropdown-container {
  position: relative;
  width: 100%;
}
.settings-sidebar .settings-section .dropdown-container .format-dropdown {
  width: 100%;
  padding: 8px 12px;
  background: #F8F9FA;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  color: #162A3B;
  appearance: none;
  cursor: pointer;
  outline: none;
}
.settings-sidebar .settings-section .dropdown-container .format-dropdown:hover {
  border-color: #D1D5DB;
}
.settings-sidebar .settings-section .dropdown-container .format-dropdown:focus {
  border-color: #1D4A7C;
  box-shadow: 0 0 0 2px rgba(29, 74, 124, 0.1);
}
.settings-sidebar .settings-section .dropdown-container .dropdown-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.settings-sidebar .settings-section .dropdown-container .dropdown-arrow svg {
  display: block;
}
.settings-sidebar .access-description {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.14px;
  margin: 0 0 8px 0;
}
.settings-sidebar .access-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-sidebar .access-controls .checkbox-item {
  padding: 6px 0 6px 4px;
  border-radius: 6px;
  transition: background 0.15s;
  display: flex;
  align-items: center;
}
.settings-sidebar .access-controls .checkbox-item input[type="checkbox"] {
  accent-color: #1D4A7C;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border-radius: 4px;
  border: 1.5px solid #B0B6BE;
  background: #fff;
  transition: border 0.2s;
}
.settings-sidebar .access-controls .checkbox-item input[type="checkbox"]:checked {
  border: 1.5px solid #1D4A7C;
}
.settings-sidebar .access-controls .checkbox-item input[type="checkbox"]:disabled {
  accent-color: #B0B6BE;
  background: #F5F5F5;
}
.settings-sidebar .access-controls .checkbox-item span {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.12px;
  transition: color 0.15s;
}
input[type="checkbox"]:checked + .settings-sidebar .access-controls .checkbox-item span {
  color: #1D4A7C;
}
input[type="checkbox"][disabled] + .settings-sidebar .access-controls .checkbox-item span {
  color: #B0B6BE;
}
.settings-sidebar .categories-list .category-item {
  display: flex;
  padding: 10px 12px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border-radius: 6px;
  background: #F7F7F7;
  margin-bottom: 8px;
}
.settings-sidebar .categories-list .category-item span {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.16px;
}
.settings-sidebar .categories-list .category-item .category-actions {
  display: flex;
  gap: 4px;
}
.settings-sidebar .categories-list .category-item .category-actions .btn-icon {
  padding: 4px;
  color: #97A0AC;
}
.settings-sidebar .categories-list .category-item .category-actions .btn-icon:hover {
  color: #162A3B;
}
.settings-sidebar .version-history .version-item {
  display: flex;
  padding: 10px 12px;
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
  border-radius: 6px;
  background: #F7F7F7;
  margin-bottom: 8px;
}
.settings-sidebar .version-history .version-item .version-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-sidebar .version-history .version-item .version-info .version-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-sidebar .version-history .version-item .version-info .version-header .version-number {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.16px;
}
.settings-sidebar .version-history .version-item .version-info .version-header .version-label {
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  background-color: rgba(29, 74, 124, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}
.settings-sidebar .version-history .version-item .version-info .version-label.draft {
  background-color: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
}
.settings-sidebar .version-history .version-item .version-info .version-label.current-draft {
  background-color: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
  margin-left: 4px;
}
.settings-sidebar .version-history .version-item .version-info .version-label:contains("Current") {
  background-color: #f6ffed !important;
  color: #52c41a !important;
  border: 1px solid #b7eb8f !important;
  margin-left: 4px;
}
.settings-sidebar .version-history .version-item .version-info .version-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-sidebar .version-history .version-item .version-info .version-meta .user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-sidebar .version-history .version-item .version-info .version-meta .user-info .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E8EDF3;
}
.settings-sidebar .version-history .version-item .version-info .version-meta .user-info .name {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.14px;
}
.settings-sidebar .version-history .version-item .version-info .version-meta .time {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
}
.settings-sidebar .version-history .version-item .version-actions {
  position: relative;
}
.settings-sidebar .version-history .version-item .version-actions .btn-more {
  padding: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
.settings-sidebar .version-history .version-item .version-actions .btn-more:hover {
  background: rgba(0, 0, 0, 0.05);
}
.settings-sidebar .version-history .version-item .version-actions .btn-more img {
  width: 16px;
  height: 16px;
}
.settings-sidebar .version-history .version-item .version-actions .version-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  background: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.settings-sidebar .version-history .version-item .version-actions .version-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}
.settings-sidebar .version-history .version-item .version-actions .version-dropdown .dropdown-item:hover {
  background: #F7F7F7;
}
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-radius: 50%;
  border-top-color: currentColor;
  border-left-color: currentColor;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.btn.btn-secondary,
.btn.btn-primary {
  position: relative;
}
.btn.btn-secondary .loading-spinner,
.btn.btn-primary .loading-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.btn.btn-secondary:disabled,
.btn.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn.btn-secondary:disabled:has(.loading-spinner) > span,
.btn.btn-primary:disabled:has(.loading-spinner) > span,
.btn.btn-secondary:disabled:has(.loading-spinner) > div:not(.loading-spinner),
.btn.btn-primary:disabled:has(.loading-spinner) > div:not(.loading-spinner) {
  visibility: hidden;
}
.btn.btn-secondary .loading-spinner {
  border: 2px solid transparent;
  border-top-color: #162A3B;
  border-left-color: #162A3B;
}
.btn.btn-primary .loading-spinner {
  border: 2px solid transparent;
  border-top-color: #FFFFFF;
  border-left-color: #FFFFFF;
}
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loading-overlay .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(29, 74, 124, 0.1);
  border-radius: 50%;
  border-top-color: #1D4A7C;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 16px;
}
.loading-overlay .loading-text {
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.password-section .password-status-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background-color: #FFF5F5;
  border: 1px solid #FFCCCC;
  border-radius: 6px;
  margin-bottom: 16px;
}
.password-section .password-status-banner .status-icon {
  color: #E70000;
  font-size: 16px;
}
.password-section .password-status-banner .status-text {
  color: #991B1B;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
}
.password-section .password-management {
  padding: 12px;
  background-color: #F8F9FA;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  margin-bottom: 12px;
}
.password-section .password-management .password-management-title {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 12px 0;
}
.password-section .password-management .password-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.password-section .password-reset-flow .password-warning-banner {
  padding: 12px;
  background-color: #FFF4E6;
  border: 1px solid #FFD699;
  border-radius: 6px;
  margin-bottom: 12px;
}
.password-section .password-reset-flow .password-warning-banner span {
  color: #92400E;
  font-family: "General Sans", sans-serif;
  font-size: 12px;
  line-height: 1.5;
}
.password-section .password-reset-flow .password-reset-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.password-section .form-group {
  margin-top: 12px;
}
.password-section .form-group .form-label {
  display: block;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.password-section .form-group .form-label .required {
  color: #E70000;
  margin-left: 4px;
}
.password-section .form-group .form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  color: #162A3B;
  background: #F8F9FA;
  transition: border-color 0.2s;
}
.password-section .form-group .form-control::placeholder {
  color: #97A0AC;
}
.password-section .form-group .form-control:focus {
  outline: none;
  border-color: #1D4A7C;
  box-shadow: 0 0 0 2px rgba(29, 74, 124, 0.1);
}
.password-section .form-group .form-control.error {
  border-color: #E70000;
}
.password-section .form-group .error-text {
  color: #E70000;
  font-family: "General Sans", sans-serif;
  font-size: 12px;
  margin-top: 4px;
}
.password-section .btn-password-change {
  padding: 6px 12px;
  background: #1D4A7C;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.password-section .btn-password-change:hover {
  background: #163A5C;
}
.password-section .btn-password-forgot {
  padding: 6px 12px;
  background: #FFFFFF;
  color: #E70000;
  border: 1px solid #E70000;
  border-radius: 6px;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.password-section .btn-password-forgot:hover {
  background: #FFF5F5;
}
.password-section .btn-password-cancel {
  padding: 6px 12px;
  background: #FFFFFF;
  color: #162A3B;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.password-section .btn-password-cancel:hover {
  background: #F8F9FA;
}
.password-section .btn-password-reset {
  padding: 6px 12px;
  background: #E70000;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.password-section .btn-password-reset:hover:not(:disabled) {
  background: #CC0000;
}
.password-section .btn-password-reset:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.password-section .password-info-banner {
  margin-top: 12px;
  padding: 12px;
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 6px;
}
.password-section .password-info-banner p {
  margin: 0;
  color: #1E40AF;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  line-height: 1.5;
}
.password-section .password-info-banner p strong {
  font-weight: 500;
}
.token-config .form-group {
  margin-bottom: 12px;
}
.token-config .form-group .form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #374151;
}
.token-config .form-group .form-label .optional {
  color: #9CA3AF;
  font-weight: 400;
}
.token-config .form-group .form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.token-config .form-group .form-control:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.token-config .form-group .form-control::placeholder {
  color: #9CA3AF;
}
.token-config .form-group .help-text {
  margin-top: 6px;
  font-size: 12px;
  color: #6B7280;
  line-height: 1.4;
}
.token-config .btn-reset-tokens {
  padding: 6px 12px;
  font-size: 13px;
  color: #DC2626;
  background: transparent;
  border: 1px solid #FCA5A5;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.token-config .btn-reset-tokens:hover {
  background: #FEE2E2;
  border-color: #DC2626;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-overlay .modal-content {
  background: white;
  border-radius: 12px;
  width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}
.modal-overlay .modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 20px 24px;
  gap: 12px;
  background: #F2F2F2;
  margin-bottom: 24px;
  width: 100%;
}
.modal-overlay .modal-content .modal-header h3 {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}
.modal-overlay .modal-content .modal-header .btn-close {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.modal-overlay .modal-content .form-content {
  padding: 0 24px 24px 24px;
}
.modal-overlay .modal-content .variable-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.modal-overlay .modal-content .variable-row .form-group {
  flex: 1;
}
.modal-overlay .modal-content .variable-row .form-group label {
  display: block;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}
.modal-overlay .modal-content .variable-row .form-group label .required {
  color: #97A0AC;
}
.modal-overlay .modal-content .variable-row .form-group .form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #DDD;
  border-radius: 6px;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
}
.modal-overlay .modal-content .variable-row .form-group .form-control::placeholder {
  color: #97A0AC;
}
.modal-overlay .modal-content .btn-add-variable {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 184px;
  height: 38px;
  padding: 8px 16px;
  gap: 4px;
  background: #1D4A7C1A;
  border: none;
  border-radius: 6px;
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 0;
  cursor: pointer;
  margin-bottom: 24px;
  white-space: nowrap;
}
.modal-overlay .modal-content .btn-add-variable img {
  width: 24px;
  height: 24px;
}
.modal-overlay .modal-content .modal-footer {
  display: flex;
  justify-content: flex-end;
}
.modal-overlay .modal-content .modal-footer .btn-submit {
  width: 562px;
  height: 42px;
  padding: 10px 12px;
  gap: 12px;
  background: #DD6A1B;
  border: none;
  border-radius: 6px;
  color: white;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-overlay .modal-content .modal-footer .btn-submit:hover:not(:disabled) {
  background: #c65f18;
}
.modal-overlay .modal-content .modal-footer .btn-submit:disabled {
  background: #97A0AC;
  cursor: not-allowed;
}
.select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}
.select-wrapper .select-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
}
.select-wrapper select {
  appearance: none;
  padding-right: 30px;
  width: 100%;
}

.category-modal.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.category-modal .modal-content {
  background: #FFFFFF;
  border-radius: 8px;
  width: 400px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.category-modal .modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #DDDDDD;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.category-modal .modal-header h3 {
  margin: 0;
  color: #162A3B;
  font-family: 'General Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
}
.category-modal .modal-header .btn-close {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-modal .modal-header .btn-close:hover {
  background: #F5F5F5;
  border-radius: 4px;
}
.category-modal .modal-header .btn-close:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.category-modal .modal-header .btn-close:disabled:hover {
  background: none;
}
.category-modal .modal-header .btn-close img {
  width: 16px;
  height: 16px;
}
.category-modal form {
  padding: 24px;
}
.category-modal form .form-group {
  margin-bottom: 24px;
}
.category-modal form .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #162A3B;
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
}
.category-modal form .form-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #DDDDDD;
  border-radius: 6px;
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
  color: #162A3B;
}
.category-modal form .form-group input:focus {
  outline: none;
  border-color: #1D4A7C;
  box-shadow: 0 0 0 2px rgba(29, 74, 124, 0.2);
}
.category-modal form .form-group input:disabled {
  background: #F5F5F5;
  cursor: not-allowed;
}
.category-modal form .form-group input::placeholder {
  color: #97A0AC;
}
.category-modal form .form-group .error-message {
  margin-top: 8px;
  color: #E70000;
  font-family: 'General Sans', sans-serif;
  font-size: 12px;
}
.category-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.category-modal .modal-footer button {
  padding: 8px 16px;
  border-radius: 6px;
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.category-modal .modal-footer button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.category-modal .modal-footer button:disabled:hover {
  background: inherit;
}
.category-modal .modal-footer button.btn-cancel {
  background: #F5F5F5;
  border: none;
  color: #162A3B;
}
.category-modal .modal-footer button.btn-cancel:hover:not(:disabled) {
  background: #e8e8e8;
}
.category-modal .modal-footer button.btn-save {
  background: #1D4A7C;
  border: none;
  color: #FFFFFF;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-modal .modal-footer button.btn-save:hover:not(:disabled) {
  background: #183e67;
}
.category-modal .modal-footer button.btn-save .loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #FFFFFF;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.confirmation-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.confirmation-modal {
  background: #FFFFFF;
  border-radius: 8px;
  width: 400px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.confirmation-modal .modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #DDDDDD;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.confirmation-modal .modal-header h3 {
  margin: 0;
  color: #162A3B;
  font-family: 'General Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
}
.confirmation-modal .modal-header .btn-close {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.confirmation-modal .modal-header .btn-close:hover {
  background: #F5F5F5;
  border-radius: 4px;
}
.confirmation-modal .modal-header .btn-close img {
  width: 16px;
  height: 16px;
}
.confirmation-modal .modal-content {
  padding: 24px;
}
.confirmation-modal .modal-content p {
  color: #162A3B;
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.confirmation-modal .modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #DDDDDD;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.confirmation-modal .modal-footer .btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.confirmation-modal .modal-footer .btn.btn-secondary {
  background: #F5F5F5;
  border: none;
  color: #162A3B;
}
.confirmation-modal .modal-footer .btn.btn-secondary:hover {
  background: #e8e8e8;
}
.confirmation-modal .modal-footer .btn.btn-danger {
  background: #E70000;
  border: none;
  color: #FFFFFF;
}
.confirmation-modal .modal-footer .btn.btn-danger:hover {
  background: #ce0000;
}
.confirmation-modal .modal-footer .btn.btn-warning {
  background: #DD6A1B;
  border: none;
  color: #FFFFFF;
}
.confirmation-modal .modal-footer .btn.btn-warning:hover {
  background: #c65f18;
}
.confirmation-modal .modal-footer .btn.btn-info {
  background: #1D4A7C;
  border: none;
  color: #FFFFFF;
}
.confirmation-modal .modal-footer .btn.btn-info:hover {
  background: #183e67;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.edit-variable-modal {
  width: 450px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.edit-variable-modal .modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #EBEDF0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.edit-variable-modal .modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #2C2F33;
}
.edit-variable-modal .modal-header .btn-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.edit-variable-modal .modal-header .btn-close:hover {
  background-color: #f8f9fa;
  border-radius: 4px;
}
.edit-variable-modal .form-content {
  padding: 20px;
}
.edit-variable-modal .form-content .form-group {
  margin-bottom: 16px;
}
.edit-variable-modal .form-content .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2C2F33;
}
.edit-variable-modal .form-content .form-group label .required {
  color: #ED6A5A;
  margin-left: 4px;
}
.edit-variable-modal .form-content .form-group input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #DFE3E8;
  border-radius: 4px;
  font-size: 14px;
}
.edit-variable-modal .form-content .form-group input[type="text"]:focus {
  outline: none;
  border-color: #DD6B20;
  box-shadow: 0 0 0 3px rgba(221, 107, 32, 0.1);
}
.edit-variable-modal .form-content .form-group .radio-group {
  display: flex;
  gap: 20px;
}
.edit-variable-modal .form-content .form-group .radio-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.edit-variable-modal .form-content .form-group .radio-group label input[type="radio"] {
  margin-right: 8px;
}
.edit-variable-modal .form-content .delete-warning {
  background-color: #FEF2F2;
  border-left: 4px solid #EF4444;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #B91C1C;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
}
.edit-variable-modal .form-content .delete-confirm {
  font-weight: 500;
  font-size: 16px;
  color: #2C2F33;
  margin-bottom: 20px;
}
.edit-variable-modal .form-content .modal-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}
.edit-variable-modal .form-content .modal-footer button {
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
  border: none;
  transition: all 0.2s ease;
}
.edit-variable-modal .form-content .modal-footer .btn-delete {
  background-color: #FEF2F2;
  color: #EF4444;
}
.edit-variable-modal .form-content .modal-footer .btn-delete:hover {
  background-color: #FEE2E2;
}
.edit-variable-modal .form-content .modal-footer .btn-cancel {
  background-color: #F8F9FA;
  color: #6C737F;
}
.edit-variable-modal .form-content .modal-footer .btn-cancel:hover {
  background-color: #EBEDF0;
}
.edit-variable-modal .form-content .modal-footer .btn-save {
  background-color: #DD6B20;
  color: white;
}
.edit-variable-modal .form-content .modal-footer .btn-save:hover {
  background-color: #C05621;
}
.edit-variable-modal .form-content .modal-footer .btn-save:disabled {
  background-color: #EBEDF0;
  color: #9CA3AF;
  cursor: not-allowed;
}

.prompt-builder-container {
  display: flex;
  height: 100%;
  min-height: 0;
  background: #ffffff;
}
.main-content {
  flex: 1;
  margin-left: 0;
  padding: 36px;
  padding-bottom: calc(36px + 76px);
  overflow-y: auto;
  /* Hide scrollbar for Chrome, Safari and Opera */
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}
.main-content::-webkit-scrollbar {
  display: none;
}
.main-content .content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.header .title-section {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header .title-section h1 {
  margin: 0;
  font-family: 'General Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 24.3px;
  letter-spacing: -0.01em;
  color: #162A3B;
}
.header .title-section .status-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 4px 12px;
  border-radius: 4px;
  background: #F7F7F7;
  color: #97A0AC;
  font-size: 14px;
  font-weight: 500;
  gap: 4px;
  min-width: 54px;
  justify-content: center;
}
.header .title-section .version-tag {
  font-family: 'General Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 21.6px;
  letter-spacing: 0;
  color: #97A0AC;
}
.header .actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header .actions .btn {
  display: inline-flex;
  align-items: center;
  font-family: 'General Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 21.6px;
  letter-spacing: 0;
  height: 38px;
}
.header .actions .btn.btn-icon {
  gap: 6px;
  border: 1px solid #DDDDDD;
  border-radius: 6px;
  padding: 8px 16px;
}
.header .actions .btn.btn-icon img {
  width: 18px;
  height: 18px;
}
.header .actions .btn.btn-icon:first-child {
  width: 127px;
  color: #162A3B;
}
.header .actions .btn.btn-icon.text-danger {
  width: 105px;
  color: #E70000;
}
.header .actions .btn.btn-secondary {
  width: 110px;
  background: #F5F5F5;
  color: #162A3B;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  gap: 10px;
}
.header .actions .btn.btn-primary {
  min-width: 87px;
  background: #1D4A7C;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  gap: 10px;
  justify-content: center;
}
.divider {
  height: 1px;
  align-self: stretch;
  background: #DDDDDD;
  margin: 0;
  margin-bottom: 36px;
}
.builder-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
}
.builder-tabs .tab {
  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  background: #F7F7F7;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  cursor: pointer;
  transition: all 0.2s ease;
}
.builder-tabs .tab:hover {
  color: #1D4A7C;
}
.builder-tabs .tab.active {
  background: rgba(29, 74, 124, 0.1);
  color: #1D4A7C;
  box-shadow: none;
}
.form-section {
  background: white;
}
.form-section .section-title {
  align-self: stretch;
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.18px;
  margin-bottom: 16px;
}
.form-section .form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-section .form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}
.form-section .form-group {
  margin-bottom: 1.5rem;
}
.form-section .form-group.half-width {
  width: 50%;
}
.form-section .form-group label {
  display: block;
  align-self: stretch;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.225rem;
  margin-bottom: 0.5rem;
}
.form-section .form-group .select-wrapper {
  position: relative;
}
.form-section .form-group .select-wrapper select.form-control {
  display: flex;
  padding: 0.75rem;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.625rem;
  align-self: stretch;
  border-radius: 0.375rem;
  border: 1px solid #DDD;
  width: 100%;
  font-family: "General Sans", sans-serif;
  font-size: 0.875rem;
  line-height: 1.225rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 1.875rem;
  background-color: #FFFFFF;
}
.form-section .form-group .select-wrapper select.form-control::placeholder {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.225rem;
}
.form-section .form-group .select-wrapper .select-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #97A0AC;
}
.form-section .form-group input.form-control {
  display: flex;
  padding: 0.75rem;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.625rem;
  align-self: stretch;
  border-radius: 0.375rem;
  border: 1px solid #DDD;
  width: 100%;
  font-family: "General Sans", sans-serif;
  font-size: 0.875rem;
  line-height: 1.225rem;
}
.form-section .form-group input.form-control::placeholder {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.225rem;
}
.form-section .form-group textarea.form-control {
  display: flex;
  height: 120px;
  padding: 12px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  align-self: stretch;
  border-radius: 6px;
  border: 1px solid #DDD;
  width: 100%;
  resize: none;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  line-height: 19.6px;
}
.form-section .form-group textarea.form-control::placeholder {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 19.6px;
}
.form-section .form-group .btn-add-variable {
  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  background: rgba(29, 74, 124, 0.1);
  border: none;
  margin-bottom: 16px;
  cursor: pointer;
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.form-section .form-group .btn-add-variable i {
  font-size: 16px;
  color: #1D4A7C;
}
.form-section .form-group .btn-add-variable:hover {
  background: rgba(29, 74, 124, 0.15);
}
.form-section .available-variables {
  margin-top: 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-section .available-variables label {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  margin: 0;
  display: flex;
  align-items: center;
}
.form-section .available-variables .variable-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.form-section .available-variables .variable-tags .variable-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  height: 28px;
  background: #F7F7F7;
  border-radius: 6px;
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.6px;
  margin: 0;
}
.form-section .template-header {
  margin-bottom: 36px;
}
.form-section .template-header h1 {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32.4px;
  margin: 0 0 8px 0;
}
.form-section .template-header .description {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 21.6px;
  margin: 0 0 8px 0;
}
.form-section .template-header .subtitle {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 19.6px;
  margin: 0;
}
.form-section .user-input-section .input-field-row {
  background: #FFFFFF;
  border: 1px solid #DDDDDD;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}
.form-section .user-input-section .input-field-row .field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.form-section .user-input-section .input-field-row .field-header h3 {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 21.6px;
  margin: 0;
}
.form-section .user-input-section .input-field-row .field-header .field-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .required-tag {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch input:checked + label {
  background-color: #1D4A7C;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch input:checked + label:before {
  transform: translateX(16px);
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #DDD;
  transition: 0.4s;
  border-radius: 20px;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch label:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
.form-section .user-input-section .input-field-row .field-config {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}
.form-section .user-input-section .input-field-row .field-config .input-type {
  flex: 2;
}
.form-section .user-input-section .input-field-row .field-config .character-limit {
  flex: 1;
}
.form-section .user-input-section .input-field-row .field-config label {
  display: block;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.6px;
  margin-bottom: 8px;
}
.form-section .user-input-section .input-field-row .field-config select.form-control,
.form-section .user-input-section .input-field-row .field-config input.form-control {
  width: 100%;
  height: 44px;
  padding: 12px;
  border: 1px solid #DDD;
  border-radius: 6px;
  background: #FFFFFF;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
}
.form-section .user-input-section .input-field-row .variable-mapping .btn-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #F7F7F7;
  border: none;
  border-radius: 6px;
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.form-section .user-input-section .input-field-row .variable-mapping .btn-map i {
  font-size: 14px;
}
.form-section .user-input-section .input-field-row .variable-mapping .btn-map:hover {
  background: rgba(29, 74, 124, 0.1);
}
.knowledge-sources .source-item {
  display: flex;
  padding: 16px;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  border-radius: 6px;
  background: #F7F7F7;
  margin-bottom: 8px;
}
.knowledge-sources .source-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #97A0AC;
  background: #FFFFFF;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  margin: 0;
  flex-shrink: 0;
}
.knowledge-sources .source-item input[type="checkbox"]:checked {
  background: #1D4A7C;
  border-color: #1D4A7C;
}
.knowledge-sources .source-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.knowledge-sources .source-item input[type="checkbox"]:not(:checked) {
  background: #FFFFFF;
  border: 1px solid #97A0AC;
}
.knowledge-sources .source-item label {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.knowledge-sources .source-item label .knowledge-source-title {
  align-self: stretch;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.16px;
}
.knowledge-sources .source-item label .knowledge-source-description {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 19.6px;
}
.knowledge-sources .source-item:last-child {
  margin-bottom: 0;
}
.settings-sidebar {
  width: 320px;
  height: 100vh;
  background: #FFFFFF;
  border-left: 1px solid #DDDDDD;
  padding: 24px;
  padding-bottom: calc(24px + 76px);
  overflow-y: auto;
  /* Hide scrollbar for Chrome, Safari and Opera */
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}
.settings-sidebar::-webkit-scrollbar {
  display: none;
}
.settings-sidebar .settings-section {
  margin-bottom: 32px;
}
.settings-sidebar .settings-section h3 {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.18px;
  margin: 0 0 16px 0;
}
.settings-sidebar .settings-section h4 {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}
.settings-sidebar .settings-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.settings-sidebar .settings-section .section-header h4 {
  margin: 0;
}
.settings-sidebar .settings-section .section-header .btn-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.16px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  height: 24px;
}
.settings-sidebar .settings-section .section-header .btn-add img {
  width: 24px;
  height: 24px;
}
.settings-sidebar .settings-section .section-header .btn-add:hover {
  opacity: 0.8;
}
.settings-sidebar .settings-section .dropdown-container {
  position: relative;
  width: 100%;
}
.settings-sidebar .settings-section .dropdown-container .format-dropdown {
  width: 100%;
  padding: 8px 12px;
  background: #F8F9FA;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  color: #162A3B;
  appearance: none;
  cursor: pointer;
  outline: none;
}
.settings-sidebar .settings-section .dropdown-container .format-dropdown:hover {
  border-color: #D1D5DB;
}
.settings-sidebar .settings-section .dropdown-container .format-dropdown:focus {
  border-color: #1D4A7C;
  box-shadow: 0 0 0 2px rgba(29, 74, 124, 0.1);
}
.settings-sidebar .settings-section .dropdown-container .dropdown-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.settings-sidebar .settings-section .dropdown-container .dropdown-arrow svg {
  display: block;
}
.settings-sidebar .access-description {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.14px;
  margin: 0 0 8px 0;
}
.settings-sidebar .access-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-sidebar .access-controls .checkbox-item {
  padding: 6px 0 6px 4px;
  border-radius: 6px;
  transition: background 0.15s;
  display: flex;
  align-items: center;
}
.settings-sidebar .access-controls .checkbox-item input[type="checkbox"] {
  accent-color: #1D4A7C;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border-radius: 4px;
  border: 1.5px solid #B0B6BE;
  background: #fff;
  transition: border 0.2s;
}
.settings-sidebar .access-controls .checkbox-item input[type="checkbox"]:checked {
  border: 1.5px solid #1D4A7C;
}
.settings-sidebar .access-controls .checkbox-item input[type="checkbox"]:disabled {
  accent-color: #B0B6BE;
  background: #F5F5F5;
}
.settings-sidebar .access-controls .checkbox-item span {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.12px;
  transition: color 0.15s;
}
input[type="checkbox"]:checked + .settings-sidebar .access-controls .checkbox-item span {
  color: #1D4A7C;
}
input[type="checkbox"][disabled] + .settings-sidebar .access-controls .checkbox-item span {
  color: #B0B6BE;
}
.settings-sidebar .categories-list .category-item {
  display: flex;
  padding: 10px 12px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border-radius: 6px;
  background: #F7F7F7;
  margin-bottom: 8px;
}
.settings-sidebar .categories-list .category-item span {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.16px;
}
.settings-sidebar .categories-list .category-item .category-actions {
  display: flex;
  gap: 4px;
}
.settings-sidebar .categories-list .category-item .category-actions .btn-icon {
  padding: 4px;
  color: #97A0AC;
}
.settings-sidebar .categories-list .category-item .category-actions .btn-icon:hover {
  color: #162A3B;
}
.settings-sidebar .version-history .version-item {
  display: flex;
  padding: 10px 12px;
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
  border-radius: 6px;
  background: #F7F7F7;
  margin-bottom: 8px;
}
.settings-sidebar .version-history .version-item .version-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-sidebar .version-history .version-item .version-info .version-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-sidebar .version-history .version-item .version-info .version-header .version-number {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.16px;
}
.settings-sidebar .version-history .version-item .version-info .version-header .version-label {
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  background-color: rgba(29, 74, 124, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}
.settings-sidebar .version-history .version-item .version-info .version-label.draft {
  background-color: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
}
.settings-sidebar .version-history .version-item .version-info .version-label.current-draft {
  background-color: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
  margin-left: 4px;
}
.settings-sidebar .version-history .version-item .version-info .version-label:contains("Current") {
  background-color: #f6ffed !important;
  color: #52c41a !important;
  border: 1px solid #b7eb8f !important;
  margin-left: 4px;
}
.settings-sidebar .version-history .version-item .version-info .version-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-sidebar .version-history .version-item .version-info .version-meta .user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-sidebar .version-history .version-item .version-info .version-meta .user-info .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E8EDF3;
}
.settings-sidebar .version-history .version-item .version-info .version-meta .user-info .name {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.14px;
}
.settings-sidebar .version-history .version-item .version-info .version-meta .time {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
}
.settings-sidebar .version-history .version-item .version-actions {
  position: relative;
}
.settings-sidebar .version-history .version-item .version-actions .btn-more {
  padding: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
.settings-sidebar .version-history .version-item .version-actions .btn-more:hover {
  background: rgba(0, 0, 0, 0.05);
}
.settings-sidebar .version-history .version-item .version-actions .btn-more img {
  width: 16px;
  height: 16px;
}
.settings-sidebar .version-history .version-item .version-actions .version-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  background: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.settings-sidebar .version-history .version-item .version-actions .version-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}
.settings-sidebar .version-history .version-item .version-actions .version-dropdown .dropdown-item:hover {
  background: #F7F7F7;
}
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-radius: 50%;
  border-top-color: currentColor;
  border-left-color: currentColor;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.btn.btn-secondary,
.btn.btn-primary {
  position: relative;
}
.btn.btn-secondary .loading-spinner,
.btn.btn-primary .loading-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.btn.btn-secondary:disabled,
.btn.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn.btn-secondary:disabled:has(.loading-spinner) > span,
.btn.btn-primary:disabled:has(.loading-spinner) > span,
.btn.btn-secondary:disabled:has(.loading-spinner) > div:not(.loading-spinner),
.btn.btn-primary:disabled:has(.loading-spinner) > div:not(.loading-spinner) {
  visibility: hidden;
}
.btn.btn-secondary .loading-spinner {
  border: 2px solid transparent;
  border-top-color: #162A3B;
  border-left-color: #162A3B;
}
.btn.btn-primary .loading-spinner {
  border: 2px solid transparent;
  border-top-color: #FFFFFF;
  border-left-color: #FFFFFF;
}
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loading-overlay .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(29, 74, 124, 0.1);
  border-radius: 50%;
  border-top-color: #1D4A7C;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 16px;
}
.loading-overlay .loading-text {
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.password-section .password-status-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background-color: #FFF5F5;
  border: 1px solid #FFCCCC;
  border-radius: 6px;
  margin-bottom: 16px;
}
.password-section .password-status-banner .status-icon {
  color: #E70000;
  font-size: 16px;
}
.password-section .password-status-banner .status-text {
  color: #991B1B;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
}
.password-section .password-management {
  padding: 12px;
  background-color: #F8F9FA;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  margin-bottom: 12px;
}
.password-section .password-management .password-management-title {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 12px 0;
}
.password-section .password-management .password-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.password-section .password-reset-flow .password-warning-banner {
  padding: 12px;
  background-color: #FFF4E6;
  border: 1px solid #FFD699;
  border-radius: 6px;
  margin-bottom: 12px;
}
.password-section .password-reset-flow .password-warning-banner span {
  color: #92400E;
  font-family: "General Sans", sans-serif;
  font-size: 12px;
  line-height: 1.5;
}
.password-section .password-reset-flow .password-reset-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.password-section .form-group {
  margin-top: 12px;
}
.password-section .form-group .form-label {
  display: block;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.password-section .form-group .form-label .required {
  color: #E70000;
  margin-left: 4px;
}
.password-section .form-group .form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  color: #162A3B;
  background: #F8F9FA;
  transition: border-color 0.2s;
}
.password-section .form-group .form-control::placeholder {
  color: #97A0AC;
}
.password-section .form-group .form-control:focus {
  outline: none;
  border-color: #1D4A7C;
  box-shadow: 0 0 0 2px rgba(29, 74, 124, 0.1);
}
.password-section .form-group .form-control.error {
  border-color: #E70000;
}
.password-section .form-group .error-text {
  color: #E70000;
  font-family: "General Sans", sans-serif;
  font-size: 12px;
  margin-top: 4px;
}
.password-section .btn-password-change {
  padding: 6px 12px;
  background: #1D4A7C;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.password-section .btn-password-change:hover {
  background: #163A5C;
}
.password-section .btn-password-forgot {
  padding: 6px 12px;
  background: #FFFFFF;
  color: #E70000;
  border: 1px solid #E70000;
  border-radius: 6px;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.password-section .btn-password-forgot:hover {
  background: #FFF5F5;
}
.password-section .btn-password-cancel {
  padding: 6px 12px;
  background: #FFFFFF;
  color: #162A3B;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.password-section .btn-password-cancel:hover {
  background: #F8F9FA;
}
.password-section .btn-password-reset {
  padding: 6px 12px;
  background: #E70000;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.password-section .btn-password-reset:hover:not(:disabled) {
  background: #CC0000;
}
.password-section .btn-password-reset:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.password-section .password-info-banner {
  margin-top: 12px;
  padding: 12px;
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 6px;
}
.password-section .password-info-banner p {
  margin: 0;
  color: #1E40AF;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  line-height: 1.5;
}
.password-section .password-info-banner p strong {
  font-weight: 500;
}
.token-config .form-group {
  margin-bottom: 12px;
}
.token-config .form-group .form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #374151;
}
.token-config .form-group .form-label .optional {
  color: #9CA3AF;
  font-weight: 400;
}
.token-config .form-group .form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.token-config .form-group .form-control:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.token-config .form-group .form-control::placeholder {
  color: #9CA3AF;
}
.token-config .form-group .help-text {
  margin-top: 6px;
  font-size: 12px;
  color: #6B7280;
  line-height: 1.4;
}
.token-config .btn-reset-tokens {
  padding: 6px 12px;
  font-size: 13px;
  color: #DC2626;
  background: transparent;
  border: 1px solid #FCA5A5;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.token-config .btn-reset-tokens:hover {
  background: #FEE2E2;
  border-color: #DC2626;
}
.form-section .variable-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.form-section .variable-tags .variable-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #F0F7FF;
  border: 1px solid #1D4A7C;
  border-radius: 4px;
  color: #1D4A7C;
  font-size: 14px;
  font-weight: 500;
  cursor: grab;
  user-select: none;
  transition: all 0.2s ease;
}
.form-section .variable-tags .variable-tag:hover {
  background: #E0F0FF;
}
.form-section .variable-tags .variable-tag:active {
  cursor: grabbing;
  background: #D0E8FF;
}
.form-section .auto-grow-textarea {
  min-height: 150px;
  resize: none;
  overflow-y: auto;
  /* Changed from hidden to auto to show scrollbar when needed */
  line-height: 1.5;
  transition: height 0.1s ease;
  padding: 16px;
  box-sizing: border-box;
  font-family: monospace;
  width: 100%;
  max-height: 600px;
  /* Set a reasonable maximum height */
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  /* Add a visual cursor indicator */
}
.form-section .auto-grow-textarea:focus {
  box-shadow: 0 0 0 2px rgba(29, 74, 124, 0.25);
  outline: none;
}
.form-section .auto-grow-textarea[data-dragging="true"] {
  border-color: #1D4A7C;
  background-color: #F0F7FF;
  box-shadow: 0 0 0 2px rgba(29, 74, 124, 0.25);
}
.form-section .auto-grow-textarea::selection {
  background-color: rgba(29, 74, 124, 0.2);
}
.form-section textarea.form-control[data-dragging="true"] {
  border-color: #1D4A7C;
  background-color: #F0F7FF;
}
.form-section select.form-control {
  appearance: none;
  background-image: url(/images/chevron.svg);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
  cursor: pointer;
}
.form-section select.form-control::-ms-expand {
  display: none;
}
.form-section select.form-control option {
  color: #162A3B;
  background: #FFFFFF;
}
.form-section .prompt-writing-tips {
  margin-top: 24px;
  padding: 16px 20px;
  background: #FFF8F6;
  border-radius: 8px;
}
.form-section .prompt-writing-tips h3 {
  color: #F04E25;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
}
.form-section .prompt-writing-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.form-section .prompt-writing-tips ul li {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  margin-bottom: 8px;
}
.form-section .prompt-writing-tips ul li:last-child {
  margin-bottom: 0;
}
.available-variables {
  margin-bottom: 12px;
}
.available-variables label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}
.available-variables label .edit-hint {
  font-size: 12px;
  color: #718096;
  font-weight: normal;
  margin-left: 5px;
}
.available-variables .variable-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.available-variables .variable-tags .variable-tag {
  display: inline-flex;
  align-items: center;
  background-color: #EDF2F7;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-family: monospace;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  position: relative;
  border: 1px solid transparent;
}
.available-variables .variable-tags .variable-tag:hover {
  background-color: #E2E8F0;
  border-color: #CBD5E0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.available-variables .variable-tags .variable-tag:hover::after {
  content: "Click to insert";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2D3748;
  color: #FFFFFF;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-family: sans-serif;
  white-space: nowrap;
  opacity: 0.9;
  z-index: 10;
  pointer-events: none;
}
.available-variables .variable-tags .variable-tag:active {
  transform: scale(0.97);
}
.available-variables .variable-tags .variable-tag.required {
  background-color: #FEF5ED;
  border-color: #FEECDC;
}
.available-variables .variable-tags .variable-tag.required:hover {
  background-color: #FEECDC;
  border-color: #FCD9BD;
}
.available-variables .variable-tags .variable-tag.required .variable-status {
  color: #DD6B20;
}
.available-variables .variable-tags .variable-tag.optional {
  background-color: #EDF2F7;
  border-color: #E2E8F0;
}
.available-variables .variable-tags .variable-tag.optional:hover {
  background-color: #E2E8F0;
  border-color: #CBD5E0;
}
.available-variables .variable-tags .variable-tag.optional .variable-status {
  color: #718096;
}
.available-variables .variable-tags .variable-tag .variable-status {
  font-size: 11px;
  font-weight: 500;
  margin-left: 5px;
  font-family: sans-serif;
}
.select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}
.select-wrapper .select-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
}
.select-wrapper select {
  appearance: none;
  padding-right: 30px;
  width: 100%;
}
.tools .tool-item {
  display: flex;
  padding: 16px;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  border-radius: 6px;
  background: #F7F7F7;
  margin-bottom: 8px;
}
.tools .tool-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #97A0AC;
  background: #FFFFFF;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  margin: 0;
  flex-shrink: 0;
}
.tools .tool-item input[type="checkbox"]:checked {
  background: #1D4A7C;
  border-color: #1D4A7C;
}
.tools .tool-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.tools .tool-item input[type="checkbox"]:not(:checked) {
  background: #FFFFFF;
  border: 1px solid #97A0AC;
}
.tools .tool-item label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  cursor: pointer;
}
.tools .tool-item label .tool-icon {
  color: #1D4A7C;
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.tools .tool-item label .tool-title {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.16px;
}
.tools .tool-item label .tool-description {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 19.6px;
  margin-left: auto;
}
.tools .tool-item:last-child {
  margin-bottom: 0;
}
.tools .tool-item:hover {
  background: #F0F0F0;
}

.form-section .section-title {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.18px;
  margin-bottom: 16px;
}
.form-section .test-configuration {
  margin-bottom: 36px;
}
.form-section .test-configuration .configuration-box {
  border: 1px solid #DDD;
  border-radius: 6px;
  padding: 24px;
}
.form-section .test-configuration .active-knowledge-sources h3 {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.18px;
  margin-bottom: 16px;
}
.form-section .test-configuration .active-knowledge-sources .knowledge-sources-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-section .test-configuration .active-knowledge-sources .knowledge-sources-list .source-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
}
.form-section .test-configuration .active-knowledge-sources .knowledge-sources-list .source-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #97A0AC;
  background: #FFFFFF;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  margin: 0;
  flex-shrink: 0;
}
.form-section .test-configuration .active-knowledge-sources .knowledge-sources-list .source-item input[type="checkbox"]:checked {
  background: #1D4A7C;
  border-color: #1D4A7C;
}
.form-section .test-configuration .active-knowledge-sources .knowledge-sources-list .source-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form-section .test-configuration .active-knowledge-sources .knowledge-sources-list .source-item label {
  display: flex;
  flex-direction: column;
  flex: 1;
  cursor: pointer;
  padding: 4px 0;
}
.form-section .test-configuration .active-knowledge-sources .knowledge-sources-list .source-item label .knowledge-source-title {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 4px;
}
.form-section .test-configuration .active-knowledge-sources .knowledge-sources-list .source-item label .knowledge-source-description {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 19.6px;
}
.form-section .form-preview {
  margin-bottom: 36px;
}
.form-section .form-preview .preview-box {
  border: 1px solid #DDD;
  border-radius: 6px;
  padding: 24px;
}
.form-section .form-preview .preview-header {
  margin-bottom: 24px;
}
.form-section .form-preview .preview-header h3 {
  color: var(--Capability-5, #1D4A7C);
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.18px;
  margin-bottom: 8px;
}
.form-section .form-preview .preview-header h3.empty {
  color: #97A0AC;
  font-style: italic;
}
.form-section .form-preview .preview-header .preview-subtitle {
  color: var(--crawl, #162A3B);
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 19.6px;
  margin-bottom: 8px;
}
.form-section .form-preview .preview-header .preview-subtitle.empty {
  color: #97A0AC;
  font-style: italic;
}
.form-section .form-preview .preview-header .preview-description {
  color: var(--crawl, #162A3B);
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 19.6px;
}
.form-section .form-preview .preview-header .preview-description.empty {
  color: #97A0AC;
  font-style: italic;
}
.form-section .form-preview .preview-form .form-group {
  margin-bottom: 24px;
}
.form-section .form-preview .preview-form .form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.6px;
}
.form-section .form-preview .preview-form .form-group label .required-indicator {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.14px;
}
.form-section .form-preview .preview-form .form-group .form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #DDD;
  border-radius: 6px;
  background: #FFFFFF;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #162A3B;
}
.form-section .form-preview .preview-form .form-group .form-control::placeholder {
  color: #97A0AC;
}
.form-section .form-preview .preview-form .form-group textarea.form-control {
  min-height: 120px;
  resize: vertical;
}
.form-section .form-preview .media-upload {
  margin-top: 10px;
}
.form-section .form-preview .media-upload .upload-area {
  border: 2px dashed #ccc;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.form-section .form-preview .media-upload .upload-area:hover:not(.has-file) {
  border-color: #1D4A7C;
}
.form-section .form-preview .media-upload .upload-area.has-file {
  border-color: #e0e0e0;
  background-color: #f5f5f5;
  cursor: not-allowed;
}
.form-section .form-preview .media-upload .upload-area .upload-label {
  display: block;
  cursor: pointer;
}
.form-section .form-preview .media-upload .upload-area .upload-label.disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.form-section .form-preview .media-upload .upload-area .upload-label.disabled i {
  color: #999;
}
.form-section .form-preview .media-upload .upload-area .upload-label.disabled span {
  color: #666;
}
.form-section .form-preview .media-upload .upload-area .upload-label i {
  font-size: 24px;
  color: #666;
  margin-bottom: 8px;
}
.form-section .form-preview .media-upload .upload-area .upload-label span {
  display: block;
  margin-bottom: 8px;
  color: #333;
}
.form-section .form-preview .media-upload .upload-area .upload-label .file-types {
  font-size: 12px;
  color: #666;
  margin: 0;
}
.form-section .form-preview .media-upload .selected-files {
  margin-top: 10px;
}
.form-section .form-preview .media-upload .selected-files .file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  background-color: #f5f5f5;
  border-radius: 4px;
  margin-bottom: 5px;
}
.form-section .form-preview .media-upload .selected-files .file-item .file-name {
  flex: 1;
  margin-right: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.form-section .form-preview .media-upload .selected-files .file-item .remove-file {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}
.form-section .form-preview .media-upload .selected-files .file-item .remove-file:hover {
  background-color: #e0e0e0;
  color: #d32f2f;
}
.form-section .form-preview .media-upload .selected-files .file-item .remove-file i {
  font-size: 14px;
}
.form-section .form-preview .token-usage {
  display: flex;
  padding: 16px;
  align-items: center;
  gap: 12px;
  align-self: stretch;
  border-radius: 8px;
  background: rgba(29, 74, 124, 0.07);
  margin-bottom: 24px;
}
.form-section .form-preview .token-usage .info-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.form-section .form-preview .token-usage span {
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.16px;
}
.form-section .form-preview .btn-run-test {
  display: flex;
  padding: 12px 24px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  background: var(--Capability-5, #1D4A7C);
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}
.form-section .form-preview .btn-run-test:hover {
  background: #183e67;
}
.form-section .form-preview .btn-run-test .play-icon {
  width: 20px;
  height: 20px;
}
.form-section .results-section .results-container {
  border: 1px solid #DDD;
  border-radius: 6px;
  padding: 24px;
}
.form-section .results-section .results-container .results-header {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}
.form-section .results-section .results-container .results-header .response-section h3 {
  color: var(--crawl, #162A3B);
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 16px;
}
.form-section .results-section .results-container .results-header .response-section .response-placeholder {
  height: 160px;
  padding: 16px;
  border: 1px solid #DDD;
  border-radius: 6px;
  background: #FFFFFF;
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: italic;
  line-height: 19.6px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.form-section .results-section .results-container .results-header .response-section .response-placeholder.has-response {
  color: #162A3B;
  font-style: normal;
}
.form-section .results-section .results-container .results-header .response-section .response-placeholder::-webkit-scrollbar {
  width: 8px;
}
.form-section .results-section .results-container .results-header .response-section .response-placeholder::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
.form-section .results-section .results-container .results-header .response-section .response-placeholder::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
.form-section .results-section .results-container .results-header .response-section .response-placeholder::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.form-section .results-section .results-container .results-header .metrics-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-section .results-section .results-container .results-header .metrics-section .metric h4 {
  color: var(--crawl, #162A3B);
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 16px;
}
.form-section .results-section .results-container .results-header .metrics-section .metric .metric-value-placeholder {
  height: 44px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #DDD;
  background: #FFF;
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 19.6px;
}
.form-section .results-section .results-container .results-header .metrics-section .metric .metric-value-placeholder::before {
  content: "-";
  color: #97A0AC;
}
.form-section .results-section .results-container .used-knowledge-sources {
  margin-bottom: 36px;
}
.form-section .results-section .results-container .used-knowledge-sources h3 {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.18px;
  margin-bottom: 16px;
}
.form-section .results-section .results-container .used-knowledge-sources .knowledge-sources-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-section .results-section .results-container .used-knowledge-sources .knowledge-sources-list .source-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
}
.form-section .results-section .results-container .used-knowledge-sources .knowledge-sources-list .source-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #97A0AC;
  background: #FFFFFF;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  margin: 0;
  flex-shrink: 0;
}
.form-section .results-section .results-container .used-knowledge-sources .knowledge-sources-list .source-item input[type="checkbox"]:checked {
  background: #1D4A7C;
  border-color: #1D4A7C;
}
.form-section .results-section .results-container .used-knowledge-sources .knowledge-sources-list .source-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form-section .results-section .results-container .used-knowledge-sources .knowledge-sources-list .source-item label {
  display: flex;
  flex-direction: column;
  flex: 1;
  cursor: pointer;
  padding: 4px 0;
}
.form-section .results-section .results-container .used-knowledge-sources .knowledge-sources-list .source-item label .knowledge-source-title {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 4px;
}
.form-section .results-section .results-container .used-knowledge-sources .knowledge-sources-list .source-item label .knowledge-source-description {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 19.6px;
}
.form-section .results-section .results-container .prompt-section h3 {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 16px;
}
.form-section .results-section .results-container .prompt-section .prompt-content textarea {
  width: 100%;
  min-height: 180px;
  padding: 16px;
  border: 1px solid #DDD;
  border-radius: 6px;
  background: #FFF;
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  line-height: 19.6px;
  resize: none;
  margin-bottom: 16px;
}
.form-section .results-section .results-container .prompt-section .prompt-content textarea::placeholder {
  color: #97A0AC;
}

.prompt-builder-container {
  display: flex;
  height: 100%;
  min-height: 0;
  background: #ffffff;
}
.main-content {
  flex: 1;
  margin-left: 0;
  padding: 36px;
  padding-bottom: calc(36px + 76px);
  overflow-y: auto;
  /* Hide scrollbar for Chrome, Safari and Opera */
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}
.main-content::-webkit-scrollbar {
  display: none;
}
.main-content .content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.header .title-section {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header .title-section h1 {
  margin: 0;
  font-family: 'General Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 24.3px;
  letter-spacing: -0.01em;
  color: #162A3B;
}
.header .title-section .status-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 4px 12px;
  border-radius: 4px;
  background: #F7F7F7;
  color: #97A0AC;
  font-size: 14px;
  font-weight: 500;
  gap: 4px;
  min-width: 54px;
  justify-content: center;
}
.header .title-section .version-tag {
  font-family: 'General Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 21.6px;
  letter-spacing: 0;
  color: #97A0AC;
}
.header .actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header .actions .btn {
  display: inline-flex;
  align-items: center;
  font-family: 'General Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 21.6px;
  letter-spacing: 0;
  height: 38px;
}
.header .actions .btn.btn-icon {
  gap: 6px;
  border: 1px solid #DDDDDD;
  border-radius: 6px;
  padding: 8px 16px;
}
.header .actions .btn.btn-icon img {
  width: 18px;
  height: 18px;
}
.header .actions .btn.btn-icon:first-child {
  width: 127px;
  color: #162A3B;
}
.header .actions .btn.btn-icon.text-danger {
  width: 105px;
  color: #E70000;
}
.header .actions .btn.btn-secondary {
  width: 110px;
  background: #F5F5F5;
  color: #162A3B;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  gap: 10px;
}
.header .actions .btn.btn-primary {
  min-width: 87px;
  background: #1D4A7C;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  gap: 10px;
  justify-content: center;
}
.divider {
  height: 1px;
  align-self: stretch;
  background: #DDDDDD;
  margin: 0;
  margin-bottom: 36px;
}
.builder-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
}
.builder-tabs .tab {
  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  background: #F7F7F7;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  cursor: pointer;
  transition: all 0.2s ease;
}
.builder-tabs .tab:hover {
  color: #1D4A7C;
}
.builder-tabs .tab.active {
  background: rgba(29, 74, 124, 0.1);
  color: #1D4A7C;
  box-shadow: none;
}
.form-section {
  background: white;
}
.form-section .section-title {
  align-self: stretch;
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.18px;
  margin-bottom: 16px;
}
.form-section .form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-section .form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}
.form-section .form-group {
  margin-bottom: 1.5rem;
}
.form-section .form-group.half-width {
  width: 50%;
}
.form-section .form-group label {
  display: block;
  align-self: stretch;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.225rem;
  margin-bottom: 0.5rem;
}
.form-section .form-group .select-wrapper {
  position: relative;
}
.form-section .form-group .select-wrapper select.form-control {
  display: flex;
  padding: 0.75rem;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.625rem;
  align-self: stretch;
  border-radius: 0.375rem;
  border: 1px solid #DDD;
  width: 100%;
  font-family: "General Sans", sans-serif;
  font-size: 0.875rem;
  line-height: 1.225rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 1.875rem;
  background-color: #FFFFFF;
}
.form-section .form-group .select-wrapper select.form-control::placeholder {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.225rem;
}
.form-section .form-group .select-wrapper .select-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #97A0AC;
}
.form-section .form-group input.form-control {
  display: flex;
  padding: 0.75rem;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.625rem;
  align-self: stretch;
  border-radius: 0.375rem;
  border: 1px solid #DDD;
  width: 100%;
  font-family: "General Sans", sans-serif;
  font-size: 0.875rem;
  line-height: 1.225rem;
}
.form-section .form-group input.form-control::placeholder {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.225rem;
}
.form-section .form-group textarea.form-control {
  display: flex;
  height: 120px;
  padding: 12px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  align-self: stretch;
  border-radius: 6px;
  border: 1px solid #DDD;
  width: 100%;
  resize: none;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  line-height: 19.6px;
}
.form-section .form-group textarea.form-control::placeholder {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 19.6px;
}
.form-section .form-group .btn-add-variable {
  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  background: rgba(29, 74, 124, 0.1);
  border: none;
  margin-bottom: 16px;
  cursor: pointer;
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.form-section .form-group .btn-add-variable i {
  font-size: 16px;
  color: #1D4A7C;
}
.form-section .form-group .btn-add-variable:hover {
  background: rgba(29, 74, 124, 0.15);
}
.form-section .available-variables {
  margin-top: 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-section .available-variables label {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  margin: 0;
  display: flex;
  align-items: center;
}
.form-section .available-variables .variable-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.form-section .available-variables .variable-tags .variable-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  height: 28px;
  background: #F7F7F7;
  border-radius: 6px;
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.6px;
  margin: 0;
}
.form-section .template-header {
  margin-bottom: 36px;
}
.form-section .template-header h1 {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32.4px;
  margin: 0 0 8px 0;
}
.form-section .template-header .description {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 21.6px;
  margin: 0 0 8px 0;
}
.form-section .template-header .subtitle {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 19.6px;
  margin: 0;
}
.form-section .user-input-section .input-field-row {
  background: #FFFFFF;
  border: 1px solid #DDDDDD;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}
.form-section .user-input-section .input-field-row .field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.form-section .user-input-section .input-field-row .field-header h3 {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 21.6px;
  margin: 0;
}
.form-section .user-input-section .input-field-row .field-header .field-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .required-tag {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch input:checked + label {
  background-color: #1D4A7C;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch input:checked + label:before {
  transform: translateX(16px);
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #DDD;
  transition: 0.4s;
  border-radius: 20px;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch label:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
.form-section .user-input-section .input-field-row .field-config {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}
.form-section .user-input-section .input-field-row .field-config .input-type {
  flex: 2;
}
.form-section .user-input-section .input-field-row .field-config .character-limit {
  flex: 1;
}
.form-section .user-input-section .input-field-row .field-config label {
  display: block;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.6px;
  margin-bottom: 8px;
}
.form-section .user-input-section .input-field-row .field-config select.form-control,
.form-section .user-input-section .input-field-row .field-config input.form-control {
  width: 100%;
  height: 44px;
  padding: 12px;
  border: 1px solid #DDD;
  border-radius: 6px;
  background: #FFFFFF;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
}
.form-section .user-input-section .input-field-row .variable-mapping .btn-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #F7F7F7;
  border: none;
  border-radius: 6px;
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.form-section .user-input-section .input-field-row .variable-mapping .btn-map i {
  font-size: 14px;
}
.form-section .user-input-section .input-field-row .variable-mapping .btn-map:hover {
  background: rgba(29, 74, 124, 0.1);
}
.knowledge-sources .source-item {
  display: flex;
  padding: 16px;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  border-radius: 6px;
  background: #F7F7F7;
  margin-bottom: 8px;
}
.knowledge-sources .source-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #97A0AC;
  background: #FFFFFF;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  margin: 0;
  flex-shrink: 0;
}
.knowledge-sources .source-item input[type="checkbox"]:checked {
  background: #1D4A7C;
  border-color: #1D4A7C;
}
.knowledge-sources .source-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.knowledge-sources .source-item input[type="checkbox"]:not(:checked) {
  background: #FFFFFF;
  border: 1px solid #97A0AC;
}
.knowledge-sources .source-item label {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.knowledge-sources .source-item label .knowledge-source-title {
  align-self: stretch;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.16px;
}
.knowledge-sources .source-item label .knowledge-source-description {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 19.6px;
}
.knowledge-sources .source-item:last-child {
  margin-bottom: 0;
}
.settings-sidebar {
  width: 320px;
  height: 100vh;
  background: #FFFFFF;
  border-left: 1px solid #DDDDDD;
  padding: 24px;
  padding-bottom: calc(24px + 76px);
  overflow-y: auto;
  /* Hide scrollbar for Chrome, Safari and Opera */
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}
.settings-sidebar::-webkit-scrollbar {
  display: none;
}
.settings-sidebar .settings-section {
  margin-bottom: 32px;
}
.settings-sidebar .settings-section h3 {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.18px;
  margin: 0 0 16px 0;
}
.settings-sidebar .settings-section h4 {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}
.settings-sidebar .settings-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.settings-sidebar .settings-section .section-header h4 {
  margin: 0;
}
.settings-sidebar .settings-section .section-header .btn-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.16px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  height: 24px;
}
.settings-sidebar .settings-section .section-header .btn-add img {
  width: 24px;
  height: 24px;
}
.settings-sidebar .settings-section .section-header .btn-add:hover {
  opacity: 0.8;
}
.settings-sidebar .settings-section .dropdown-container {
  position: relative;
  width: 100%;
}
.settings-sidebar .settings-section .dropdown-container .format-dropdown {
  width: 100%;
  padding: 8px 12px;
  background: #F8F9FA;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  color: #162A3B;
  appearance: none;
  cursor: pointer;
  outline: none;
}
.settings-sidebar .settings-section .dropdown-container .format-dropdown:hover {
  border-color: #D1D5DB;
}
.settings-sidebar .settings-section .dropdown-container .format-dropdown:focus {
  border-color: #1D4A7C;
  box-shadow: 0 0 0 2px rgba(29, 74, 124, 0.1);
}
.settings-sidebar .settings-section .dropdown-container .dropdown-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.settings-sidebar .settings-section .dropdown-container .dropdown-arrow svg {
  display: block;
}
.settings-sidebar .access-description {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.14px;
  margin: 0 0 8px 0;
}
.settings-sidebar .access-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-sidebar .access-controls .checkbox-item {
  padding: 6px 0 6px 4px;
  border-radius: 6px;
  transition: background 0.15s;
  display: flex;
  align-items: center;
}
.settings-sidebar .access-controls .checkbox-item input[type="checkbox"] {
  accent-color: #1D4A7C;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border-radius: 4px;
  border: 1.5px solid #B0B6BE;
  background: #fff;
  transition: border 0.2s;
}
.settings-sidebar .access-controls .checkbox-item input[type="checkbox"]:checked {
  border: 1.5px solid #1D4A7C;
}
.settings-sidebar .access-controls .checkbox-item input[type="checkbox"]:disabled {
  accent-color: #B0B6BE;
  background: #F5F5F5;
}
.settings-sidebar .access-controls .checkbox-item span {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.12px;
  transition: color 0.15s;
}
input[type="checkbox"]:checked + .settings-sidebar .access-controls .checkbox-item span {
  color: #1D4A7C;
}
input[type="checkbox"][disabled] + .settings-sidebar .access-controls .checkbox-item span {
  color: #B0B6BE;
}
.settings-sidebar .categories-list .category-item {
  display: flex;
  padding: 10px 12px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border-radius: 6px;
  background: #F7F7F7;
  margin-bottom: 8px;
}
.settings-sidebar .categories-list .category-item span {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.16px;
}
.settings-sidebar .categories-list .category-item .category-actions {
  display: flex;
  gap: 4px;
}
.settings-sidebar .categories-list .category-item .category-actions .btn-icon {
  padding: 4px;
  color: #97A0AC;
}
.settings-sidebar .categories-list .category-item .category-actions .btn-icon:hover {
  color: #162A3B;
}
.settings-sidebar .version-history .version-item {
  display: flex;
  padding: 10px 12px;
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
  border-radius: 6px;
  background: #F7F7F7;
  margin-bottom: 8px;
}
.settings-sidebar .version-history .version-item .version-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-sidebar .version-history .version-item .version-info .version-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-sidebar .version-history .version-item .version-info .version-header .version-number {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.16px;
}
.settings-sidebar .version-history .version-item .version-info .version-header .version-label {
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  background-color: rgba(29, 74, 124, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}
.settings-sidebar .version-history .version-item .version-info .version-label.draft {
  background-color: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
}
.settings-sidebar .version-history .version-item .version-info .version-label.current-draft {
  background-color: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
  margin-left: 4px;
}
.settings-sidebar .version-history .version-item .version-info .version-label:contains("Current") {
  background-color: #f6ffed !important;
  color: #52c41a !important;
  border: 1px solid #b7eb8f !important;
  margin-left: 4px;
}
.settings-sidebar .version-history .version-item .version-info .version-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-sidebar .version-history .version-item .version-info .version-meta .user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-sidebar .version-history .version-item .version-info .version-meta .user-info .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E8EDF3;
}
.settings-sidebar .version-history .version-item .version-info .version-meta .user-info .name {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.14px;
}
.settings-sidebar .version-history .version-item .version-info .version-meta .time {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
}
.settings-sidebar .version-history .version-item .version-actions {
  position: relative;
}
.settings-sidebar .version-history .version-item .version-actions .btn-more {
  padding: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
.settings-sidebar .version-history .version-item .version-actions .btn-more:hover {
  background: rgba(0, 0, 0, 0.05);
}
.settings-sidebar .version-history .version-item .version-actions .btn-more img {
  width: 16px;
  height: 16px;
}
.settings-sidebar .version-history .version-item .version-actions .version-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  background: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.settings-sidebar .version-history .version-item .version-actions .version-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}
.settings-sidebar .version-history .version-item .version-actions .version-dropdown .dropdown-item:hover {
  background: #F7F7F7;
}
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-radius: 50%;
  border-top-color: currentColor;
  border-left-color: currentColor;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.btn.btn-secondary,
.btn.btn-primary {
  position: relative;
}
.btn.btn-secondary .loading-spinner,
.btn.btn-primary .loading-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.btn.btn-secondary:disabled,
.btn.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn.btn-secondary:disabled:has(.loading-spinner) > span,
.btn.btn-primary:disabled:has(.loading-spinner) > span,
.btn.btn-secondary:disabled:has(.loading-spinner) > div:not(.loading-spinner),
.btn.btn-primary:disabled:has(.loading-spinner) > div:not(.loading-spinner) {
  visibility: hidden;
}
.btn.btn-secondary .loading-spinner {
  border: 2px solid transparent;
  border-top-color: #162A3B;
  border-left-color: #162A3B;
}
.btn.btn-primary .loading-spinner {
  border: 2px solid transparent;
  border-top-color: #FFFFFF;
  border-left-color: #FFFFFF;
}
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loading-overlay .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(29, 74, 124, 0.1);
  border-radius: 50%;
  border-top-color: #1D4A7C;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 16px;
}
.loading-overlay .loading-text {
  color: #1D4A7C;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.password-section .password-status-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background-color: #FFF5F5;
  border: 1px solid #FFCCCC;
  border-radius: 6px;
  margin-bottom: 16px;
}
.password-section .password-status-banner .status-icon {
  color: #E70000;
  font-size: 16px;
}
.password-section .password-status-banner .status-text {
  color: #991B1B;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
}
.password-section .password-management {
  padding: 12px;
  background-color: #F8F9FA;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  margin-bottom: 12px;
}
.password-section .password-management .password-management-title {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 12px 0;
}
.password-section .password-management .password-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.password-section .password-reset-flow .password-warning-banner {
  padding: 12px;
  background-color: #FFF4E6;
  border: 1px solid #FFD699;
  border-radius: 6px;
  margin-bottom: 12px;
}
.password-section .password-reset-flow .password-warning-banner span {
  color: #92400E;
  font-family: "General Sans", sans-serif;
  font-size: 12px;
  line-height: 1.5;
}
.password-section .password-reset-flow .password-reset-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.password-section .form-group {
  margin-top: 12px;
}
.password-section .form-group .form-label {
  display: block;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.password-section .form-group .form-label .required {
  color: #E70000;
  margin-left: 4px;
}
.password-section .form-group .form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  color: #162A3B;
  background: #F8F9FA;
  transition: border-color 0.2s;
}
.password-section .form-group .form-control::placeholder {
  color: #97A0AC;
}
.password-section .form-group .form-control:focus {
  outline: none;
  border-color: #1D4A7C;
  box-shadow: 0 0 0 2px rgba(29, 74, 124, 0.1);
}
.password-section .form-group .form-control.error {
  border-color: #E70000;
}
.password-section .form-group .error-text {
  color: #E70000;
  font-family: "General Sans", sans-serif;
  font-size: 12px;
  margin-top: 4px;
}
.password-section .btn-password-change {
  padding: 6px 12px;
  background: #1D4A7C;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.password-section .btn-password-change:hover {
  background: #163A5C;
}
.password-section .btn-password-forgot {
  padding: 6px 12px;
  background: #FFFFFF;
  color: #E70000;
  border: 1px solid #E70000;
  border-radius: 6px;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.password-section .btn-password-forgot:hover {
  background: #FFF5F5;
}
.password-section .btn-password-cancel {
  padding: 6px 12px;
  background: #FFFFFF;
  color: #162A3B;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.password-section .btn-password-cancel:hover {
  background: #F8F9FA;
}
.password-section .btn-password-reset {
  padding: 6px 12px;
  background: #E70000;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.password-section .btn-password-reset:hover:not(:disabled) {
  background: #CC0000;
}
.password-section .btn-password-reset:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.password-section .password-info-banner {
  margin-top: 12px;
  padding: 12px;
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 6px;
}
.password-section .password-info-banner p {
  margin: 0;
  color: #1E40AF;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  line-height: 1.5;
}
.password-section .password-info-banner p strong {
  font-weight: 500;
}
.token-config .form-group {
  margin-bottom: 12px;
}
.token-config .form-group .form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #374151;
}
.token-config .form-group .form-label .optional {
  color: #9CA3AF;
  font-weight: 400;
}
.token-config .form-group .form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.token-config .form-group .form-control:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.token-config .form-group .form-control::placeholder {
  color: #9CA3AF;
}
.token-config .form-group .help-text {
  margin-top: 6px;
  font-size: 12px;
  color: #6B7280;
  line-height: 1.4;
}
.token-config .btn-reset-tokens {
  padding: 6px 12px;
  font-size: 13px;
  color: #DC2626;
  background: transparent;
  border: 1px solid #FCA5A5;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.token-config .btn-reset-tokens:hover {
  background: #FEE2E2;
  border-color: #DC2626;
}
.form-section .template-header {
  margin-bottom: 36px;
}
.form-section .template-header h1 {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32.4px;
  margin: 0 0 8px 0;
}
.form-section .template-header h1.empty {
  color: #97A0AC;
  font-style: italic;
}
.form-section .template-header .description {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 21.6px;
  margin: 0 0 8px 0;
}
.form-section .template-header .description.empty {
  color: #97A0AC;
  font-style: italic;
}
.form-section .template-header .subtitle {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 19.6px;
  margin: 0;
}
.form-section .template-header .subtitle.empty {
  color: #97A0AC;
  font-style: italic;
}
.form-section .section-title {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.18px;
  margin-bottom: 16px;
}
.form-section .user-input-section .input-field-row {
  padding: 16px 0;
  margin-bottom: 16px;
  border: none;
  background: transparent;
  /* Description Row */
}
.form-section .user-input-section .input-field-row .field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.form-section .user-input-section .input-field-row .field-header h3 {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.01em;
  margin: 0;
}
.form-section .user-input-section .input-field-row .field-header .field-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .required-tag {
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.14px;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch input:checked + label {
  background-color: #DD6A1B;
  border: 0.75px solid #F09455;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch input:checked + label:before {
  transform: translate(18px, -50%);
  left: 0;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #8E8B8B;
  border: 0.75px solid #C1C1C1;
  transition: 0.4s;
  border-radius: 75px;
}
.form-section .user-input-section .input-field-row .field-header .field-controls .toggle-switch label:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  transition: all 0.4s;
  border-radius: 50%;
}
.form-section .user-input-section .input-field-row .field-config {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}
.form-section .user-input-section .input-field-row .field-config .input-type {
  flex: 2;
}
.form-section .user-input-section .input-field-row .field-config .input-type .custom-select-wrapper {
  position: relative;
  width: 100%;
}
.form-section .user-input-section .input-field-row .field-config .input-type .custom-select-wrapper .custom-select {
  position: relative;
  width: 100%;
  cursor: pointer;
  background-color: #FFFFFF;
  border: 1px solid #DDD;
  border-radius: 6px;
}
.form-section .user-input-section .input-field-row .field-config .input-type .custom-select-wrapper .custom-select.open {
  border-color: #528BBE;
}
.form-section .user-input-section .input-field-row .field-config .input-type .custom-select-wrapper .custom-select.open .select-arrow {
  transform: rotate(180deg);
}
.form-section .user-input-section .input-field-row .field-config .input-type .custom-select-wrapper .custom-select .selected-option {
  height: 44px;
  padding: 12px;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form-section .user-input-section .input-field-row .field-config .input-type .custom-select-wrapper .custom-select .selected-option .select-arrow {
  color: #97A0AC;
  transition: transform 0.2s ease;
}
.form-section .user-input-section .input-field-row .field-config .input-type .custom-select-wrapper .custom-select .options-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid #DDD;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.form-section .user-input-section .input-field-row .field-config .input-type .custom-select-wrapper .custom-select .options-dropdown .option {
  padding: 12px;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}
.form-section .user-input-section .input-field-row .field-config .input-type .custom-select-wrapper .custom-select .options-dropdown .option:hover {
  background-color: #F5F5F5;
}
.form-section .user-input-section .input-field-row .field-config .input-type .custom-select-wrapper .custom-select .options-dropdown .option.selected {
  background-color: #F0F0F0;
  font-weight: 500;
}
.form-section .user-input-section .input-field-row .field-config .input-type .select-wrapper {
  position: relative;
}
.form-section .user-input-section .input-field-row .field-config .input-type .select-wrapper select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 30px;
  color: #162A3B !important;
  background-color: #FFFFFF !important;
}
.form-section .user-input-section .input-field-row .field-config .input-type .select-wrapper select.form-control option {
  color: #162A3B !important;
  background-color: #FFFFFF !important;
  padding: 8px;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
}
.form-section .user-input-section .input-field-row .field-config .input-type .select-wrapper .select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #97A0AC;
}
.form-section .user-input-section .input-field-row .field-config .character-limit {
  flex: 0 0 120px;
}
.form-section .user-input-section .input-field-row .field-config label {
  display: block;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.6px;
  margin-bottom: 8px;
}
.form-section .user-input-section .input-field-row .field-config select.form-control,
.form-section .user-input-section .input-field-row .field-config input.form-control {
  width: 100%;
  height: 44px;
  padding: 12px;
  border: 1px solid #DDD;
  border-radius: 6px;
  background: #FFFFFF;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
}
.form-section .user-input-section .input-field-row .field-config.description-row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.form-section .user-input-section .input-field-row .field-config.description-row .description-field {
  flex: 1 1 100%;
  width: 100%;
}
.form-section .user-input-section .input-field-row .field-config.description-row .description-field .description-label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-section .user-input-section .input-field-row .field-config.description-row .description-field .description-label .tooltip-icon {
  color: #97A0AC;
  font-size: 12px;
  cursor: help;
  transition: color 0.2s ease;
}
.form-section .user-input-section .input-field-row .field-config.description-row .description-field .description-label .tooltip-icon:hover {
  color: #528BBE;
}
.form-section .user-input-section .input-field-row .field-config.description-row .description-field .form-control {
  width: 100%;
}
.form-section .user-input-section .input-field-row .variable-mapping .variable-map-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #528BBE;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.01em;
}
.form-section .user-input-section .input-field-row .variable-mapping .variable-map-text i {
  font-size: 14px;
  color: #528BBE;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-overlay .modal-content {
  background: white;
  border-radius: 12px;
  width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}
.modal-overlay .modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 20px 24px;
  gap: 12px;
  background: #F2F2F2;
  margin-bottom: 24px;
  width: 100%;
}
.modal-overlay .modal-content .modal-header h3 {
  color: #162A3B;
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}
.modal-overlay .modal-content .modal-header .btn-close {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #162A3B;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.modal-overlay .modal-content .modal-header .btn-close:hover:not(:disabled) {
  opacity: 0.7;
}
.modal-overlay .modal-content .modal-header .btn-close:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.modal-overlay .modal-content .form-content {
  padding: 0 24px 24px 24px;
}
.modal-overlay .modal-content .form-content .prompt-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: #F2F2F2;
  border: 1px solid #DDDDDD;
  border-radius: 6px;
  margin-bottom: 24px;
}
.modal-overlay .modal-content .form-content .prompt-info .lock-icon {
  font-size: 24px;
  color: #1D4A7C;
}
.modal-overlay .modal-content .form-content .prompt-info h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 500;
  color: #162A3B;
  font-family: "General Sans", sans-serif;
}
.modal-overlay .modal-content .form-content .prompt-info p {
  margin: 0;
  font-size: 14px;
  color: #97A0AC;
  font-family: "General Sans", sans-serif;
}
.modal-overlay .modal-content .form-content .override-section {
  margin-bottom: 16px;
}
.modal-overlay .modal-content .form-content .override-section .info-banner {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 6px;
  font-size: 14px;
  font-family: "General Sans", sans-serif;
}
.modal-overlay .modal-content .form-content .override-section .info-banner.warning {
  background-color: #FFF4E6;
  border: 1px solid #FFD699;
  color: #92400E;
}
.modal-overlay .modal-content .form-content .override-section .info-banner.warning svg {
  color: #DD6A1B;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.modal-overlay .modal-content .form-content .override-section .info-banner strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: #162A3B;
}
.modal-overlay .modal-content .form-content .override-section .info-banner p {
  margin: 0;
  line-height: 1.5;
  color: #97A0AC;
}
.modal-overlay .modal-content .form-content .password-section label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #162A3B;
  margin-bottom: 8px;
  font-family: "General Sans", sans-serif;
}
.modal-overlay .modal-content .form-content .password-section .password-input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.modal-overlay .modal-content .form-content .password-section .password-input-group .input-icon {
  position: absolute;
  left: 12px;
  color: #97A0AC;
  pointer-events: none;
  z-index: 1;
}
.modal-overlay .modal-content .form-content .password-section .password-input-group .form-control {
  width: 100%;
  padding: 12px 40px 12px 36px;
  border: 1px solid #DDD;
  border-radius: 6px;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  color: #162A3B;
}
.modal-overlay .modal-content .form-content .password-section .password-input-group .form-control::placeholder {
  color: #97A0AC;
}
.modal-overlay .modal-content .form-content .password-section .password-input-group .form-control:focus {
  outline: none;
  border-color: #1D4A7C;
}
.modal-overlay .modal-content .form-content .password-section .password-input-group .form-control:disabled {
  background-color: #F5F5F5;
  cursor: not-allowed;
}
.modal-overlay .modal-content .form-content .password-section .password-input-group .toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  opacity: 0.6;
  transition: opacity 0.2s;
  z-index: 1;
}
.modal-overlay .modal-content .form-content .password-section .password-input-group .toggle-password:hover:not(:disabled) {
  opacity: 1;
}
.modal-overlay .modal-content .form-content .password-section .password-input-group .toggle-password:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.modal-overlay .modal-content .form-content .password-section .error-message {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  background-color: #FFF5F5;
  border: 1px solid #FFCCCC;
  border-radius: 6px;
  color: #E70000;
  font-size: 13px;
  font-family: "General Sans", sans-serif;
}
.modal-overlay .modal-content .form-content .password-section .error-message svg {
  flex-shrink: 0;
}
.modal-overlay .modal-content .form-content .password-section .forgot-password-link {
  margin-top: 12px;
  text-align: right;
}
.modal-overlay .modal-content .form-content .password-section .forgot-password-link .link-button {
  background: none;
  border: none;
  color: #1D4A7C;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: "General Sans", sans-serif;
}
.modal-overlay .modal-content .form-content .password-section .forgot-password-link .link-button:hover:not(:disabled) {
  color: #163A5C;
  text-decoration: underline;
}
.modal-overlay .modal-content .form-content .password-section .forgot-password-link .link-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.modal-overlay .modal-content .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #DDDDDD;
}
.modal-overlay .modal-content .modal-footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "General Sans", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 100%;
  height: 38px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-overlay .modal-content .modal-footer .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.modal-overlay .modal-content .modal-footer .btn svg {
  font-size: 16px;
}
.modal-overlay .modal-content .modal-footer .btn.btn-secondary {
  background: #F5F5F5;
  color: #162A3B;
}
.modal-overlay .modal-content .modal-footer .btn.btn-secondary:hover:not(:disabled) {
  background: #E5E5E5;
}
.modal-overlay .modal-content .modal-footer .btn.btn-primary {
  background: #1D4A7C;
  color: #FFFFFF;
}
.modal-overlay .modal-content .modal-footer .btn.btn-primary:hover:not(:disabled) {
  background: #163A5C;
}

.password-reset-modal .password-warning-banner {
  background-color: #FFF7E6;
  border: 1px solid #FFA726;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.password-reset-modal .password-warning-banner span {
  font-size: 14px;
  color: #FF9800;
  font-weight: 500;
}
.password-reset-modal .password-section {
  margin-bottom: 20px;
}
.password-reset-modal .password-section .form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: #162A3B;
}
.password-reset-modal .password-section .form-label .required {
  color: #D32F2F;
  margin-left: 4px;
}
.password-reset-modal .password-section .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #DDDDDD;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.password-reset-modal .password-section .form-control:focus {
  outline: none;
  border-color: #FF6F00;
  box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.1);
}
.password-reset-modal .password-section .form-control.error {
  border-color: #D32F2F;
}
.password-reset-modal .password-section .form-control:disabled {
  background-color: #F5F5F5;
  cursor: not-allowed;
}
.password-reset-modal .password-section .error-text {
  margin: 6px 0 0 0;
  font-size: 13px;
  color: #D32F2F;
}

.prompt-library-container {
  padding: 36px;
  height: 100vh;
  overflow-y: auto;
  background: #FFFFFF;
}
.prompt-library-container .header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
  gap: 24px;
}
.prompt-library-container .header .title-section {
  flex: 1;
  min-width: 0;
}
.prompt-library-container .header .title-section .title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prompt-library-container .header .title-section h1 {
  margin: 0;
  color: #162A3B;
  font-family: 'General Sans', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32.4px;
  white-space: nowrap;
}
.prompt-library-container .header .title-section .disclaimer {
  max-width: 1200px;
  padding-right: 24px;
  width: 100%;
}
.prompt-library-container .header .title-section .disclaimer .disclaimer-title {
  color: #FF6B00;
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px 0;
}
.prompt-library-container .header .title-section .disclaimer .disclaimer-subtitle {
  color: #FF6B00;
  font-family: 'General Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px 0;
}
.prompt-library-container .header .title-section .disclaimer .disclaimer-text {
  color: #FF6B00;
  font-family: 'General Sans', sans-serif;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 8px 0;
  max-width: 100%;
}
.prompt-library-container .header .title-section .disclaimer .disclaimer-copyright {
  color: #FF6B00;
  font-family: 'General Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  margin: 8px 0 0 0;
}
.prompt-library-container .header .actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-top: 4px;
}
.prompt-library-container .header .actions .search-container .search-input-wrapper {
  position: relative;
  width: 300px;
}
.prompt-library-container .header .actions .search-container .search-input-wrapper .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #97A0AC;
  font-size: 14px;
}
.prompt-library-container .header .actions .search-container .search-input-wrapper .search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid #DDDDDD;
  border-radius: 6px;
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
  color: #162A3B;
  outline: none;
  transition: border-color 0.2s ease;
}
.prompt-library-container .header .actions .search-container .search-input-wrapper .search-input:focus {
  border-color: #1D4A7C;
  box-shadow: 0 0 0 2px rgba(29, 74, 124, 0.1);
}
.prompt-library-container .header .actions .search-container .search-input-wrapper .search-input::placeholder {
  color: #97A0AC;
}
.prompt-library-container .header .actions .search-container .search-input-wrapper .clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #97A0AC;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 14px;
}
.prompt-library-container .header .actions .search-container .search-input-wrapper .clear-search-btn:hover {
  color: #162A3B;
}
.prompt-library-container .header .actions .create-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #1D4A7C;
  border: none;
  border-radius: 6px;
  color: #FFFFFF;
  font-family: 'General Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.prompt-library-container .header .actions .create-button:hover {
  background: #183e67;
}
.prompt-library-container .header .actions .create-button .plus-icon {
  width: 12px;
  height: 12px;
}
.prompt-library-container .tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.prompt-library-container .tabs .tab {
  padding: 8px 16px;
  background: #F7F7F7;
  border: none;
  border-radius: 6px;
  color: #162A3B;
  font-family: 'General Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.prompt-library-container .tabs .tab:hover {
  color: #1D4A7C;
}
.prompt-library-container .tabs .tab.active {
  background: rgba(29, 74, 124, 0.1);
  color: #1D4A7C;
}
.prompt-library-container .prompt-table {
  width: 100%;
  border-collapse: collapse;
}
.prompt-library-container .prompt-table th {
  padding: 12px 16px;
  text-align: left;
  color: #97A0AC;
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #DDDDDD;
}
.prompt-library-container .prompt-table td {
  padding: 16px;
  color: #162A3B;
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
  border-bottom: 1px solid #DDDDDD;
  cursor: default;
  vertical-align: top;
}
.prompt-library-container .prompt-table td.date-column {
  color: #97A0AC;
  font-size: 13px;
  vertical-align: top;
}
.prompt-library-container .prompt-table td.actions-cell {
  white-space: nowrap;
}
.prompt-library-container .prompt-table td.actions-cell .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  vertical-align: middle;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.prompt-library-container .prompt-table td.actions-cell .btn-icon:last-child {
  margin-right: 0;
}
.prompt-library-container .prompt-table td.actions-cell .btn-icon:hover {
  background: rgba(0, 0, 0, 0.05);
}
.prompt-library-container .prompt-table td.actions-cell .btn-icon:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.prompt-library-container .prompt-table td.actions-cell .btn-icon img {
  width: 16px;
  height: 16px;
}
.prompt-library-container .prompt-table td.actions-cell .btn-icon img[alt="publish"] {
  filter: invert(23%) sepia(93%) saturate(1352%) hue-rotate(182deg) brightness(96%) contrast(101%);
}
.prompt-library-container .prompt-table td.actions-cell .btn-icon img[alt="unpublish"] {
  filter: invert(17%) sepia(91%) saturate(3107%) hue-rotate(356deg) brightness(81%) contrast(105%);
}
.prompt-library-container .prompt-table td.actions-cell .btn-icon img[alt="draft"] {
  filter: invert(45%) sepia(12%) saturate(1164%) hue-rotate(166deg) brightness(90%) contrast(84%);
}
.prompt-library-container .prompt-table td.actions-cell .btn-icon .loading-spinner {
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}
.prompt-library-container .prompt-table tr {
  background-color: #FFFFFF;
}
.prompt-library-container .prompt-table .status-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
}
.prompt-library-container .prompt-table .status-tag.published {
  background: rgba(52, 168, 83, 0.1);
  color: #34A853;
}
.prompt-library-container .prompt-table .status-tag.unpublished {
  background: rgba(151, 160, 172, 0.1);
  color: #97A0AC;
}
.prompt-library-container .prompt-table .status-tag.draft {
  background: rgba(29, 74, 124, 0.1);
  color: #1D4A7C;
}
.prompt-library-container .prompt-table .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: 1px solid #DDDDDD;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.prompt-library-container .prompt-table .btn-icon img {
  width: 16px;
  height: 16px;
}
.prompt-library-container .prompt-table .btn-icon:hover {
  background: #F7F7F7;
}
.prompt-library-container .prompt-table .btn-icon.text-danger:hover {
  background: rgba(231, 0, 0, 0.1);
  border-color: #E70000;
}
.prompt-library-container .prompt-table .btn-icon.text-danger:hover img {
  filter: invert(15%) sepia(86%) saturate(6932%) hue-rotate(358deg) brightness(93%) contrast(126%);
}
.prompt-library-container .loading-spinner {
  animation: spin 1s linear infinite;
}
.prompt-library-container .loading-spinner circle {
  stroke: currentColor;
  opacity: 0.25;
}
.prompt-library-container .loading-spinner circle {
  stroke-dasharray: 80px;
  stroke-dashoffset: 60px;
  animation: dash 1.5s ease-in-out infinite;
}
.prompt-library-container .confirmation-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.prompt-library-container .confirmation-dialog {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  width: 400px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.prompt-library-container .confirmation-dialog p {
  color: #162A3B;
  font-family: 'General Sans', sans-serif;
  font-size: 16px;
  margin: 0 0 24px 0;
}
.prompt-library-container .confirmation-dialog .dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.prompt-library-container .confirmation-dialog .dialog-actions .btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.prompt-library-container .confirmation-dialog .dialog-actions .btn.btn-secondary {
  background: #F5F5F5;
  border: none;
  color: #162A3B;
}
.prompt-library-container .confirmation-dialog .dialog-actions .btn.btn-secondary:hover {
  background: #e8e8e8;
}
.prompt-library-container .confirmation-dialog .dialog-actions .btn.btn-danger {
  background: #E70000;
  border: none;
  color: #FFFFFF;
}
.prompt-library-container .confirmation-dialog .dialog-actions .btn.btn-danger:hover {
  background: #ce0000;
}
.prompt-library-container .btn-icon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.prompt-library-container .btn-icon:disabled:hover {
  background: none;
  border-color: #DDDDDD;
}
.prompt-library-container .btn-icon:disabled.text-danger:hover {
  background: none;
  border-color: #DDDDDD;
}
.prompt-library-container .btn-icon:disabled.text-danger:hover img {
  filter: none;
}
.prompt-library-container .loading-container,
.prompt-library-container .error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
}
.prompt-library-container .loading-container p,
.prompt-library-container .error-container p {
  color: #162A3B;
  font-family: 'General Sans', sans-serif;
  font-size: 16px;
  margin: 0;
}
.prompt-library-container .loading-container .error-message,
.prompt-library-container .error-container .error-message {
  color: #E70000;
}
.prompt-library-container .loading-container .btn,
.prompt-library-container .error-container .btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.prompt-library-container .loading-container .btn.btn-primary,
.prompt-library-container .error-container .btn.btn-primary {
  background: #1D4A7C;
  border: none;
  color: #FFFFFF;
}
.prompt-library-container .loading-container .btn.btn-primary:hover,
.prompt-library-container .error-container .btn.btn-primary:hover {
  background: #183e67;
}
.prompt-library-container .empty-state {
  text-align: center;
  padding: 32px !important;
  color: #97A0AC !important;
  font-family: 'General Sans', sans-serif;
  font-size: 14px;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes dash {
  0% {
    stroke-dashoffset: 60px;
  }
  50% {
    stroke-dashoffset: 20px;
  }
  100% {
    stroke-dashoffset: 60px;
  }
}
.draft-indicator {
  margin-left: 8px;
  font-size: 0.85em;
  padding: 2px 6px;
}
.draft-indicator.clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}
.draft-indicator.clickable:hover {
  background: rgba(29, 74, 124, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.perm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.perm-cell {
  width: 220px;
}
.perm-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.perm-tag.muted {
  background: #f9fafb;
  color: #6b7280;
}
/* Lock Status Styles */
.lock-status-cell .lock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}
.lock-status-cell .lock-status.locked {
  background-color: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FCA5A5;
}
.lock-status-cell .lock-status.locked svg {
  color: #DC2626;
}
.lock-status-cell .lock-status.unlocked {
  background-color: #F0FDF4;
  color: #16A34A;
  border: 1px solid #86EFAC;
}
.lock-status-cell .lock-status.unlocked svg {
  color: #16A34A;
}
.lock-status-cell .lock-status span {
  font-family: 'General Sans', sans-serif;
}

.sidenav {
  width: 70px;
  background: #091118 !important;
  color: #82868C;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  transition: all 0.1s ease-in-out;
  overflow: hidden;
}
.sidenav ul {
  padding: 0 !important;
  margin: 0 !important;
}
.sidenav.open {
  width: 250px;
}
.sidenav-item {
  list-style: none;
}
.sidenav-link {
  white-space: nowrap;
}
.sidenav-link.active a {
  color: #F47721;
}
.sidenav-link a {
  padding: 0.75rem 1.2rem;
  color: #838790;
  transition: all 0.1s ease-in-out;
  display: flex;
  align-items: center;
}
.open .sidenav-link a {
  padding: 0.75rem 1.6rem;
}
.sidenav-link:HOVER a {
  color: #fff;
  text-decoration: none;
}
.sidenav-icon {
  width: 2rem !important;
  min-width: 2rem !important;
  margin-right: 1.7rem;
  font-size: 1.2rem;
  transition: margin-right 0.1s ease-in-out;
}
.open .sidenav-icon {
  margin-right: 1rem;
}
.sidenav-logo {
  margin-left: 1rem;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.1s ease-in-out;
  width: 34px;
  overflow: hidden;
  min-width: 34px;
}
.open .sidenav-logo {
  margin-left: 1.9rem;
  width: auto;
  min-width: auto;
}
.sidenav-divider {
  border-color: rgba(255, 255, 255, 0.06) !important;
  border-top: 1px solid;
  margin-bottom: 0.75rem;
  padding: 0;
}
.ham {
  font-size: 1.3rem;
  padding-left: 5rem;
}
.ham:HOVER a {
  cursor: pointer;
  color: #fff !important;
  text-decoration: none;
}

.completed {
  text-decoration: line-through;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
}
.filter-item {
  margin: 5px;
}
.grey-background {
  background: #E3E6EB;
  border-radius: 4px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 22px;
}
/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
input:checked + .slider {
  background-color: #2196F3;
}
input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}
input:checked:disabled + .slider {
  opacity: 0.5;
}
input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}
.email-update-group {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-backdrop {
  opacity: 0.5 !important;
}
.swal2-title {
  padding: 0.8em 1em 0.2em !important;
  font-size: 1.4em !important;
  line-height: 1.3em !important;
}
.swal2-styled.swal2-confirm {
  background-color: #fb8e2d !important;
  border: 1px solid #f07405 !important;
}
.swal2-styled.swal2-deny {
  background-color: transparent !important;
  color: #000 !important;
  border: 1px solid !important;
}
.mh-150 {
  min-height: 150px;
}
hr {
  border: none;
  border-top: 1px solid #ced4da;
  margin: 20px 0;
}
html {
  height: 100%;
  font-size: 0.95rem;
}
.bluish {
  color: #1D4A7C;
}
body {
  font-family: 'Roboto', sans-sarif;
  margin: 0px !important;
  padding: 0px !important;
  height: calc(100% - 1px);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
#root {
  height: 100%;
  display: flex;
  flex-direction: column;
}
body:not(.login-page) #root > *:not(footer) {
  padding-bottom: 76px !important;
}
.App {
  font-family: sans-serif;
  text-align: center;
}
.t-c {
  text-align: center;
}
.bs-3 {
  box-shadow: 0 3px 3px -2px rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 1px 8px 0 rgba(0, 0, 0, 0.12);
}
.bs-2 {
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}
.bs-1 {
  box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
}
.w-100 {
  width: 100%;
}
.w-75 {
  width: 75%;
}
.w-50 {
  width: 50%;
}
.h-100 {
  height: 100%;
}
.w-50 {
  width: 50%;
}
.pad-25 {
  padding: 25px;
}
.pr-15 {
  padding-right: 15px;
}
.pr-10 {
  padding-right: 10px;
}
.pr-5 {
  padding-right: 5px !important;
}
.pl-15 {
  padding-left: 15px;
}
.pl-5 {
  padding-left: 5px !important;
}
.pt-10 {
  padding-top: 10px;
}
.pad-t-5 {
  padding-top: 5px;
}
.pt-15 {
  padding-top: 15px;
}
.pt-25 {
  padding-top: 25px;
}
.pb-15 {
  padding-bottom: 15px;
}
.pb-10 {
  padding-bottom: 10px;
}
.pb-5 {
  padding-bottom: 5px !important;
}
.mr-15 {
  margin-right: 15px;
}
.ml-15 {
  margin-left: 15px;
}
.mr-10 {
  margin-right: 10px;
}
.mr-5 {
  margin-right: 5px !important;
}
.ml-5 {
  margin-left: 5px !important;
}
.ml-10 {
  margin-left: 10px !important;
}
.mt-10 {
  margin-top: 10px !important;
}
.mt-25 {
  margin-top: 25px !important;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
}
.footer-container {
  position: relative;
  height: 100%;
  min-height: calc(100vh - 180px);
}
.mr-25 {
  margin-right: 25px !important;
}
.ml-25 {
  margin-left: 25px !important;
}
.br-4 {
  border-radius: 4px;
}
.text-nowrap {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.o-h {
  overflow: hidden;
}
.o-a {
  overflow: auto;
}
.success {
  color: #28a745;
}
.success.disabled {
  color: #6c757d;
  cursor: not-allowed;
}
.danger {
  color: #dc3545;
}
.danger.disabled {
  color: #6c757d;
  cursor: not-allowed;
}
.danger:hover:not(.disabled) {
  color: #bd2130;
}
.success:hover:not(.disabled) {
  color: #1e7e34;
}
.disabled-text,
.disabled-icon {
  color: gray !important;
  cursor: not-allowed;
}
.dropdown-menu {
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  padding: 0;
  min-width: 17rem;
}
.dropdown-menu-res {
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  padding: 0;
  min-width: 100px;
}
.dropdown-item__icon {
  margin-right: 10px;
  font-size: 1.2rem;
}
.list-group-item {
  border: none;
  align-items: center;
}
.list-group-item:HOVER {
  background-color: rgba(0, 0, 0, 0.03);
  cursor: pointer;
}
.a-i-b {
  align-items: flex-start !important;
}
.flexy-no-c {
  display: flex;
}
.a-i {
  align-items: center;
}
.flexy {
  display: flex !important;
  align-items: center;
}
.flexy-wrap {
  flex-wrap: wrap;
}
.flexy-col {
  display: flex;
  flex-direction: column;
}
.j-c {
  justify-content: center;
}
.justify-end {
  justify-content: end;
}
.justify-between {
  justify-content: space-between;
}
.p-a {
  position: absolute;
}
.list-group-item input[type='checkbox'] {
  margin-right: 10px;
}
.list-group-item input[type='radio'] {
  margin-right: 10px;
}
.btn--round {
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-width: 28px;
  min-height: 28px;
  max-height: 28px;
  border-radius: 20px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  padding: 0px;
}
.btn-invisible {
  border: none;
  background-color: transparent;
}
.btn-invisible:focus {
  border: none;
  outline: none;
}
.btn-invisible:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.btn {
  border-width: 2px;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
}
.btn.smaller {
  font-size: 0.9rem;
}
.btn.xsmall {
  font-size: 0.8rem;
}
.btn.less-pad {
  padding: 0.2rem 0.6rem !important;
}
.font-small {
  font-size: 0.9rem;
}
.btn--plus .plus {
  width: 25px;
  height: 25px;
  border: 2px solid #ddd;
  border-radius: 30px;
  margin-left: 10px;
}
.btn--size {
  font-size: 100%;
}
.breadcrumb {
  font-size: 1rem;
  background: #fff;
  margin-bottom: 0;
}
.btn-outline-primary:hover .plus {
  border-color: #fff !important;
}
.btn-plain {
  background: none;
}
.modal-backdrop.hide {
  display: none;
}
.modal-title {
  font-weight: 600;
}
.modal-content .row {
  margin-right: 0px;
  padding: 10px 0 10px 0;
  align-items: center;
}
.slide-in {
  width: 56%;
  position: fixed;
  top: 0;
  height: 100vh;
  z-index: 19;
  background: #fff;
  right: 0;
  max-width: 700px;
}
.team-builder {
  width: 46%;
  position: fixed;
  top: 0;
  height: 100vh;
  z-index: 18;
  background: #fff;
  right: 0;
  max-width: 600px;
}
.small-loader {
  border: 3px solid #f3f3f3;
  border-radius: 50%;
  border-top: 3px solid #999;
  width: 25px;
  height: 25px;
  -webkit-animation: spin 0.8s linear infinite;
  /* Safari */
  animation: spin 0.8s linear infinite;
}
.md-loader {
  border: 3px solid #f3f3f3;
  border-radius: 50%;
  border-top: 3px solid #fb8e2d;
  width: 60px;
  height: 60px;
  -webkit-animation: spin 0.8s linear infinite;
  /* Safari */
  animation: spin 0.8s linear infinite;
}
.md-loader.small {
  width: 22px;
  height: 22px;
  border-width: 2px;
}
.md-loader.light {
  border-color: #007bff;
  border-top-color: #fff;
}
.md-select-loader {
  border: 2px solid #007bff;
  border-radius: 50%;
  border-top: 2px solid #fff;
  width: 28px;
  height: 28px;
  -webkit-animation: spin 0.8s linear infinite;
  /* Safari */
  animation: spin 0.8s linear infinite;
}
/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Citation tooltip fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.dashboard .row {
  margin-right: 0px;
  margin-left: 0px;
}
.dashboard .card {
  border: none;
  border-radius: 8px;
}
.text-primary {
  color: #1D4A7C;
}
.border-primary {
  border: 1px solid #1D4A7C;
}
.tsg-bg-primary {
  background: rgba(0, 123, 255, 0.01);
}
.text-muted {
  color: #a3a4a6 !important;
}
.text-dark {
  color: #4E5155;
}
.link {
  color: #1e70cd;
}
.link:HOVER {
  text-decoration: underline;
}
.slide-in-title {
  font-size: 1.4rem;
}
.slide-in-sub-title {
  font-size: 1.2rem;
}
label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 3px;
  color: rgba(0, 0, 0, 0.8);
}
.val-required {
  color: red;
  padding-left: 3px;
}
table {
  margin-top: 18px;
  width: 100%;
  font-family: 'Roboto', sans-serif;
}
table tbody {
  border: 1px solid #ddd;
}
table tbody tr td .btn-primary {
  background-color: #fb8e2d;
  border-color: #f07405;
}
table .btn-primary:hover,
table .btn-primary:active,
table .btn-primary:focus,
table .btn-primary.disabled:not(.blue),
table .btn-primary:disabled:not(.blue) {
  background-color: #dc6a04 !important;
  border-color: #be5c04 !important;
  box-shadow: none;
}
th:first-child {
  border-top-left-radius: 10px;
}
th:last-child {
  border-top-right-radius: 10px;
}
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #ddd;
}
table tr td,
table tr th {
  padding: 10px 10px 10px 10px;
}
th {
  font-weight: 700;
  background-color: #2e323a;
  color: #fff;
}
table tr {
  transition: background 0.08s ease-in-out;
}
table thead tr {
  border-bottom: 2px solid #ccc;
}
table tbody tr:hover {
  cursor: pointer;
  background: rgba(0, 0, 0, 0.06);
}
table tbody tr:hover .hover-font-color {
  color: #1D4A7C;
}
table tbody tr:hover .hover-text-decoration {
  text-decoration: underline;
}
table tbody tr.selected {
  background: rgba(0, 0, 0, 0.075);
}
table tbody tr.selected .selected-font-color {
  color: #1D4A7C;
}
table .fa-users:hover {
  color: #fb8e2d !important;
}
.ui-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 1.1rem 1.1rem 0.1rem 1.2rem;
}
.ui-filter {
  width: 300px;
}
select.small {
  width: 150px;
  max-width: 150px;
}
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  font-weight: 700;
}
.nav-tabs .nav-link {
  background: #fafafa;
  border-bottom: 1px solid #e9ecef;
  margin-right: 5px;
}
.nav-link.disabled {
  pointer-events: none;
  /* Evita que el enlace sea clickeable */
  color: gray;
  text-decoration: none;
}
.nav-link.active {
  text-decoration: underline;
  color: #007bff !important;
  text-decoration-thickness: 2.5px !important;
  text-underline-offset: 15px !important;
}
.local-modal.modal.show {
  display: block;
  overflow: auto;
}
.dropdown-menu {
  position: absolute;
  z-index: 7;
  background: #fff;
  width: 270px;
  max-height: 375px;
  overflow: auto;
  border: none;
  border-radius: 0;
}
.dropdown-menu-res {
  position: absolute;
  z-index: 999;
  background: #fff;
  width: 100px;
  max-height: 375px;
  overflow: auto;
  border: none;
  border-radius: 0;
}
.dropdown-item {
  overflow: hidden;
  padding: 0 16px;
  height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
}
.dropdown-toggle::after {
  margin-left: 0.855em;
}
.modal-lbl {
  padding-bottom: 6px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.72);
}
.no-left-pad {
  padding-left: 0 !important;
}
.no-right-pad {
  padding-right: 0 !important;
}
.is-invalid .invalid-feedback {
  display: block;
}
.form-lbl {
  font-weight: 600;
}
textarea.form-control {
  height: 55px;
}
.tt-extra {
  z-index: 999999;
}
button .medium {
  font-size: 1.1rem;
  margin-right: 10px;
}
.gray-pane {
  margin-left: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f5f5f5;
}
.admin-table {
  transition: background 0.08s ease-in-out;
}
.admin-table .header {
  padding: 8px 0;
  border-bottom: 2px solid #ccc;
}
.admin-table .header div {
  font-weight: 600;
}
.admin-row {
  padding: 6px 0;
}
.admin-table .admin-row:hover {
  cursor: pointer;
  background: rgba(0, 0, 0, 0.06);
}
.admin-table .admin-row:hover .hover-font-color {
  color: #1D4A7C;
}
.admin-table .admin-row:hover .hover-text-decoration {
  text-decoration: underline;
}
.admin-table .admin-row.selected {
  background: rgba(0, 0, 0, 0.075);
}
.admin-table .admin-row.selected .selected-font-color {
  color: #1D4A7C;
}
.p-r {
  position: relative;
}
.rc-slider-dot-active {
  border-color: #1D4A7C;
}
.rc-slider-track {
  background-color: #bbb;
}
.noselect {
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Safari */
  -khtml-user-select: none;
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
  supported by Chrome and Opera */
}
.rc-slider-mark-text-active {
  color: #1D4A7C;
  font-weight: 600;
}
.rc-slider-mark-text {
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Safari */
  -khtml-user-select: none;
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
  supported by Chrome and Opera */
}
.rc-slider-handle {
  border: solid 2px #1D4A7C;
}
.rc-slider-handle:hover {
  border-color: #1D4A7C;
}
.rc-slider-handle:active {
  border-color: #1D4A7C;
  box-shadow: 0 0 5px #1D4A7C;
}
.rc-slider-handle-click-focused:focus {
  border-color: #1D4A7C;
}
.hidden {
  display: none !important;
}
.rc-slider-disabled .rc-slider-mark-text-active {
  color: #999;
}
.dropdown-header {
  color: #1D4A7C;
  font-weight: 600;
}
.very-small-lbl {
  padding-left: 3px;
  padding-top: 3px;
  font-size: 0.8rem;
  color: #888;
}
.fw-600 {
  font-weight: 600;
}
.primary-orange-bg {
  background: #fb8e2d;
}
.header-lbl-small {
  color: #fb8e2d;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.025rem;
  margin-bottom: -4px;
}
.underline-link {
  color: #1D4A7C;
  text-decoration: underline;
  cursor: pointer;
}
.card-title {
  color: #007bff;
}
.green-text {
  color: #093;
}
.red-text {
  color: #ff333a;
}
.resource-banner {
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  min-height: 67px;
  height: 67px;
}
.resource-banner-wrap {
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  min-height: 67px;
}
.resource-title {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 1.3rem;
  width: 100%;
}
.resource-title-wrap {
  font-size: 1.3rem;
  width: 100%;
}
select.form-control.is-invalid,
select.was-validated .form-control:invalid {
  background-position: center right calc(1.4em) !important;
}
.phase-wrapper {
  max-width: 45px;
  width: 45px;
}
.btn-green {
  color: #093;
  border-color: #068b32;
}
.btn-border {
  border: 2px solid #ccc;
}
.t-u {
  text-transform: uppercase;
}
.f-b {
  font-weight: bold;
}
.fw-500 {
  font-weight: 500;
}
.trashy {
  cursor: pointer;
}
.trashy-o {
  cursor: pointer;
  opacity: 0.4;
}
.trashy:HOVER {
  color: red;
}
.trashy-o:HOVER {
  color: red;
  opacity: 1;
}
.edity {
  cursor: pointer;
}
.edity-o {
  cursor: pointer;
  opacity: 0.4;
}
.edity:HOVER {
  color: #0069d9;
}
.edity-o:HOVER {
  color: #0069d9;
  opacity: 1;
}
input[type="radio"] {
  -webkit-appearance: radio;
}
@media only screen and (max-width: 1370px) {
  .btn--size {
    font-size: 85%;
  }
}
.tooltip-container {
  position: relative;
  /*relative: los elementos se posicionan de forma relativa a su posición normal.*/
  display: inline-block;
}
.tooltip-text {
  border-radius: 3px;
  display: inline-block;
  font-size: 13px;
  opacity: 0;
  padding: 8px 21px;
  position: absolute;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
  top: -40%;
  visibility: hidden;
  z-index: 999;
  color: #fff;
  text-align: center;
  left: 550%;
  transform: translateX(-50%);
  background-color: #222;
  width: 180px;
  font-weight: 100;
}
.tooltip-text-lb {
  border-radius: 3px;
  display: inline-block;
  font-size: 13px;
  opacity: 0;
  padding: 8px 21px;
  position: absolute;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
  visibility: hidden;
  z-index: 999;
  color: #fff;
  text-align: center;
  left: 220%;
  transform: translateX(-50%);
  background-color: #222;
  width: 250px;
  font-weight: 100;
}
.tooltip-text::after {
  content: " ";
  position: absolute;
  top: 50%;
  right: 100%;
  /* To the left of the tooltip */
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent black transparent transparent;
}
.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
.tooltip-text-lb::after {
  content: " ";
  position: absolute;
  top: 50%;
  right: 100%;
  /* To the left of the tooltip */
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent black transparent transparent;
}
.tooltip-container:hover .tooltip-text-lb {
  visibility: visible;
  opacity: 1;
}
.no-arrow {
  -webkit-appearance: none;
  -moz-appearance: none;
}
.no-arrow::-ms-expand {
  display: none;
}
.btn-primary-new {
  color: #fff;
  background-color: #1D4A7C;
  border-color: #1D4A7C;
}
.btn-primary-new:disabled {
  color: #fff;
  background-color: #1D4A7C;
  border-color: #1D4A7C;
}
.btn-primary-new:hover {
  color: #fff;
  background-color: #0b2e57;
  border-color: #0b2e57;
}
.modal-header-new {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: justify;
  justify-content: space-between;
  min-height: 52px;
  padding: 1rem 1rem;
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
  background: #000;
  color: #fff;
}
.modal-header-new .modal-title {
  margin: 0;
  line-height: 1.25;
}
.swal2-container-high-z-index {
  z-index: 9999999 !important;
}
.swal2-popup-high-z-index {
  z-index: 10000000 !important;
}
.swal2-backdrop-high-z-index {
  z-index: 9999998 !important;
}
.swal2-actions {
  z-index: 10000001 !important;
  position: relative !important;
}
.swal2-confirm {
  background-color: #ff6f00 !important;
  color: white !important;
  border-radius: 4px !important;
  padding: 8px 16px !important;
  margin: 5px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border: none !important;
  cursor: pointer !important;
}
.swal2-confirm:hover {
  background-color: #cc5900 !important;
}
.swal2-confirm:focus {
  box-shadow: 0 0 0 2px rgba(255, 111, 0, 0.2) !important;
  outline: none !important;
}
.swal2-cancel {
  background-color: #808080 !important;
  color: white !important;
  border-radius: 4px !important;
  padding: 8px 16px !important;
  margin: 5px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border: none !important;
  cursor: pointer !important;
}
.swal2-cancel:hover {
  background-color: #676767 !important;
}
.swal2-cancel:focus {
  box-shadow: 0 0 0 2px rgba(128, 128, 128, 0.2) !important;
  outline: none !important;
}
.chat-delete-popup {
  z-index: 9999 !important;
  position: relative !important;
}
.swal2-container {
  z-index: 9998 !important;
}
.swal2-backdrop {
  z-index: 9997 !important;
}
.chakra-modal__overlay,
.chakra-modal__content-container {
  z-index: 1400 !important;
}
p {
  margin-bottom: 0 !important;
}

