/*
 * Staging for the replica in index.html. The Core markup and core.css are taken
 * from the running app; everything here only positions the stage, drives states
 * the app reaches through interaction, and draws the cursor.
 */
html,
body {
  margin: 0;
  background: #fff;
}

body {
  overflow: hidden;
  font-family: "Inter Variable", Inter, system-ui, sans-serif;
}

.hv-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1456 / 984;
  overflow: hidden;
  background: #e8e1d5;
}

/* Backdrop and window scale together as one picture. */
.hv-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 1456px;
  height: 984px;
  transform-origin: 0 0;
  transform: scale(var(--hv-scale, 1));
}

.hv-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hv-window {
  position: absolute;
  top: 72px;
  left: 88px;
  width: 1280px;
  height: 840px;
  overflow: hidden;
  border-radius: 12px;
  background: #f5f5f5;
  box-shadow:
    0 0 0 1px rgba(38, 38, 43, 0.1),
    0 24px 64px rgba(38, 38, 43, 0.22),
    0 4px 12px rgba(38, 38, 43, 0.08);
}

.hv-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  background: #f5f5f5;
}

.hv-lights {
  position: absolute;
  left: 18px;
  top: 50%;
  display: flex;
  gap: 8px;
  transform: translateY(-50%);
}

.hv-lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d9d9dc;
}

.hv-address {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 400px;
  height: 26px;
  border-radius: 6px;
  background: #e9e9ec;
  color: #6f6f77;
  font-size: 13px;
  letter-spacing: -0.006em;
}

.hv-address svg {
  width: 12px;
  height: 12px;
}

/* The app's fixed panel and launcher position against this box, not the scene. */
.hv-stage {
  position: relative;
  width: 1280px;
  height: 800px;
  overflow: hidden;
  transform: translate(0);
}

/* The loop fades through white rather than cutting back to the start. */
.hv-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 60;
  background: #fff;
  opacity: var(--hv-veil, 0);
  pointer-events: none;
}

.hv-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.hv-page[hidden] {
  display: none;
}

/* ---------- Assistant ---------- */

