/*
 * chat.css  ·  AUTO-GENERATED by scripts/consolidate_css.py
 *
 * Bucket: chat
 * Rules in source files: 1547
 * Rules after dedup:     644
 * Source files merged:
 *   - chat-panel/css/chat-panel.css
 *   - chat-panel/css/thinking-animation.css
 *   - css/chat-panel.css
 *   - css/clash-manager.css
 *   - css/index-styles.css
 *   - css/shared-styles.css
 *   - css/thinking-animation.css
 */

.demo-view-overlay {
  display: flex !important;
  height: 100%;
  left: 0;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: fixed;
  top: 0;
  visibility: visible !important;
  width: 100%;
  z-index: 500;
}

.demo-titlebar-btn {
  align-items: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  height: 12px;
  justify-content: center;
  margin: 0;
  width: 12px;
}

.demo-chat-history-sidebar {
  background: #f5f5f5;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex: 0 0 35%;
  flex-direction: column;
  overflow: hidden;
}

.demo-history-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #888888;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 8px;
  text-transform: uppercase;
}

.demo-history-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
}

.demo-history-item {
  background: transparent;
  border-radius: 4px;
  color: #555555;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  margin-bottom: 2px;
  padding: 5px 8px;
  transition: all 0.2s ease;
}

.demo-history-item-title {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
}

.demo-history-item-preview {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 1px;
  opacity: 0.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-progress-container {
  align-items: center;
  display: none;
  gap: 6px;
  margin-bottom: 6px;
}

.agent-progress-ring,
.step-changes .changes-box {
  flex-shrink: 0;
}

.demo-chat-messages {
  background: #f5f5f5;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 12px;
}

.chat-text,
.demo-msg-bot p,
.demo-msg-user p {
  font-family: 'Inter', sans-serif;
  font-optical-sizing: auto;
  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1.6;
}

.demo-msg-user {
  align-self: flex-end;
  background: #156082;
  border-radius: 10px;
  color: #fff;
  margin-left: 40px;
  max-width: 90%;
  padding: 12px 14px;
}

.demo-msg-bot {
  align-self: flex-start;
  background: white;
  border-radius: 10px;
  color: #333;
  max-width: 90%;
  padding: 12px 14px;
}

.demo-chat-input-row {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  container-name: chat-input;
  container-type: inline-size;
  display: flex;
  flex-shrink: 0;
  gap: 6px;
  padding: 8px;
}

.demo-chat-input {
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  color: #333;
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  min-width: 0;
  outline: none;
  padding: 6px 10px;
  transition: all 0.3s ease;
}

.demo-chat-send {
  background: #156082;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 12px;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.chat-settings-wrapper {
  display: inline-block;
  position: relative;
}

.chat-neural-node {
  height: 20px;
  position: relative;
  width: 20px;
}

.chat-node-core {
  background: var(--node-idle);
  border-radius: 50%;
  height: 10px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.3s ease;
  width: 10px;
}

.chat-node-glow {
  background: transparent;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--node-glow);
  height: 16px;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  width: 16px;
}

.chat-node-pulse-ring {
  border: 1px solid transparent;
  border-radius: 50%;
  height: 20px;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
}

.chat-node-status {
  color: #888;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  margin-left: 8px;
}

.step-icon {
  flex-shrink: 0;
  text-align: center;
  width: 14px;
}

