:root {
  --ink: #211d2f;
  --muted: #736d80;
  --surface: rgba(255, 255, 255, 0.92);
  --line: #eee8f1;
  --coral: #ff5f6d;
  --pink: #ff3f81;
  --rose: #ffe9ee;
  --lavender: #8b72f6;
  --shadow: 0 28px 80px rgba(57, 37, 69, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 52% 15%, rgba(255, 255, 255, 0.96), transparent 28%),
    linear-gradient(135deg, #fff9fa 0%, #f8f4ff 50%, #fff7f2 100%);
}

button,
textarea {
  font: inherit;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.46;
  pointer-events: none;
}

.page-glow-left {
  top: 34%;
  left: -16rem;
  background: #ffc3d2;
}

.page-glow-right {
  right: -15rem;
  bottom: -8rem;
  background: #dcd2ff;
}

.site-header {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--coral), var(--pink));
  box-shadow: 0 10px 24px rgba(255, 63, 129, 0.27);
}

.brand-mark svg {
  width: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.brand-heart {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 0.6rem;
  background: var(--lavender);
}

.brand-accent {
  color: var(--pink);
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(139, 114, 246, 0.16);
  border-radius: 999px;
  color: #615973;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(12px);
}

.header-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #44c88a;
  box-shadow: 0 0 0 4px rgba(68, 200, 138, 0.13);
}

.hero {
  display: grid;
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: 42px 0 70px;
  align-items: center;
  grid-template-columns: minmax(0, 0.96fr) minmax(400px, 0.84fr);
  gap: clamp(54px, 8vw, 110px);
}

.hero-copy {
  max-width: 600px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 8px 13px;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: #e83f73;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: var(--rose);
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 830;
  letter-spacing: -0.075em;
  line-height: 0.96;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  color: transparent;
  background: linear-gradient(100deg, var(--coral), var(--pink) 55%, var(--lavender));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-description {
  max-width: 550px;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.75;
}

.connection-path {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #5e586b;
  font-size: 0.82rem;
  font-weight: 700;
}

.connection-path span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.connection-path b {
  color: var(--pink);
  font-size: 0.68rem;
}

.connection-path i {
  width: 28px;
  height: 1px;
  background: #dcd5e2;
}

.matchmaker {
  position: relative;
  width: min(100%, 460px);
  margin: 0 auto;
}

.card-shadow {
  position: absolute;
  inset: 0 16px;
  border: 1px solid rgba(255, 95, 109, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 55px rgba(54, 37, 66, 0.08);
}

.card-shadow-one {
  transform: rotate(-5deg) translate(-9px, 7px);
}

.card-shadow-two {
  transform: rotate(4deg) translate(10px, 10px);
}

.request-card {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 5vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.request-card::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 86px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--coral), var(--pink));
  content: "";
  transform: translateX(-50%);
}

.primary-agent-picker {
  margin-bottom: 24px;
}

.primary-agent-picker-heading {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
  justify-content: space-between;
}

.primary-agent-picker-heading p {
  margin: 0;
  color: #514a5c;
  font-size: 0.78rem;
  font-weight: 820;
}

.primary-agent-picker-heading > span {
  color: #9a92a4;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.primary-agent-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.primary-agent-option {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 12px;
  align-items: center;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  gap: 9px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  color: #5f5869;
  text-align: left;
  background: rgba(252, 250, 253, 0.86);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.primary-agent-option:hover {
  border-color: #dcd3e3;
  transform: translateY(-1px);
}

.primary-agent-option:disabled {
  cursor: wait;
  opacity: 0.62;
}

.primary-agent-option:focus-visible {
  outline: 3px solid rgba(139, 114, 246, 0.28);
  outline-offset: 2px;
}

.primary-agent-option--selected {
  border-color: rgba(255, 63, 129, 0.45);
  color: var(--ink);
  background: linear-gradient(145deg, #fff8fa, #faf7ff);
  box-shadow: 0 9px 20px rgba(72, 48, 84, 0.09);
}

.primary-agent-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  font-size: 1rem;
  font-weight: 900;
}

.primary-agent-option[data-theme="coral"] .primary-agent-icon {
  color: #eb4a65;
  background: #ffe9ed;
}

.primary-agent-option[data-theme="coral"] .primary-agent-icon::before {
  content: "✦";
}

.primary-agent-option[data-theme="lavender"] .primary-agent-icon {
  color: #745ce1;
  background: #eeeaff;
}

.primary-agent-option[data-theme="lavender"] .primary-agent-icon::before {
  content: "❋";
}

.primary-agent-option-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.primary-agent-option-copy strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
}

