* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(1100px 560px at 50% 42%, #0c0b0e 0%, #050405 70%);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

.prompt {
  --r: 46px;
  --angle: 0deg;
  --grad: conic-gradient(from var(--angle),
    #6b2fa0 0deg,
    #b44fd6 42deg,
    #ff86dc 74deg,
    #fff6fb 90deg,
    #ffb1e6 106deg,
    #d45fd0 140deg,
    #8b3ec0 178deg,
    #d96ecf 216deg,
    #ffb184 252deg,
    #fff3e4 270deg,
    #ff9ed9 288deg,
    #a748c9 324deg,
    #6b2fa0 360deg);
  position: relative;
  width: min(680px, 92vw);
}

.ring {
  position: absolute;
  pointer-events: none;
  background: var(--grad);
  padding: var(--w);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.ring-line {
  --w: 2px;
  inset: 0;
  border-radius: var(--r);
}

.ring-bloom {
  --w: 4px;
  inset: -2px;
  border-radius: calc(var(--r) + 2px);
  filter: blur(10px) saturate(1.4);
  opacity: 0.85;
}

.ring-glow {
  --w: 14px;
  inset: -14px;
  border-radius: calc(var(--r) + 14px);
  filter: blur(38px) saturate(1.35);
  opacity: 0.6;
}

.box {
  position: relative;
  height: 224px;
  border-radius: var(--r);
  background: #0d0d10;
  padding: 30px 26px 22px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.field {
  width: 100%;
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: #ececf2;
  font-family: inherit;
  font-size: 21px;
  line-height: 1.4;
  padding: 4px 6px 0;
}

.field::placeholder {
  color: #d2d3da;
}

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

.tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chip {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 17px;
  border: none;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  color: #c9c9d1;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.09);
}

.chip.round {
  width: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.chip .caret {
  color: #82828b;
  margin-left: 1px;
}

.send {
  width: 46px;
  height: 46px;
  flex: none;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(130% 130% at 28% 22%, #d492f8 0%, #b45ef0 48%, #c94ad4 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22), 0 6px 22px rgba(190, 80, 230, 0.35);
  cursor: pointer;
  transition: filter 0.2s;
}

.send:hover {
  filter: brightness(1.1);
}

.send svg {
  transform: translate(-1px, 1px);
}
