:root {
  --brand: #0B0B0B;
  --black: #000;
  --blue: #1D5CFE;
  --brand-blue: #3567ff;
  --brand-blue-soft: #9ab3ff;
  --blue-gradient-start: #0762f0;
  --blue-gradient-end: #328ef0;
  --blue-gradient-start-soft: rgba(7, 98, 240, 0.5);
  --blue-gradient-end-soft: rgba(50, 142, 240, 0.5);
  --blue-tint: #EDF2FF;
  --blue-tint-strong: #E8EFFF;
  --blue-disabled: rgba(29, 92, 254, 0.5);
  --focus-blue: #3464e0;
  --focus-ring: #c8d7ff;
  --spinner-ring: #bfe1ff;
  --brand-light: #ebf0fc;
  --purple: #8833FF;
  --purple-transparent: rgba(136, 51, 255, 0);
  --purple-accent: #6543e1;
  --match-border: #F0ECFE;
  --match-bg-start: #efebfe;
  --success: #00a86b;
  --success-bg: #e9f9f1;
  --rating: #ffad5c;
  --danger: #f04438;
  --red: #f81d22;
  --text: rgba(0, 0, 0, 0.9);
  --secondary: rgba(0, 0, 0, 0.7);
  --muted: rgba(0, 0, 0, 0.4);
  --line: #e7e7e7;
  --line-light: #eee;
  --border-soft: #e2e2e2;
  --gray-300: #D4D4D4;
  --gray-500: #999;
  --border: #dcdcdc;
  --surface: #ffffff;
  --white: var(--surface);
  --page-surface: #fcfcfc;
  --bg: #F8F8F8;
  --soft: #f3f3f3;
  --soft-panel: #f5f5f5;
  --grid-line: #dbe6f5;
  --hash-placeholder: #d6e0f9;
  --shadow-hairline: rgba(0, 0, 0, 0.02);
  --shadow-subtle: rgba(0, 0, 0, 0.04);
  --shadow-low: rgba(0, 0, 0, 0.05);
  --shadow-card: rgba(0, 0, 0, 0.06);
  --shadow-popover: rgba(0, 0, 0, 0.1);
  --shadow-soft: rgba(0, 0, 0, 0.08);
  --overlay-muted: var(--muted);
  --overlay-light: rgba(0, 0, 0, 0.2);
  --loader-dark: #3a3e63;
  --loader-red: #e64b68;
  --loader-green: #42b883;
  --loader-muted: #9ca3b7;
  --loader-mint: #9fdac9;
  --avatar-dark: #191a19;
  --avatar-rose: #fa6b8f;
  --avatar-outline: #d9d9d9;
  --bubble-surface: rgba(255, 255, 255, 0.8);
  --violet-glow: rgba(101, 67, 225, 0.08);
  --font-xxs: 10px;
  --font-xs: 12px;
  --font-sm: 13px;
  --font-md: 14px;
  --font-base: 16px;
  --font-lg: 18px;
  --font-title: 20px;
  --font-bubble: 30px;
  --font-hero: 36px;
  --line-none: 1;
  --line-compact: 12px;
  --line-tight: 16px;
  --line-sm: 20px;
  --line-md: 22px;
  --line-lg: 24px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-3xl: 20px;
  --radius-control: 30px;
  --radius-pill: 999px;
  --radius-round: 50%;
  --space-0: 0;
  --space-hairline: 1px;
  --space-xxs: 2px;
  --space-xs: 4px;
  --space-sm: 6px;
  --space-md: 8px;
  --space-lg: 10px;
  --space-xl: 12px;
  --space-2xl: 16px;
  --space-3xl: 20px;
  --space-control-y: 5px;
  --shadow-hover: 0px 4px 8px var(--shadow-subtle);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: var(--font-base);
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

button,
textarea,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.home-view {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 40% -18%, rgba(216, 245, 230, 0.7), transparent 32%),
    radial-gradient(circle at 23% 0%, rgba(218, 239, 255, 0.9), transparent 32%),
    var(--page-surface);
}

.soft-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 200px 200px;
}

.home-footer-links {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  transform: translateX(-50%);
}

.home-credit,
.home-old-link {
  color: var(--muted);
  font-size: var(--font-xs);
  line-height: var(--line-sm);
  text-align: center;
  text-decoration: none;
}

.home-old-link {
  padding: var(--space-0) var(--space-xs);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.home-credit:hover,
.home-old-link:hover {
  color: var(--blue);
}

.top-actions {
  position: absolute;
  top: 13px;
  right: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.icon-button,
.back-button,
.more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  background: transparent;
}

.icon-button {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  font-size: var(--font-title);
}

.icon-button:hover,
.back-button:hover,
.more-button:hover {
  background: var(--line);
}

.home-panel {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100vw - 32px));
  margin: 0 auto;
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.headline {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--font-hero);
  font-weight: 500;
  line-height: 44px;
  white-space: nowrap;
}

.headline strong {
  color: var(--brand-blue);
  background: linear-gradient(
    120deg,
    var(--brand-blue) 0%,
    var(--brand-blue) 35%,
    var(--brand-blue-soft) 50%,
    var(--brand-blue) 65%,
    var(--brand-blue) 100%
  );
  background-size: 150% auto;
  background-position: 150% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 700;
  animation: brand-light-wave 7s linear infinite;
}

.subtitle {
  margin: 42px 0 14px 4px;
  overflow: hidden;
  font-size: var(--font-title);
  font-weight: 600;
  line-height: 28px;
  white-space: nowrap;
}

.subtitle-typing {
  width: 0;
  animation: subtitle-type 1.35s steps(var(--subtitle-steps), end) 420ms forwards;
}

.subtitle-static {
  width: calc(var(--subtitle-chars) * 1em);
}

.mascot {
  position: absolute;
  top: -72px;
  right: 32px;
  z-index: 3;
  width: 155px;
  height: 94px;
  pointer-events: none;
}