[data-hv="panel"] {
  transition:
    opacity 120ms cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 120ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hv-panel-closed [data-hv="panel"] {
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
}

.hv-panel-open [data-hv="launcher"] {
  display: none;
}

[data-hv="thread"],
[data-hv="thread-2"],
[data-hv="thread-3"],
[data-hv="thread-4"],
[data-hv="turn-5"],
.hv-sent:not(.hv-new-chat) [data-hv="welcome"],
.hv-sent-3 [data-hv="welcome"] {
  display: none;
}

.hv-sent [data-hv="thread"],
.hv-sent-2 [data-hv="thread-2"],
.hv-sent-4 [data-hv="thread-4"],
.hv-sent-5 [data-hv="turn-5"],
.hv-sent-3 [data-hv="thread-3"] {
  display: block;
}

.hv-app.hv-new-chat-2 [data-hv="thread-3"],
.hv-app.hv-new-chat [data-hv="thread"],
.hv-app.hv-new-chat [data-hv="thread-2"] {
  display: none;
}

/* ---------- Activity: unread badge and dot ---------- */

.hv-app:not(.hv-unread) [data-hv="changes-badge"],
.hv-app:not(.hv-unread) [data-hv="unread-dot"] {
  display: none;
}

/* ---------- Findings review drawer ---------- */

[data-hv="findings"] {
  transition: transform var(--cx-dur-drawer-enter) var(--cx-ease);
}

.hv-app:not(.hv-findings-open) [data-hv="findings"] {
  transform: translateX(calc(100% + 12px));
  visibility: hidden;
}

.hv-app:not(.hv-findings-open) [data-hv="findings-backdrop"] {
  opacity: 0;
  visibility: hidden;
}

[data-hv-finding] [data-hv-accepted],
[data-hv-import-finding] [data-hv-accepted] {
  display: none;
}

[data-hv-finding].hv-accepted [class*="_actions_hjgvs"] > button,
[data-hv-import-finding].hv-accepted [class*="_actions_hjgvs"] > button {
  display: none;
}

[data-hv-finding].hv-accepted [data-hv-accepted],
[data-hv-import-finding].hv-accepted [data-hv-accepted] {
  display: inline;
}

[data-hv="findings-0"] {
  transition: transform var(--cx-dur-drawer-enter) var(--cx-ease);
}

.hv-app:not(.hv-findings-0-open) [data-hv="findings-0"] {
  transform: translateX(calc(100% + 12px));
  visibility: hidden;
}

.hv-app:not(.hv-findings-0-open) [data-hv="findings-0-backdrop"] {
  opacity: 0;
  visibility: hidden;
}

/* ---------- Connection drawer ---------- */

[data-hv="drawer"] {
  transition: transform var(--cx-dur-drawer-enter) var(--cx-ease);
}

[data-hv="drawer-backdrop"] {
  transition: opacity var(--cx-dur) var(--cx-ease);
}

.hv-app:not(.hv-drawer-open) [data-hv="drawer"] {
  transform: translateX(calc(100% + 12px));
  visibility: hidden;
}

.hv-app:not(.hv-drawer-open) [data-hv="drawer-backdrop"] {
  opacity: 0;
  visibility: hidden;
}

.hv-composer-focus [data-anchor="composer"] {
  border-color: var(--cx-ink);
}

[data-hv-item]:not(.hv-on) {
  display: none;
}

/* Steps start at the message edge: an icon column (progress circle while running, check when
   done) followed by the label. */
section[data-hv^="activity"] ol {
  margin: 0;
  padding: 0;
}

section[data-hv^="activity"] ._running_1oqmv_98,
section[data-hv^="activity"] summary {
  display: flex;
  align-items: center;
  gap: var(--cx-space-2);
}

section[data-hv^="activity"] ._spinner_1oqmv_103,
section[data-hv^="activity"] .hv-check {
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hv-check {
  color: var(--cx-ink-subtle);
}

[data-hv-item] ._spinner_1oqmv_103,
[data-hv-item].hv-running .hv-check {
  display: none;
}

[data-hv-item].hv-running ._spinner_1oqmv_103 {
  display: block;
}

[data-hv-item] summary {
  list-style: none;
}

[data-hv-item] summary::-webkit-details-marker {
  display: none;
}

.hv-activity-done [data-hv="activity-heading"],
.hv-activity-done-2 [data-hv="activity-heading-2"],
.hv-activity-done-3 [data-hv="activity-heading-3"],
.hv-activity-done-4 [data-hv="activity-heading-4"],
.hv-activity-done-5 [data-hv="activity-heading-5"] {
  display: none;
}

[data-hv="answer"],
[data-hv="answer-2"],
[data-hv="answer-3"],
[data-hv="answer-4"],
[data-hv="answer-5"] {
  margin-top: var(--cx-space-3);
}

.hv-app:not(.hv-activity-done-3) [data-hv="answer-3"],
.hv-app:not(.hv-activity-done-4) [data-hv="answer-4"],
.hv-app:not(.hv-activity-done-5) [data-hv="answer-5"],
[data-hv="answer"]:not(:has(.hv-on)),
[data-hv="answer-2"]:not(:has(.hv-on)),
[data-hv-line]:not(.hv-on),
[data-hv-line-2]:not(.hv-on) {
  display: none;
}

[data-hv-line].hv-on,
[data-hv-line-2].hv-on {
  animation: hv-appear 180ms ease-out;
}

@keyframes hv-appear {
  from {
    opacity: 0;
  }
}

/* ---------- Pointer states the app reaches on hover ---------- */

.hv-hover._tertiary_toh3y_38,
.hv-hover._iconButton_1dffe_7,
.hv-hover[class*="_value_o13z5"] {
  color: var(--cx-ink);
  background: var(--cx-subtle);
}

/* Secondary buttons darken their border on hover, as in the product. */
.hv-hover._button_toh3y_1:not(._tertiary_toh3y_38):not(._primary_toh3y_26) {
  border-color: var(--cx-ink);
}

.hv-hover-primary {
  background: color-mix(in srgb, var(--cx-ink) 82%, var(--cx-surface));
  border-color: color-mix(in srgb, var(--cx-ink) 82%, var(--cx-surface));
}

/* ---------- Import scene ---------- */

.hv-app:not(.hv-file-attached) [data-hv="pending-files"],
[data-hv="thread-0"],
.hv-sent-0 [data-hv="welcome"],
.hv-activity-done-0 [data-hv="activity-heading-0"],
.hv-app:not(.hv-activity-done-0) [data-hv="answer-0"] {
  display: none;
}

.hv-sent-0 [data-hv="thread-0"] {
  display: block;
}

[data-hv="answer-0"] {
  margin-top: var(--cx-space-3);
}

.hv-hover-nav {
  background: var(--cx-canvas);
  color: var(--cx-ink);
}

.hv-hover-row {
  background: var(--cx-subtle);
}

.hv-hover-link {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* ---------- Cursor ---------- */

.hv-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 90;
  width: 22px;
  height: 28px;
  pointer-events: none;
  will-change: transform;
}

.hv-cursor svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

.hv-click {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(38, 38, 43, 0.45);
  opacity: 0;
  transform: scale(0.4);
}

.hv-click.hv-on {
  animation: hv-click 420ms ease-out;
}

@keyframes hv-click {
  0% {
    opacity: 0.9;
    transform: scale(0.4);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

/* ---------- Pause control ---------- */

.hv-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #26262b;
  cursor: pointer;
  transition: background-color 120ms;
}

.hv-toggle:hover {
  background: #fff;
}

.hv-toggle svg {
  width: 14px;
  height: 14px;
}

.hv-toggle .hv-play,
.hv-paused .hv-toggle .hv-pause {
  display: none;
}

.hv-paused .hv-toggle .hv-play {
  display: block;
}

.hv-toggle:focus-visible {
  outline: 2px solid #2447e5;
  outline-offset: 2px;
}

body {
  position: relative;
}

.hv-hover[data-hv="launcher"] > svg {
  transform-origin: center;
  animation: _assistantSpin_14up7_1 3.934s infinite;
}

/* The send control is a 32px circle; the shared compact button's 40px minimum stretches it. */
._send_1k5a0_97 {
  min-height: 32px;
  height: 32px;
}

/* A held frame (paused, reduced motion or ?t=) shows its end state, not a transition into it. */
.hv-still .hv-stage *,
.hv-still .hv-stage *::before,
.hv-still .hv-stage *::after {
  transition: none !important;
}

.hv-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Scene dots, centred in the backdrop margin under the window ---------- */

.hv-scenes {
  position: absolute;
  left: 50%;
  bottom: calc((100% * 72 / 984 - 26px) / 2);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 6px;
  height: 26px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  transform: translateX(-50%);
}

.hv-scenes button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  min-width: 18px;
  padding: 0 5px;
  border: 0;
  background: none;
  cursor: pointer;
}

.hv-scenes button::before {
  content: "";
  position: relative;
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: rgba(38, 38, 43, 0.28);
  transition:
    width 200ms cubic-bezier(0.25, 0.1, 0.25, 1),
    background-color 120ms;
}

.hv-scenes button:hover::before {
  background: rgba(38, 38, 43, 0.5);
}

.hv-scenes button[aria-current="true"]::before {
  width: 28px;
  background: rgba(38, 38, 43, 0.2);
}

/* The active dot fills as its scene plays. */
.hv-scenes button {
  position: relative;
}

.hv-fill {
  position: absolute;
  top: 50%;
  left: 5px;
  width: 0;
  height: 7px;
  border-radius: 4px;
  background: #26262b;
  transform: translateY(-50%);
  pointer-events: none;
}

.hv-scenes button:not([aria-current="true"]) .hv-fill {
  display: none;
}

.hv-scenes button:focus-visible {
  outline: 2px solid #2447e5;
  outline-offset: -2px;
  border-radius: 13px;
}

.hv-scene-label {
  padding: 0 6px 0 4px;
  color: #26262b;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.006em;
  white-space: nowrap;
}

/* One progress line per step: the separate running status would repeat the active step. */
section[data-hv^="activity"] [data-hv^="activity-heading"] {
  display: none;
}

/* While the file uploads, the paperclip is disabled, as in the product. */
.hv-uploading [data-anchor="attach"] {
  opacity: 0.4;
}

/* Artworks are shown whole, never cropped. */
.hv-stage ._cover_206jm_16 img {
  object-fit: contain;
}

.hv-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

[data-hv="participants"] {
  transition: transform var(--cx-dur-drawer-enter) var(--cx-ease);
}

.hv-app:not(.hv-participants-open) [data-hv="participants"] {
  transform: translateX(calc(100% + 12px));
  visibility: hidden;
}

.hv-app:not(.hv-participants-open) [data-hv="participants-backdrop"] {
  opacity: 0;
  visibility: hidden;
}

/* ---------- Änderungen: views menu and the request's changes drawer ---------- */

[data-hv="cr-drawer"] {
  transition: transform var(--cx-dur-drawer-enter) var(--cx-ease);
}

.hv-app:not(.hv-cr-drawer-open) [data-hv="cr-drawer"] {
  transform: translateX(calc(100% + 12px));
  visibility: hidden;
}

.hv-app:not(.hv-cr-drawer-open) [data-hv="cr-drawer-backdrop"] {
  opacity: 0;
  visibility: hidden;
}

[data-hv="cr-drawer"] footer button + button {
  margin-left: var(--cx-space-2);
}

/* States the timeline toggles with the hidden attribute stay hidden over component display rules. */
.hv-stage [hidden] {
  display: none !important;
}

/* ---------- Cursor trace (review frames only, `?t=…&from=…`) ---------- */

.hv-trace {
  position: absolute;
  inset: 0;
  z-index: 89;
  width: 1456px;
  height: 984px;
  pointer-events: none;
  overflow: visible;
}

.hv-trace polyline {
  fill: none;
  stroke: #e5484d;
  stroke-width: 2.5;
  stroke-dasharray: 6 5;
  stroke-linecap: round;
}

.hv-trace-start {
  fill: #e5484d;
}

.hv-trace-click {
  fill: rgba(229, 72, 77, 0.12);
  stroke: #e5484d;
  stroke-width: 2;
}

/* ---------- Previews of what the Assistant made: the collection page and the visitor guide ---------- */

.hv-preview {
  position: absolute;
  inset: 0;
  z-index: 65;
  display: flex;
  flex-direction: column;
  background: #fff;
  font-family: "Inter Variable", Inter, system-ui, sans-serif;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 260ms ease,
    visibility 0s linear 260ms;
}

.hv-preview.hv-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 260ms ease;
}

.hv-pv-bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid var(--cx-border);
  background: var(--cx-surface);
  color: var(--cx-ink);
  font-size: 13px;
}

