:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --soft: #f7f7f8;
  --soft-2: #f2f0fb;
  --line: #e2e2e5;
  --text: #111111;
  --muted: #6f6f76;
  --muted-2: #a5a5ad;
  --accent: #8d55d8;
  --accent-strong: #7440bf;
  --green: #0f8f69;
  --red: #b42318;
  --shadow: 0 8px 22px rgba(17, 17, 17, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans SC",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

svg {
  display: block;
}

.hidden {
  display: none !important;
}

.app-shell {
  display: grid;
  grid-template-columns: clamp(126px, 12vw, 188px) minmax(0, 1fr) clamp(210px, 19vw, 282px);
  column-gap: clamp(14px, 1.8vw, 26px);
  min-height: 100vh;
  padding: clamp(20px, 3vw, 38px) clamp(16px, 2.4vw, 30px) 22px clamp(18px, 3vw, 38px);
}

.sidebar {
  min-height: 0;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 13px);
}

.brand-mark {
  width: clamp(34px, 3.2vw, 44px);
  height: clamp(34px, 3.2vw, 44px);
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 12px rgba(141, 85, 216, 0.18));
}

.brand-name {
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 650;
  letter-spacing: 0;
}

.brand-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(12px, 1vw, 14px);
}

.status-dot {
  width: clamp(12px, 1.1vw, 16px);
  height: clamp(12px, 1.1vw, 16px);
  border-radius: 999px;
  border: 3px solid #77777d;
  background: #fff;
  box-shadow: inset 0 0 0 3px #fff;
}

.nav-rail {
  display: grid;
  gap: 10px;
  margin-top: clamp(28px, 3.4vw, 44px);
  width: min(100%, 188px);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: clamp(40px, 3.7vw, 50px);
  border: 0;
  border-radius: 10px;
  padding: clamp(9px, 1vw, 12px) clamp(12px, 1.4vw, 16px);
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1;
}

.nav-item.active {
  background: var(--soft);
  color: var(--text);
}

.nav-item.disabled {
  color: #c7c7cc;
}

.nav-icon {
  width: clamp(18px, 1.7vw, 24px);
  height: clamp(18px, 1.7vw, 24px);
  flex: 0 0 auto;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
}

.nav-sourcing {
  position: relative;
}

.running-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(15, 143, 105, 0.38);
  animation: runningPulse 1.25s ease-out infinite;
}

@keyframes runningPulse {
  70% {
    box-shadow: 0 0 0 9px rgba(15, 143, 105, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(15, 143, 105, 0);
  }
}

.main-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.3vw, 16px);
  overflow: hidden;
  padding-top: 0;
}

.card-count,
.lead-count {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft-2);
  color: #57308f;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.card-count,
.lead-count {
  min-width: 38px;
  justify-content: center;
}

.chat-log {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.7vw, 34px);
}

.message {
  max-width: min(920px, 100%);
  letter-spacing: 0;
}

.message.assistant {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.62;
  color: var(--text);
  overflow-wrap: anywhere;
}

.message.assistant.streaming {
  color: #4d4d55;
}

.message.assistant-rich {
  max-width: min(820px, 100%);
  line-height: 1.68;
}

.assistant-paragraph {
  margin: 0 0 12px;
}

.assistant-paragraph:last-child {
  margin-bottom: 0;
}

.assistant-paragraph.assistant-evidence,
.assistant-paragraph.assistant-caution,
.assistant-paragraph.assistant-question {
  padding-left: 12px;
  border-left: 2px solid rgba(91, 52, 150, 0.18);
}

.assistant-paragraph.assistant-evidence {
  color: #23202a;
}

.assistant-paragraph.assistant-caution {
  border-left-color: rgba(183, 91, 60, 0.28);
  color: #46322b;
}

.assistant-paragraph.assistant-question {
  border-left-color: rgba(91, 52, 150, 0.38);
  color: #3f286b;
  font-weight: 560;
}

.assistant-paragraph.assistant-list-item {
  padding-left: 16px;
  text-indent: -16px;
  margin-left: 4px;
}

.assistant-paragraph.assistant-heading {
  font-weight: 620;
  font-size: 1.02em;
  color: #1a1a2e;
  margin-top: 4px;
}

.term-chip {
  display: inline;
  border: 0;
  border-bottom: 1px dotted var(--accent-strong);
  border-radius: 0;
  padding: 0 1px;
  background: transparent;
  color: inherit;
  line-height: inherit;
}

.term-chip:hover,
.term-chip:focus-visible {
  color: var(--accent-strong);
  outline: none;
}

.term-popover {
  position: fixed;
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.55;
}

.term-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.term-popover-head strong {
  font-size: 15px;
}

.term-popover-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  line-height: 1;
}

.term-popover p {
  margin: 10px 0 8px;
}

.term-popover-note {
  color: var(--muted);
}

.term-popover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.term-popover-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 10px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
}

.typing-caret {
  display: inline-block;
  width: 7px;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: -0.18em;
  border-radius: 999px;
  background: var(--accent);
  animation: typingBlink 0.9s steps(2, start) infinite;
}