.mascot-tip {
  position: absolute;
  left: 76px;
  bottom: calc(100% + 20px);
  z-index: 4;
  min-width: 68px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 28px var(--shadow-soft);
  color: var(--text);
  font-size: var(--font-xs);
  font-weight: 600;
  line-height: var(--line-sm);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  animation: mascot-tip-cycle 11.2s cubic-bezier(0.18, 1.35, 0.28, 1) infinite;
}

.mascot-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--white);
  transform: translateX(-50%) rotate(45deg);
}

.mascot-tip span {
  position: absolute;
  inset: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  opacity: 0;
  animation: mascot-tip-text 22.4s step-end infinite;
}

.mascot-tip span:first-child {
  animation-delay: 0s;
}

.mascot-tip span:last-child {
  animation-delay: 11.2s;
}

.mascot-lottie img,
.mascot-lottie svg {
  position: absolute;
  inset: 0;
  width: 155px;
  height: 94px;
}

.mascot-lottie img {
  object-fit: contain;
}

.mascot-lottie svg {
  overflow: visible;
}

.mascot-wink-cover {
  fill: var(--avatar-dark);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: mascot-wink-cover 5s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

.mascot-wink-line {
  fill: none;
  stroke: var(--white);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  animation: mascot-wink-line 5s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

.mascot-wink-lash {
  stroke-width: 1.35;
}

.mascot-heart {
  fill: var(--avatar-rose);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: mascot-heart-pop 5s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

.input-card {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  height: 160px;
  padding: 16px 16px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: var(--surface);
  box-shadow: 0px 10px 28px var(--shadow-card);
}

.input-card::before,
.followup-card::before,
.agent-task-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 200px;
  height: 1px;
  opacity: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--purple-transparent) 0%, var(--purple) 50%, var(--purple-transparent) 100%);
  transition: opacity 260ms ease;
  pointer-events: none;
  clip-path: inset(0);
}

.input-card::after,
.followup-card::after,
.agent-task-item.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 200px;
  height: 1px;
  opacity: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--purple-transparent) 0%, var(--purple) 50%, var(--purple-transparent) 100%);
  transition: opacity 260ms ease;
  pointer-events: none;
  clip-path: inset(0);
}

.input-card:focus-within::before,
.followup-card:focus-within::before,
.agent-task-item.active::before {
  opacity: 1;
  animation: flow-top-line 3.6s ease-in-out infinite;
}

.input-card:focus-within::after,
.followup-card:focus-within::after,
.agent-task-item.active::after {
  opacity: 1;
  animation: flow-bottom-line 3.6s ease-in-out infinite;
}

.input-card.focused {
  border-color: var(--border);
}

.input-card textarea {
  width: 100%;
  flex: 1;
  resize: none;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: var(--font-md);
  line-height: var(--line-md);
}

.home-placeholder {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 1;
  height: 22px;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--font-md);
  line-height: var(--line-md);
  pointer-events: none;
}

.input-card.has-content .home-placeholder {
  display: none;
}

.home-placeholder span {
  position: absolute;
  inset: 0 auto auto 0;
  max-width: 100%;
  opacity: 0;
  white-space: nowrap;
  animation: home-placeholder-cycle 12s ease-in-out infinite;
  animation-delay: calc(var(--placeholder-index) * 4s);
}

.input-card textarea.has-hash-token {
  color: var(--text);
  caret-color: var(--text);
}

.input-card textarea::placeholder,
.answer-input::placeholder {
  color: var(--muted);
}

.hash-job-picker {
  position: absolute;
  top: calc(var(--hash-picker-y, 16px) - 3px);
  left: var(--hash-picker-x, 16px);
  z-index: 8;
  min-width: 140px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  pointer-events: auto;
}

.hash-job-token {
  width: 140px;
  min-width: 140px;
  max-width: 200px;
  display: flex;
  align-items: center;
  gap: var(--space-xxs);
  padding: var(--space-xxs) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--brand-light);
}

.hash-job-selected {
  position: absolute;
  top: calc(var(--hash-picker-y, 16px) - 3px);
  left: var(--hash-picker-x, 16px);
  z-index: 7;
  display: inline-flex;
  max-width: 200px;
  align-items: center;
  padding: var(--space-xxs) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--blue);
  background: var(--brand-light);
  font-size: var(--font-md);
  line-height: var(--line-md);
  vertical-align: top;
  pointer-events: none;
}

.hash-job-selected span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hash-job-token input {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  border: 0;
  outline: 0;
  color: var(--hash-placeholder);
  background: transparent;
  font-size: var(--font-md);
  line-height: var(--line-md);
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-word;
  caret-color: var(--brand);
}

.hash-job-token input::placeholder {
  color: var(--hash-placeholder);
}

.hash-job-picker.has-query .hash-job-token input {
  color: var(--blue);
}

.hash-job-menu {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-xxs);
  padding: 8px 0;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 2px 12px 16px var(--shadow-popover);
}

.hash-job-option {
  width: 100%;
  min-height: 28px;
  padding: var(--space-xs) var(--space-2xl);
  color: var(--text);
  background: transparent;
  font-size: var(--font-xs);
  line-height: var(--line-sm);
  text-align: left;
  word-break: break-word;
}

.hash-job-option:hover {
  background: var(--bg);
}

.hash-job-menu .hash-job-option span {
  color: var(--red);
}

.input-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.left-tools,
.right-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.left-tools {
  gap: var(--space-xs);
}

.segment {
  position: relative;
  display: flex;
  gap: var(--space-xxs);
  padding: 2px;
  border-radius: var(--radius-3xl);
  background: var(--soft);
}

.segment::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 44px;
  height: calc(100% - 4px);
  border-radius: var(--radius-control);
  background: var(--brand);
  transform: translateX(calc(var(--segment-index, 0) * 46px));
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), background 180ms ease;
  will-change: transform;
}

.segment[data-active="0"] {
  --segment-index: 0;
}

.segment[data-active="1"] {
  --segment-index: 1;
}

