/* Sampled from the current Atlas workspace screenshot in sRGB. */
:root {
  --rvn-atlas-panel: #fff;
  --rvn-atlas-sidebar: var(--rvn-atlas-panel);
  --rvn-atlas-composer: var(--rvn-atlas-panel);
  --rvn-atlas-surface: #fbfaf7;
  --rvn-atlas-border: #e5e4dc;
  --rvn-atlas-selected: #f0eee8;
  --rvn-atlas-message: var(--rvn-atlas-selected);
  --rvn-atlas-chip: #ecebee;
  --rvn-atlas-ink: #15161e;
  --rvn-atlas-text: #3d3e4f;
  --rvn-atlas-muted: #6d6e7e;
  --rvn-atlas-accent: #1a1e2d;
  --rvn-atlas-accent-text: #2a2e45;
  --rvn-atlas-focus: #5a50cc;
  --rvn-atlas-success: #1e7a4b;
  --rvn-atlas-document: #245685;
}
.atlas-window, .tai-raven-embed .chat-window, .rvn-simple-app {
  color: var(--rvn-atlas-ink) !important;
  background: var(--rvn-atlas-panel) !important;
  border: 1px solid var(--rvn-atlas-border) !important;
  border-radius: 12px !important;
  overflow: hidden;
}
.atlas-window .atlas-top, .tai-raven-embed .chat-top, .rvn-simple-header {
  background: var(--rvn-atlas-panel) !important;
  color: var(--rvn-atlas-ink) !important;
  border-bottom: 1px solid var(--rvn-atlas-border) !important;
  min-height: 54px;
}
.tai-raven-embed .chat-top .brand, .tai-raven-embed .atlas-brand,
.atlas-window .atlas-word, .rvn-simple-header strong {
  color: var(--rvn-atlas-ink) !important;
  font: 600 19px/1.2 Inter, Arial, sans-serif !important;
  letter-spacing: -.035em;
}
.tai-raven-embed .chat-sidebar, .tai-raven-embed .atlas-sidebar,
.atlas-window .personal-sidebar, .rvn-simple-body aside {
  background: var(--rvn-atlas-sidebar) !important;
  color: var(--rvn-atlas-muted) !important;
  border-color: var(--rvn-atlas-border) !important;
}
.tai-raven-embed .chat-threads button[aria-pressed="true"],
.tai-raven-embed .atlas-choice[aria-pressed="true"],
.atlas-window .personal-thread[aria-pressed="true"], .rvn-simple-body aside .selected {
  background: var(--rvn-atlas-selected) !important;
  color: var(--rvn-atlas-accent-text) !important;
  border-radius: 6px;
}
.tai-raven-embed .chat-question > p, .atlas-window .personal-message,
.atlas-window .prompt, .rvn-simple-canvas .rvn-simple-question {
  box-sizing: border-box;
  inline-size: fit-content !important;
  max-inline-size: 60% !important;
  margin-inline: auto 0 !important;
  padding: 10px 13px !important;
  color: var(--rvn-atlas-text) !important;
  background: var(--rvn-atlas-message) !important;
  border-radius: 8px 8px 2px 8px !important;
  font: 400 13px/1.55 Inter, Arial, sans-serif !important;
  text-align: left !important;
  overflow-wrap: anywhere;
}
.tai-raven-embed .chat-question {
  display: block;
  width: 100%;
  margin: 0 0 18px;
}
.tai-raven-embed .chat-you { display: none; }
.tai-raven-embed .chat-tool, .tai-raven-embed .citation,
.atlas-window .chat-tool, .atlas-window .citations button, .rvn-simple-chips span {
  background: var(--rvn-atlas-panel) !important;
  border: 1px solid var(--rvn-atlas-border) !important;
  color: var(--rvn-atlas-accent-text) !important;
}
.tai-raven-embed .chat-tool[aria-expanded="true"],
.atlas-window .chat-tool[aria-expanded="true"] { background: var(--rvn-atlas-selected) !important; }
.tai-raven-embed .chat-compose, .atlas-window .personal-compose {
  background: var(--rvn-atlas-composer) !important;
  border: 1px solid var(--rvn-atlas-border) !important;
  border-radius: 8px;
}
.tai-raven-embed .chat-compose textarea, .atlas-window .personal-compose input {
  color: var(--rvn-atlas-text);
}
.tai-raven-embed .chat-compose textarea::placeholder, .atlas-window .personal-compose input::placeholder {
  color: var(--rvn-atlas-muted);
  opacity: 1;
}
.tai-raven-embed .chat-compose-bottom button, .tai-raven-embed .atlas-primary,
.atlas-window .personal-compose button, .atlas-window .btn.primary, .rvn-simple-canvas button {
  background: var(--rvn-atlas-accent) !important;
  border-color: var(--rvn-atlas-accent) !important;
  color: #fff !important;
  border-radius: 5px;
}
.tai-raven-embed .chat-answer-table th, .tai-raven-embed .br-metric,
.atlas-window .dash-card, .atlas-window .note, .atlas-window .work-card,
.rvn-simple-canvas .rvn-simple-feedback {
  background: var(--rvn-atlas-surface) !important;
  color: var(--rvn-atlas-text) !important;
  border-color: var(--rvn-atlas-border) !important;
}
.tai-raven-embed .chat-answer-table, .tai-raven-embed .chat-answer-table td,
.atlas-window .answer table th, .atlas-window .answer table td,
.rvn-simple-canvas td, .rvn-simple-canvas th, .rvn-simple-proposal {
  border-color: var(--rvn-atlas-border) !important;
}
.atlas-window .question-tabs button[aria-selected="true"],
.tai-raven-embed .business-tabs button[aria-selected="true"] {
  border-color: var(--rvn-atlas-accent) !important;
  color: var(--rvn-atlas-accent-text) !important;
}
.rvn-simple-steps span:last-child { border-color: var(--rvn-atlas-focus); }
.atlas-window :is(button, input):focus-visible,
.tai-raven-embed :is(button, textarea, select):focus-visible,
.rvn-simple-app button:focus-visible {
  outline: 2px solid var(--rvn-atlas-focus) !important;
  outline-offset: 2px;
}