@keyframes typingBlink {
  50% {
    opacity: 0;
  }
}

.message.user {
  align-self: flex-end;
  max-width: clamp(190px, 22vw, 280px);
  padding: clamp(11px, 1.25vw, 16px) clamp(14px, 1.6vw, 22px);
  border-radius: clamp(14px, 1.4vw, 20px);
  background: var(--soft);
  color: var(--text);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.35;
}

.message.user.message-collapsible {
  max-width: min(720px, 82%);
}

.message-body {
  overflow-wrap: anywhere;
}

.message-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-top: 10px;
  border: 1px solid rgba(91, 52, 150, 0.18);
  border-radius: 7px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.72);
  color: #57308f;
  font-size: 12px;
  line-height: 1;
}

.message-toggle:hover,
.message-toggle:focus-visible {
  border-color: rgba(91, 52, 150, 0.34);
  outline: none;
}

.message-system {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft-2);
  color: #57308f;
  font-size: 12px;
}

.message pre {
  overflow: auto;
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.55;
}

.flow-panel {
  padding: 0;
}

.workspace-panel {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 0 0 18px;
}

.workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.workspace-head h2 {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.25;
}

.workspace-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.preference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.workspace-card,
.candidate-row,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.workspace-card {
  padding: 16px;
}

.workspace-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.candidate-list {
  display: grid;
  gap: 10px;
}

.candidate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.candidate-row-main {
  min-width: 0;
}

.candidate-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.candidate-row-title strong {
  font-size: 15px;
}

.candidate-row-title span,
.candidate-row-meta,
.candidate-row p {
  color: var(--muted);
  font-size: 12px;
}

.candidate-row-meta {
  margin-top: 5px;
}

.candidate-row p {
  margin: 8px 0 0;
  line-height: 1.55;
}

.empty-state {
  display: grid;
  gap: 8px;
  padding: 28px;
  color: var(--muted);
}

.empty-state strong {
  color: var(--text);
  font-size: 16px;
}

.flow-card {
  max-width: min(760px, 100%);
  padding: 0;
}

.flow-question {
  margin-top: 0;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--text);
}

.flow-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.6;
}

.flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.composer {
  padding: 0 0 10px;
}

.composer-input-box {
  border: 1px solid var(--line);
  border-radius: clamp(14px, 1.5vw, 20px);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.composer-input-box:focus-within {
  border-color: rgba(141, 85, 216, 0.45);
  box-shadow: 0 0 0 4px rgba(141, 85, 216, 0.09), var(--shadow);
}

.attachment-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px 0;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  max-width: min(100%, 260px);
  gap: 8px;
  padding: 6px 7px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  font-size: 12px;
}

.attachment-chip.is-error {
  border-color: rgba(196, 50, 50, 0.32);
  background: #fff7f7;
}

.attachment-preview {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
  color: #57308f;
}

.attachment-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-file-icon {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.attachment-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.attachment-name {
  max-width: 165px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.attachment-status {
  color: var(--muted);
}

.attachment-chip button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.composer-input-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  padding: 10px 12px;
}

.add-file-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
}

.add-file-btn svg {
  width: 18px;
  height: 18px;
}

.add-file-btn:hover,
.add-file-btn:focus-visible {
  border-color: rgba(141, 85, 216, 0.42);
  color: #57308f;
  outline: none;
}

.composer textarea {
  width: 100%;
  min-height: clamp(58px, 6vw, 82px);
  resize: vertical;
  border: 0;
  border-radius: 0;
  padding: 6px 0;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.45;
  box-shadow: none;
}

.composer textarea::placeholder {
  color: #7f7f86;
}

.composer textarea:focus {
  box-shadow: none;
}

.composer textarea[readonly] {
  background: #fafafa;
  color: #6f6f76;
}

.driver-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f4f4f6;
  color: #6a6a72;
  font-size: 11px;
  line-height: 1.5;
}

.driver-status.is-llm {
  background: #eef7f1;
  color: #2e7443;
}

.driver-status.is-rules {
  background: #fff4e7;
  color: #95621a;
}

.composer-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.prompt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.pill-btn,
.secondary-btn,
.icon-btn,
.send-btn,
.mini-action {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.pill-btn {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft-2);
  color: #57308f;
  font-size: clamp(12px, 0.95vw, 14px);
}

.pill-btn-primary {
  background: #57308f;
  color: #fff;
  font-weight: 560;
}

.pill-role {
  background: #57308f;
  color: #fff;
  font-weight: 560;
  font-size: clamp(13px, 1vw, 15px);
}

.pill-btn-primary:hover {
  background: #6b3da8;
}

.icon-btn,
.send-btn,
.mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 3.4vw, 46px);
  height: clamp(36px, 3.4vw, 46px);
  padding: 0;
  border-radius: 999px;
}

.icon-btn svg,
.send-btn svg {
  width: 19px;
  height: 19px;
}

.secondary-btn {
  min-height: clamp(32px, 2.8vw, 38px);
  border-radius: 10px;
  padding: 8px 13px;
  font-size: clamp(12px, 1vw, 14px);
}

.send-btn {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(141, 85, 216, 0.24);
}