.hv-pv-label {
  color: var(--cx-ink-muted);
}

.hv-pv-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hv-preview:not(.hv-published) [data-hv="page-published"],
.hv-preview.hv-published [data-hv="page-publish"] {
  display: none;
}

.hv-pv-page {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  color: #1b1b1f;
}

/* The online collection as the archive wall: header, search, and the works as tiles. */
.hv-wall {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.hv-wall-grid img[data-anchor].hv-hover {
  outline: 2px solid #18181b;
  outline-offset: 2px;
}

.hv-wall-head {
  display: grid;
  flex: 0 0 52px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid #ececef;
  font-size: 13px;
}

.hv-wall-logo {
  display: block;
  width: 64px;
  height: 10px;
  color: #18181b;
}

.hv-wall-title {
  margin: 0;
  color: #71717a;
}

.hv-wall-title strong {
  color: #18181b;
  font-weight: 600;
}

.hv-wall-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: #3f3f46;
}

.hv-wall-tools svg {
  width: 15px;
  height: 15px;
}

.hv-wall-views {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hv-wall-views svg:last-child {
  width: 12px;
  height: 12px;
}

.hv-wall-tools i {
  width: 1px;
  height: 16px;
  background: #e4e4e7;
}

.hv-wall-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 12px 8px;
  padding: 4px 4px 4px 16px;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  color: #71717a;
  font-size: 14px;
}