.tai-raven-embed .chat-threads button:hover,
.tai-raven-embed .atlas-choice:hover,
.atlas-window .personal-thread:hover {
  background: var(--rvn-atlas-surface);
}
.tai-raven-embed .chat-top > span:last-child, .tai-raven-embed .atlas-private,
.atlas-window .top-path, .rvn-simple-header small, .rvn-simple-body aside small,
.rvn-simple-proposal small, .rvn-simple-steps {
  color: var(--rvn-atlas-muted);
}
.rvn-simple-canvas :is(h3, th) {
  color: var(--rvn-atlas-ink);
}
.rvn-simple-steps span:last-child {
  color: var(--rvn-atlas-ink);
  border-color: var(--rvn-atlas-accent);
}
.tai-raven-embed .chat-agents i {
  background: var(--rvn-atlas-focus);
}
.tai-raven-embed .chat-agents [data-chat-agent="documents"] i {
  background: var(--rvn-atlas-document);
}
.tai-raven-embed .chat-agents [data-chat-agent="draft"] i {
  background: var(--rvn-atlas-success);
}
.tai-raven-embed .chat-tool-check,
.atlas-window .tool-check,
.atlas-window .receipt > span {
  color: var(--rvn-atlas-success) !important;
}
.tai-raven-embed .citation-panel blockquote,
.atlas-window .personal-response blockquote,
.atlas-window .personal-excerpt,
.atlas-window .evidence {
  border-inline-start-color: var(--rvn-atlas-focus);
}
.tai-raven-embed :is(.br-plan-key, .br-plan-bar, .br-segment-1) {
  background: var(--rvn-atlas-border);
}
.tai-raven-embed :is(.br-actual-key, .br-actual-bar, .br-segment-0),
.atlas-window .bar > span {
  background: var(--rvn-atlas-accent);
}
.atlas-window .steps button[aria-selected="true"] .step-marker {
  background: var(--rvn-atlas-accent) !important;
  border-color: var(--rvn-atlas-accent) !important;
  color: var(--rvn-atlas-panel) !important;
}
.workflow-selector button {
  background: var(--rvn-atlas-panel) !important;
  border-color: var(--rvn-atlas-border) !important;
  color: var(--rvn-atlas-text) !important;
}
.workflow-selector button[aria-pressed="true"] {
  background: var(--rvn-atlas-accent) !important;
  color: var(--rvn-atlas-panel) !important;
}
.rvn-simple-canvas .rvn-simple-feedback {
  color: var(--rvn-atlas-success) !important;
}

/* Match the workspace search and filters in the reference. */
.tai-raven-embed .pm-search {
  background: var(--rvn-atlas-surface);
  border-color: var(--rvn-atlas-border);
}
.tai-raven-embed .pm-search .icon,
.tai-raven-embed .pm-search input::placeholder {
  color: var(--rvn-atlas-muted);
}
.tai-raven-embed .pm-search:focus-within {
  outline: 2px solid var(--rvn-atlas-focus);
  outline-offset: 2px;
}

.tai-raven-embed .pm-search input:focus-visible {
  outline: none !important;
}