.inspector {
  position: sticky;
  top: clamp(16px, 2.4vw, 30px);
  max-height: calc(100vh - clamp(32px, 4.8vw, 60px));
  display: grid;
  align-content: start;
  gap: clamp(8px, 0.9vw, 12px);
  overflow: auto;
  margin-left: 0;
  padding: 8px 0 18px;
}

.info-card,
.calibration-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.info-card {
  padding: clamp(11px, 1.1vw, 15px);
  min-height: 0;
}

.filter-card {
  min-height: clamp(104px, 9.5vw, 132px);
}

.criteria-card {
  min-height: clamp(118px, 10.5vw, 148px);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.15;
  font-weight: 650;
}

.filter-card .card-title::before {
  content: "";
  width: 18px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) 0 2px / 18px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 7px / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 12px / 7px 2px no-repeat;
}

.criteria-card .card-title::before {
  content: "✧";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
}

.card-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.pill-stack,
.criteria-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.pill-group-title {
  display: none;
}

.pill-row {
  display: contents;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--soft-2);
  color: #57308f;
  font-size: 12px;
  line-height: 1;
}

.pill.exclude {
  background: #fff0ed;
  color: var(--red);
}

.criteria-item {
  padding: 0;
  border: 0;
  background: transparent;
}

.criteria-item strong {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--soft-2);
  color: #57308f;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
}

.criteria-item span {
  display: none;
}

.criteria-more {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  padding: 2px 2px 0;
}

.lead-card {
  background: var(--soft);
  border-color: transparent;
  min-height: clamp(96px, 8vw, 118px);
}

.lead-count {
  display: block;
  margin-top: 12px;
  padding: 0;
  min-width: 0;
  background: transparent;
  color: var(--text);
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 700;
  line-height: 1;
}

.lead-preview {
  display: block;
  margin-top: 8px;
}

.lead-mini {
  padding: 0;
  border: 0;
  background: transparent;
}

.lead-mini h4,
.lead-mini p,
.lead-score,
.lead-mini .candidate-actions {
  display: none;
}

.lead-card .secondary-btn {
  width: 100%;
  margin-top: 10px;
  min-height: 34px;
  border-radius: 10px;
  background: #fff;
}

.debug-card {
  border-color: #d9dfe8;
  background: #f8fafc;
}

.debug-card .card-title::before {
  content: "{}";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 18px;
  border-radius: 6px;
  background: #e8eef8;
  color: #3c4657;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.debug-view {
  margin-top: 10px;
}

.debug-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #e4e9f0;
  font-size: 12px;
  line-height: 1.35;
}

.debug-row strong {
  color: #667085;
  font-weight: 650;
}

.debug-row span {
  color: #202938;
  font-weight: 650;
}

.debug-view pre {
  max-height: 360px;
  margin: 10px 0 0;
  padding: 10px;
  overflow: auto;
  border-radius: 8px;
  background: #101828;
  color: #d7e1f1;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.calibration-card {
  padding: 26px;
}

.calibration-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.calibration-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.calibration-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.candidate-card {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.inline-candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  max-width: min(920px, 100%);
}

.inline-candidate {
  background: #fff;
}

.candidate-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.candidate-head h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.candidate-title {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf7f4;
  color: var(--green);
  font-size: 12px;
  white-space: nowrap;
}

.evidence {
  margin-top: 9px;
  color: #2b3240;
  font-size: 12px;
  line-height: 1.55;
}

.candidate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.candidate-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 5px 8px;
  color: var(--text);
  font-size: 12px;
}

.diff {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
}

.diff .add {
  color: var(--green);
}

.diff .warn {
  color: #9d5c06;
}

@media (max-width: 1320px) {
  .inline-candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .inspector {
    grid-template-columns: 1fr;
  }

  .preference-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .inline-candidate-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 18px;
    gap: 20px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
  }

  .brand-status {
    font-size: 15px;
  }

  .nav-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
  }

  .nav-item {
    justify-content: center;
    min-height: 54px;
    font-size: 15px;
    padding: 12px 10px;
  }

  .nav-item span:last-child {
    display: none;
  }

  .message.assistant {
    font-size: 16px;
  }

  .running-indicator {
    top: 7px;
    right: 7px;
  }

  .message.user {
    max-width: 100%;
    font-size: 14px;
    padding: 12px 14px;
  }

  .composer textarea {
    min-height: 84px;
    font-size: 14px;
  }

  .composer-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .composer-actions {
    justify-content: flex-end;
  }

  .info-card {
    padding: 14px;
  }

  .card-title {
    font-size: 16px;
  }

  .pill,
  .criteria-item strong {
    font-size: 12px;
  }
}

@keyframes btn-flash {
  0% { box-shadow: 0 10px 20px rgba(141, 85, 216, 0.24); }
  40% { box-shadow: 0 0 0 4px rgba(141, 85, 216, 0.5); scale: 1.08; }
  100% { box-shadow: 0 10px 20px rgba(141, 85, 216, 0.24); }
}

.send-btn.cal-flash {
  animation: btn-flash 0.6s ease-out;
}