.hv-wall-search > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hv-wall-search svg {
  width: 15px;
  height: 15px;
}

.hv-wall-search b {
  padding: 7px 14px;
  border-radius: 999px;
  background: #18181b;
  color: #fff;
  font-weight: 500;
}

/* The five columns run past the bottom edge, so the wall fills the window. */
.hv-wall {
  overflow: hidden;
}

.hv-wall-grid {
  display: grid;
  flex: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  padding: 2px 10px 0;
}

.hv-wall-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hv-wall.hv-detail .hv-wall-grid,
.hv-wall:not(.hv-detail) .hv-wall-detail {
  display: none;
}

/* One work's detail, as on the archive wall: image left, record right. */
.hv-wall-detail {
  flex: 1;
  min-height: 0;
  padding: 4px 40px 0;
  color: #18181b;
  font-size: 13px;
  animation: hv-appear 220ms ease-out;
}

.hv-wd-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 34px;
  color: #52525b;
}

.hv-wd-bar > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hv-wd-bar svg {
  width: 13px;
  height: 13px;
}

.hv-wd-nav {
  margin-left: auto;
}

.hv-wd-nav i {
  width: 1px;
  height: 12px;
  margin: 0 6px;
  background: #d4d4d8;
}

.hv-wd-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  height: calc(100% - 50px);
  padding-top: 8px;
}

