/* Voro site backdrop: the same two circular glows as the home page. Chat viewport and scroll behavior are unchanged. */
html:root.voro-chat-open,
html:root.voro-chat-open body,
html.voro-chat-open #voro-vagent-overlay,
html.voro-chat-open #voro-vagent-frame,
html.voro-vagent-booting #voro-vagent-boot,
html .voro-agent-loading {
  background: #070809 !important;
}

html.voro-chat-open .voro-chat-host-header {
  background: rgba(9, 10, 13, .72) !important;
  border-bottom-color: rgba(166, 199, 225, .1) !important;
}

html[data-voro-vagent-theme="site"] {
  color-scheme: dark;
  --bg: #070809;
  --panel: #111315;
  --raised: #191c20;
  --line: rgba(236, 241, 248, .10);
  --muted: #95a8bb;
  --accent: #2bd4ff;
  --accent-soft: rgba(43, 212, 255, .08);
  background: var(--bg);
  color: #eef4fa;
  -webkit-font-smoothing: antialiased;
}

html[data-voro-vagent-theme="site"] body {
  background: var(--bg);
}

html[data-voro-vagent-theme="site"] .app {
  background: var(--bg);
}

html[data-voro-vagent-theme="site"] .topbar {
  height: 60px;
  padding: 0 24px;
  background: rgba(9, 10, 13, .5);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

html[data-voro-vagent-theme="site"] .topbar-title {
  gap: 9px;
  color: #f3f7fb;
}

html[data-voro-vagent-theme="site"] .topbar-title > span:last-child {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.4px;
}

html[data-voro-vagent-theme="site"] .topbar-title .v-mark {
  width: 28px;
  height: 28px;
}

html[data-voro-vagent-theme="site"] .icon-button {
  color: #a8b8c7;
  border-radius: 12px;
}

html[data-voro-vagent-theme="site"] .icon-button:hover {
  color: #eef7ff;
  background: rgba(176, 211, 240, .07);
}

html[data-voro-vagent-theme="site"] .thread-viewport {
  scrollbar-color: #2a3c50 transparent;
}

html[data-voro-vagent-theme="site"] .thread-content {
  max-width: 820px;
  padding: 28px 32px 24px;
}

html[data-voro-vagent-theme="site"] .welcome {
  min-height: min(54dvh, 480px);
  padding: 32px 12px;
}

html[data-voro-vagent-theme="site"] .welcome .hero-emblem {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  margin-bottom: 26px;
  background: linear-gradient(145deg, rgba(218, 240, 255, .065), rgba(43, 212, 255, .025)), var(--panel);
  border: 1px solid rgba(172, 207, 233, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 30px rgba(0, 0, 0, .14);
}

html[data-voro-vagent-theme="site"] .hero-emblem::after {
  display: none;
}

html[data-voro-vagent-theme="site"] .welcome h1 {
  color: #f1f6fc;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 650;
  letter-spacing: -1.05px;
  line-height: 1.2;
  margin-bottom: 14px;
}

html[data-voro-vagent-theme="site"] .welcome p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 370px;
}

html[data-voro-vagent-theme="site"] .composer-wrap {
  padding: 14px 32px calc(16px + var(--safe));
  background: transparent;
}

html[data-voro-vagent-theme="site"] .composer {
  border-radius: 24px;
  padding: 8px;
  background: linear-gradient(145deg, rgba(214, 238, 255, .025), transparent), var(--panel);
  border: 1px solid rgba(236, 241, 248, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 12px 38px rgba(0, 0, 0, .14);
}

html[data-voro-vagent-theme="site"] .composer:focus-within {
  border-color: rgba(43, 212, 255, .46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 0 0 3px rgba(43, 212, 255, .055), 0 12px 38px rgba(0, 0, 0, .14);
}

html[data-voro-vagent-theme="site"] .composer textarea {
  padding: 10px 12px 8px;
  line-height: 1.55;
  color: #edf5fc;
}

html[data-voro-vagent-theme="site"] .composer textarea::placeholder {
  color: #8a9eb2;
}

html[data-voro-vagent-theme="site"] .composer-note {
  margin-top: 10px;
  color: #8296aa;
}

html[data-voro-vagent-theme="site"] .send-button:disabled {
  opacity: 1;
  background: #26373d;
  color: #7796ac;
  box-shadow: none;
}

html[data-voro-vagent-theme="site"] .is-user .message-body {
  background: #191c20;
  border-color: rgba(236, 241, 248, .08);
}

html[data-voro-vagent-theme="site"] .message-name {
  color: #a3b7ca;
}

html[data-voro-vagent-theme="site"] .prose {
  color: #dce7f1;
}

html[data-voro-vagent-theme="site"] :is(.inline-files, .quote-card, .result-card, .composer-attachment, .message-reference, .job-card, .prose pre) {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

html[data-voro-vagent-theme="site"] :is(.person-row input, .quality-control, .duration-control, .segment-editor, .segment-fields input, .edit-kind-control) {
  background: #171b20;
  border-color: var(--line);
}

html[data-voro-vagent-theme="site"] .edit-kind-control button[aria-pressed="true"] {
  background: #204354;
  color: #d7f5ff;
}

html[data-voro-vagent-theme="site"] .sidebar {
  background: rgba(16, 18, 22, .97);
  border-right-color: var(--line);
  box-shadow: 16px 0 44px rgba(0, 0, 0, .16);
}

html[data-voro-vagent-theme="site"] .chat-list > button.selected {
  background: rgba(255, 255, 255, .06);
}

html[data-voro-vagent-theme="site"] .toast {
  background: #202831;
  border-color: rgba(236, 241, 248, .14);
}

@media (max-width: 620px) {
  html[data-voro-vagent-theme="site"] .topbar { height: 56px; padding: 0 12px; }
  html[data-voro-vagent-theme="site"] .thread-content { padding: 20px 16px 18px; }
  html[data-voro-vagent-theme="site"] .welcome { min-height: min(48dvh, 420px); padding: 26px 8px; }
  html[data-voro-vagent-theme="site"] .welcome .hero-emblem { width: 64px; height: 64px; border-radius: 20px; margin-bottom: 24px; }
  html[data-voro-vagent-theme="site"] .welcome h1 { font-size: 29px; letter-spacing: -.9px; }
  html[data-voro-vagent-theme="site"] .welcome p { font-size: 14px; max-width: 295px; }
  html[data-voro-vagent-theme="site"] .composer-wrap { padding: 10px 12px calc(12px + var(--safe)); }
  html[data-voro-vagent-theme="site"] .composer { border-radius: 22px; padding: 6px; }
  html[data-voro-vagent-theme="site"] .edit-plan .inline-files { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-voro-vagent-theme="site"] .composer { transition: none; }
}

/* The home page draws these circles at exactly these sizes, offsets and opacities. */
html.voro-chat-open #voro-vagent-overlay::before,
html.voro-chat-open #voro-vagent-overlay::after,
html[data-voro-vagent-theme="site"]:not([data-embed="1"]) .app::before,
html[data-voro-vagent-theme="site"]:not([data-embed="1"]) .app::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
html.voro-chat-open #voro-vagent-overlay::before,
html[data-voro-vagent-theme="site"]:not([data-embed="1"]) .app::before {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(43, 212, 255, .26), transparent 70%);
  filter: blur(22px);
}
html.voro-chat-open #voro-vagent-overlay::after,
html[data-voro-vagent-theme="site"]:not([data-embed="1"]) .app::after {
  width: 320px;
  height: 320px;
  top: 42%;
  right: -110px;
  background: radial-gradient(circle, rgba(10, 132, 255, .22), transparent 70%);
  filter: blur(24px);
}
html.voro-chat-open #voro-vagent-frame {
  position: relative;
  z-index: 1;
  color-scheme: dark;
  background: transparent !important;
}
html[data-voro-vagent-theme="site"][data-embed="1"],
html[data-voro-vagent-theme="site"][data-embed="1"] body,
html[data-voro-vagent-theme="site"][data-embed="1"] #root,
html[data-voro-vagent-theme="site"][data-embed="1"] .app {
  background: transparent !important;
}
html[data-voro-vagent-theme="site"] .app > .topbar,
html[data-voro-vagent-theme="site"] .app > .conversation {
  position: relative;
  z-index: 1;
}
/* Prompt Studio already has the site's two original glows behind it. Let them show through. */
html.voro-pchat-open .pc[data-pc-viewport="1"],
html.voro-pchat-open .pc[data-pc-viewport="1"] .pc-main,
html.voro-pchat-open .pc[data-pc-viewport="1"] .pc-scroll {
  background: transparent;
}
html.voro-pchat-open .pc[data-pc-viewport="1"] .pc-head,
html.voro-pchat-open .pc[data-pc-viewport="1"] .pc-comp {
  background: rgba(7, 8, 9, .18);
}
html.voro-pchat-open .pc[data-pc-viewport="1"] .pc-side {
  background: rgba(16, 18, 22, .46);
}
@media (max-width: 860px) {
  html.voro-pchat-open .pc[data-pc-viewport="1"] .pc-side {
    background: rgba(16, 18, 22, .97);
  }
}