.step-content {
  align-items: baseline;
  display: flex;
  flex: 1;
  flex-direction: row;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.step-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-changes {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  margin-left: auto;
  white-space: nowrap;
}

.steps-toggle {
  align-items: center;
  color: #888;
  cursor: pointer;
  display: flex;
  padding: 2px 4px;
  user-select: none;
}

.steps-list {
  color: #666;
  font-size: 0.8rem;
  list-style: none;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 0 0 7px;
  position: relative;
  transform: translateY(-8px);
  transform-origin: top;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.25s ease, 
              margin 0.25s ease,
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-content {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 12px;
  justify-content: space-between;
}

.step-text {
  flex: 1;
}

.step-changes {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
  font-size: 0.7rem;
  gap: 8px;
  margin-left: auto;
}

.thinking-container {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  transition: opacity 0.3s ease, max-height 0.4s ease-out, margin 0.4s ease-out, padding 0.3s ease-out;
}

.thinking-header {
  align-items: center;
  color: #555;
  cursor: pointer;
  display: flex;
  font-size: 0.85rem;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.thinking-header-left {
  align-items: center;
  display: flex;
  gap: 8px;
}

.steps-count {
  color: #888;
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 300;
}

.pulsing-node {
  height: 16px;
  position: relative;
  width: 16px;
}

.demo-msg-user {
  align-self: flex-end;
  background: #156082;
  border-radius: 10px;
  color: #fff;
  margin-left: 40px;
  max-width: 90%;
  padding: 12px 14px;
}

.demo-chat-send {
  background: #156082;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 12px;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.qa-chat-overlay {
  display: flex;
  flex-direction: row;
  height: 100%;
  overflow: hidden;
  width: 100%;
}

.qa-titlebar-text {
  align-items: baseline;
  color: #333;
  display: flex;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.qa-titlebar-menu {
  display: flex;
  flex: 1;
  gap: 2px;
  margin-left: 16px;
}

.qa-titlebar-btns {
  align-items: center;
  display: flex;
  gap: 6px;
  height: 100%;
  justify-content: center;
  margin-left: auto;
}

.qa-titlebar-btn {
  border: none;
  border-radius: 50%;
  cursor: pointer;
  height: 12px;
  transition: opacity 0.15s ease;
  width: 12px;
}

.qa-manager-body {
  background: none !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  min-height: 100vh;
  padding: 0;
  pointer-events: none;
}

.qa-body {
  background: var(--bg-tertiary);
  display: flex;
  flex: 1;
  min-height: 0;
}

.qa-manager {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10), 0 0 1px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  height: 650px;
  left: 50%;
  min-height: 400px;
  min-width: 600px;
  overflow: hidden;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1100px;
  z-index: 10000;
}

.qa-results-header {
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  display: flex;
  gap: 8px;
  padding: 4px 8px;
}

.qa-count {
  background: rgba(0,0,0,0.04);
  border-radius: 8px;
  color: var(--text-faint);
  font-size: 0.55rem;
  padding: 2px 6px;
}

.qa-select {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  color: #333;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.5rem;
  padding: 2px 6px;
}

.qa-results-table-wrapper {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.qa-results-table {
  border-collapse: collapse;
  font-size: 0.55rem;
  table-layout: fixed;
  width: 100%;
}

.qa-details-row {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
  height: 140px;
}

.qa-element-details {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  width: 180px;
}

.qa-view-panel {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.qa-resizer {
  background: transparent;
  cursor: col-resize;
  flex-shrink: 0;
  width: 4px;
}

.qa-chat-column {
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  max-width: 500px;
  min-width: 200px;
  overflow: hidden;
  position: relative;
  width: 380px;
}

.qa-statusbar {
  align-items: center;
  background: #f5f5f5;
  border-top: 1px solid #ddd;
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  padding: 3px 10px;
}

.qa-status {
  color: var(--text-light);
  font-size: 0.5rem;
}

@media (max-width: 767px) {
  .demo-view-overlay {
    height: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    visibility: visible !important;
    width: 100% !important;
    z-index: 1 !important;
  }
}

.thinking-section {
  max-width: 500px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  width: 100%;
}

.demo-view-overlay {
  height: 100%;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
  visibility: hidden;
  width: 100%;
  z-index: 500;
}

.demo-outputs-section {
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  flex: 0 0 auto;
  margin-top: 0;
  max-height: 40%;
  overflow: hidden;
  padding: 0.5rem;
  padding-top: 0.75rem;
}

.demo-outputs-header {
  color: #888;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03125rem;
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
  text-transform: uppercase;
}

.demo-outputs-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.open-chat-btn {
  background: #156082;
  border: none;
  border-radius: 8px;
  bottom: 30px;
  color: white;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  left: 30px;
  overflow: hidden;
  padding: 12px 24px;
  position: absolute;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

@media (max-width: 767px) {
  .thinking-section {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

.demo-chat-container {
  background: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  height: 500px;
  left: 22.5%;
  max-width: 700px;
  min-height: 250px;
  min-width: 280px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  right: auto;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.3);
  transform-origin: center center;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
  width: 420px;
  z-index: 9999;
}

.demo-chat-body {
  display: flex;
  flex: 1;
  flex-direction: row;
  overflow: hidden;
}

.demo-chat-history-sidebar {
  background: #ececec;
  border-right: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex: 0 0 30%;
  flex-direction: column;
  overflow: hidden;
}

.demo-history-header {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: #666;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 10px 12px;
  text-transform: uppercase;
}

.demo-history-list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
}

.demo-history-item {
  background: #e0e0e0;
  border-radius: 6px;
  color: #555;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  margin-bottom: 4px;
  padding: 10px 12px;
  transition: all 0.2s ease;
}

.demo-history-item-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.125rem;
}

.demo-history-item-preview,
.demo-history-preview {
  font-size: 10px;
  opacity: 0.7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-chat-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.chat-message {
  animation: chatFadeIn 0.4s ease forwards;
  opacity: 0;
}

.chat-thinking {
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  min-width: 200px;
  overflow: hidden;
  padding: 12px 14px;
}

.chat-thinking-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.chat-thinking-header {
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: #888;
  display: flex;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  gap: 8px;
  margin-bottom: 6px;
  padding-bottom: 6px;
}

.chat-steps-list {
  color: #888;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  list-style: none;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}

.chat-step-icon {
  color: #00a0a0;
  font-size: 8px;
}

.chat-settings-wrapper {
  display: inline-flex;
  position: relative;
}

.chat-persistent-node-wrapper {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: 8px 0;
  position: relative;
  width: 100%;
}

.chat-node-status {
  left: 0;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
  z-index: 1;
}

.chat-neural-node {
  height: 20px;
  margin-left: calc(100% - 20px);
  position: relative;
  transform: scale(1);
  transition: transform 0.4s ease-out, margin-left 0.4s ease-in-out;
  width: 20px;
}

.chat-node-core {
  background: linear-gradient(135deg, #666 0%, #444 100%);
  border-radius: 50%;
  height: 8px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
  width: 8px;
}

.chat-node-glow {
  background: rgba(0, 180, 180, 0);
  border-radius: 50%;
  filter: blur(3px);
  height: 8px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
  width: 8px;
}

.chat-node-pulse-ring {
  border: 2px solid rgba(0, 180, 180, 0);
  border-radius: 50%;
  height: 8px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: border-color 0.5s ease;
  width: 8px;
}

.demo-chat-input {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  flex: 1;
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  outline: none;
  padding: 8px 12px;
  transition: border-color 0.2s ease;
}

.demo-chat-input-row {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-shrink: 0;
  gap: 6px;
  padding: 8px;
}

.demo-ready-prompt {
  background: linear-gradient(135deg, rgba(21, 96, 130, 0.1) 0%, rgba(74, 155, 184, 0.1) 100%);
  border: 1px dashed rgba(21, 96, 130, 0.3);
  border-radius: 8px;
  color: #156082;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  margin-top: 8px;
  padding: 12px 16px;
  text-align: center;
}

.pulsing-node::before {
  background: #156082;
  border-radius: 50%;
  box-shadow: none;
  content: '';
  height: 8px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
}

.pulsing-node::after {
  border: none;
  border-radius: 50%;
  content: '';
  height: 8px;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
}

.steps-list li {
  align-items: flex-start;
  display: none;
  gap: 10px;
  opacity: 0;
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
  transform: translateX(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease, height 0.2s ease, padding 0.2s ease;
}

.qa-chat-messages::-webkit-scrollbar-thumb,
.qa-results-table-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.qa-results-table thead {
  background: #f5f5f5;
  position: sticky;
  top: 0;
  z-index: 10;
}

.qa-results-table th {
  border-bottom: 1px solid #ddd;
  color: var(--text-light);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 4px 6px;
  position: relative;
  text-align: left;
  text-transform: uppercase;
  user-select: none;
  white-space: nowrap;
}

.qa-results-table td {
  border-bottom: 1px solid #eee;
  color: var(--text-primary);
  padding: 4px 6px;
}

.open-chat-btn::before {
  animation: btn-shine 2.5s ease-in-out infinite;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255,255,255,0.4) 50%,
    transparent 60%
  );
  content: '';
  height: 200%;
  left: -50%;
  position: absolute;
  top: -50%;
  transform: translateX(-100%);
  width: 200%;
}

.chat-steps-list li {
  align-items: center;
  display: flex;
  gap: 6px;
  opacity: 0;
  padding: 3px 0;
  transform: translateX(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.demo-ready-prompt strong {
  color: #156082;
  font-weight: 600;
}

.steps-list li::before {
  background: #d0d0d0;
  bottom: 0;
  content: '';
  left: 3px;
  position: absolute;
  top: 0;
  width: 1px;
}

.demo-view-overlay.visible {
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0s linear 0s;
  visibility: visible;
}

.demo-view-overlay .demo-split-view {
  display: flex;
  height: 100%;
  width: 100%;
}

.demo-view-overlay .demo-text-panel {
  align-items: center;
  background: #ffffff;
  display: flex !important;
  flex: 0 0 40%;
  flex-direction: column;
  justify-content: center;
  max-width: 40%;
  padding: 0 60px;
  pointer-events: none;
}

.demo-view-overlay .demo-text-inner {
  max-width: 400px;
  pointer-events: auto;
}

.demo-view-overlay .demo-text-heading {
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 24px;
}

.demo-view-overlay .demo-text-body {
  color: #555;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  max-width: 400px;
  text-align: justify;
}

.qa-chat-overlay .right-column .demo-chat-main,
.right-column .demo-chat-main {
  display: flex;
  flex: 1 1 50%;
  flex-direction: column;
  min-height: 0;
  min-width: 120px;
  order: 1;
  overflow: hidden;
}

.right-column .demo-chat-history-sidebar {
  border-left: 1px solid #e0e0e0;
  border-right: none !important;
  display: flex;
  flex: 1 1 50%;
  flex-direction: column;
  height: 100% !important;
  max-width: none !important;
  min-width: 100px !important;
  order: 3;
  overflow: hidden;
  position: relative !important;
}

.demo-view-overlay .demo-chat-titlebar {
  align-items: center;
  background: #e8e8e8;
  container-name: chat-titlebar;
  container-type: inline-size;
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  height: 30px;
  overflow: hidden;
  padding: 0 10px;
  user-select: none;
}

.demo-view-overlay .demo-chat-titlebar-text {
  color: #333;
  flex-shrink: 0;
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.demo-view-overlay .demo-containers-panel {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 60%;
  height: 100%;
  justify-content: flex-end;
  max-width: 60%;
  overflow: hidden;
  padding-right: 0;
  pointer-events: none;
}

.demo-view-overlay .demo-chat-titlebar-btns {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 6px;
  height: 100%;
  justify-content: center;
  margin-left: auto;
}

.demo-titlebar-btn.close {
  background: #f25656;
}

.demo-titlebar-btn:hover {
  filter: brightness(0.9);
}

.demo-view-overlay .demo-image-container {
  align-items: center;
  background: transparent;
  border-radius: 0;
  box-sizing: border-box;
  display: flex;
  height: 60vh !important;
  justify-content: flex-end;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100% !important;
}

.demo-view-overlay .demo-chat-history-sidebar {
  background: #ececec;
  border-right: none;
  display: flex;
  flex: 0 0 30%;
  flex-direction: column;
  max-width: 400px;
  min-width: 120px;
  overflow: hidden;
  overscroll-behavior: contain;
}

.demo-view-overlay .sidebar-tab-bar {
  align-items: stretch;
  background: #e0e0e0;
  display: flex;
  gap: 0;
  padding: 0;
}

.demo-view-overlay .sidebar-tab {
  align-items: center;
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  display: flex;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  gap: 5px;
  justify-content: center;
  padding: 6px 12px;
  transition: background 0.15s ease, color 0.15s ease;
}

.demo-view-overlay .demo-containers-stack {
  display: flex;
  flex-direction: row;
  gap: 12px;
  height: 100%;
  max-width: 100%;
  overflow: visible;
  pointer-events: auto;
  position: relative;
  width: 100% !important;
  z-index: 1;
}

.demo-view-overlay .sidebar-panel {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
}

.demo-view-overlay .demo-history-search {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0.5rem 0.75rem;
}

.demo-view-overlay .history-search-input {
  background: #f8f8f8;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  color: #333;
  font-family: 'Inter', sans-serif;
  font-size: 0.625rem;
  outline: none;
  padding: 6px 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
}

.demo-view-overlay .new-agent-btn {
  background: transparent;
  border: 1px dashed rgba(21, 96, 130, 0.4);
  border-radius: 4px;
  color: #156082;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  margin: 0.5rem;
  padding: 6px 10px;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease;
  width: calc(100% - 1rem);
}

.demo-view-overlay .sidebar-footer {
  background: #e8e8e8;
  border-top: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
  padding: 8px 12px;
}

.demo-view-overlay .demo-chat-wrapper {
  flex: 1;
  height: 100% !important;
  min-width: 0;
  order: 2;
  pointer-events: auto;
  position: relative;
  width: 100% !important;
}

.demo-view-overlay .demo-history-header {
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: #666;
  display: flex;
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  justify-content: space-between;
  letter-spacing: 0.03125rem;
  padding: 0.625rem 0.75rem;
  text-transform: uppercase;
}

.demo-view-overlay .share-chat-btn {
  background: transparent;
  border: none;
  border-radius: 4px;
  color: #999;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 4px;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}

.demo-view-overlay .demo-history-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.5rem;
  padding-bottom: 0.75rem;
}

.demo-history-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.demo-history-item.active,
html.dark-mode .demo-history-item.active {
  background: #156082;
  color: #fff;
}

.demo-view-overlay .demo-history-item {
  background: #e0e0e0;
  border-radius: 0.375rem;
  color: #555;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  padding: 0.625rem 0.75rem;
  transition: all 0.2s ease;
}

.demo-view-overlay .demo-history-item-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.60rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.125rem;
}

.demo-view-overlay .demo-history-item-preview {
  font-size: 0.625rem;
  opacity: 0.7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-history-item.manager-item {
  background: linear-gradient(135deg, rgba(21, 96, 130, 0.15) 0%, rgba(74, 155, 184, 0.15) 100%);
  border: 1px solid rgba(21, 96, 130, 0.2);
}

.demo-history-item .demo-history-item-content {
  flex: 1;
  min-width: 0;
}

.demo-history-item .agent-progress-ring {
  flex-shrink: 0;
  height: 16px;
  margin-left: 8px;
  width: 16px;
}

.demo-view-overlay .demo-chat-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.demo-view-overlay .design-options-bar {
  align-items: center;
  background: #f0f0f0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  padding: 0 8px;
}

.demo-view-overlay .design-tabs {
  align-items: stretch;
  display: flex;
  flex: 1;
  gap: 0;
}

.demo-view-overlay .design-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  padding: 8px 14px;
  position: relative;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.demo-view-overlay .design-option-add {
  align-items: center;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #999;
  cursor: pointer;
  display: flex;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  gap: 2px;
  padding: 8px 10px;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}

.demo-view-overlay .demo-chat-messages {
  background: #f8f8f8;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.625rem;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  padding-bottom: 20px;
}

.demo-chat-container .demo-chat-send:hover,
.demo-msg-user:hover,
.demo-view-overlay .demo-chat-send:hover,
html.dark-mode .demo-chat-send:hover,
html.dark-mode .demo-msg-user:hover,
html.dark-mode .open-chat-btn:hover {
  background: #0e4560;
}

.demo-view-overlay .demo-chat-box {
  background: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  height: 100% !important;
  min-width: 700px;
  overflow: hidden;
  width: 100% !important;
}

.demo-chat-container .demo-msg-bot,
.demo-chat-container .demo-msg-user,
.demo-view-overlay .demo-msg-bot,
.demo-view-overlay .demo-msg-user {
  border-radius: 0.625rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.5;
  max-width: 90%;
  padding: 0.625rem 0.875rem;
}

.demo-view-overlay .demo-msg-user {
  align-self: flex-end;
  background: #b2b2b2b5;
  color: #000000;
  margin-left: auto;
}

.demo-chat-container .demo-msg-bot,
.demo-view-overlay .demo-msg-bot {
  align-self: flex-start;
  background: #e8e8e8;
  color: #333;
}

.demo-chat-container .chat-persistent-node-wrapper,
.demo-view-overlay .chat-persistent-node-wrapper {
  background: #f8f8f8;
  border: none;
  flex-shrink: 0;
  padding: 8px 1rem;
}

.demo-view-overlay .demo-chat-input-row {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-shrink: 0;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  position: relative;
  width: 100%;
}

.demo-chat-input:focus {
  background: #fff;
  border-color: #156082;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

.demo-chat-container .demo-chat-input,
.demo-view-overlay .demo-chat-input {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  outline: none;
  padding: 0.625rem 0.875rem;
}

.demo-chat-box.free-floating {
  height: auto !important;
  position: fixed !important;
  width: auto !important;
  z-index: 10000;
}

.demo-chat-send:hover,
.open-chat-btn:hover {
  background: #0e4560;
  transform: scale(1.02);
}

.demo-chat-send:disabled {
  background: #999;
  cursor: not-allowed;
  transform: none;
}

.demo-view-overlay .demo-chat-send {
  background: #156082;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.625rem 1.125rem;
  transition: background 0.2s ease;
}

.demo-chat-input-row.cursor-style {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 0.5rem 0.75rem;
}

.demo-chat-box.dragging,
.demo-revit-box.dragging {
  box-shadow: 0 12px 48px rgba(0,0,0,0.25);
  opacity: 0.95;
  transition: none !important;
  z-index: 10001;
}

.demo-chat-box.snapping-back {
  transition: left 0.3s ease, top 0.3s ease, width 0.3s ease, height 0.3s ease !important;
}

.demo-chat-wrapper.snap-target,
.demo-revit-wrapper.snap-target {
  outline: 2px dashed rgba(0, 122, 255, 0.5);
  outline-offset: -2px;
}

.demo-view-overlay .demo-chat-body {
  display: flex !important;
  flex: 1;
  flex-direction: row !important;
  overflow: hidden;
}

.chat-dropdown-menu.model-menu {
  min-width: 240px !important;
}

.chat-model-dropdown .menu-icon {
  border-radius: 4px;
  color: #666;
  cursor: pointer;
  display: none;
  font-size: 1rem;
  padding: 4px 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.step-changes .filename {
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thinking-container.visible {
  margin: 0.5rem 0;
  max-height: 800px;
  opacity: 1;
  overflow: visible;
  padding: 6px 10px;
}

.steps-toggle .chevron {
  display: inline-block;
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.steps-list.expanded {
  margin-top: 8px;
  max-height: 800px;
  opacity: 1;
  overflow: visible;
  transform: translateY(0);
}

.steps-list.animating {
  margin-top: 8px;
  max-height: 95px;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
}

.steps-list.fully-expanded {
  max-height: 800px;
  overflow: visible;
}

.thinking-container.collapsing {
  max-height: 50px;
  opacity: 0.5;
}

.thinking-container.hidden {
  margin: 0;
  max-height: 0;
  opacity: 0;
  padding: 0;
}

.step-changes .changes-box {
  align-items: center;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  display: inline-flex;
  gap: 6px;
  padding: 2px 8px;
}

.step-changes .added {
  color: #22863a;
  font-weight: 500;
}

.step-changes .removed {
  color: #cb2431;
  font-weight: 500;
}

.step-changes .filename {
  color: #888;
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  text-align: right;
}

.demo-view-overlay .demo-text-heading {
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 24px;
}

.demo-view-overlay .demo-chat-wrapper {
  flex: 0 0 50%;
  min-width: 0;
  order: 2;
  pointer-events: auto;
  position: relative;
}

.demo-history-item.active,
html.dark-mode .demo-history-item.active {
  background: #156082;
  color: #fff;
}

.demo-view-overlay .demo-chat-box {
  background: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.demo-chat-input:focus {
  background: #fff;
  border-color: #156082;
  box-shadow: 0 0 0 2px rgba(21, 96, 130, 0.1);
}

.demo-chat-send:hover {
  background: #0e4560;
  transform: scale(1.02);
}

.demo-chat-container .demo-chat-send,
.demo-view-overlay .demo-chat-send {
  background: #156082;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.625rem 1.125rem;
  transition: background 0.2s ease;
}

.qa-manager .right-column {
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  max-width: 600px;
  min-width: 194px;
  overflow: hidden;
  position: relative;
  width: 380px;
}

.qa-chat-overlay .right-column {
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  max-width: 500px;
  min-width: 194px;
  overflow: hidden;
  position: relative;
  width: 380px;
}

.demo-view-overlay .demo-chat-titlebar,
.demo-view-overlay .demo-revit-titlebar,
.qa-titlebar {
  align-items: center;
  background: #e8e8e8;
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  height: 30px;
  padding: 0 10px;
  user-select: none;
}

.qa-titlebar-btn.close {
  background: #ff5f57;
}

.qa-titlebar-btn.min {
  background: #febc2e;
}

.qa-titlebar-btn.max {
  background: #28c840;
}

.qa-titlebar-btn.theme-toggle {
  background: none;
  border-radius: 2px;
  height: auto;
  margin-right: 4px;
  padding: 2px 4px;
  width: auto;
}

.qa-ribbon .ribbon-tabs {
  border-bottom: 1px solid #eaeaea;
  display: flex;
  padding: 0 6px;
}

.qa-ribbon .ribbon-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  margin-bottom: -1px;
  padding: 4px 10px;
}

.qa-ribbon .ribbon-content {
  align-items: flex-start;
  display: none;
  gap: 4px;
  height: 76px;
  max-height: 76px;
  min-height: 76px;
  overflow: hidden;
  padding: 6px 8px;
}

.qa-ribbon .ribbon-group {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2px 6px;
}

.qa-ribbon .ribbon-group-content {
  align-items: flex-start;
  display: flex;
  flex: 1;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 2px;
}

.qa-ribbon .ribbon-row {
  align-items: center;
  display: flex;
  gap: 2px;
}

.qa-ribbon .ribbon-group-label {
  border-top: 1px solid #eee;
  color: #888;
  font-size: 0.45rem;
  letter-spacing: 0.3px;
  margin-top: auto;
  padding-top: 2px;
  text-align: center;
  text-transform: uppercase;
}

.qa-ribbon .ribbon-separator {
  align-self: stretch;
  background: #e0e0e0;
  margin: 0 4px;
  width: 1px;
}

.qa-ribbon .ribbon-btn {
  align-items: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #333;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  justify-content: center;
  transition: all 0.1s ease;
}

.qa-results-table .col-select {
  width: 30px;
}

.qa-results-table .col-name {
  width: 200px;
}

.qa-results-table .col-type {
  width: 100px;
}

.qa-results-table .col-view {
  width: 50px;
}

.qa-results-table .col-qa,
.qa-results-table .col-solved {
  width: 80px;
}

.qa-results-table .col-comments {
  width: auto;
}

.qa-manager.dragging {
  box-shadow: 0 12px 48px rgba(0,0,0,0.25);
  opacity: 0.97;
  transition: none;
}

.qa-resizer:hover {
  background: var(--teal);
  opacity: 0.3;
}

.overlay-node .node-title {
  -webkit-font-smoothing: antialiased;
  color: rgba(50, 50, 50, 0.9);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: -22px;
  transform: translateX(-50%);
  visibility: hidden;
  white-space: nowrap;
}

.overlay-node .node-hint {
  -webkit-font-smoothing: antialiased;
  bottom: -22px;
  color: rgba(50, 50, 50, 0.9);
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 400;
  left: 50%;
  opacity: 0;
  position: absolute;
  transform: translateX(-50%);
  visibility: hidden;
  white-space: nowrap;
}

.overlay-node .node-arrow {
  bottom: -12px;
  color: rgba(50, 50, 50, 0.9);
  font-size: 10px;
  left: 50%;
  opacity: 0;
  position: absolute;
  transform: translateX(-50%);
  visibility: hidden;
}

@media (max-width: 767px) {
  .demo-view-overlay:not(.visible) {
    opacity: 1 !important;
    transition: none !important;
    visibility: visible !important;
  }
}

.overlay-node .node-code {
  color: rgba(180, 180, 180, 0.9);
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 9px;
  left: 36px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .demo-view-overlay .demo-containers-panel .demo-containers-stack,
  .demo-view-overlay .demo-split-view {
    flex-direction: column !important;
    height: auto !important;
  }
}

@media (max-width: 767px) {
  .demo-view-overlay .demo-text-panel {
    background: #ffffff !important;
    flex: none !important;
    max-width: 100% !important;
    min-height: auto;
    padding: 30px 24px 20px !important;
    width: 100% !important;
  }
}

.project-complete-btn .open-chat-btn {
  bottom: auto;
  left: auto;
  position: relative;
}

.overlay-node .node-core {
  background: linear-gradient(135deg, #666 0%, #444 100%);
  border-radius: 50%;
  height: 10px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
  width: 10px;
}

.overlay-node .node-glow {
  background: rgba(0, 180, 180, 0);
  border-radius: 50%;
  filter: blur(4px);
  height: 10px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
  width: 10px;
}

.overlay-node .node-pulse-ring {
  border: 2px solid rgba(0, 180, 180, 0);
  border-radius: 50%;
  height: 10px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: border-color 0.5s ease;
  width: 10px;
}

@media (max-width: 767px) {
  .demo-view-overlay .demo-text-inner {
    max-width: 100% !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 767px) {
  .demo-view-overlay .demo-containers-panel {
    flex: none !important;
    height: auto !important;
    max-width: 100% !important;
    padding: 20px 24px 40px !important;
    width: 100% !important;
  }
}

.thinking-section.visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 767px) {
  .demo-view-overlay + .demo-view-overlay {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
}

.demo-view-overlay .demo-text-panel {
  align-items: center;
  background: #ffffff;
  display: flex;
  flex: 0 0 40%;
  flex-direction: column;
  justify-content: center;
  max-width: 40%;
  padding: 0 60px;
  pointer-events: none;
}

.demo-view-overlay .demo-hero-heading {
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 32px;
}

.demo-view-overlay .demo-image-container {
  align-items: center;
  background: transparent;
  border-radius: 0;
  box-sizing: border-box;
  display: flex;
  height: 60vh;
  justify-content: flex-end;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.demo-view-overlay .demo-intro-video {
  border-radius: 0;
  height: 60vh;
  object-fit: cover;
  object-position: center;
  pointer-events: auto;
  width: 100%;
}

.demo-view-overlay .demo-chat-history-sidebar,
.demo-view-overlay .demo-outputs-tree {
  overscroll-behavior: contain;
}

.demo-view-overlay .demo-containers-stack {
  display: flex;
  flex-direction: row;
  gap: 12px;
  height: 100%;
  max-width: 100%;
  overflow: visible;
  pointer-events: auto;
  position: relative;
  width: 100%;
  z-index: 1;
}

.demo-view-overlay .demo-revit-wrapper {
  flex: 0 0 48%;
  min-width: 0;
  order: 1;
  pointer-events: auto;
}

.demo-view-overlay .demo-revit-wrapper {
  pointer-events: auto;
  position: relative;
}

.demo-chat-box.snapping-back,
.demo-revit-box.snapping-back {
  transition: left 0.3s ease, top 0.3s ease, width 0.3s ease, height 0.3s ease, transform 0.3s ease;
}

.demo-view-overlay .demo-chat-box {
  background: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  width: 100%;
}

.demo-view-overlay .demo-chat-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.demo-view-overlay .demo-chat-history-sidebar {
  background: #ececec;
  border-right: none;
  display: flex;
  flex: 0 0 30%;
  flex-direction: column;
  max-width: 400px;
  min-width: 120px;
  overflow: hidden;
}

.demo-view-overlay .chat-sidebar-resize {
  background: rgba(128, 128, 128, 0.2);
  cursor: ew-resize;
  flex-shrink: 0;
  position: relative;
  transition: background 0.15s ease;
  width: 1px;
  z-index: 1;
}

.demo-view-overlay .history-search-input {
  background: #f8f8f8;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  color: #333;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  outline: none;
  padding: 6px 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
}

.demo-view-overlay .new-agent-btn {
  background: transparent;
  border: 1px dashed rgba(21, 96, 130, 0.4);
  border-radius: 4px;
  color: #156082;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  margin: 0.5rem;
  padding: 6px 10px;
  transition: background 0.15s ease, border-color 0.15s ease;
  width: calc(100% - 1rem);
}

.demo-view-overlay .demo-chat-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: visible;
}

.demo-view-overlay .design-options-bar {
  align-items: center;
  background: #f0f0f0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  gap: 4px;
  padding: 0 8px;
}

.demo-view-overlay .demo-chat-messages {
  background: #f8f8f8;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.625rem;
  min-height: 0;
  min-width: 250px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  padding-bottom: 20px;
}

.demo-chat-container .chat-persistent-node-wrapper,
.demo-view-overlay .chat-persistent-node-wrapper {
  background: #f8f8f8;
  border: none;
  padding: 8px 1rem;
}

.demo-chat-container .demo-ready-prompt,
.demo-view-overlay .demo-ready-prompt {
  background: linear-gradient(135deg, rgba(21, 96, 130, 0.1) 0%, rgba(21, 96, 130, 0.08) 100%);
  border: 1px dashed rgba(21, 96, 130, 0.3);
  border-radius: 0.5rem;
  color: #156082;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  line-height: 1.5;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  text-align: center;
}

.demo-view-overlay .demo-chat-titlebar-text,
.demo-view-overlay .demo-revit-titlebar-text {
  color: #333;
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
}

.demo-view-overlay .demo-chat-titlebar-btns {
  align-items: center;
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.demo-view-overlay .demo-titlebar-btn {
  border: none;
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

.demo-view-overlay .demo-chat-input-row {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
}

@media (max-width: 767px) {
  #schedulesOverlay .v8-text-column .demo-text-heading,
  #specWritingOverlay .v8-text-column .demo-text-heading,
  .demo-view-overlay .demo-hero-heading,
  .demo-view-overlay .demo-text-heading {
    font-size: 24px !important;
  }
}

@media (max-width: 767px) {
  .demo-view-overlay .demo-text-body {
    font-size: 14px !important;
  }
}

.demo-view-overlay .demo-revit-box {
  aspect-ratio: 1 / 0.85;
  background: #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.demo-view-overlay .demo-revit-titlebar-btns {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.demo-view-overlay .demo-revit-content {
  background: #f8f8f8;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.demo-revit-content.coming-soon-gif {
  align-items: center;
  background: linear-gradient(135deg, rgba(21, 96, 130, 0.1), rgba(26, 122, 168, 0.05));
  display: flex;
  justify-content: center;
}

.demo-revit-content .coming-soon-overlay {
  align-items: center;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  left: 0;
  padding: 40px;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  z-index: 5;
}

.demo-view-overlay .demo-revit-placeholder {
  align-items: center;
  background: rgba(248, 248, 248, 0.85);
  bottom: 0;
  color: #999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  z-index: 5;
}

.open-chat-btn.secondary-btn,
html.dark-mode .open-chat-btn.secondary-btn {
  background: #444;
}

.demo-chat-container.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.demo-chat-container.dragging {
  left: auto;
  transform: none;
  transition: none;
}

.demo-chat-container .demo-chat-titlebar {
  align-items: center;
  background: #e8e8e8;
  border-radius: 10px 10px 0 0;
  cursor: move;
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  height: 30px;
  padding: 0 10px;
  user-select: none;
}

.demo-chat-container .demo-chat-titlebar-text {
  color: #333;
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.demo-chat-container .demo-chat-titlebar-btns {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.demo-chat-container .demo-titlebar-btn {
  border: none;
  border-radius: 50%;
  cursor: pointer;
  height: 12px;
  width: 12px;
}

.demo-chat-container .demo-chat-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
}

.demo-chat-container .demo-msg-user {
  align-self: flex-end;
  background: #156082;
  color: #fff;
  margin-left: auto;
}

.demo-chat-container .demo-chat-input-row {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-shrink: 0;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
}

.chat-thinking-content.visible {
  max-height: 200px;
  opacity: 1;
}

.chat-thinking-content.collapsing {
  max-height: 0;
  opacity: 0;
}

.chat-steps-list.expanded {
  max-height: 150px;
  opacity: 1;
}

.chat-node-status .status-text {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: statusShine 2s ease-in-out infinite;
  background: linear-gradient(
    90deg, 
    #888 0%, 
    #888 40%, 
    #fff 50%, 
    #888 60%, 
    #888 100%
  );
  background-clip: text;
  background-size: 200% 100%;
  color: #888;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
}

.chat-neural-node.left {
  margin-left: 0;
}

.demo-chat-input:focus,
html.dark-mode .demo-chat-input:focus {
  border-color: #156082;
}

.demo-view-overlay .demo-text-body p {
  margin-bottom: 18px;
}

html.dark-mode .demo-chat-history-sidebar {
  background: #2a2a2a;
  border-right-color: rgba(255, 255, 255, 0.08);
}

html.dark-mode .demo-chat-input-row.cursor-style .chat-meeting-btn[title]:hover::after,
html.dark-mode .demo-chat-input-row.cursor-style .chat-share-btn[title]:hover::after,
html.dark-mode .demo-chat-input-row.cursor-style .llm-toggle-row[title]:hover::after,
html.dark-mode .demo-chat-input-row.cursor-style .mode-tooltip,
html.dark-mode .demo-chat-input-row.cursor-style .model-tooltip,
html.dark-mode .demo-chat-messages,
html.dark-mode .demo-view-overlay .design-option-add[title]:hover::after,
html.dark-mode .demo-view-overlay .share-chat-btn[title]:hover::after,
html.dark-mode .demo-view-overlay .sidebar-tab-bar {
  background: #1a1a1a;
}

.demo-view-overlay .sidebar-tab svg {
  flex-shrink: 0;
  height: 11px;
  stroke: currentColor;
  width: 11px;
}

.demo-view-overlay .history-search-input::placeholder,
html.dark-mode .chat-steps-list,
html.dark-mode .demo-chat-input-row.cursor-style .chat-agent-badge,
html.dark-mode .demo-chat-input-row.cursor-style .chat-meeting-btn:hover,
html.dark-mode .demo-chat-input-row.cursor-style .chat-share-btn:hover,
html.dark-mode .demo-view-overlay .design-option-add,
html.dark-mode .steps-list li {
  color: #999;
}

html.dark-mode .demo-history-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #555555;
}

html.dark-mode .demo-history-item {
  color: #888888;
}

html.dark-mode .demo-chat-send,
html.dark-mode .demo-msg-user {
  background: #156082;
}

html.dark-mode .demo-msg-bot {
  background: rgba(40, 40, 40, 0.95);
  color: #ffffff;
}

.demo-view-overlay .demo-msg-user p {
  color: #232323;
  margin: 0;
}

.demo-chat-container .demo-msg-bot p,
.demo-view-overlay .demo-msg-bot p {
  margin: 0;
}

html.dark-mode .demo-chat-input-row {
  background: #2a2a2a;
  border-top-color: rgba(255, 255, 255, 0.08);
}

html.dark-mode .demo-chat-input {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

.demo-chat-input-row.cursor-style .llm-toggle input:checked + .toggle-slider,
.demo-chat-input-row.cursor-style .mode-toggle input:checked + .toggle-slider,
.steps-list li .step-icon.dot,
html.dark-mode .demo-chat-send,
html.dark-mode .demo-msg-user,
html.dark-mode .demo-view-overlay .demo-msg-user,
html.dark-mode .open-chat-btn {
  background: #156082;
}

html.dark-mode .demo-chat-input-row.cursor-style .chat-model-label,
html.dark-mode .demo-outputs-header,
html.dark-mode .step-changes .filename,
html.dark-mode .steps-count {
  color: #777;
}

.steps-list li.visible {
  align-items: flex-start !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 8px;
  justify-content: flex-start !important;
  min-width: 0;
  text-align: left !important;
  width: 100%;
}

.steps-list li.preview-hidden {
  display: none !important;
}

.open-chat-btn.clicked::before,
.thinking-header.done .pulsing-node::after {
  animation: none;
  opacity: 0;
}

.steps-list li.visible,
.steps-list.fully-expanded li.preview-hidden {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

.steps-list li .step-icon {
  align-items: center;
  background: #999;
  border-radius: 50%;
  display: flex;
  font-size: 0;
  height: 7px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  z-index: 1;
}

html.dark-mode .qa-manager-body {
  background: none !important;
}

html.dark-mode .qa-count {
  background: rgba(255,255,255,0.06);
}

html.dark-mode .qa-select {
  background: #333;
  border-color: #555;
  color: #ccc;
}

.qa-results-table th .col-resize-handle {
  background: transparent;
  bottom: 0;
  cursor: col-resize;
  position: absolute;
  right: 0;
  top: 0;
  width: 4px;
  z-index: 5;
}

html.dark-mode .qa-manager {
  background: #2a2a2a;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 1px rgba(0,0,0,0.3);
}

.qa-results-table input[type="checkbox"] {
  cursor: pointer;
  height: 10px;
  width: 10px;
}

html.dark-mode .qa-statusbar {
  background: #2a2a2a;
  border-top-color: #3a3a3a;
}

.demo-chat-container .demo-ready-prompt strong,
.demo-view-overlay .demo-ready-prompt strong {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.demo-view-overlay .demo-revit-content img {
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  width: 100%;
}

.demo-view-overlay .demo-revit-content video {
  height: 100%;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
  width: auto;
  z-index: 2;
}

.demo-chat-container .demo-msg-user p {
  color: #fff;
  margin: 0;
}

.chat-steps-list li.visible {
  opacity: 1;
  transform: translateX(0);
}

html.dark-mode .chat-node-core {
  background: linear-gradient(135deg, #888 0%, #666 100%);
}

html.dark-mode .chat-thinking-header {
  border-bottom-color: rgba(255,255,255,0.1);
  color: #aaa;
}

html.dark-mode .demo-chat-container {
  background: var(--bg-tertiary);
  border-color: rgba(136,136,136,0.15);
}

html.dark-mode .demo-chat-body {
  background: var(--bg-tertiary);
}

html.dark-mode .demo-msg-bot {
  background: rgba(40, 40, 40, 0.95);
  color: #e0e0e0;
}

html.dark-mode .demo-ready-prompt {
  background: linear-gradient(135deg, rgba(21, 96, 130, 0.15) 0%, rgba(74, 155, 184, 0.15) 100%);
  border-color: rgba(21, 96, 130, 0.4);
  color: #156082;
}

html.dark-mode .demo-msg-bot p,
html.dark-mode .demo-msg-user p {
  color: #ffffff;
}

html.dark-mode .pulsing-node::before {
  background: linear-gradient(135deg, #4a9bb8 0%, #3a7b98 100%);
  box-shadow: none;
}

html.dark-mode .pulsing-node::after {
  border: none;
  opacity: 0;
}

.steps-list li:first-child::before {
  top: 50%;
}

.steps-list li:last-child::before {
  bottom: 50%;
}

html.dark-mode .qa-results-table th {
  border-bottom-color: #444;
}

.qa-results-table tbody tr:hover {
  background: rgba(21, 96, 130, 0.06);
}

html.dark-mode .demo-ready-prompt strong {
  color: #6ec4e0;
}

.demo-view-overlay .demo-split-view.reversed {
  flex-direction: row-reverse;
}

.demo-view-overlay .demo-containers-panel .demo-chat-box,
.demo-view-overlay .demo-containers-panel .demo-image-container,
.demo-view-overlay .demo-containers-panel .demo-intro-image,
.demo-view-overlay .demo-containers-panel .demo-intro-video,
.demo-view-overlay .demo-containers-panel .demo-revit-box,
.qa-manager-body * {
  pointer-events: auto;
}

.demo-titlebar-btn.min,
.demo-view-overlay .demo-titlebar-btn.min {
  background: #f5c542;
}

.demo-titlebar-btn.max,
.demo-view-overlay .demo-titlebar-btn.max {
  background: #5dc65d;
}

.demo-view-overlay .demo-titlebar-btn.settings {
  background: transparent;
  border-radius: 50%;
  color: #666;
  cursor: pointer;
  font-size: 0.6rem;
  height: 12px;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
  width: 12px;
}

.demo-view-overlay .demo-titlebar-btn.theme-toggle {
  align-items: center;
  background: transparent;
  border-radius: 50%;
  color: #555;
  cursor: pointer;
  display: flex;
  font-size: 0.65rem;
  height: 12px;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
  width: 12px;
}

.demo-view-overlay .sidebar-tab:hover {
  background: rgba(0,0,0,0.04);
  color: #444;
}

.demo-view-overlay .sidebar-tab.active {
  background: #ececec;
  color: #333;
}

#schedulesOverlay .qa-ribbon .ribbon-content.active,
.demo-view-overlay .sidebar-panel.active,
.qa-ribbon .ribbon-content.active {
  display: flex;
}

.demo-view-overlay .history-search-input:focus {
  background: #fff;
  border-color: rgba(21, 96, 130, 0.4);
}

.demo-view-overlay .new-agent-btn:hover {
  background: rgba(21, 96, 130, 0.08);
  border-color: rgba(21, 96, 130, 0.6);
}

.demo-view-overlay .sidebar-footer .footer-text {
  color: #888;
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
}

.demo-view-overlay .share-chat-btn:hover {
  background: #e8e8e8;
  color: #666;
}

.demo-history-item:hover,
.demo-view-overlay .demo-history-item:hover {
  background: #d5d5d5;
}

.demo-history-item.active,
.demo-view-overlay .demo-history-item.active {
  background: #aeaeae96;
  color: #000000;
}

.demo-history-item.active .demo-history-item-preview,
.qa-titlebar-btn:hover {
  opacity: 0.8;
}

.demo-history-item.manager-item:hover {
  background: linear-gradient(135deg, rgba(21, 96, 130, 0.2) 0%, rgba(74, 155, 184, 0.2) 100%);
}

.demo-history-item.manager-item.active {
  background: linear-gradient(135deg, rgba(21, 96, 130, 0.25) 0%, rgba(74, 155, 184, 0.25) 100%);
  border-color: rgba(21, 96, 130, 0.4);
}

.demo-history-item.manager-item .demo-history-item-title {
  font-family: 'Gotham Medium', 'Montserrat', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 1px;
}

.demo-chat-input-row.cursor-style .chat-input-controls,
.demo-chat-input-row.cursor-style .llm-toggle-row,
.demo-history-item.agent-item {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.demo-history-item .agent-progress-ring .ring-bg {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 2;
}

.demo-history-item .agent-progress-ring .ring-fill {
  fill: none;
  stroke: #156082;
  stroke-linecap: round;
  stroke-width: 2;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.3s ease;
}

.agent-progress-container.complete .progress-percent,
html.dark-mode .agent-progress-container.complete .progress-percent {
  color: #28a745;
}

.demo-history-item.agent-item.spawning {
  animation: slideInFromRight 0.3s ease forwards;
}

.demo-view-overlay .design-tab:hover {
  background: rgba(0,0,0,0.03);
  color: #333;
}

.demo-view-overlay .design-tab.active {
  background: #fff;
  color: #333;
}

.demo-view-overlay .design-tab .tab-label {
  color: #999;
  font-size: 0.55rem;
  font-weight: 400;
}

.demo-view-overlay .design-tab .tab-close {
  border-radius: 2px;
  color: #999;
  font-size: 0.75rem;
  line-height: 1;
  margin-left: 6px;
  opacity: 0;
  padding: 2px;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.chat-neural-node.active .chat-node-glow,
.chat-node-status.active,
.demo-view-overlay .demo-revit-content img.playing,
.demo-view-overlay .demo-revit-content video.ready,
.demo-view-overlay .design-tab:hover .tab-close,
.overlay-node .node-code.visible {
  opacity: 1;
}

.demo-view-overlay .design-option-add:hover {
  background: rgba(0,0,0,0.03);
  color: #666;
}

.demo-view-overlay .design-option-add .plus-icon {
  font-size: 0.8rem;
  font-weight: 400;
}

.demo-view-overlay .design-option-add .branch-icon {
  color: #156082;
  font-size: 0.7rem;
}

.demo-chat-container .demo-chat-messages .thinking-container,
.demo-view-overlay .demo-chat-messages .thinking-container {
  align-self: stretch;
  font-size: 0.8125rem;
}

.demo-chat-input-row.cursor-style .chat-input-wrapper {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
}

.demo-chat-input-row.cursor-style .chat-input-placeholder {
  color: #333;
  cursor: text;
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  margin-bottom: 10px;
  min-height: 1.2em;
  outline: none;
  width: 100%;
}

.demo-chat-input-row.cursor-style .chat-input-controls {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: space-between;
  overflow: visible;
}

.demo-chat-input-row.cursor-style .chat-input-left {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 10px;
  min-width: 0;
  overflow: visible;
}

.demo-chat-input-row.cursor-style .chat-input-right {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

.demo-chat-input-row.cursor-style .chat-agent-dropdown,
.demo-chat-input-row.cursor-style .chat-build-dropdown,
.demo-chat-input-row.cursor-style .chat-model-dropdown,
.demo-chat-input-row.cursor-style .llm-toggle-row[title],
.demo-chat-input-row.cursor-style .model-option {
  position: relative;
}

.demo-chat-input-row.cursor-style .chat-agent-badge {
  align-items: center;
  color: #666;
  cursor: pointer;
  display: flex;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  gap: 4px;
}

.demo-chat-input-row.cursor-style .dropdown-arrow {
  font-size: 0.5rem;
  opacity: 0.7;
}

.demo-chat-input-row.cursor-style .chat-dropdown-menu {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  bottom: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  left: 0;
  margin-bottom: 6px;
  min-width: 160px;
  opacity: 0;
  position: absolute;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  visibility: hidden;
  z-index: 100;
}

.demo-chat-input-row.cursor-style .dropdown-section-header {
  color: #999;
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 10px 4px;
  text-transform: uppercase;
}

.demo-chat-input-row.cursor-style .dropdown-item {
  color: #333;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  padding: 6px 10px;
  position: relative;
  transition: background 0.1s ease;
}

.demo-chat-input-row.cursor-style .dropdown-divider {
  background: #e8e8e8;
  height: 1px;
  margin: 4px 0;
}

.demo-chat-input-row.cursor-style .mode-toggle-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
}

.demo-chat-input-row.cursor-style .mode-info {
  align-items: center;
  display: flex;
  gap: 8px;
  position: relative;
}

.demo-chat-input-row.cursor-style .mode-icon {
  color: #666;
  font-size: 0.75rem;
  text-align: center;
  width: 16px;
}

.demo-chat-input-row.cursor-style .mode-name {
  color: #333;
  font-size: 0.65rem;
}

.demo-chat-input-row.cursor-style .mode-tooltip {
  background: #333;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  color: #fff;
  display: none;
  font-size: 0.55rem;
  font-weight: 400;
  left: 50%;
  line-height: 1.4;
  margin-top: -60px;
  padding: 8px 10px;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  white-space: normal;
  width: 180px;
  z-index: 400;
}

.demo-chat-input-row.cursor-style .llm-toggle,
.demo-chat-input-row.cursor-style .mode-toggle {
  display: inline-block;
  height: 16px;
  position: relative;
  width: 28px;
}

.demo-chat-input-row.cursor-style .mode-toggle .toggle-slider,
.demo-chat-input-row.cursor-style .toggle-slider {
  background: #ccc;
  border-radius: 16px;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: background 0.2s ease;
}

.demo-chat-input-row.cursor-style .chat-model-dropdown {
  align-items: center;
  display: flex;
  min-width: 0;
  overflow: visible;
  position: relative;
}

.demo-chat-input-row.cursor-style .chat-model-label {
  align-items: center;
  color: #888;
  cursor: pointer;
  display: flex;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  gap: 4px;
  overflow: hidden;
}

.demo-chat-input-row.cursor-style .model-option {
  align-items: center;
  display: grid;
  gap: 4px;
  grid-template-columns: auto 30px 20px;
  position: relative;
}

.demo-chat-input-row.cursor-style .model-name-brand {
  font-family: 'Gotham Medium', 'Montserrat', sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  letter-spacing: 2px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-chat-input-row.cursor-style .brand-build,
.demo-chat-input-row.cursor-style .brand-dot {
  color: #000;
  letter-spacing: 2px !important;
}

.demo-chat-input-row.cursor-style .brand-variant {
  color: #156082;
  letter-spacing: 2px !important;
}

.demo-chat-input-row.cursor-style .model-version,
.model-version-inline {
  color: #888;
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  margin-left: 4px;
}

.demo-chat-input-row.cursor-style .model-tick {
  color: transparent;
  font-size: 0.65rem;
  text-align: center;
}

.demo-chat-input-row.cursor-style .brand-variant,
.demo-chat-input-row.cursor-style .chat-meeting-btn.active,
.demo-chat-input-row.cursor-style .model-option.active .model-tick,
.thinking-header:hover .steps-toggle {
  color: #156082;
}

.demo-chat-input-row.cursor-style .model-tooltip {
  background: #333;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  color: #fff;
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  font-weight: 400;
  left: 50%;
  line-height: 1.4;
  margin-top: -60px;
  padding: 8px 10px;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  white-space: normal;
  width: 180px;
  z-index: 400;
}

.demo-chat-input-row.cursor-style .chat-meeting-btn,
.demo-chat-input-row.cursor-style .chat-share-btn {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: #999;
  cursor: pointer;
  display: flex;
  font-size: 0.7rem;
  height: 20px;
  justify-content: center;
  position: relative;
  transition: color 0.15s ease;
  width: 20px;
}

.demo-chat-input-row.cursor-style .chat-send-btn {
  align-items: center;
  background: #333;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 0.7rem;
  height: 20px;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s ease;
  width: 20px;
}

.chat-model-dropdown .menu-icon:hover {
  background: rgba(21, 96, 130, 0.1);
  color: #156082;
}

.chat-neural-node.active .chat-node-core {
  background: var(--node-active);
}

.chat-neural-node.active .chat-node-pulse-ring {
  animation: chat-pulse 2s ease-out infinite;
  border-color: var(--node-pulse);
}

.steps-toggle.expanded .chevron {
  transform: rotate(0deg);
}

.qa-manager .right-column .demo-chat-main {
  display: flex;
  flex: 1 1 50%;
  flex-direction: column;
  min-width: 0;
  order: 1;
  overflow: hidden;
}

.qa-manager .right-column .demo-chat-history-sidebar {
  border-left: 1px solid rgba(0,0,0,0.08);
  flex: 0 0 auto;
  max-width: 300px;
  min-width: 120px;
  order: 3;
  overflow: hidden;
  position: relative !important;
  width: 180px;
}

.qa-chat-overlay .right-column .inner-resizer,
.qa-manager .right-column .inner-resizer {
  background: transparent;
  cursor: ew-resize;
  flex-shrink: 0;
  order: 2;
  width: 4px;
}

.qa-chat-overlay .right-column .demo-chat-history-sidebar {
  border-left: 1px solid #e0e0e0;
  border-right: none !important;
  display: flex;
  flex: 1 1 50%;
  flex-direction: column;
  height: 100% !important;
  max-width: none !important;
  min-width: 100px !important;
  order: 3;
  position: relative !important;
}

.qa-titlebar-btn.theme-toggle:hover {
  background: rgba(0,0,0,0.06);
}

.qa-ribbon .ribbon-group-content.two-rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.demo-view-overlay .demo-revit-titlebar .demo-titlebar-btn,
.qa-results-table tbody tr {
  cursor: pointer;
}

.overlay-node.mep-shine .node-core {
  animation: mepShine 2s ease-in-out infinite;
}

.overlay-node.synced .node-core {
  background: linear-gradient(135deg, #00ffc8 0%, #00ddb0 100%);
  box-shadow: 0 0 12px rgba(0, 255, 200, 0.8);
}

.overlay-node.synced .node-glow {
  background: rgba(0, 255, 200, 0.4);
  height: 24px;
  width: 24px;
}

.overlay-node.synced .node-pulse-ring {
  animation: overlay-node-pulse 1s ease-out infinite;
  border-color: rgba(0, 255, 200, 0.7);
}

@media (max-width: 767px) {
  .demo-view-overlay .demo-split-view.reversed {
    flex-direction: column !important;
  }
}

.overlay-node:hover .node-core {
  background: linear-gradient(135deg, #1a7a9e 0%, #156082 100%);
  box-shadow: 0 0 8px rgba(21, 96, 130, 0.5);
}

.overlay-node:hover .node-glow {
  background: rgba(21, 96, 130, 0.3);
  height: 18px;
  width: 18px;
}

.overlay-node:hover .node-pulse-ring {
  animation: overlay-node-pulse 1.5s ease-out infinite;
  border-color: rgba(21, 96, 130, 0.5);
}

.demo-view-overlay .sidebar-tab-bar .share-chat-btn {
  margin-left: auto;
  padding: 6px 10px;
}

.demo-outputs-section.project-structure .demo-outputs-tree {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  max-height: 150px;
  overflow-x: auto;
  overflow-y: auto;
  padding: 0.25rem;
}

.demo-outputs-section.project-structure .tree-folder {
  margin-bottom: 2px;
}

.demo-outputs-section.project-structure .tree-folder-header {
  align-items: center;
  border-radius: 3px;
  color: #444;
  cursor: pointer;
  display: flex;
  font-weight: 500;
  gap: 4px;
  padding: 3px 6px;
  transition: background 0.15s ease;
}

.demo-outputs-section.project-structure .folder-icon {
  color: #888;
  font-size: 0.5rem;
  text-align: center;
  transition: transform 0.15s ease;
  width: 10px;
}

.demo-outputs-section.project-structure .tree-folder-content {
  border-left: 1px solid rgba(128, 128, 128, 0.15);
  margin-left: 5px;
  padding-left: 14px;
}

.demo-outputs-section.project-structure .tree-file {
  align-items: center;
  border-radius: 3px;
  color: #555;
  cursor: pointer;
  display: flex;
  gap: 6px;
  padding: 3px 6px;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.demo-outputs-section.project-structure .file-icon {
  align-items: center;
  border-radius: 2px;
  color: white;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.4rem;
  font-weight: 700;
  height: 14px;
  justify-content: center;
  width: 14px;
}

.demo-view-overlay .chat-sidebar-resize:hover {
  background: rgba(128, 128, 128, 0.25);
}

.demo-view-overlay .demo-titlebar-btn.settings {
  background: transparent;
  border-radius: 3px;
  color: #666;
  cursor: pointer;
  font-size: 0.7rem;
  height: auto;
  padding: 2px 4px;
  transition: background 0.15s ease, color 0.15s ease;
  width: auto;
}

.demo-chat-container .demo-titlebar-btn.close,
.demo-view-overlay .demo-titlebar-btn.close {
  background: #f25656;
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.demo-chat-input-row.cursor-style .chat-input-left {
  align-items: center;
  display: flex;
  gap: 10px;
}

.demo-chat-input-row.cursor-style .chat-model-label {
  align-items: center;
  color: #888;
  cursor: pointer;
  display: flex;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  gap: 4px;
}

@media (max-width: 767px) {
  .demo-view-overlay .demo-titlebar-btn.settings {
    font-size: 1.2rem !important;
    min-height: 36px;
    min-width: 36px;
    padding: 6px 8px !important;
  }
}

.demo-chat-input-row.cursor-style .mode-tooltip {
  background: #333;
  border-radius: 6px;
  bottom: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  color: #fff;
  display: none;
  font-size: 0.55rem;
  font-weight: 400;
  left: 50%;
  line-height: 1.4;
  margin-top: -60px;
  padding: 8px 10px;
  pointer-events: none;
  position: fixed;
  top: auto;
  transform: translateX(-50%);
  white-space: normal;
  width: 180px;
  z-index: 400;
}

.demo-chat-input-row.cursor-style .model-option {
  align-items: center;
  display: grid;
  gap: 4px;
  grid-template-columns: auto 30px 20px;
}

.demo-chat-input-row.cursor-style .model-name-brand {
  font-family: 'Gotham', 'Inter', sans-serif;
  font-weight: 500;
}

.demo-chat-input-row.cursor-style .brand-build,
.demo-chat-input-row.cursor-style .brand-dot {
  color: #000;
}

.demo-chat-input-row.cursor-style .model-version {
  color: #888;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  text-align: right;
}

.demo-chat-input-row.cursor-style .chat-input-right {
  align-items: center;
  display: flex;
  gap: 6px;
}

.demo-view-overlay .demo-revit-box.expanded {
  position: fixed;
  z-index: 1000;
}

.demo-view-overlay .demo-revit-content .video-poster {
  height: 100%;
  left: 50%;
  opacity: 1;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
  width: auto;
  z-index: 1;
}

.open-chat-btn.secondary-btn:hover,
html.dark-mode .open-chat-btn.secondary-btn:hover {
  background: #222;
}

.demo-chat-container .demo-titlebar-btn.min {
  background: #f5c542;
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.demo-chat-container .demo-titlebar-btn.max {
  background: #5dc65d;
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.chat-settings-wrapper .color-palette-dropdown.chat-palette {
  right: 0;
  top: calc(100% + 4px);
}

.chat-node-status.complete .status-text {
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #666;
  animation: none;
  background: none;
  background-clip: unset;
}

.chat-neural-node.processing .chat-node-core {
  background: linear-gradient(135deg, #1a7a9e 0%, #156082 100%);
  box-shadow: 0 0 6px rgba(21, 96, 130, 0.5);
}

.chat-neural-node.processing .chat-node-glow {
  background: rgba(21, 96, 130, 0.3);
  height: 14px;
  width: 14px;
}

.chat-neural-node.processing .chat-node-pulse-ring {
  animation: chat-node-pulse 1.5s ease-out infinite;
  border-color: rgba(21, 96, 130, 0.5);
}

.demo-outputs-section.project-structure .demo-outputs-tree::-webkit-scrollbar-track,
.qa-chat-messages::-webkit-scrollbar-track,
.qa-results-table-wrapper::-webkit-scrollbar-track,
html.dark-mode .demo-view-overlay .demo-text-panel {
  background: transparent;
}

html.dark-mode #schedulesOverlay .v8-text-column .demo-text-heading,
html.dark-mode #specWritingOverlay .v8-text-column .demo-text-heading,
html.dark-mode .demo-chat-container .demo-chat-titlebar-text,
html.dark-mode .demo-chat-input-row.cursor-style .chat-input-placeholder,
html.dark-mode .demo-view-overlay .demo-chat-titlebar-text,
html.dark-mode .demo-view-overlay .demo-hero-heading,
html.dark-mode .demo-view-overlay .demo-revit-titlebar-text,
html.dark-mode .demo-view-overlay .demo-text-heading,
html.dark-mode .qa-titlebar-text {
  color: var(--text-primary);
}

html.dark-mode .demo-chat-container .demo-chat-titlebar,
html.dark-mode .demo-view-overlay .demo-chat-titlebar,
html.dark-mode .demo-view-overlay .demo-revit-titlebar,
html.dark-mode .qa-titlebar {
  background: #2d2d2d;
}

html.dark-mode #schedulesOverlay .v8-text-column .demo-text-body,
html.dark-mode #specWritingOverlay .v8-text-column .demo-text-body,
html.dark-mode .demo-outputs-section.project-structure .tree-file,
html.dark-mode .demo-view-overlay .demo-text-body,
html.dark-mode .thinking-header {
  color: #aaa;
}

.demo-view-overlay .demo-text-body p:last-child {
  margin-bottom: 0;
}

.demo-view-overlay .design-tab.active .tab-label,
html.dark-mode #schedulesOverlay .qa-ribbon .ribbon-tab,
html.dark-mode .chat-model-dropdown .menu-icon,
html.dark-mode .demo-chat-input-row.cursor-style .mode-icon,
html.dark-mode .demo-view-overlay .demo-titlebar-btn.settings,
html.dark-mode .demo-view-overlay .design-tab,
html.dark-mode .demo-view-overlay .sidebar-tab,
html.dark-mode .qa-ribbon .ribbon-tab,
html.dark-mode .step-icon.edit {
  color: #888;
}

html.dark-mode .demo-chat-history-sidebar,
html.dark-mode .demo-view-overlay .demo-chat-history-sidebar {
  background: #1e1e1e;
  border-right-color: rgba(255,255,255,0.06);
}

html.dark-mode .demo-view-overlay .demo-history-search {
  border-bottom-color: rgba(255,255,255,0.06);
}

html.dark-mode .demo-view-overlay .history-search-input {
  background: #2a2a2a;
  border-color: rgba(255,255,255,0.1);
  color: #ccc;
}

html.dark-mode .demo-view-overlay .new-agent-btn {
  border-color: rgba(74, 155, 184, 0.4);
  color: #4a9bb8;
}

html.dark-mode .demo-view-overlay .sidebar-footer {
  background: #252525;
  border-top-color: rgba(255,255,255,0.06);
}

html.dark-mode .demo-history-header,
html.dark-mode .demo-view-overlay .demo-history-header {
  border-bottom-color: rgba(255,255,255,0.06);
  color: #888;
}

html.dark-mode .demo-history-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

html.dark-mode .demo-history-item,
html.dark-mode .demo-view-overlay .demo-history-item {
  background: var(--bg-tertiary);
  color: #aaa;
}

html.dark-mode .demo-history-item.active,
html.dark-mode .demo-view-overlay .demo-history-item.active {
  background: #4a4a4a96;
  color: #fff;
}

html.dark-mode .demo-history-item.manager-item {
  background: linear-gradient(135deg, rgba(74, 155, 184, 0.15) 0%, rgba(90, 171, 191, 0.15) 100%);
  border-color: rgba(74, 155, 184, 0.25);
}

html.dark-mode .demo-view-overlay .design-options-bar {
  background: #2a2a2a;
  border-bottom-color: rgba(255,255,255,0.06);
}

html.dark-mode #schedulesOverlay .qa-ribbon .ribbon-content,
html.dark-mode .demo-chat-container .chat-persistent-node-wrapper,
html.dark-mode .demo-view-overlay .chat-persistent-node-wrapper,
html.dark-mode .demo-view-overlay .demo-chat-messages,
html.dark-mode .demo-view-overlay .demo-revit-content {
  background: #252525;
}

html.dark-mode .demo-chat-container .demo-msg-bot,
html.dark-mode .demo-view-overlay .demo-msg-bot {
  background: #333;
  color: var(--text-primary);
}

html.dark-mode .demo-chat-container .demo-chat-input-row,
html.dark-mode .demo-chat-input-row.cursor-style,
html.dark-mode .demo-view-overlay .demo-chat-input-row {
  background: var(--bg-tertiary);
  border-top-color: rgba(255,255,255,0.06);
}

html.dark-mode .demo-chat-container,
html.dark-mode .demo-view-overlay .demo-chat-box {
  background: #252525;
  box-shadow: 0 4px 16px rgba(0,0,0,0.30);
}

html.dark-mode .demo-chat-input:focus {
  background: #222;
  border-color: #156082;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

html.dark-mode .demo-chat-container .demo-chat-input,
html.dark-mode .demo-chat-input,
html.dark-mode .demo-view-overlay .demo-chat-input {
  background: #2a2a2a;
  border-color: #3a3a3a;
  color: var(--text-primary);
}

html.dark-mode .demo-chat-send:disabled,
html.dark-mode .steps-list li::before {
  background: #444;
}

html.dark-mode .demo-chat-box.dragging,
html.dark-mode .demo-revit-box.dragging,
html.dark-mode .qa-manager.dragging {
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
}

html.dark-mode .demo-chat-wrapper.snap-target {
  outline-color: rgba(74, 155, 184, 0.6);
}

.demo-chat-input-row.cursor-style .llm-toggle input,
.demo-chat-input-row.cursor-style .mode-toggle input {
  height: 0;
  opacity: 0;
  width: 0;
}

.demo-chat-input-row.cursor-style .mode-toggle .toggle-slider::before,
.demo-chat-input-row.cursor-style .toggle-slider::before {
  background: white;
  border-radius: 50%;
  bottom: 2px;
  content: '';
  height: 12px;
  left: 2px;
  position: absolute;
  transition: transform 0.2s ease;
  width: 12px;
}

.steps-list.fully-expanded li.preview-hidden {
  display: flex !important;
}

.steps-list li .step-icon.check {
  background: #22863a;
}

.steps-list li .step-icon.edit {
  background: transparent;
  border-radius: 0;
  color: #666;
  font-size: 0.7rem;
  height: auto;
  left: -2px;
  width: auto;
}

html.dark-mode .step-icon.check {
  background: #4CD964;
}

.steps-list li .step-icon.error {
  background: transparent;
  border-radius: 0;
  color: #d73a49;
  font-size: 0.75rem;
  font-weight: 600;
  height: auto;
  left: -3px;
  width: auto;
}

html.dark-mode .step-icon.error {
  color: #f85149;
}

html.dark-mode .step-changes .changes-box {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .step-changes .added {
  color: #4CD964;
}

html.dark-mode .step-changes .removed {
  color: #ff6b6b;
}

.demo-msg-user:hover,
.demo-view-overlay .demo-chat-send:hover,
html.dark-mode .demo-chat-send:hover,
html.dark-mode .demo-msg-user:hover {
  background: #0e4560;
}

html.dark-mode .demo-chat-input:focus {
  background: #222;
  border-color: #156082;
  box-shadow: 0 0 0 2px rgba(21, 96, 130, 0.1);
}

html.dark-mode .qa-ribbon .ribbon-group-label {
  border-top-color: #3a3a3a;
  color: #666;
}

.qa-results-table th .col-resize-handle.resizing,
.qa-results-table th .col-resize-handle:hover {
  background: var(--teal);
  opacity: 0.5;
}

.demo-outputs-section.project-structure .demo-outputs-tree::-webkit-scrollbar,
.qa-chat-messages::-webkit-scrollbar,
.qa-results-table-wrapper::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

html.dark-mode .overlay-node .node-arrow,
html.dark-mode .overlay-node .node-hint,
html.dark-mode .overlay-node .node-title {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 767px) {
  html.dark-mode .demo-view-overlay .demo-text-panel {
    background: #1a1a1a !important;
  }
}

html.dark-mode .overlay-node .node-core {
  background: linear-gradient(135deg, #555 0%, #333 100%);
}

html.dark-mode .overlay-node .node-glow {
  background: rgba(78, 205, 196, 0);
}

@media (max-width: 767px) {
  html.dark-mode .demo-view-overlay + .demo-view-overlay {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.demo-outputs-section.project-structure .demo-outputs-tree::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 3px;
}

.demo-outputs-section.project-structure .file-icon::before {
  font-size: 0.35rem;
  font-weight: 700;
}

html.dark-mode .demo-chat-wrapper.snap-target,
html.dark-mode .demo-revit-wrapper.snap-target {
  outline-color: rgba(0, 122, 255, 0.5);
}

html.dark-mode .demo-view-overlay .chat-sidebar-resize {
  background: rgba(255, 255, 255, 0.08);
}

html.dark-mode .demo-chat-container .demo-ready-prompt,
html.dark-mode .demo-view-overlay .demo-ready-prompt {
  background: linear-gradient(135deg, rgba(21, 96, 130, 0.15) 0%, rgba(21, 96, 130, 0.1) 100%);
  border-color: rgba(21, 96, 130, 0.4);
}

html.dark-mode .demo-view-overlay .demo-revit-box {
  background: #1e1e1e;
  box-shadow: 0 4px 16px rgba(0,0,0,0.30);
}

html.dark-mode .demo-view-overlay .demo-revit-placeholder {
  background: rgba(37, 37, 37, 0.85);
  color: #555;
}

html.dark-mode .chat-node-status .status-text {
  -webkit-background-clip: text;
  animation: statusShine 2s ease-in-out infinite;
  background: linear-gradient(
    90deg, 
    #777 0%, 
    #777 40%, 
    #ccc 50%, 
    #777 60%, 
    #777 100%
  );
  background-clip: text;
  background-size: 200% 100%;
}

html.dark-mode .qa-results-table tbody tr:hover {
  background: rgba(74, 155, 184, 0.1);
}

.demo-view-overlay .demo-split-view.reversed .demo-containers-panel {
  justify-content: flex-start;
  padding-left: 80px;
  padding-right: 0;
}

.demo-view-overlay .demo-titlebar-btn.settings:hover {
  background: rgba(0,0,0,0.08);
  color: #333;
}

.demo-view-overlay .demo-titlebar-btn.theme-toggle:hover {
  background: rgba(0,0,0,0.08);
  color: #222;
}

.demo-view-overlay .demo-titlebar-btn.theme-toggle .theme-icon {
  display: inline;
  transition: transform 0.3s ease;
}

.agent-progress-container.complete .progress-ring-fill,
.demo-history-item .agent-progress-ring.complete .ring-fill,
html.dark-mode .agent-progress-container.complete .progress-ring-fill {
  stroke: #28a745;
}

.demo-view-overlay .design-tab .tab-close:hover {
  background: rgba(0,0,0,0.1);
  color: #333;
}

.demo-chat-container .demo-chat-messages .thinking-container .steps-list,
.demo-view-overlay .demo-chat-messages .thinking-container .steps-list {
  font-size: 0.60rem;
  font-weight: 200;
}

.demo-chat-input-row.cursor-style .chat-agent-badge.active-mode {
  background: rgba(21, 96, 130, 0.1);
  border-radius: 4px;
  padding: 3px 8px;
}

.chat-model-dropdown .menu-icon:hover + .chat-model-label + .chat-dropdown-menu,
.chat-model-dropdown:has(.menu-icon:hover) .chat-dropdown-menu,
.chat-settings-wrapper .color-palette-dropdown.chat-palette:hover,
.chat-settings-wrapper:hover .color-palette-dropdown,
.chat-settings-wrapper:hover .color-palette-dropdown.chat-palette,
.demo-chat-input-row.cursor-style .chat-agent-dropdown:hover .chat-dropdown-menu,
.demo-chat-input-row.cursor-style .chat-build-dropdown:hover .chat-dropdown-menu,
.demo-chat-input-row.cursor-style .chat-model-dropdown:hover .chat-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.demo-chat-input-row.cursor-style .dropdown-item:hover {
  background: #f0f0f0;
}

.demo-chat-input-row.cursor-style .dropdown-item:first-child {
  border-radius: 5px 5px 0 0;
}

.demo-chat-input-row.cursor-style .dropdown-item:last-child {
  border-radius: 0 0 5px 5px;
}

.demo-chat-input-row.cursor-style .chat-model-label .brand-dot,
.thinking-header:hover {
  color: #333;
}

.qa-chat-overlay .right-column .inner-resizer:hover,
.qa-manager .right-column .inner-resizer:hover {
  background: rgba(21, 96, 130, 0.2);
}

.demo-view-overlay .sidebar-panel[data-panel="files"] .demo-outputs-section {
  border-top: none;
  flex: 1;
  margin: 0;
  max-height: none;
  overflow-x: auto;
  overflow-y: auto;
  padding: 0.5rem;
}

.demo-view-overlay .sidebar-panel[data-panel="files"] .demo-outputs-tree {
  max-height: none;
  min-width: max-content;
}

.demo-outputs-section.project-structure .tree-file:hover,
.demo-outputs-section.project-structure .tree-folder-header:hover {
  background: rgba(128, 128, 128, 0.1);
}

.demo-outputs-section.project-structure .file-icon.pdf {
  background: #e74c3c;
}

.demo-outputs-section.project-structure .file-icon.dwg {
  background: #e67e22;
}

.demo-outputs-section.project-structure .file-icon.rvt {
  background: #3498db;
}

.demo-outputs-section.project-structure .file-icon.xlsx {
  background: #27ae60;
}

.demo-view-overlay .demo-titlebar-btn.max:disabled {
  background: #a0d4a0;
  cursor: not-allowed;
  opacity: 0.5;
}

.demo-view-overlay .demo-chat-box .demo-titlebar-btn.max,
.demo-view-overlay .demo-chat-box .demo-titlebar-btn.min {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.demo-chat-input-row.cursor-style .chat-model-label .model-display {
  align-items: center;
  display: inline-flex;
  font-family: 'Gotham', 'Inter', sans-serif;
  gap: 2px;
}

.demo-chat-input-row.cursor-style .chat-model-label .brand-build {
  color: #333;
  font-weight: 500;
}

.demo-chat-input-row.cursor-style .chat-model-label .brand-variant {
  color: #156082;
  font-weight: 500;
}

.demo-chat-input-row.cursor-style .chat-model-label .model-version-display {
  color: #888;
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  margin-left: 2px;
}

.demo-view-overlay .demo-revit-box.expanded .demo-revit-titlebar {
  cursor: default;
}

.demo-view-overlay .demo-revit-box.expanded .demo-revit-titlebar-text {
  pointer-events: none;
}

.demo-view-overlay .demo-revit-box.expanded .demo-revit-titlebar-btns {
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

.demo-view-overlay .demo-revit-box.expanded .demo-titlebar-btn {
  cursor: pointer;
  pointer-events: auto;
}

.demo-view-overlay .demo-revit-content .video-poster.hidden {
  opacity: 0;
  pointer-events: none;
}

html.dark-mode .demo-view-overlay .demo-titlebar-btn.theme-toggle {
  background: transparent;
  color: #aaa;
}

html.dark-mode .demo-view-overlay .sidebar-tab:hover {
  background: rgba(255,255,255,0.04);
  color: #aaa;
}

html.dark-mode .demo-view-overlay .sidebar-tab.active {
  background: #1e1e1e;
  color: #fff;
}

html.dark-mode .demo-view-overlay .history-search-input:focus {
  background: #333;
  border-color: rgba(74, 155, 184, 0.4);
}

.chat-thinking-header.done,
.demo-chat-input-row.cursor-style .chat-meeting-btn:hover,
.demo-chat-input-row.cursor-style .chat-share-btn:hover,
html.dark-mode .chat-node-status,
html.dark-mode .demo-chat-input-row.cursor-style .chat-input-placeholder:empty::before,
html.dark-mode .demo-chat-input-row.cursor-style .chat-meeting-btn,
html.dark-mode .demo-chat-input-row.cursor-style .chat-model-label .model-version-display,
html.dark-mode .demo-chat-input-row.cursor-style .chat-share-btn,
html.dark-mode .demo-chat-input-row.cursor-style .dropdown-section-header,
html.dark-mode .demo-chat-input-row.cursor-style .model-version,
html.dark-mode .demo-outputs-section.project-structure .folder-icon,
html.dark-mode .demo-view-overlay .design-tab .tab-close,
html.dark-mode .demo-view-overlay .history-search-input::placeholder,
html.dark-mode .demo-view-overlay .sidebar-footer .footer-text,
html.dark-mode .steps-toggle {
  color: #666;
}

html.dark-mode .demo-view-overlay .new-agent-btn:hover {
  background: rgba(74, 155, 184, 0.1);
  border-color: rgba(74, 155, 184, 0.6);
}

html.dark-mode .demo-view-overlay .share-chat-btn:hover {
  background: #3a3a3a;
  color: #999;
}

html.dark-mode .demo-history-item:hover,
html.dark-mode .demo-view-overlay .demo-history-item:hover,
html.dark-mode .qa-results-table thead {
  background: #333;
}

html.dark-mode .demo-history-item.manager-item:hover {
  background: linear-gradient(135deg, rgba(74, 155, 184, 0.2) 0%, rgba(90, 171, 191, 0.2) 100%);
}

html.dark-mode .demo-history-item.manager-item.active {
  background: linear-gradient(135deg, rgba(74, 155, 184, 0.3) 0%, rgba(90, 171, 191, 0.3) 100%);
  border-color: rgba(74, 155, 184, 0.5);
}

html.dark-mode .demo-history-item .agent-progress-ring .ring-bg {
  stroke: #3a3a3a;
}

html.dark-mode .demo-history-item .agent-progress-ring .ring-fill {
  stroke: #4a9bb8;
}

html.dark-mode .demo-view-overlay .design-tab:hover {
  background: rgba(255,255,255,0.03);
  color: #ccc;
}

html.dark-mode .demo-view-overlay .design-tab.active {
  background: #333;
  color: #fff;
}

html.dark-mode .demo-view-overlay .design-option-add:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

html.dark-mode .demo-chat-input-row.cursor-style .brand-variant,
html.dark-mode .demo-chat-input-row.cursor-style .chat-meeting-btn.active,
html.dark-mode .demo-chat-input-row.cursor-style .chat-model-label .brand-variant,
html.dark-mode .demo-chat-input-row.cursor-style .model-option.active .model-tick,
html.dark-mode .demo-view-overlay .design-option-add .branch-icon,
html.dark-mode .thinking-header:hover .steps-toggle {
  color: #4a9bb8;
}

html.dark-mode .demo-chat-input-row.cursor-style .chat-input-wrapper,
html.dark-mode .qa-element-details,
html.dark-mode .qa-results-header,
html.dark-mode .qa-results-table-wrapper,
html.dark-mode .qa-view-panel,
html.dark-mode .thinking-container {
  background: #2a2a2a;
  border-color: #3a3a3a;
}

.demo-chat-input-row.cursor-style .chat-input-placeholder:empty::before {
  color: #999;
  content: attr(data-placeholder);
}

html.dark-mode .demo-chat-input-row.cursor-style .chat-dropdown-menu {
  background: #2a2a2a;
  border-color: #3a3a3a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

html.dark-mode #schedulesOverlay .qa-ribbon .ribbon-btn,
html.dark-mode #schedulesOverlay .qa-ribbon .ribbon-tab:hover,
html.dark-mode .demo-chat-input-row.cursor-style .chat-model-label .brand-build,
html.dark-mode .demo-chat-input-row.cursor-style .chat-model-label .brand-dot,
html.dark-mode .demo-chat-input-row.cursor-style .dropdown-item,
html.dark-mode .demo-chat-input-row.cursor-style .dropdown-item.llm-option.enabled,
html.dark-mode .demo-chat-input-row.cursor-style .mode-name,
html.dark-mode .demo-outputs-section.project-structure .tree-folder-header,
html.dark-mode .qa-ribbon .ribbon-btn,
html.dark-mode .qa-ribbon .ribbon-tab:hover,
html.dark-mode .thinking-header:hover {
  color: #ccc;
}

.demo-chat-input-row.cursor-style .chat-send-btn:hover,
html.dark-mode .demo-chat-input-row.cursor-style .mode-toggle .toggle-slider,
html.dark-mode .demo-chat-input-row.cursor-style .toggle-slider,
html.dark-mode .qa-chat-messages::-webkit-scrollbar-thumb,
html.dark-mode .qa-results-table-wrapper::-webkit-scrollbar-thumb {
  background: #555;
}

html.dark-mode .demo-chat-input-row.cursor-style .chat-send-btn {
  background: #555;
  color: #fff;
}

html.dark-mode .chat-model-dropdown .menu-icon:hover {
  background: rgba(74, 155, 184, 0.15);
  color: #4a9bb8;
}

html.dark-mode .qa-titlebar-btn.theme-toggle:hover {
  background: rgba(255,255,255,0.08);
}

html.dark-mode .overlay-node:hover .node-core {
  background: linear-gradient(135deg, #4ECDC4 0%, #3db8b0 100%);
  box-shadow: 0 0 10px rgba(78, 205, 196, 0.6);
}

html.dark-mode .overlay-node:hover .node-glow {
  background: rgba(78, 205, 196, 0.35);
}

html.dark-mode .overlay-node:hover .node-pulse-ring {
  border-color: rgba(78, 205, 196, 0.5);
}

html.dark-mode .overlay-node.synced .node-core {
  background: linear-gradient(135deg, #4ECDC4 0%, #3dbdb5 100%);
  box-shadow: 0 0 14px rgba(78, 205, 196, 0.9);
}

html.dark-mode .overlay-node.synced .node-glow {
  background: rgba(78, 205, 196, 0.5);
}

html.dark-mode .overlay-node.synced .node-pulse-ring {
  border-color: rgba(78, 205, 196, 0.8);
}

html.dark-mode .overlay-node.mep-shine .node-core {
  animation: mepShineDark 2s ease-in-out infinite;
}

.demo-outputs-section.project-structure .demo-outputs-tree::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.25);
}

.demo-outputs-section.project-structure .file-icon.pdf::before {
  content: 'PDF';
}

.demo-outputs-section.project-structure .file-icon.dwg::before {
  content: 'DWG';
}

.demo-outputs-section.project-structure .file-icon.rvt::before {
  content: 'RVT';
}

.demo-outputs-section.project-structure .file-icon.xlsx::before {
  content: 'XLS';
}

html.dark-mode .demo-outputs-section.project-structure .tree-folder-content {
  border-left-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .demo-view-overlay .chat-sidebar-resize:hover {
  background: rgba(255, 255, 255, 0.15);
}

.demo-view-overlay .share-chat-btn[title]:hover::after {
  background: #333;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  color: #fff;
  content: attr(title);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  margin-top: 6px;
  padding: 6px 8px;
  position: absolute;
  right: 0;
  text-transform: none;
  top: 100%;
  white-space: normal;
  width: 150px;
  z-index: 200;
}

.demo-view-overlay .design-option-add[title]:hover::after {
  background: #333;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  color: #fff;
  content: attr(title);
  font-size: 0.55rem;
  font-weight: 400;
  left: 0;
  line-height: 1.4;
  margin-top: 6px;
  padding: 8px 10px;
  position: absolute;
  top: 100%;
  white-space: normal;
  width: 180px;
  z-index: 200;
}

.demo-chat-input-row.cursor-style .dropdown-item.has-submenu::after {
  content: '›';
  opacity: 0.5;
  position: absolute;
  right: 8px;
}

html.dark-mode .chat-node-status.complete .status-text {
  -webkit-text-fill-color: #999;
}

html.dark-mode .chat-neural-node.processing .chat-node-core {
  background: linear-gradient(135deg, #4a9bb8 0%, #1a7a9e 100%);
}

html.dark-mode .demo-outputs-section.project-structure .demo-outputs-tree::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
}

.demo-history-item .buffering-indicator,
.demo-history-item.agent-item.hidden,
.demo-history-item.complete .agent-progress-ring,
.demo-outputs-section.project-structure .tree-folder:not(.expanded) > .tree-folder-content,
.open-chat-btn.secondary-btn::before,
.right-column[style*="width: 19"] .demo-chat-titlebar-btns .chat-settings-wrapper,
.right-column[style*="width: 19"] .demo-chat-titlebar-btns .theme-toggle,
.right-column[style*="width: 20"] .demo-chat-titlebar-btns .chat-settings-wrapper,
.right-column[style*="width: 20"] .demo-chat-titlebar-btns .theme-toggle,
.right-column[style*="width: 21"] .demo-chat-titlebar-btns .chat-settings-wrapper,
.right-column[style*="width: 21"] .demo-chat-titlebar-btns .theme-toggle,
.right-column[style*="width: 22"] .demo-chat-titlebar-btns .chat-settings-wrapper,
.right-column[style*="width: 22"] .demo-chat-titlebar-btns .theme-toggle,
.steps-list li.preview-hidden,
.thinking-container.complete .thought-status {
  display: none;
}

.demo-chat-input-row.cursor-style .mode-toggle-row:hover .mode-tooltip,
.demo-chat-input-row.cursor-style .model-option:hover .model-tooltip,
.thinking-container.complete .thought-trail {
  display: block;
}

.demo-chat-input-row.cursor-style .dropdown-item.llm-option.disabled {
  color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}

.demo-chat-input-row.cursor-style .dropdown-item.llm-option.enabled {
  color: #333;
  cursor: pointer;
  pointer-events: auto;
}

.demo-outputs-section.project-structure .tree-folder:not(.expanded) .folder-icon {
  transform: rotate(-90deg);
}

html.dark-mode .demo-view-overlay .demo-titlebar-btn.settings:hover,
html.dark-mode .demo-view-overlay .design-tab .tab-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

html.dark-mode .demo-view-overlay .demo-titlebar-btn.theme-toggle:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.steps-toggle:not(.expanded) .chevron,
html.dark-mode .demo-view-overlay .demo-titlebar-btn.theme-toggle .theme-icon {
  transform: rotate(180deg);
}

.demo-chat-input-row.cursor-style .chat-input-placeholder:empty:focus::before {
  content: none;
}

.demo-chat-input-row.cursor-style .chat-input-placeholder:empty:focus::after {
  color: #bbb;
  content: attr(data-ghost);
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.6rem;
  opacity: 0.7;
  pointer-events: none;
}

html.dark-mode #schedulesOverlay .qa-results-table tbody tr.selected,
html.dark-mode .demo-chat-input-row.cursor-style .chat-agent-badge.active-mode,
html.dark-mode .qa-results-table tbody tr.active {
  background: rgba(74, 155, 184, 0.15);
}

html.dark-mode #schedulesOverlay .qa-resizer,
html.dark-mode #schedulesOverlay .qa-ribbon .ribbon-separator,
html.dark-mode .chat-thinking,
html.dark-mode .demo-chat-input-row.cursor-style .dropdown-divider,
html.dark-mode .demo-chat-input-row.cursor-style .dropdown-item:hover,
html.dark-mode .qa-ribbon .ribbon-separator {
  background: #3a3a3a;
}

html.dark-mode .demo-chat-input-row.cursor-style .brand-build,
html.dark-mode .demo-chat-input-row.cursor-style .brand-dot,
html.dark-mode .demo-view-overlay .demo-msg-user p,
html.dark-mode .demo-view-overlay .design-tab .tab-close:hover {
  color: #fff;
}

html.dark-mode .demo-chat-input-row.cursor-style .chat-send-btn:hover {
  background: #666;
}

html.dark-mode .demo-outputs-section.project-structure .tree-file:hover,
html.dark-mode .demo-outputs-section.project-structure .tree-folder-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.demo-chat-input-row.cursor-style .llm-toggle-row[title]:hover::after {
  background: #333;
  border-radius: 6px;
  bottom: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  color: #fff;
  content: attr(title);
  font-size: 0.55rem;
  left: 0;
  line-height: 1.4;
  margin-bottom: 8px;
  padding: 8px 10px;
  position: absolute;
  right: 0;
  white-space: normal;
  z-index: 200;
}

.demo-chat-input-row.cursor-style .chat-share-btn[title]:hover::after {
  background: #333;
  border-radius: 6px;
  bottom: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  color: #fff;
  content: attr(title);
  font-size: 0.55rem;
  line-height: 1.4;
  margin-bottom: 8px;
  padding: 8px 10px;
  position: absolute;
  right: 0;
  white-space: normal;
  width: 160px;
  z-index: 200;
}

.demo-chat-input-row.cursor-style .chat-meeting-btn[title]:hover::after {
  background: #333;
  border-radius: 6px;
  bottom: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  color: #fff;
  content: attr(title);
  font-size: 0.55rem;
  line-height: 1.4;
  margin-bottom: 8px;
  padding: 8px 10px;
  position: absolute;
  right: 0;
  white-space: normal;
  width: 180px;
  z-index: 200;
}

.demo-chat-input-row.cursor-style .llm-toggle input:checked + .toggle-slider::before,
.demo-chat-input-row.cursor-style .mode-toggle input:checked + .toggle-slider::before {
  transform: translateX(12px);
}

html.dark-mode .demo-outputs-section.project-structure .demo-outputs-tree::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}

.demo-view-overlay .demo-revit-box.expanded .demo-titlebar-btn.max:hover:not(:disabled),
.demo-view-overlay .demo-revit-box.expanded .demo-titlebar-btn.min:hover {
  transform: scale(1.1);
}

html.dark-mode .demo-chat-input-row.cursor-style .chat-input-placeholder:empty:focus::after,
html.dark-mode .demo-chat-input-row.cursor-style .dropdown-item.llm-option.disabled {
  color: #555;
}

html.dark-mode .demo-chat-input-row.cursor-style .llm-toggle input:checked + .toggle-slider,
html.dark-mode .demo-chat-input-row.cursor-style .mode-toggle input:checked + .toggle-slider,
html.dark-mode .step-icon.dot {
  background: #4a9bb8;
}

#specWritingOverlay .demo-chat-wrapper {
  flex: 1;
  height: 100% !important;
  width: 100% !important;
}

#specWritingOverlay .demo-chat-box {
  height: 100% !important;
  min-width: 700px;
  width: 100% !important;
}

#schedulesOverlay .qa-ribbon,
.qa-ribbon {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

#schedulesOverlay .qa-main-content,
.qa-main-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 6px;
}

@media (max-width: 767px) {
  #demoIntroOverlay .demo-image-container {
    height: auto !important;
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  #archBuildOverlay .demo-containers-panel,
  #comingSoonOverlay .demo-containers-panel,
  #gifOverlay .demo-revit-wrapper,
  #modellingOverlay .demo-containers-panel,
  #schematicsOverlay .demo-containers-panel {
    display: none !important;
  }
}

#schedulesOverlay .qa-body {
  background: var(--bg-tertiary);
  display: flex;
  flex: 1;
  flex-direction: row;
  min-height: 0;
}

#schedulesOverlay .qa-resizer {
  background: #e0e0e0;
  cursor: col-resize;
  flex-shrink: 0;
  transition: background 0.15s;
  width: 4px;
}

#schedulesOverlay .qa-chat-overlay {
  display: flex;
  flex-direction: row;
  height: 100%;
  max-width: 500px;
  min-width: 250px;
  overflow: hidden;
  width: 250px;
}

#specWritingOverlay .demo-chat-box.free-floating {
  height: auto !important;
  width: auto !important;
}

#schedulesOverlay .qa-ribbon .ribbon-btn-stack,
.qa-ribbon .ribbon-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  height: 54px;
  justify-content: center;
}

@media (max-width: 767px) {
  #gifOverlay .demo-containers-stack .demo-chat-wrapper {
    flex: none !important;
    height: auto !important;
    max-width: 100% !important;
    min-height: 400px;
    width: 100% !important;
  }
}

#schedulesOverlay.visible ~ .qa-manager,
body.view-7-active .qa-manager {
  left: 5% !important;
  transform: translate(0, -50%) !important;
}

#schedulesOverlay .v8-text-column .demo-text-heading,
#specWritingOverlay .v8-text-column .demo-text-heading {
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 16px;
}

#schedulesOverlay .v8-text-column .demo-text-body,
#specWritingOverlay .v8-text-column .demo-text-body {
  color: #555;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
}

#schedulesOverlay .v7-center-panel .demo-chat-wrapper,
#schedulesOverlay .v8-center-panel .demo-chat-wrapper,
#specWritingOverlay .v8-center-panel .demo-chat-wrapper {
  height: 100%;
  position: relative;
  width: 100%;
}

#schedulesOverlay .v7-center-panel .demo-chat-box,
#schedulesOverlay .v8-center-panel .demo-chat-box,
#specWritingOverlay .v8-center-panel .demo-chat-box {
  height: 100%;
  width: 100%;
}

#specWritingOverlay .v8-center-panel .demo-chat-wrapper {
  height: 100% !important;
  min-height: 400px;
  min-width: 500px;
  width: 100% !important;
}

#schedulesOverlay .v7-center-panel .demo-chat-wrapper,
#schedulesOverlay .v8-center-panel .demo-chat-wrapper {
  flex: 1 1 0% !important;
  height: 100% !important;
  min-height: 400px;
  min-width: 500px;
  width: 100% !important;
}

#schedulesOverlay .qa-ribbon .ribbon-tabs {
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  padding: 0 6px;
}

#schedulesOverlay .qa-ribbon .ribbon-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  cursor: pointer;
  font-size: 0.55rem;
  margin-bottom: -1px;
  padding: 4px 10px;
}

#schedulesOverlay .qa-ribbon .ribbon-content {
  align-items: stretch;
  background: #fafafa;
  display: none;
  gap: 6px;
  height: 76px;
  min-height: 76px;
  padding: 4px 8px;
}

#schedulesOverlay .qa-ribbon .ribbon-group {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#schedulesOverlay .qa-ribbon .ribbon-group-content {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: row;
  gap: 3px;
}

#schedulesOverlay .qa-ribbon .ribbon-row {
  align-items: center;
  display: flex;
  gap: 3px;
}

#schedulesOverlay .qa-ribbon .ribbon-group-label {
  color: #888;
  font-size: 0.45rem;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

#schedulesOverlay .qa-ribbon .ribbon-separator {
  align-self: center;
  background: #e0e0e0;
  height: 64px;
  margin: 0 6px;
  width: 1px;
}

#schedulesOverlay .qa-ribbon .ribbon-btn {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #333;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-size: 0.5rem;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

#schedulesOverlay .qa-resizer.active,
#schedulesOverlay .qa-resizer:hover {
  background: var(--teal);
}

#schedulesOverlay .right-column .demo-chat-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 250px;
  overflow: hidden;
}

#schedulesOverlay .right-column .demo-chat-history-sidebar {
  border-left: 1px solid #e0e0e0;
  display: flex;
  flex: 0 0 125px !important;
  flex-direction: column;
  flex-shrink: 0;
  max-width: 125px;
  min-width: 125px;
  overflow: hidden;
  width: 125px !important;
}

html.dark-mode #schedulesOverlay .qa-ribbon,
html.dark-mode .qa-ribbon {
  background: #2a2a2a;
  border-bottom-color: #3a3a3a;
}

html.dark-mode #schedulesOverlay .qa-body,
html.dark-mode .qa-body {
  background: #1e1e1e;
}

body .demo-view-overlay:not(#specWritingOverlay) .demo-containers-stack {
  overflow: hidden !important;
}

#schedulesOverlay .v8-text-column .demo-text-body p,
#specWritingOverlay .v8-text-column .demo-text-body p {
  margin-bottom: 14px;
}

#schedulesOverlay .qa-results-table tbody tr.selected,
.qa-results-table tbody tr.active {
  background: rgba(21, 96, 130, 0.12);
}

#specWritingOverlay .demo-chat-box .demo-titlebar-btn.max,
#specWritingOverlay .demo-chat-box .demo-titlebar-btn.min,
.demo-view-overlay .demo-chat-box .demo-titlebar-btn.max,
.demo-view-overlay .demo-chat-box .demo-titlebar-btn.min {
  cursor: pointer !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.demo-chat-box.free-floating,
.demo-revit-box.free-floating,
.demo-view-overlay:not(#specWritingOverlay) .demo-chat-box.free-floating,
.demo-view-overlay:not(#specWritingOverlay) .demo-revit-box.free-floating {
  position: fixed !important;
  z-index: 10000;
}

#schedulesOverlay .qa-ribbon .ribbon-tab:hover,
.qa-ribbon .ribbon-tab:hover {
  color: #444;
}

#schedulesOverlay .qa-ribbon .ribbon-tab.active,
.qa-ribbon .ribbon-tab.active {
  border-bottom-color: var(--teal);
  color: var(--teal);
}

#schedulesOverlay .qa-ribbon .ribbon-btn:disabled,
.qa-ribbon .ribbon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

#schedulesOverlay .qa-ribbon .ribbon-btn.large,
.qa-ribbon .ribbon-btn.large {
  height: 54px;
  min-width: 52px;
  padding: 4px 8px;
  width: 52px;
}

#schedulesOverlay .qa-ribbon .ribbon-btn.small,
.qa-ribbon .ribbon-btn.small {
  flex-direction: row;
  font-size: 0.5rem;
  gap: 3px;
  height: 16px;
  justify-content: flex-start;
  min-width: 70px;
  padding: 2px 6px;
  width: 70px;
}

#schedulesOverlay .qa-ribbon .ribbon-btn.primary,
.qa-ribbon .ribbon-btn.primary {
  background: linear-gradient(135deg, #156082 0%, #1a7299 100%);
  border: none;
  color: white;
}

@media (max-width: 767px) {
  #archBuildOverlay .demo-split-view.reversed .demo-text-panel,
  #modellingOverlay .demo-split-view.reversed .demo-text-panel {
    order: -1;
  }
}

#schedulesOverlay .qa-ribbon .ribbon-group-content.two-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

html.dark-mode #schedulesOverlay .right-column .demo-chat-history-sidebar,
html.dark-mode .qa-chat-overlay .right-column .demo-chat-history-sidebar,
html.dark-mode .qa-manager .right-column .demo-chat-history-sidebar,
html.dark-mode .right-column .demo-chat-history-sidebar {
  border-left-color: #3a3a3a;
}

html.dark-mode #schedulesOverlay .qa-ribbon .ribbon-tabs,
html.dark-mode .qa-results-table td,
html.dark-mode .qa-ribbon .ribbon-tabs {
  border-bottom-color: #3a3a3a;
}

html.dark-mode #schedulesOverlay .qa-resizer.active,
html.dark-mode #schedulesOverlay .qa-resizer:hover,
html.dark-mode .qa-results-table th .col-resize-handle.resizing,
html.dark-mode .qa-results-table th .col-resize-handle:hover {
  background: var(--teal-light);
}

@media (max-width: 767px) {
  body .demo-view-overlay:not(#specWritingOverlay) .demo-containers-stack .demo-chat-wrapper {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

body .demo-view-overlay:not(#specWritingOverlay) .demo-containers-stack .demo-chat-wrapper {
  flex: 0 0 50% !important;
  height: 100% !important;
  max-height: 100% !important;
  max-width: 50% !important;
  overflow: hidden !important;
  width: unset !important;
}

#schedulesOverlay .qa-ribbon .ribbon-btn:hover:not(:disabled),
.qa-ribbon .ribbon-btn:hover:not(:disabled) {
  background: rgba(21, 96, 130, 0.1);
  border-color: rgba(21, 96, 130, 0.2);
}

#schedulesOverlay .qa-ribbon .ribbon-btn.large .ribbon-icon,
.qa-ribbon .ribbon-btn.large .ribbon-icon {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

#schedulesOverlay .qa-ribbon .ribbon-btn.large .ribbon-label,
.qa-ribbon .ribbon-btn.large .ribbon-label {
  font-size: 0.5rem;
  text-align: center;
}

html.dark-mode #schedulesOverlay .qa-ribbon .ribbon-tab.active,
html.dark-mode .qa-ribbon .ribbon-tab.active {
  border-bottom-color: var(--teal-light);
  color: var(--teal-light);
}

html.dark-mode #schedulesOverlay .qa-ribbon .ribbon-btn.primary,
html.dark-mode .qa-ribbon .ribbon-btn.primary {
  background: linear-gradient(135deg, #4a9bb8 0%, #5aabbf 100%);
}

#schedulesOverlay .qa-ribbon .ribbon-btn.primary:hover:not(:disabled),
.qa-ribbon .ribbon-btn.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #1a7299 0%, #1d82a8 100%);
}

html.dark-mode #schedulesOverlay .qa-ribbon .ribbon-btn:hover:not(:disabled),
html.dark-mode .qa-ribbon .ribbon-btn:hover:not(:disabled) {
  background: rgba(74, 155, 184, 0.15);
  border-color: rgba(74, 155, 184, 0.25);
}

body .demo-view-overlay:not(#specWritingOverlay) .demo-containers-stack .demo-chat-wrapper .demo-chat-box:not(.free-floating) {
  height: 100% !important;
  max-height: 60vh !important;
  min-width: 0 !important;
  width: 100% !important;
}

/* Phase 8.7.4 — iOS auto-zoom guard on the chat input.
   Mobile Safari zooms-in any focused input below 16px. The desktop
   chat panel design uses 12px to fit the dense chat layout, but on
   mobile we bump to 16px specifically to defeat the auto-zoom. The
   visual change at <=480px is negligible because the chat panel is
   already full-width with its own mobile breakpoint stack. */
@media (max-width: 480px) {
  .demo-chat-input,
  .demo-view-overlay .history-search-input {
    font-size: 16px;
  }
}