.hv-wd-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 8px;
  background: #f4f4f5;
  overflow: hidden;
}

.hv-wd-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hv-wd-text h2 {
  margin: 4px 0 2px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.hv-wd-sub {
  margin: 0 0 14px;
  color: #71717a;
  font-size: 14px;
}

.hv-wd-lead {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
}

.hv-wd-lead u {
  text-underline-offset: 3px;
}

.hv-wd-label {
  margin: 0 0 10px;
  color: #71717a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hv-wd-events {
  margin: 0 0 20px;
  padding: 0 0 0 16px;
  list-style: none;
}

.hv-wd-events li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  font-size: 14px;
}

.hv-wd-events li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #18181b;
}

.hv-wd-events small {
  color: #71717a;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.hv-wd-related {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #ececef;
}

.hv-wd-related li {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  border-bottom: 1px solid #ececef;
  font-size: 14px;
  font-weight: 500;
}

.hv-wd-thumbs {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.hv-wd-thumbs img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #f4f4f5;
  object-fit: contain;
}

.hv-wd-count {
  min-width: 18px;
  color: #71717a;
  font-weight: 400;
  text-align: right;
}

.hv-wd-related svg {
  width: 13px;
  height: 13px;
  color: #71717a;
}

/* Tiles keep each work's own proportions; nothing is cropped. */
.hv-wall-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* The guide previews on a phone-sized screen, in the visitor chat's own design. */
.hv-pv-stagebg {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cx-canvas);
}

.hv-phone {
  box-sizing: border-box;
  width: 340px;
  height: 690px;
  padding: 10px;
  border-radius: 44px;
  background: #1d1d21;
  box-shadow: 0 18px 40px rgba(20, 20, 24, 0.18);
}

.hv-phone-screen {
  --g-canvas: #f4f4f5;
  --g-text: #1f2937;
  --g-text-2: #374151;
  --g-muted: #9ca3af;
  --g-border: #e4e4e7;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background: var(--g-canvas);
  color: var(--g-text);
  font-family: "Inter Variable", Inter, system-ui, sans-serif;
  font-size: 14px;
}

.hv-g-top {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px 10px;
}

.hv-g-round {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--g-border);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  color: var(--g-text);
}

.hv-g-round-plain {
  background: transparent;
  color: #6b7280;
}

.hv-g-round svg {
  width: 18px;
  height: 18px;
}

.hv-g-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--g-border);
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}

.hv-g-switch span {
  padding: 6px 14px;
  border-radius: 999px;
}

.hv-g-switch .hv-g-on {
  background: #55575b;
  color: #fff;
}

.hv-g-thread {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.hv-g-media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 236px;
  padding: 4px 0 14px;
  border-bottom: 1px solid var(--g-border);
}

.hv-g-media figure {
  flex: none;
  width: 160px;
  height: 100%;
  margin: 0;
}

.hv-g-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hv-g-peek {
  flex: 1;
  height: 70%;
  background: #d4d4d8;
}

.hv-g-msgs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 12px;
}

.hv-g-a {
  margin: 0;
  color: var(--g-text);
  font-size: 14px;
  line-height: 1.55;
}

.hv-g-tools {
  display: flex;
  gap: 14px;
  margin: 0;
  color: #9ca3af;
}

.hv-g-tools svg {
  width: 16px;
  height: 16px;
}

.hv-g-q {
  align-self: flex-end;
  max-width: 82%;
  margin: 6px 0 0;
  padding: 9px 14px;
  border: 1px solid var(--g-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  color: var(--g-text);
  font-size: 14px;
  line-height: 1.45;
}

.hv-g-typing {
  display: flex;
  gap: 4px;
  margin: 4px 0 0;
}

.hv-g-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
}