.primary-agent-option-copy small {
  overflow: hidden;
  color: #8b8394;
  font-size: 0.64rem;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.primary-agent-check {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: transparent;
  font-size: 0.62rem;
  background: #eee9f1;
}

.primary-agent-option--selected .primary-agent-check {
  color: white;
  background: linear-gradient(135deg, var(--coral), var(--pink));
}

.request-card-header {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
  gap: 16px;
}

.agent-avatar {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  place-items: center;
  border: 1px solid #ffd8e1;
  border-radius: 21px;
  color: var(--pink);
  background: linear-gradient(145deg, #fff3f5, #f8efff);
}

.agent-avatar svg {
  width: 44px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.7;
}

.agent-avatar span {
  position: absolute;
  right: -5px;
  bottom: -4px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  font-size: 0.75rem;
  background: linear-gradient(135deg, var(--coral), var(--pink));
}

.card-kicker {
  margin: 0 0 4px;
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.request-card h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.request-card h2 small {
  display: block;
  margin-top: 3px;
  color: #7e7688;
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0;
}

.selected-agent-description {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.request-form label {
  display: block;
  margin-bottom: 10px;
  color: #514a5c;
  font-size: 0.84rem;
  font-weight: 750;
}

.prompt-field {
  position: relative;
}

.prompt-field textarea {
  width: 100%;
  min-height: 122px;
  padding: 18px 42px 18px 18px;
  resize: vertical;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  outline: none;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.6;
  background: #fcfafd;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.prompt-field textarea:focus {
  border-color: rgba(255, 63, 129, 0.55);
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 63, 129, 0.09);
}

.prompt-spark {
  position: absolute;
  top: 16px;
  right: 17px;
  color: var(--lavender);
}

.request-form button {
  display: grid;
  width: 100%;
  margin-top: 16px;
  padding: 16px 18px;
  align-items: center;
  grid-template-columns: 24px 1fr 24px;
  border: 0;
  border-radius: 17px;
  color: white;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  background: linear-gradient(100deg, var(--coral), var(--pink));
  box-shadow: 0 14px 28px rgba(255, 63, 129, 0.27);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.request-form button:hover:not(:disabled) {
  box-shadow: 0 18px 32px rgba(255, 63, 129, 0.34);
  transform: translateY(-2px);
}

.request-form button:disabled {
  cursor: wait;
  opacity: 0.76;
  box-shadow: 0 10px 22px rgba(255, 63, 129, 0.2);
}

.request-form button:focus-visible {
  outline: 3px solid rgba(139, 114, 246, 0.38);
  outline-offset: 3px;
}

.button-heart {
  font-size: 0.95rem;
}

.button-arrow {
  font-size: 1.2rem;
}

.search-status {
  display: flex;
  margin: 15px 0 0;
  padding: 11px 13px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.search-status[hidden] {
  display: none;
}

.search-status::before {
  flex: 0 0 auto;
  font-size: 0.9rem;
}

.search-status--loading {
  border-color: #ebe4ff;
  color: #685a93;
  background: #f8f5ff;
}

.search-status--loading::before {
  width: 12px;
  height: 12px;
  border: 2px solid #d9cff9;
  border-top-color: var(--lavender);
  border-radius: 50%;
  content: "";
  animation: status-spin 700ms linear infinite;
}

.search-status--success {
  border-color: #cdeedc;
  color: #257653;
  background: #f0fbf5;
}

.search-status--success::before {
  content: "✓";
}

.search-status--error {
  border-color: #ffd4dc;
  color: #b83658;
  background: #fff3f5;
}

.search-status--error::before {
  content: "!";
}

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

.form-note {
  display: flex;
  margin: 18px 0 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #8c8497;
  font-size: 0.76rem;
}

.form-note span {
  color: var(--lavender);
  font-size: 1rem;
}

.candidate-view[hidden],
.match-view[hidden],
#request-view[hidden] {
  display: none;
}

.candidate-view {
  position: relative;
  text-align: center;
  animation: candidate-enter 360ms ease-out both;
}

.candidate-view:focus {
  outline: none;
}

.candidate-view--passing {
  opacity: 0;
  transform: translateX(-70px) rotate(-5deg);
  transition: opacity 220ms ease, transform 220ms ease;
}

.candidate-topline {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agent-a-activity {
  display: flex;
  margin: -7px 0 20px;
  padding: 10px 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  border: 1px solid #eee8ff;
  border-radius: 13px;
  color: #766d83;
  font-size: 0.7rem;
  line-height: 1.4;
  background: #faf8ff;
}

.agent-a-activity > span {
  margin-right: 2px;
  color: var(--lavender);
}

.agent-a-activity strong {
  color: #5f4dc2;
}

.agent-a-activity b {
  color: var(--pink);
}

.ans-badge,
.active-badge,
.candidate-position {
  display: inline-flex;
  padding: 7px 10px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.ans-badge {
  color: #654fc8;
  background: #f0ecff;
}

.ans-badge b {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 0.58rem;
  background: var(--lavender);
}

.active-badge {
  color: #257653;
  background: #eaf9f1;
}

.candidate-position {
  color: #81798c;
  background: #f4f1f6;
}

.active-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #44c88a;
  content: "";
}

.active-badge--inactive {
  color: #756e7e;
  background: #f1eef3;
}

.active-badge--inactive::before {
  background: #a49ca9;
}

.candidate-avatar {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  margin: 4px auto 16px;
  place-items: center;
  border: 1px solid #ffd8e1;
  border-radius: 31px;
  color: var(--pink);
  background: linear-gradient(145deg, #fff0f4, #f3eeff);
  box-shadow: 0 16px 32px rgba(76, 52, 94, 0.12);
}

.candidate-avatar svg {
  width: 60px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.candidate-avatar span {
  position: absolute;
  right: -7px;
  bottom: -6px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 4px solid white;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--coral), var(--pink));
}

.compatibility-score {
  display: inline-flex;
  margin-bottom: 15px;
  padding: 7px 12px;
  align-items: baseline;
  gap: 5px;
  border: 1px solid #ffdce4;
  border-radius: 999px;
  color: var(--pink);
  background: #fff3f6;
}

.compatibility-score strong {
  font-size: 1rem;
}

.compatibility-score span {
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.score-details {
  max-width: 330px;
  margin: 0 auto 18px;
  border: 1px solid #ece5f0;
  border-radius: 14px;
  color: #675f72;
  text-align: left;
  background: #fbf9fd;
}

.score-details summary {
  padding: 10px 13px;
  color: #665b78;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.score-details summary:focus-visible {
  outline: 3px solid rgba(139, 114, 246, 0.28);
  outline-offset: 2px;
}

.score-details dl {
  margin: 0;
  padding: 0 13px 11px;
}

.score-details dl div {
  display: flex;
  padding: 5px 0;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eee9f2;
  font-size: 0.67rem;
}

.score-details dt,
.score-details dd {
  margin: 0;
}

.score-details dd {
  color: var(--pink);
  font-weight: 850;
}

.candidate-kicker {
  margin: 0 0 7px;
  color: #91899c;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.candidate-label-row {
  display: flex;
  margin-bottom: 7px;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.candidate-label-row .candidate-kicker {
  margin: 0;
}

.candidate-label-row .active-badge {
  padding: 4px 7px;
  font-size: 0.56rem;
}

.candidate-view h2 {
  margin: 0 auto;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  line-height: 1.15;
}

.candidate-description {
  display: -webkit-box;
  max-width: 360px;
  margin: 13px auto 20px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.candidate-skills {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  text-align: left;
  background: #fcfafd;
}

.candidate-skills p {
  margin: 0 0 10px;
  color: #625b6d;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-list span {
  padding: 7px 10px;
  border-radius: 9px;
  color: #5c5271;
  font-size: 0.72rem;
  font-weight: 700;
  background: #f0ecf8;
}

.candidate-ans-name {
  margin: 14px 0 0;
  overflow: hidden;
  color: #a29aa9;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-controls {
  display: grid;
  margin-top: 18px;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 11px;
}

.candidate-controls button {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 15px;
  font-weight: 820;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.candidate-controls button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.candidate-controls button:focus-visible {
  outline: 3px solid rgba(139, 114, 246, 0.3);
  outline-offset: 2px;
}

.candidate-controls button:disabled {
  cursor: wait;
  opacity: 0.48;
}

.candidate-controls .button-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.pass-button {
  border: 1.5px solid #e8e1eb;
  color: #746d7c;
  background: white;
}

.pass-button:hover:not(:disabled) {
  border-color: #d9d0dd;
  box-shadow: 0 10px 22px rgba(52, 38, 61, 0.09);
}

.match-button {
  border: 0;
  color: white;
  background: linear-gradient(100deg, var(--coral), var(--pink));
  box-shadow: 0 12px 25px rgba(255, 63, 129, 0.24);
}

.match-button:hover:not(:disabled) {
  box-shadow: 0 16px 28px rgba(255, 63, 129, 0.32);
}

.candidate-control-status {
  min-height: 1.1em;
  margin: 10px 0 0;
  color: #a04861;
  font-size: 0.72rem;
  font-weight: 700;
}

.text-action {
  padding: 5px 8px;
  border: 0;
  color: #756b82;
  font-size: 0.7rem;
  font-weight: 750;
  background: transparent;
  cursor: pointer;
}

.text-action:hover:not(:disabled) {
  color: var(--pink);
}

.text-action:focus-visible,
.try-next-button:focus-visible,
.secondary-action:focus-visible {
  outline: 3px solid rgba(139, 114, 246, 0.3);
  outline-offset: 2px;
}

.text-action:disabled {
  cursor: wait;
  opacity: 0.45;
}

.match-view {
  padding: 24px 4px 14px;
  text-align: center;
  animation: match-enter 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.match-view:focus {
  outline: none;
}

.match-kicker {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.match-view h2 {
  margin: 0;
  color: transparent;
  font-size: clamp(2.5rem, 7vw, 3.7rem);
  letter-spacing: -0.065em;
  background: linear-gradient(100deg, var(--coral), var(--pink), var(--lavender));
  background-clip: text;
  -webkit-background-clip: text;
}

.matched-agents {
  display: flex;
  margin: 28px 0 22px;
  align-items: center;
  justify-content: center;
}

.matched-agents > span {
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 -7px;
  place-items: center;
  border: 4px solid white;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--coral), var(--pink));
  box-shadow: 0 8px 18px rgba(255, 63, 129, 0.26);
}

.matched-avatar {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid #e9e2ee;
  border-radius: 27px;
  color: #6c5c82;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(145deg, #f8f5ff, #fff6f8);
}

.matched-avatar strong {
  align-self: end;
  font-size: 1rem;
}

.matched-avatar small {
  align-self: start;
  width: 64px;
  overflow: hidden;
  color: #81778d;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matched-avatar-agent {
  color: white;
  background: linear-gradient(145deg, var(--lavender), var(--pink));
}

.matched-avatar-agent small {
  color: rgba(255, 255, 255, 0.86);
}

.match-pair {
  margin: 0 auto 12px;
  color: #5b5365;
  font-size: 0.9rem;
  line-height: 1.55;
}

.match-pair span {
  margin: 0 4px;
  color: var(--pink);
}

.match-pair strong {
  color: var(--ink);
}

.match-message {
  max-width: 330px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.a2a-trace {
  display: flex;
  margin: 16px auto 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #8c8395;
  font-size: 0.64rem;
}

.a2a-trace strong,
.a2a-trace b {
  padding: 6px 9px;
  border-radius: 999px;
  color: #675d73;
  background: #f2eef6;
}

.a2a-trace b {
  color: #5e4ec0;
  background: #eeeaff;
}

.agent-response {
  max-width: 420px;
  margin: 20px auto 0;
  padding: 16px 18px;
  border: 1px solid #ece5f0;
  border-radius: 18px;
  text-align: left;
  background: #fbf9fd;
}

.agent-response h3 {
  margin: 0 0 7px;
  color: var(--pink);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.agent-response p {
  margin: 0;
  color: #554d5e;
  font-size: 0.82rem;
  line-height: 1.65;
  white-space: pre-line;
}

.answer-quality-warning {
  margin: 12px 0 0;
  padding: 11px 13px;
  border: 1px solid #f4d5a2;
  border-radius: 13px;
  color: #875b17;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  background: #fff8ea;
}

.answer-quality-warning[hidden],
.try-next-button[hidden] {
  display: none;
}

.match-actions {
  display: grid;
  margin-top: 14px;
  gap: 9px;
}

.try-next-button,
.secondary-action {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.76rem;
  font-weight: 820;
  cursor: pointer;
}

.try-next-button {
  border: 0;
  color: white;
  background: linear-gradient(100deg, var(--coral), var(--pink));
  box-shadow: 0 10px 22px rgba(255, 63, 129, 0.2);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.try-next-button:hover {
  box-shadow: 0 14px 26px rgba(255, 63, 129, 0.28);
  transform: translateY(-1px);
}

.secondary-action {
  margin: 0;
  border: 1.5px solid #e4dce9;
  color: #685f74;
  background: white;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.secondary-action:hover {
  border-color: #d8cde0;
  color: var(--pink);
  transform: translateY(-1px);
}

@keyframes candidate-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes match-enter {
  from {
    opacity: 0;
    transform: scale(0.93);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.site-footer {
  display: flex;
  padding: 0 20px 26px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #9b94a4;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 850px) {
  .hero {
    min-height: auto;
    padding-top: 26px;
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero-copy {
    max-width: 680px;
    text-align: center;
  }

  .hero-description {
    margin-right: auto;
    margin-left: auto;
  }

  .connection-path {
    justify-content: center;
  }

  .matchmaker {
    width: min(100%, 500px);
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    padding: 20px 0;
  }

  .header-pill {
    display: none;
  }

  .hero {
    padding-top: 30px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .connection-path {
    gap: 7px;
    font-size: 0.72rem;
  }

  .connection-path i {
    width: 14px;
  }

  .request-card {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .primary-agent-options {
    grid-template-columns: 1fr;
  }

  .card-shadow {
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .search-status--loading::before {
    animation: none;
  }

  .candidate-view {
    animation: none;
  }

  .match-view {
    animation: none;
  }
}