.segment button {
  position: relative;
  z-index: 1;
  min-width: 44px;
  padding: 3px 10px;
  border-radius: var(--radius-control);
  color: var(--secondary);
  background: transparent;
  font-size: var(--font-xs);
  line-height: var(--line-sm);
  transition: color 180ms ease, font-weight 180ms ease;
}

.segment button.active {
  color: var(--white);
  font-weight: 600;
}

.mode-button {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  height: 28px;
  padding: 4px 12px;
  border-radius: var(--radius-3xl);
  background: transparent;
  color: var(--text);
  font-size: var(--font-xs);
  line-height: var(--line-sm);
}

.mode-button.open,
.mode-button:hover {
  background: var(--soft);
}

.mode-button .iconfont {
  display: inline-flex;
  width: 12px;
  height: 12px;
  align-items: center;
  justify-content: center;
  font-size: var(--font-xs);
  line-height: var(--line-none);
}
.icon-confirm{
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  font-size: var(--font-md);
  line-height: var(--line-none);
  color: var(--brand);
}
.send-button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-round);
  color: var(--white);
  background: linear-gradient(194deg, var(--blue-gradient-start-soft), var(--blue-gradient-end-soft));
  transition: background 220ms ease;
}

.send-button .iconfont {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--font-md);
  line-height: var(--line-none);
}

.top-actions .icon-button .iconfont {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  font-size: var(--font-lg);
  line-height: var(--line-none);
}

.dropdown-item.config .iconfont {
  display: inline-flex;
  width: 12px;
  height: 12px;
  align-items: center;
  justify-content: center;
  font-size: var(--font-xs);
  line-height: var(--line-none);
}

.send-button:hover,
.send-button-active {
  background: linear-gradient(194deg, var(--blue-gradient-start), var(--blue-gradient-end));
}


.dropdown {
  position: absolute;
  top: 32px;
  left: 68px;
  z-index: 10;
  width: 180px;
  padding: 8px 0px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 2px 12px 32px var(--shadow-popover);
  transform-origin: 36px 0;
  animation: dropdown-pop 260ms cubic-bezier(0.18, 0.9, 0.22, 1.22) both;
  will-change: transform, opacity;
}

.dropdown-title {
  padding: 1px 12px;
  color: var(--muted);
  font-size: var(--font-xs);
  line-height: var(--line-lg);
}

.dropdown-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-2xl);
  color: var(--secondary);
  background: var(--white);
  font-size: var(--font-xs);
  line-height: var(--line-sm);
  text-align: left;
}

.dropdown-item:hover {
  background: var(--soft);
  color: var(--brand);
}

.dropdown-item b {
  color: var(--brand);
}

.dropdown-item:has(b) span {
  color: var(--brand);
}

.dropdown-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-sm);
}

.dropdown-label .iconfont {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: var(--font-md);
  line-height: var(--line-none);
}

.dropdown-item > .icon-confirm {
  color: var(--blue);
  font-size: var(--font-base);
}

.dropdown-label-text {
  
}

.dropdown-item.config {
  justify-content: flex-start;
}

.divider {
  height: 1px;
  margin: 4px 0;
  background: var(--line);
}

@keyframes dropdown-pop {
  0% {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }
  65% {
    opacity: 1;
    transform: translateY(2px) scale(1.015);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay-light);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px); /* 兼容Safari */
}

.automation-modal {
  position: relative;
  z-index: 1;
  width: min(800px, calc(100vw - 40px));
  height: min(600px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
  align-items: stretch;
  padding: 22px 20px 20px;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  background: var(--white);
  box-shadow: 0 6px 15px var(--shadow-low), 0 8px 5px var(--shadow-soft);
  animation: modal-rise 260ms ease-out both;
}

.image-preview-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.image-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: var(--overlay-light);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.image-preview-modal {
  position: relative;
  z-index: 1;
  max-width: min(860px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: var(--space-xl);
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: 0 6px 15px var(--shadow-low), 0 8px 5px var(--shadow-soft);
  animation: modal-rise 220ms ease-out both;
}

.image-preview-modal img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.image-preview-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-round);
  color: var(--secondary);
  background: var(--white);
  cursor: pointer;
}

.image-preview-close:hover {
  color: var(--blue);
}

.automation-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-2xl);
}

.automation-pages {
  width: 200%;
  height: 100%;
  display: flex;
  min-height: 0;
  overflow: hidden;
  transform: translateX(0);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.automation-modal.show-create .automation-pages {
  transform: translateX(-50%);
}

.automation-page {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
  align-items: flex-end;
  flex: 0 0 50%;
  max-width: 50%;
  min-width: 0;
  min-height: 0;
}

.automation-header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  padding: 0;
  border: 0;
}

.automation-header h2 {
  margin: 0;
  color: var(--text);
  font-size: var(--font-base);
  font-weight: 600;
  line-height: var(--line-lg);
}

.modal-close {
  position: relative;
  width: 14px;
  height: 14px;
  background: transparent;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--overlay-muted);
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.automation-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-xl);
  min-height: 0;
  align-items: center;
}

.automation-toggle-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  justify-content: center;
  padding: var(--space-xl);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-xl);
  background: var(--white);
  transition: box-shadow 160ms ease;
}

.automation-toggle-item:hover {
  box-shadow: var(--shadow-hover);
}

.automation-toggle-item.compact {
  min-height: 48px;
}

.automation-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3xl);
}

.automation-item-head strong {
  color: var(--text);
  font-size: var(--font-sm);
  font-weight: 600;
  line-height: var(--line-md);
}

.automation-toggle-item p {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: var(--font-xs);
  line-height: var(--line-sm);
}

.automation-switch {
  position: relative;
  width: 32px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: var(--radius-xl);
  background: var(--gray-300);
  transition: background 160ms ease;
}

.automation-switch.checked {
  background: var(--blue);
}

.automation-switch.disabled.checked {
  background: var(--blue-disabled);
}

.automation-switch span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-round);
  background: var(--white);
  box-shadow: 0 1px 2px var(--shadow-popover);
  transition: left 160ms ease, right 160ms ease, width 160ms ease, height 160ms ease, top 160ms ease;
}

