@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Noto+Sans:wght@400;600&family=Noto+Sans+Bengali:wght@400&family=Noto+Sans+Devanagari:wght@400&family=Noto+Sans+Kannada:wght@400&family=Noto+Sans+Tamil:wght@400&family=Noto+Sans+Telugu:wght@400&display=swap);
.finch-playground {
  --finch-font: Inter, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Tamil", "Noto Sans Telugu", "Noto Sans Kannada", "Noto Sans Bengali", system-ui, sans-serif;
  position: relative;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 0;
  background: transparent;
  overflow: hidden;
  display: flex;
  justify-content: stretch;
  font-family: var(--finch-font);
  color: #1d1136;
}

.finch-playground *,
.finch-playground *::before,
.finch-playground *::after {
  box-sizing: border-box;
}

.finch-wash {
  display: none;
}

.finch-glass {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px;
  border-radius: 64px;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
    linear-gradient(235deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(40px);
}

.finch-card {
  width: 100%;
  height: 640px;
  padding: 8px;
  border-radius: 48px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.finch-header,
.finch-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.finch-header {
  padding: 16px 24px;
}

.finch-controls {
  padding: 8px 16px 16px;
}

.finch-status,
.finch-tagline,
.finch-chip,
.finch-model-top {
  display: flex;
  align-items: center;
}

.finch-status {
  gap: 8px;
  justify-self: start;
}

.finch-tagline {
  gap: 8px;
  justify-self: end;
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
  color: #1d1136;
  white-space: nowrap;
}

.finch-status-label {
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
}

.finch-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(66, 32, 138, 0.31);
  transition: background-color 200ms ease;
  flex: none;
}

.finch-dot.is-amber { background: #ffd522; }
.finch-dot.is-green { background: #67db76; }

.finch-dot.is-pulse {
  animation: finch-pulse 1.2s ease-in-out infinite;
}

.finch-logo {
  display: block;
  flex: none;
  height: 29px;
  width: auto;
}

.finch-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(66, 32, 138, 0.07);
  justify-self: center;
}

.finch-switch.is-locked,
.finch-chips.is-locked {
  opacity: 0.5;
  pointer-events: none;
}

.finch-work {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background: rgba(64, 28, 138, 0.1);
  border-radius: 24px 24px 40px 40px;
}

.finch-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 0;
  min-width: 0;
}

.finch-chip,
.finch-action,
.finch-btn,
.finch-model-card,
.finch-mic {
  font-family: inherit;
}

.finch-chip {
  gap: 8px;
  border: 0;
  border-radius: 87px;
  padding: 8px 16px;
  background: rgba(66, 32, 138, 0.07);
  color: rgba(29, 17, 54, 0.7);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.48px;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
}

.finch-chip.is-active {
  background: #1d1136;
  color: #ffffff;
}

.finch-chips-scroll {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px;
  margin: -4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--finch-fade-start, 0px), #000 calc(100% - var(--finch-fade-end, 0px)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--finch-fade-start, 0px), #000 calc(100% - var(--finch-fade-end, 0px)), transparent 100%);
}

.finch-chips-scroll::-webkit-scrollbar {
  display: none;
}

.finch-chips-scroll.has-start {
  --finch-fade-start: 32px;
}

.finch-chips-scroll.has-end {
  --finch-fade-end: 48px;
}

.finch-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.finch-body.is-center {
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
}

.finch-body.is-copy {
  padding: 16px 24px 8px;
}

.finch-placeholder {
  margin: 0;
  font-size: 24px;
  line-height: 36px;
  font-weight: 400;
  color: rgba(29, 17, 54, 0.5);
}