.hv-g-answer {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hv-g-src {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
}

.hv-g-bottom {
  flex: none;
  padding: 8px 0 16px;
}

.hv-g-chips {
  box-sizing: border-box;
  min-height: 40px;
  display: flex;
  gap: 8px;
  padding: 0 14px 8px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
  mask-image: linear-gradient(to right, #000 85%, transparent);
}

.hv-g-chip {
  flex: none;
  padding: 6px 12px;
  border: 1px solid var(--g-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  color: var(--g-text);
  font: 500 13px/1.3 "Inter Variable", Inter, system-ui, sans-serif;
  white-space: nowrap;
}

.hv-g-chip.hv-hover {
  background: #fff;
  border-color: #a1a1aa;
}

.hv-g-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 14px;
  padding: 13px 16px 13px 18px;
  border: 1px solid var(--g-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  color: var(--g-muted);
  font-size: 14px;
}

.hv-g-composer svg {
  width: 20px;
  height: 20px;
  color: var(--g-text);
}

.hv-g-composer.hv-focus {
  border-color: #a1a1aa;
}

.hv-g-typed {
  flex: 1;
  min-width: 0;
  color: var(--g-text);
  white-space: nowrap;
  overflow: hidden;
}

.hv-g-send {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  margin: -6px -8px -6px 8px;
  border-radius: 50%;
  background: #18181b;
  color: #fff;
}

.hv-g-send svg {
  width: 16px !important;
  height: 16px !important;
  color: #fff !important;
}

.hv-g-composer.hv-has-text .hv-g-placeholder,
.hv-g-composer.hv-has-text > svg,
.hv-g-composer:not(.hv-has-text) .hv-g-typed {
  display: none;
}

.hv-g-composer.hv-has-text .hv-g-send {
  display: flex;
}

.hv-g-send.hv-hover {
  background: #3f3f46;
}

/* Before the question is asked, the chat shows its suggestions; afterwards, the conversation
   and the follow-up suggestions. */
.hv-g-q,
.hv-preview.hv-asked .hv-g-a-welcome,
.hv-preview.hv-asked .hv-g-tools,
.hv-preview:not(.hv-typing) .hv-g-typing,
.hv-preview:not(.hv-answered) .hv-g-answer,
.hv-preview.hv-asked .hv-g-first,
.hv-preview:not(.hv-answered) .hv-g-next {
  display: none;
}

.hv-preview.hv-answered .hv-g-answer,
.hv-preview.hv-answered .hv-g-next {
  animation: hv-appear 220ms ease-out;
}

/* The change log fits the window: cells wrap instead of scrolling sideways. */
.hv-stage [data-page="changelog"] ._table_17m1q_1 {
  min-width: 0;
}

.hv-stage [data-page="changelog"] ._table_17m1q_1 th,
.hv-stage [data-page="changelog"] ._table_17m1q_1 td {
  white-space: normal;
}

.hv-stage [data-page="changelog"] ._controlCell_17m1q_79,
.hv-stage [data-page="changelog"] ._entityCell_17m1q_40,
.hv-stage [data-page="changelog"] .hv-nowrap {
  white-space: nowrap;
}

.hv-stage [data-page="changelog"] ._entityCell_17m1q_40 {
  max-width: none;
}

/* ---------- File dialog: a compact chooser that opens beside the paperclip ---------- */

.hv-picker {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 66;
  box-sizing: border-box;
  width: 360px;
  padding: 14px 14px 12px;
  border: 1px solid #dcdce0;
  border-radius: 12px;
  background: #fff;
  color: #1d1d21;
  font: 13px/1.35 "Inter Variable", Inter, system-ui, sans-serif;
  box-shadow: 0 10px 28px rgba(20, 20, 24, 0.14), 0 2px 6px rgba(20, 20, 24, 0.08);
  opacity: 0;
  visibility: hidden;
  translate: 0 6px;
  transition:
    opacity 180ms ease,
    translate 180ms ease,
    visibility 0s linear 180ms;
}

.hv-picker.hv-on {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition:
    opacity 180ms ease,
    translate 180ms ease;
}

.hv-picker-title {
  margin: 0 2px 10px;
  font-weight: 600;
}

.hv-picker-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #ececef;
}

.hv-picker-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 8px;
  border-radius: 6px;
}

.hv-picker-list li svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: #6b6b72;
}

.hv-picker-list li span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hv-picker-list li small {
  color: #6b6b72;
  font-size: 12px;
}

.hv-picker-list li.hv-selected {
  background: #26262b;
  color: #fff;
}

.hv-picker-list li.hv-selected svg,
.hv-picker-list li.hv-selected small {
  color: #d4d4d8;
}

.hv-picker-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.hv-picker-actions span {
  padding: 6px 12px;
  border: 1px solid #dcdce0;
  border-radius: 8px;
}

.hv-picker-actions .hv-picker-open {
  border-color: #26262b;
  background: #26262b;
  color: #fff;
}

/* A new conversation for publishing shows the welcome again until it is sent. */
.hv-app.hv-new-chat-2:not(.hv-sent-4) [data-hv="welcome"] {
  display: block;
}

.hv-app.hv-new-chat-2 [data-hv="thread-3"] {
  display: none;
}