.automation-switch.checked span {
  top: 2.5px;
  right: 2.5px;
  left: auto;
  width: 15px;
  height: 15px;
}

.create-flow-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 7px 20px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-lg);
  color: var(--brand);
  background: var(--bg);
  font-size: var(--font-sm);
  font-weight: 600;
  line-height: var(--line-md);
}

.create-flow-button .iconfont {
  font-size: var(--font-base);
}

.automation-title-row {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: var(--space-xl);
}

.automation-title-row h2 {
  color: var(--muted);
}

.automation-name-input {
  width: min(280px, 100%);
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--muted);
  background: transparent;
  font-size: var(--font-base);
  font-weight: 600;
  line-height: var(--line-lg);
}

.automation-name-input:focus {
  color: var(--text);
}

.automation-back {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: transparent;
}

.automation-back .iconfont {
  font-size: var(--font-base);
}

.flow-builder {
  width: 100%;
  flex: 1;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius-2xl);
  background: var(--soft-panel);
}

.automation-create-footer {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2xl);
}

.flow-scroll {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.flow-step {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  justify-content: center;
  padding: var(--space-xl);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-xl);
  background: var(--white);
  transition: box-shadow 160ms ease;
}

.flow-step:hover {
  box-shadow: var(--shadow-hover);
}

.flow-step-head {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.flow-step-head strong {
  color: var(--text);
  font-size: var(--font-sm);
  font-weight: 600;
  line-height: var(--line-md);
}

.flow-step-head button {
  margin-left: auto;
  color: var(--blue);
  background: transparent;
  font-size: var(--font-sm);
  line-height: var(--line-md);
}

.flow-step-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--step-color, var(--blue));
}

.flow-step-icon .iconfont {
  font-size: var(--font-md);
  line-height: var(--line-none);
}

.flow-input-line {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: 8px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--soft-panel);
}

.flow-input-line i {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: var(--font-xs);
  line-height: var(--line-none);
}

.flow-input-line:focus-within {
  border-color: var(--focus-blue);
}

.flow-input-line input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: var(--font-xs);
  line-height: var(--line-sm);
}

.flow-input-line input::placeholder {
  color: var(--muted);
}

.flow-connector {
  width: 22px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-connector span {
  width: 2px;
  height: 12px;
  background: var(--gray-300);
}

.flow-connector span:last-child {
  height: 16px;
}

.flow-connector button {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-round);
  background: transparent;
  transition: background 160ms ease, color 160ms ease;
}

.flow-connector .iconfont {
  font-size: var(--font-title);
  color: var(--gray-300);
}

.flow-connector button:hover {
  background: var(--white);
}

.flow-connector button:hover .iconfont {
  color:var(--brand);
}

.fast-view {
  --left-column-width: 20vw;
  --left-gutter: 20px;
  --column-gap: var(--space-3xl);
  position: relative;
  min-height: 100vh;
  background: var(--bg);
}

.app-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  display: flex;
  align-items: center;
  padding: 13px 16px 13px 10px;
  background: var(--bg);
}

.back-button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  border-radius: var(--radius-lg);
  font-size: var(--font-base);
  line-height: var(--line-none);
}

.back-button .iconfont {
  font-size: var(--font-base);
  line-height: var(--line-none);
}

.header-title-group {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
}

.app-header h1 {
  margin: 0;
  font-size: var(--font-base);
  font-weight: 600;
  line-height: var(--line-lg);
  white-space: nowrap; 
  overflow: hidden; 
}

.mode-tag {
  flex: 0 0 auto;
  padding: var(--space-0) var(--space-sm);
  border-radius: var(--radius-sm);
  background: var(--blue-tint-strong);
  color: var(--blue);
  font-size: var(--font-xs);
  line-height: var(--line-sm);
}

.chat-column {
  position: absolute;
  left: var(--left-gutter);
  top: 58px;
  bottom: 190px;
  width: var(--left-column-width);
  padding-bottom: 2px;
  overflow: auto;
}

.chat-column,
.candidate-stream,
.profile-confirm-card dl,
.question-card,
.flow-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat-column::-webkit-scrollbar,
.candidate-stream::-webkit-scrollbar,
.profile-confirm-card dl::-webkit-scrollbar,
.question-card::-webkit-scrollbar,
.flow-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.phase-questions .chat-column {
  bottom: 190px;
}

.phase-profile .chat-column {
  bottom: 190px;
}

.phase-profileTyping .chat-column {
  bottom: 190px;
}

.phase-resultsLoading .chat-column {
  bottom: 152px;
}

.phase-results .chat-column {
  bottom: 152px;
}

.phase-agentProfile .chat-column,
.phase-agentResumeConfirm .chat-column,
.phase-agentInviteConfirm .chat-column {
  bottom: 280px;
}

.phase-agentProfile .profile-confirm-card:not(.profile-summary-card),
.phase-agentResumeConfirm .agent-resume-confirm-card,
.phase-agentInviteConfirm .agent-resume-confirm-card {
  animation-delay: 950ms;
}

.bubble {
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  padding: 8px 12px;
  border-radius: var(--radius-xl);
  background:  var(--line);
  font-size: var(--font-sm);
  line-height: var(--line-md);
}

.assistant-copy {
  margin-top: 20px;
  font-size: var(--font-sm);
  line-height: var(--line-md);
}

.typewriter-fast {
  min-height: 88px;
  white-space: pre-line;
}

.chat-column-results {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.chat-column-results .assistant-copy {
  margin-top: 0;
}

.agent-chat {
  bottom: 174px;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.agent-chat .assistant-copy {
  margin-top: 10px;
}

.agent-task-item {
  width: max-content;
  max-width: 100%;
  padding: var(--space-xl);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
}

.agent-task-item.open {
  position: relative;
  width: 100%;
  overflow: visible;
}

.agent-task-head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-xs);
  line-height: var(--line-sm);
}

.agent-task-head[data-agent-task-toggle] {
  cursor: pointer;
}