.finch-picker {
  width: min(776px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.finch-picker.is-leaving {
  animation: finch-leave 150ms ease-out forwards;
}

.finch-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.finch-question {
  margin: 0;
  font-size: 24px;
  line-height: 36px;
}

.finch-subcopy,
.finch-message-body,
.finch-model-subtitle,
.finch-lang-list,
.finch-hint,
.finch-metric-label,
.finch-turn-time {
  color: rgba(29, 17, 54, 0.7);
}

.finch-subcopy,
.finch-message-body {
  margin: 0;
  font-size: 14px;
  line-height: 21px;
}

.finch-models {
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.finch-model-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border-radius: 24px;
  border: 2px solid rgba(66, 32, 138, 0.07);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.finch-model-card.is-selected {
  border-color: #1d1136;
}

.finch-model-card.is-selected .finch-radio {
  border-color: #1d1136;
  box-shadow: inset 0 0 0 5px #1d1136;
}

.finch-model-card:focus-visible,
.finch-chip:focus-visible,
.finch-mic:focus-visible,
.finch-action:focus-visible,
.finch-btn:focus-visible {
  outline: 2px solid #735dff;
  outline-offset: 2px;
}

.finch-model-top {
  width: 100%;
  gap: 8px;
}

.finch-flags {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 22px;
  line-height: 36px;
  white-space: nowrap;
}

.finch-model-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.finch-model-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.48px;
}

.finch-model-subtitle {
  font-size: 14px;
  line-height: 21px;
}

.finch-lang-list,
.finch-hint,
.finch-metric-label,
.finch-turn-time {
  font-size: 12px;
  line-height: 18px;
}

.finch-radio {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(66, 32, 138, 0.31);
  flex: none;
  align-self: center;
}

.finch-auto-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(64, 28, 138, 0.1);
  color: #1d1136;
  font-size: 12px;
  line-height: 18px;
}

.finch-auto-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #67db76;
  flex: none;
}

.finch-btn {
  border: 0;
  border-radius: 11px;
  padding: 11px 20px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.finch-btn-tertiary {
  background: rgba(66, 32, 138, 0.07);
  color: #1d1136;
}

.finch-metric-value,
.finch-message-title {
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
}

.finch-error-stack {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 16px 24px 8px;
}

.finch-error-stack .finch-transcript {
  align-self: stretch;
  overflow: visible;
  flex: none;
  padding: 0;
}

.finch-message {
  width: min(480px, 100%);
  margin-inline: auto;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px;
  border-radius: 24px;
  background: #ffffff;
  text-align: center;
}

.finch-message-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(64, 28, 138, 0.1);
  display: grid;
  place-items: center;
  color: #1d1136;
}

.finch-message-title {
  margin: 0;
}

.finch-message-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.finch-transcript {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px 24px 8px;
}

.finch-log {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.finch-log:empty {
  display: none;
}

.finch-turn {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.finch-turn-time {
  width: 96px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.finch-turn-text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 24px;
  line-height: 36px;
  color: #1d1136;
}

.finch-turn-final .finch-turn-text {
  animation: finch-ink 200ms ease-out;
}

.finch-turn-text.is-live {
  color: rgba(29, 17, 54, 0.5);
}

.finch-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f02173;
  flex: none;
}

.finch-metrics {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
  justify-self: start;
}

.finch-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: finch-rise 200ms ease-out both;
}

.finch-metric:nth-child(2) { animation-delay: 40ms; }
.finch-metric:nth-child(3) { animation-delay: 80ms; }
.finch-metric:nth-child(4) { animation-delay: 120ms; }

.finch-mic-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  justify-self: center;
}

.finch-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.finch-mic-stage {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.finch-mic {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 999px;
  background: #1d1136;
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px -4px rgba(15, 8, 28, 0.18);
}

.finch-mic.is-idle {
  background: linear-gradient(90deg, #ff5e3b 0%, #c516e1 100%);
}

.finch-mic.is-disabled {
  background: rgba(66, 32, 138, 0.07);
  color: rgba(29, 17, 54, 0.5);
  box-shadow: none;
  cursor: default;
}

.finch-mic.is-waitMic {
  opacity: 0.4;
}

.finch-stop-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #ffffff;
}

.finch-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  border: 3px solid rgba(66, 32, 138, 0.07);
  border-top-color: rgba(66, 32, 138, 0.31);
  animation: finch-spin 1s linear infinite;
}

.finch-connect-ring {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  animation: finch-spin 1s linear infinite;
}

.finch-connect-track {
  fill: none;
  stroke: rgba(66, 32, 138, 0.07);
}

.finch-connect-arc {
  fill: none;
  stroke: #735dff;
}

.finch-progress-ring {
  position: absolute;
  z-index: 2;
  transform: rotate(-90deg);
  pointer-events: none;
}

.finch-progress-track {
  fill: none;
  stroke: #ffffff;
}

