.qit-page--row {
  flex: 1;
  display: flex;
  flex-direction: row;
  min-height: 0;
  overflow: hidden;
}

body[data-qit-tool="scout"] {
  background: var(--bg);
  color: var(--text);
  height: 100dvh;
  overflow: hidden;
}

body[data-qit-tool="scout"] .qit-shell {
  width: 100%;
  flex-shrink: 0;
}

body[data-qit-tool="scout"] .qit-page--fill {
  flex: 1;
  min-height: 0;
}

body[data-qit-tool="scout"] .sidebar-hdr span,
body[data-qit-tool="scout"] .chat-hdr p,
body[data-qit-tool="scout"] .status,
body[data-qit-tool="scout"] .welcome,
body[data-qit-tool="scout"] .hint {
  color: var(--muted);
}

body[data-qit-tool="scout"] .chat-hdr {
  background: var(--bg);
  border-bottom-color: var(--border);
}

body[data-qit-tool="scout"] .chat-hdr h1,
body[data-qit-tool="scout"] .welcome h2 {
  color: var(--text);
}

body[data-qit-tool="scout"] .new-chat-btn,
body[data-qit-tool="scout"] .example-btn {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-2);
}

body[data-qit-tool="scout"] .new-chat-btn:hover,
body[data-qit-tool="scout"] .example-btn:hover,
body[data-qit-tool="scout"] .hist-item:hover {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

body[data-qit-tool="scout"] .hist-item.active {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

body[data-qit-tool="scout"] .hist-item-title {
  color: var(--muted);
}

body[data-qit-tool="scout"] .hist-item.active .hist-item-title {
  color: var(--text);
}

body[data-qit-tool="scout"] #sidebar {
  background: var(--surface-2);
  border-right-color: var(--border);
}

body[data-qit-tool="scout"] .sidebar-hdr {
  border-bottom-color: var(--border);
}

body[data-qit-tool="scout"] .sidebar-toggle:hover {
  background: var(--surface-2);
  color: var(--text);
}

body[data-qit-tool="scout"] .msg.bot .bubble {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

body[data-qit-tool="scout"] .msg.user .bubble {
  background: var(--accent);
  color: #fff;
}

body[data-qit-tool="scout"] .input-area {
  background: var(--bg);
  border-top-color: var(--border);
}

body[data-qit-tool="scout"] textarea {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

body[data-qit-tool="scout"] textarea:focus {
  border-color: var(--accent);
}

body[data-qit-tool="scout"] .send {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

body[data-qit-tool="scout"] .send:disabled {
  opacity: .45;
}

body[data-qit-tool="scout"] .source-link {
  color: var(--accent);
}

body[data-qit-tool="scout"] #historyList::-webkit-scrollbar-thumb,
body[data-qit-tool="scout"] .chat::-webkit-scrollbar-thumb {
  background: var(--border);
}