.agent-task-head strong {
  font-weight: 600;
}

.agent-task-head .icon-chevron-down {
  color: var(--muted);
  font-size: var(--font-base);
  transition: transform 160ms ease;
}

.agent-task-item.open .agent-task-head .icon-chevron-down {
  transform: rotate(180deg);
}

.agent-task-check {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-round);
  background: var(--line-light);
  color: var(--gray-500);
  font-size: var(--font-xxs);
}

.agent-task-check .iconfont {
  font-size: var(--font-xxs);
  line-height: var(--line-none);
  color: var(--text);
}

.agent-task-check.pending .iconfont::before {
  font-size: var(--font-xs);
  line-height: var(--line-compact);
}

.agent-task-detail {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  padding-top: 12px;
  font-size: var(--font-sm);
  line-height: var(--line-md);
}

.agent-task-detail p {
  width: 100%;
  margin: 0;
  white-space: normal;
}

.agent-task-detail button {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xxs) var(--space-md);
  border-radius: 70px;
  background: var(--soft-panel);
  color: var(--text);
  font-size: var(--font-xs);
  line-height: var(--line-sm);
  white-space: nowrap;
}
.agent-task-detail .icon-chevron-right {
  font-size: var(--font-xs);
  color: var(--muted);
}

.agent-task-detail .icon-icon-phone {
  width: 14px;
  flex: 0 0 14px;
  font-size: var(--font-md);
  font-weight: 400;
}

.agent-task-detail button.pending {
  color: var(--muted);
}

.agent-task-detail button.pending .iconfont {
  color: var(--muted);
  opacity: 0.65;
}

.agent-task-detail .iconfont {
  font-size: var(--font-md);
}

.agent-task-detail button .iconfont.icon-chevron-down {
  width: 12px;
  height: 12px;
  font-size: var(--font-xs);
  line-height: var(--line-compact);
}

.agent-task-detail button .iconfont.icon-chevron-down::before {
  font-size: var(--font-xs);
  line-height: var(--line-compact);
}

.mini-loading {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  box-sizing: border-box;
  border: 2px solid var(--focus-ring);
  border-top-color: var(--blue);
  border-radius: var(--radius-round);
  animation: spin 1s linear infinite;
}

.answer-bubble {
  display: flex;
  flex-direction: column;
  gap: var(--space-xxs);
  max-width: 300px;
}

.answer-bubble p {
  margin: 0;
}

.qa-answer-card,
.profile-confirm-card {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
}

.qa-answer-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: var(--font-sm);
  line-height: var(--line-sm);
}

.qa-answer-card p {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: var(--font-sm);
  line-height: var(--line-sm);
}

.qa-answer-card p:last-child {
  margin-bottom: 0;
}

.result-copy {
  Font-size:13px;
  color: var(--text);
}

.asked-summary {
  color: var(--muted);
  font-size: var(--font-sm);
  line-height: var(--line-md);
}

.matched-entry {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px 14px;
  border: 1px solid var(--blue);
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, var(--blue-tint) 0%, var(--white) 50%, var(--white) 100%);
}

.matched-entry strong {
  font-size: var(--font-sm);
  line-height: var(--line-md);
}

.matched-entry p {
  margin: 0px 0 0;
  color: var(--secondary);
  font-size: var(--font-xs);
  line-height: var(--line-sm);
}

.matched-entry > .iconfont {
  margin-left: auto;
  color: var(--brand);
}

.invite-entry {
  padding: 10px 16px 10px 12px;
}

.matched-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.matched-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.complete-status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--muted);
  font-size: var(--font-sm);
  line-height: var(--line-md);
}

.complete-status span {
  width: 14px;
  height: 14px;
  border: 2px solid var(--spinner-ring);
  border-top-color: var(--brand);
  border-radius: var(--radius-round);
}

.waiting {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--muted);
  font-size: var(--font-sm);
  line-height: var(--line-md);
}

.waiting span {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: var(--radius-round);
  animation: spin 1s linear infinite;
}

.agent-stage-confirm {
  margin-top: 4px;
  color: var(--text);
  font-size: var(--font-sm);
  line-height: var(--line-md);
  animation: soft-wait-in 240ms ease-out both;
}

.agent-stage-waiting {
  animation: soft-wait-in 260ms ease-out 120ms both;
}

.agent-stage-waiting.agent-cancelled {
  color: var(--muted);
}

.agent-stage-waiting.agent-cancelled span {
  border-color: var(--line);
  border-top-color: var(--line);
  animation: none;
}

.phase-questions .waiting,
.phase-profile .waiting {
  opacity: 0;
  animation: soft-wait-in 260ms ease-out 780ms forwards;
}

.question-card,
.profile-confirm-card:not(.profile-summary-card),
.agent-resume-confirm-card {
  position: absolute;
  left: var(--left-gutter);
  bottom: 20px;
  z-index: 2;
  width: var(--left-column-width);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-xl);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 4px 5px var(--shadow-subtle);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  animation: confirm-card-bounce 520ms cubic-bezier(0.2, 1.38, 0.34, 1) 500ms forwards;
}

.question-card {
  height: 250px;
}

.profile-confirm-card {
  max-height: 240px;
}

.agent-resume-confirm-card {
  gap: var(--space-xs);
  max-height: 240px;
  padding: var(--space-xl);
}

.agent-resume-confirm-card h2 {
  margin: 0 0 4px 0;
  font-size: var(--font-sm);
  line-height: var(--line-md);
}

.agent-resume-list {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: var(--space-sm);
  overflow: auto;
}