.finch-progress-value {
  fill: none;
  stroke: #ffd522;
  stroke-linecap: butt;
  transition: stroke-dashoffset 250ms linear, stroke 200ms ease;
}

.finch-progress-ring.is-warn .finch-progress-value {
  stroke: #f02173;
}

.finch-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 8px 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: #ffffff;
  font-size: 14px;
  line-height: 21px;
  color: #1d1136;
}

.finch-banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ffd522;
  flex: none;
}

.finch-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: finch-aura-in 300ms ease-out;
}

.finch-aura-spin {
  position: absolute;
  inset: 0;
  animation: finch-spin 8s linear infinite;
}

.finch-aura-spin.is-b { animation-duration: 10.5s; }
.finch-aura-spin.is-c { animation-duration: 13s; }

.finch-aura i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  opacity: 0.18;
  filter: blur(22px);
}

.finch-aura.is-quiet .finch-aura-spin.is-a i {
  animation: finch-breathe 2.5s ease-in-out infinite;
}

.finch-aura.is-quiet .finch-aura-spin.is-b i {
  animation: finch-breathe-b 2.5s ease-in-out infinite;
}

.finch-aura.is-quiet .finch-aura-spin.is-c i {
  animation: finch-breathe-c 2.5s ease-in-out infinite;
}

.finch-aura.is-loud i {
  width: calc(108px + (var(--finch-level, 0) * 24px));
  height: calc(108px + (var(--finch-level, 0) * 24px));
  opacity: calc(0.18 + (var(--finch-level, 0) * 0.14));
  filter: blur(36px);
}

.finch-aura-spin.is-a i { background: #735dff; transform: translate(-70%, -55%); }
.finch-aura-spin.is-b i { background: #f02173; transform: translate(-35%, -75%); }
.finch-aura-spin.is-c i { background: #ffd522; transform: translate(-55%, -25%); }

.finch-hint {
  margin: 0;
  white-space: nowrap;
}

.finch-action {
  display: inline-block;
  text-decoration: none;
}

.finch-enter {
  animation: finch-enter 200ms ease-out;
}

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

@keyframes finch-breathe {
  0%, 100% { transform: translate(-70%, -55%) scale(1); }
  50% { transform: translate(-70%, -55%) scale(1.08); }
}

@keyframes finch-breathe-b {
  0%, 100% { transform: translate(-35%, -75%) scale(1); }
  50% { transform: translate(-35%, -75%) scale(1.08); }
}

@keyframes finch-breathe-c {
  0%, 100% { transform: translate(-55%, -25%) scale(1); }
  50% { transform: translate(-55%, -25%) scale(1.08); }
}

@keyframes finch-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes finch-rise {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@keyframes finch-ink {
  from { color: rgba(29, 17, 54, 0.5); }
  to { color: #1d1136; }
}

@keyframes finch-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes finch-leave {
  to { opacity: 0; }
}

@keyframes finch-aura-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 900px) {
  .finch-playground {
    padding: 0;
  }

  .finch-glass {
    border-radius: 32px;
    padding: 8px;
  }

  .finch-card {
    height: auto;
    min-height: 640px;
    border-radius: 28px;
  }

  .finch-header,
  .finch-controls {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .finch-status,
  .finch-metrics {
    justify-self: start;
  }

  .finch-tagline,
  .finch-actions {
    justify-self: end;
  }

  .finch-models {
    flex-direction: column;
  }

  .finch-metrics {
    flex-wrap: wrap;
    gap: 16px 32px;
  }

  .finch-turn-text,
  .finch-question,
  .finch-placeholder {
    font-size: 20px;
    line-height: 30px;
  }
}

@media (max-width: 380px) {
  .finch-header {
    padding: 12px 8px;
  }

  .finch-tagline {
    font-size: 11px;
    line-height: 16px;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .finch-dot.is-pulse,
  .finch-ring,
  .finch-connect-ring,
  .finch-progress-value,
  .finch-aura,
  .finch-aura-spin,
  .finch-aura i,
  .finch-metric,
  .finch-turn-final .finch-turn-text,
  .finch-enter,
  .finch-picker.is-leaving {
    animation: none;
  }

  .finch-aura.is-loud i {
    opacity: calc(0.18 + (var(--finch-level, 0) * 0.14));
  }
}