.agent-resume-list {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.agent-resume-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.agent-resume-row {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 6px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
  font-size: var(--font-xs);
  line-height: var(--line-sm);
  white-space: nowrap;
  transition: box-shadow 160ms ease;
}

.agent-resume-row:hover {
  box-shadow: 0px 2px 6px var(--shadow-subtle);
}

.agent-resume-row strong {
  font-size: var(--font-sm);
  line-height: var(--line-md);
  margin-right: 8px;
  transition: color 160ms ease;
}

.agent-resume-row:hover strong {
  color: var(--brand);
}

.agent-resume-row span {
  display: inline-flex;
  align-items: center;
  color: var(--secondary);
  font-size: var(--font-xs);
}

.agent-resume-row span + span::before {
  content: "";
  width: 1px;
  height: 12px;
  margin: 0 4px;
  background: var(--line);
}

.agent-resume-remove {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  color: var(--secondary);
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: color 160ms ease, opacity 160ms ease;
}

.agent-resume-row:hover .agent-resume-remove {
  opacity: 1;
  pointer-events: auto;
}

.agent-resume-remove .iconfont {
  font-size: var(--font-xs);
  line-height: var(--line-none);
}

.agent-resume-remove:hover {
  color: var(--danger);
}

.profile-summary-card {
  position: static;
  width: 100%;
  max-height: none;
  align-items: stretch;
  gap: var(--space-md);
  padding: 14px 16px;
  text-align: left;
}

.profile-confirm-card h2 {
  margin: 0 0 4px 0;
  font-size: var(--font-sm);
  line-height: var(--line-md);
}

.profile-confirm-card dl {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: var(--space-xs);
  overflow: auto;
  margin: 0;
}

.profile-summary-card dl {
  overflow: visible;
}

.profile-confirm-card dl div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  font-size: var(--font-sm);
  line-height: var(--line-md);
}

.profile-summary-card dl div {
  align-items: start;
}

.profile-confirm-card dt {
  color: var(--secondary);
}

.profile-confirm-card dd {
  min-width: 0;
  margin: 0;
  color: var(—text);
}

.followup-card {
  position: absolute;
  left: var(--left-gutter);
  bottom: 20px;
  z-index: 1;
  width: var(--left-column-width);
  height: 128px;
  display: flex;
  flex-direction: column;
  padding: var(--space-xl);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0px 2px 8px var(--shadow-subtle);
}

.followup-card textarea {
  width: 100%;
  flex: 1;
  resize: none;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: var(--font-sm);
  line-height: var(--line-md);
}

.followup-card textarea::placeholder {
  color: var(--muted);
}

.agent-flow .followup-card {
  height: 128px;
  padding: var(--space-xl);
}

.agent-flow .followup-card .send-button {
  background: linear-gradient(194deg, var(--blue-gradient-start), var(--blue-gradient-end));
}

.followup-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.questions {
  flex: 1;
  overflow: auto;
}

.question-block + .question-block {
  margin-top: 12px;
}

.question-block h2 {
  margin: 0 0 6px;
  font-size: var(--font-xs);
  font-weight: 600;
  line-height: var(--line-sm);
}

.answer,
.answer-input {
  display: block;
  width: 100%;
  height: 28px;
  margin-top: 4px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--page-surface);
  color: var(--text);
  font-size: var(--font-xs);
  line-height: 18px;
  text-align: left;
  outline: 0;
}

.answer {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.answer b {
  font-weight: 400;
}

.answer.selected {
  border-color: var(--brand);
  background: var(--bg);
}

.answer-input {
  color: var(--text);
  transition: border-color 160ms ease;
}

.answer-input::placeholder {
  color: var(--muted);
}

.answer-input:focus {
  border-color: var(--black);
}

.answer-input.filled {
  border-color: var(--black);
}

.primary-pill {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-control-y) var(--space-2xl);
  border-radius: 80px;
  background: var(--brand);
  color: var(--white);
  font-size: var(--font-sm);
  font-weight: 600;
  line-height: var(--line-md);
}

.primary-pill.disabled {
  opacity: 0.45;
  cursor: default;
}

.question-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2xl);
}

.text-action {
  color: var(--secondary);
  background: transparent;
  font-size: var(--font-sm);
  line-height: var(--line-md);
}

.primary-pill .iconfont {
  color: var(--white);
  font-size: var(--font-xs);
  line-height: var(--line-none);
}

.result-panel {
  position: absolute;
  top: 58px;
  left: calc(var(--left-gutter) + var(--left-column-width) + var(--column-gap));
  right: 20px;
  bottom: 20px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 0 16px 1px var(--shadow-hairline);
}

.result-panel.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}

.result-panel.empty .loading-head {
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 48px;
}

.more-button {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  letter-spacing: 0;
}

.more-button .iconfont {
  font-size: var(--font-base);
  line-height: var(--line-none);
}

.result-panel .more-button {
  position: absolute;
  top: 8px;
  right: 12px;
}

.loader-stage {
  width: 96px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.loader-dots {
  width: 70px;
  height: 62px;
  display: grid;
  grid-template-columns: repeat(3, 14px);
  grid-template-rows: repeat(3, 14px);
  align-content: center;
  justify-content: center;
  gap: var(--space-lg);
  overflow: visible;
}

.loader-dots span {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-round);
  animation: pulse 1.35s infinite cubic-bezier(0.45, 0, 0.2, 1);
  transform-origin: center;
}

.loader-dots span:nth-child(1) { background: var(--loader-dark); animation-delay: 0s; }
.loader-dots span:nth-child(2) { background: var(--loader-dark); animation-delay: 0.1s; }
.loader-dots span:nth-child(3) { background: var(--loader-red); animation-delay: 0.2s; }
.loader-dots span:nth-child(4) { background: var(--loader-dark); animation-delay: 0.3s; }
.loader-dots span:nth-child(5) { background: var(--loader-dark); animation-delay: 0.4s; }
.loader-dots span:nth-child(6) { background: var(--loader-green); animation-delay: 0.5s; }
.loader-dots span:nth-child(7) { background: var(--loader-muted); animation-delay: 0.6s; }
.loader-dots span:nth-child(8) { background: var(--loader-dark); animation-delay: 0.7s; }
.loader-dots span:nth-child(9) { background: var(--loader-mint); animation-delay: 0.8s; }

.empty p {
  margin: 0;
  font-size: var(--font-md);
}

.results {
  display: flex;
  flex-direction: column;
  padding: 0 20px 12px;
}

.result-head {
   position: absolute;
  height: 48px;
  left:20px;
  right:20px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  backdrop-filter: saturate(180%) blur(6px);
  background: var(--bubble-surface);
  z-index: 2;
}

.result-head .more-button {
  top: 8px;
  right: -4px;
}

.result-head h2 {
  margin: 0;
  color: var(--text);
  font-size: var(--font-md);
  font-weight: 600;
  line-height: var(--line-md);
}

.candidate-stream {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: var(--space-md);
  overflow: auto;
  padding-bottom: 4px;
  padding-top:49px;
}

.candidate-card {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-width: 760px;
  padding: 16px;
  border: 1px solid var(--line);;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 2px 4px var(--shadow-hairline), inset 0px 0px 0px 1px var(--white);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}


.candidate-card:hover {
  box-shadow: 0px 4px 20px var(--shadow-card);
  transform: translateY(-1px);
}

.agent-resume-preview .candidate-card.reveal-new {
  animation: resume-card-reveal 360ms cubic-bezier(0.42, 0, 0.18, 1) both;
}

@keyframes resume-card-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.candidate-card.invite-card {
  cursor: default;
}


.invite-stream {
  gap: var(--space-md);
}

.invitation-resume-card {
  padding: 12px 20px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--blue-tint) 0%, var(--white) 16%, var(--white) 100%);
}

.invite-card-top {
  display: flex;
  height: 34px;
  align-items: flex-start;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--soft);
  font-size: var(--font-sm);
  line-height: var(--line-md);
}

.invite-card-top strong {
  width: 176px;
  font-size: var(--font-md);
  font-weight: 600;
  line-height: var(--line-md);
}

.meeting-id {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: 32px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.meeting-id img {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
}

.meeting-id span {
  transition: color 160ms ease;
}

.meeting-id:hover span,
.meeting-id:focus-visible span {
  color: var(--blue);
}

.invite-card-top div {
  display: flex;
  gap: var(--space-xl);
  margin-left: auto;
}

.invite-card-top button {
  color: var(--blue);
  background: transparent;
  font-size: var(--font-sm);
  line-height: var(--line-md);
}

.invite-card .candidate-body {
  padding-top: 12px;
}

.invite-card .candidate-summary {
  height: 42px;
}

.invite-card .candidate-actions {
  display: none;
}

.invite-card .candidate-tags {
  gap: var(--space-0);
}

.invite-card .candidate-tags-list {
  max-height: 48px;
}

.invite-card .viewed-tag-green {
  color: var(--text);
  background: var(--soft);
}

.candidate-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.candidate-summary {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.candidate-avatar {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}

.candidate-avatar img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xl);
  object-fit: cover;
}

.candidate-avatar span {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: flex;
  width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
  border: 0.2px solid var(--white);
  border-radius: var(--radius-sm);
  color: var(--blue);
  background: var(--white);
  line-height: var(--line-none);
}

.candidate-avatar .iconfont {
  color: var(--blue);
  font-size: var(--font-md);
}

.candidate-info {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.candidate-name-row,
.candidate-meta {
  display: flex;
  align-items: center;
}

.candidate-name-row {
  gap: var(--space-xl);
  height: 22px;
}

.candidate-name-row h3 {
  margin: 0;
  font-size: var(--font-md);
  font-weight: 600;
  line-height: var(--line-md);
}

.viewed-tag {
  padding: var(--space-0) var(--space-sm);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--soft);
  font-size: var(--font-xs);
  line-height: var(--line-sm);
}

.viewed-tag-green {
  color: var(--success);
  background: var(--success-bg);
}

.active-text {
  color: var(--success);
  font-size: var(--font-xs);
  line-height: var(--line-sm);
}

.candidate-meta {
  gap: var(--space-md);
  height: 20px;
  color: var(--text);
  font-size: var(--font-xs);
  line-height: var(--line-sm);
  padding-top: 2px;
}

.candidate-meta span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -2px;
  background: var(--line);
}

.recommend {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.radar-icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 22px;
  object-fit: contain;
}

.recommend i {
  width: 16px;
  height: 16px;
}

.rate {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 1px 8px;
  border-radius: 10px 0 10px 0;
  background: linear-gradient(90deg, var(--match-bg-start), var(--white));
  white-space: nowrap;
}

.rate span {
  color: var(--purple-accent);
  font-size: var(--font-xs);
  font-style: normal;
  line-height: var(--line-sm);
  white-space: nowrap;
}

.rate b {
  display: inline-flex;
  align-items: center;
  gap: var(--space-hairline);
  color: var(--rating);
  font-size: var(--font-base);
  line-height: var(--line-tight);
  white-space: nowrap;
}

.rate b .iconfont {
  color: var(--rating);
  font-size: var(--font-base);
  line-height: var(--line-tight);
}

.rate b .iconfont::before {
  font-size: var(--font-base);
  line-height: var(--line-tight);
}

.candidate-detail-grid {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.timeline {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: var(--space-hairline);
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 12px 120px minmax(0, 1fr);
  gap: var(--space-md);
  min-height: 22px;
  align-items: start;
  color: var(--text);
  font-size: var(--font-sm);
  line-height: var(--line-md);
}

.timeline-row:not(:nth-last-child(-n + 2))::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 5px;
  width: 1px;
  height: 12px;
  background: var(--avatar-outline);
}

.timeline-icon {
  display: flex;
  width: 12px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: var(--font-xs);
  line-height: var(--line-none);
}

.timeline-icon .iconfont {
  font-size: var(--font-xs);
  line-height: var(--line-none);
}

.timeline-row time {
  color: var(--muted);
  white-space: nowrap;
}

.timeline-row p {
  display: flex;
  min-width: 0;
  gap: var(--space-xs);
  align-items: center;
  margin: 0;
}

.timeline-row p span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-row p b {
  flex: 0 0 2px;
  width: 2px;
  height: 2px;
  border-radius: var(--radius-round);
  background: var(--gray-500);
}

.candidate-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 0 0 300px;
  gap: var(--space-md);
  overflow: hidden;
}

.candidate-tags-list {
  display: flex;
  max-height: 48px;
  align-content: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  overflow: hidden;
}

.candidate-tags-list span {
  padding: var(--space-0) var(--space-sm);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--soft);
  font-size: var(--font-xs);
  line-height: var(--line-sm);
  white-space: nowrap;
}

.candidate-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
  width: 100%;
}

.candidate-actions button {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-control-y) var(--space-2xl);
  background: var(--white);
  font-size: var(--font-sm);
  line-height: var(--line-md);
}

.interview-button {
  color: var(--blue);
  border-color: var(--blue) !important;
}
.interview-button:hover,
.candidate-card:hover .interview-button {
  background:var(--blue);
  color:var(--white);
}
.ai-invite-button:hover {
  border-color:var(--blue);
  color:var(--blue);
}
.resume-more-button:hover {
  border-color:var(--blue);
  color:var(--blue);
}
.ai-invite-button .iconfont {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  color: currentColor;
  font-size: var(--font-md);
  line-height: var(--line-none);
}

.resume-more-button {
  width: 32px;
  height: 32px;
  color: var(--muted);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resume-more-button .iconfont {
  color: currentColor;
}

.match-analysis {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-height: 36px;
  padding: 6px 16px 10px 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
  font-size: var(--font-sm);
  line-height: var(--line-md);
  border: 1px solid var(--match-border);
  box-shadow: inset 0px 0px 30px var(--violet-glow);
}

.analysis-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-sm);
}

.analysis-head .iconfont {
  color: var(--purple);
  font-size: var(--font-sm);
}

.analysis-evidence {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
}

.analysis-evidence span {
  padding: 0 6px;
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--text);
  font-size: var(--font-xs);
  line-height: var(--line-sm);
  white-space: nowrap;
}

.match-analysis strong {
  flex: 0 0 auto;
  font-weight: 600;
  white-space: nowrap;
  color: var(--purple);
  font-size: var(--font-xs);
}

.analysis-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-hairline);
  margin-left: auto;
  color: var(--rating);
  font-size: var(--font-base);
  line-height: var(--line-tight);
  white-space: nowrap;
}

.analysis-rating .iconfont {
  color: var(--rating);
  font-size: var(--font-base);
  line-height: var(--line-tight);
}

.analysis-rating .iconfont::before {
  font-size: var(--font-base);
  line-height: var(--line-tight);
}

.analysis-copy {
  min-width: 0;
  color: var(--text);
  white-space: normal;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes soft-wait-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes confirm-card-bounce {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  68% {
    opacity: 1;
    transform: translateY(-4px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes agent-detail-bounce {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }
  68% {
    opacity: 1;
    transform: translateY(1px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-placeholder-cycle {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  3%,
  30% {
    opacity: 1;
    transform: translateY(0);
  }
  33.33%,
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes mascot-tip-cycle {
  0%,
  44.64%,
  100% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  46.43%,
  48.21%,
  96.43% {
    opacity: 1;
    transform: translateY(0);
  }
  47.32% {
    opacity: 1;
    transform: translateY(-3px) scale(1.02);
  }
}

@keyframes mascot-tip-text {
  0%,
  49.99% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes brand-light-wave {
  0% {
    background-position: 150% center;
  }
  57.14%,
  100% {
    background-position: -50% center;
  }
}

@keyframes mascot-wink-cover {
  0%,
  52%,
  68%,
  100% {
    opacity: 0;
    transform: scale(1, 0.3);
  }
  58%,
  62% {
    opacity: 1;
    transform: scale(1.12, 1);
  }
}

@keyframes mascot-wink-line {
  0%,
  52%,
  68%,
  100% {
    opacity: 0;
  }
  58%,
  62% {
    opacity: 1;
  }
}

@keyframes mascot-heart-pop {
  0%,
  52%,
  68%,
  100% {
    opacity: 0;
    transform: translate(0, 0) rotate(-12deg) scale(0.65);
  }
  58% {
    opacity: 0.92;
    transform: translate(3px, -4px) rotate(-12deg) scale(1.15);
  }
  62% {
    opacity: 0.7;
    transform: translate(4px, -6px) rotate(-12deg) scale(0.9);
  }
}

@keyframes modal-rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.45;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes subtitle-type {
  from {
    width: 0;
  }
  to {
    width: calc(var(--subtitle-chars) * 1em);
  }
}

@keyframes flow-top-line {
  0% {
    left: 0;
    opacity: 0.18;
  }
  18%,
  82% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 200px);
    opacity: 0.18;
  }
}

@keyframes flow-bottom-line {
  0% {
    right: 0;
    opacity: 0.18;
  }
  18%,
  82% {
    opacity: 1;
  }
  100% {
    right: calc(100% - 200px);
    opacity: 0.18;
  }
}
@media (max-width: 1680px) {
  .fast-view {
    --left-column-width: max(20vw, 360px);
  }
}

@media (max-width: 1440px) {
  .fast-view {
    --left-column-width: max(20vw, 320px);
  }
}

@media (max-width: 1280px) {
  .fast-view {
    --left-column-width: max(20vw, 300px);
  }
}

@media (max-width: 900px) {
  .home-panel {
    padding-top: 18vh;
  }

  .headline {
    flex-wrap: wrap;
    font-size: var(--font-bubble);
    line-height: 38px;
  }


  .fast-view {
    min-height: 1120px;
  }

  .chat-column,
  .question-card,
  .profile-confirm-card:not(.profile-summary-card),
  .followup-card,
  .result-panel {
    position: static;
    width: calc(100% - 32px);
    margin: 0 16px 16px;
  }

  .chat-column {
    padding-top: 74px;
    height: auto;
  }

  .question-card,
  .profile-confirm-card:not(.profile-summary-card),
  .followup-card {
    height: auto;
  }

  .result-panel {
    min-height: 560px;
  }

  .candidate-layout {
    grid-template-columns: 1fr;
  }
}
