/* React Bits (reactbits.dev) — Monet chat batch, verbatim CSS. MIT + Commons Clause, (c) David Haz. */

/* ---------------- DarkVeil ---------------- */
.dark-veil-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.dark-veil-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}


/* ---------------- ElectricBorder ---------------- */
.electric-border {
  position: relative;
  isolation: isolate;
}

.electric-border__canvas {
  position: absolute;
  z-index: 1;
  display: block;
  pointer-events: none;
}


/* ---------------- BorderGlow ---------------- */
.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 30;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --border-radius: 28px;
  --glow-padding: 40px;
  --cone-spread: 25;

  position: relative;
  border-radius: var(--border-radius);
  isolation: isolate;
  transform: translate3d(0, 0, 0.01px);
  display: grid;
  border: 1px solid rgb(255 255 255 / 15%);
  background: var(--card-bg, #120F17);
  overflow: visible;
  box-shadow:
    rgba(0, 0, 0, 0.1) 0px 1px 2px,
    rgba(0, 0, 0, 0.1) 0px 2px 4px,
    rgba(0, 0, 0, 0.1) 0px 4px 8px,
    rgba(0, 0, 0, 0.1) 0px 8px 16px,
    rgba(0, 0, 0, 0.1) 0px 16px 32px,
    rgba(0, 0, 0, 0.1) 0px 32px 64px;
}

.border-glow-card--light {
  border-color: rgb(24 24 27 / 12%);
  box-shadow:
    rgb(24 24 27 / 4%) 0 1px 2px,
    rgb(24 24 27 / 5%) 0 8px 24px;
}

.border-glow-card--light::after,
.border-glow-card--light > .edge-light {
  mix-blend-mode: normal;
}

.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 0.25s ease-out;
  z-index: -1;
}

.border-glow-card:not(:hover):not(.sweep-active)::before,
.border-glow-card:not(:hover):not(.sweep-active)::after,
.border-glow-card:not(:hover):not(.sweep-active) > .edge-light {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

/* colored mesh-gradient border */
.border-glow-card::before {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg, #120F17) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
    var(--gradient-one, radial-gradient(at 80% 55%, hsla(268, 100%, 76%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-two, radial-gradient(at 69% 34%, hsla(349, 100%, 74%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-three, radial-gradient(at 8% 6%, hsla(136, 100%, 78%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-four, radial-gradient(at 41% 38%, hsla(192, 100%, 64%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-five, radial-gradient(at 86% 85%, hsla(186, 100%, 74%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-six, radial-gradient(at 82% 18%, hsla(52, 100%, 65%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-seven, radial-gradient(at 51% 4%, hsla(12, 100%, 72%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-base, linear-gradient(#c299ff 0 100%)) border-box;

  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));

  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
}

/* colored mesh-gradient background fill near edges */
.border-glow-card::after {
  border: 1px solid transparent;
  background:
    var(--gradient-one, radial-gradient(at 80% 55%, hsla(268, 100%, 76%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-two, radial-gradient(at 69% 34%, hsla(349, 100%, 74%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-three, radial-gradient(at 8% 6%, hsla(136, 100%, 78%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-four, radial-gradient(at 41% 38%, hsla(192, 100%, 64%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-five, radial-gradient(at 86% 85%, hsla(186, 100%, 74%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-six, radial-gradient(at 82% 18%, hsla(52, 100%, 65%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-seven, radial-gradient(at 51% 4%, hsla(12, 100%, 72%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-base, linear-gradient(#c299ff 0 100%)) padding-box;

  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);

  mask-composite: subtract, add, add, add, add, add;
  opacity: calc(var(--fill-opacity, 0.5) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
}

/* outer glow layer */
.border-glow-card > .edge-light {
  inset: calc(var(--glow-padding) * -1);
  pointer-events: none;
  z-index: 1;

  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%
    );

  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
}

.border-glow-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color, hsl(40deg 80% 80% / 100%)),
    inset 0 0 1px 0 var(--glow-color-60, hsl(40deg 80% 80% / 60%)),
    inset 0 0 3px 0 var(--glow-color-50, hsl(40deg 80% 80% / 50%)),
    inset 0 0 6px 0 var(--glow-color-40, hsl(40deg 80% 80% / 40%)),
    inset 0 0 15px 0 var(--glow-color-30, hsl(40deg 80% 80% / 30%)),
    inset 0 0 25px 2px var(--glow-color-20, hsl(40deg 80% 80% / 20%)),
    inset 0 0 50px 2px var(--glow-color-10, hsl(40deg 80% 80% / 10%)),
    0 0 1px 0 var(--glow-color-60, hsl(40deg 80% 80% / 60%)),
    0 0 3px 0 var(--glow-color-50, hsl(40deg 80% 80% / 50%)),
    0 0 6px 0 var(--glow-color-40, hsl(40deg 80% 80% / 40%)),
    0 0 15px 0 var(--glow-color-30, hsl(40deg 80% 80% / 30%)),
    0 0 25px 2px var(--glow-color-20, hsl(40deg 80% 80% / 20%)),
    0 0 50px 2px var(--glow-color-10, hsl(40deg 80% 80% / 10%));
}

.border-glow-inner {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: auto;
  z-index: 1;
}


/* ---------------- EchoText ---------------- */
.echo-text {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  line-height: 0.9;
  letter-spacing: -0.04em;
  user-select: none;
  contain: layout style;
  font-kerning: normal;
  text-rendering: geometricPrecision;
}

.echo-text__echo {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.echo-text__bursts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.echo-text__echo--outline {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: max(1px, 0.014em) currentColor;
}

.echo-text__echo--front {
  position: relative;
  z-index: 2;
  opacity: 1;
  filter: none;
  text-shadow: 0 0.035em 0 rgba(255, 255, 255, 0.04);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .echo-text__echo:not(.echo-text__echo--front) {
    display: none;
  }

  .echo-text__echo--front {
    transform: none !important;
  }
}


/* ---------------- AnimatedList ---------------- */
.animated-list {
  position: relative;
  width: min(100%, var(--al-width));
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: calc(var(--al-radius) + 12px);
  color: var(--al-ink);
  -webkit-tap-highlight-color: transparent;
}

.animated-list--framed {
  padding: 6px;
  background: var(--al-frame);
  box-shadow: var(--al-frame-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
}

.animated-list:has(> .animated-list__viewport:focus-visible) {
  outline: 2px solid var(--al-accent);
  outline-offset: 3px;
}

.animated-list__frame-rim {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--al-frame-edge),
    inset 0 1px 0 var(--al-frame-highlight);
  pointer-events: none;
}

.animated-list__viewport {
  --al-fade-top: 0px;
  --al-fade-bottom: 0px;
  position: relative;
  box-sizing: border-box;
  padding: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: calc(var(--al-radius) + 6px);
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: var(--al-thumb) transparent;
}

.animated-list__viewport::-webkit-scrollbar {
  width: 6px;
}

.animated-list__viewport::-webkit-scrollbar-track {
  background: transparent;
}

.animated-list__viewport::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: var(--al-thumb);
}

.animated-list__viewport--bare {
  scrollbar-width: none;
}

.animated-list__viewport--bare::-webkit-scrollbar {
  display: none;
}

.animated-list__track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--al-gap);
}

.animated-list__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 14px 10px 10px;
  box-sizing: border-box;
  border-radius: var(--al-radius);
  background: var(--al-tile);
  box-shadow: var(--al-tile-shadow);
  color: var(--al-ink);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.animated-list[data-animated] .animated-list__item:not([data-state]) {
  opacity: 0;
}

@media (hover: hover) {
  .animated-list__item:hover {
    filter: var(--al-hover);
  }
}

.animated-list__item[data-selected]:not(:active) {
  filter: var(--al-active);
}

.animated-list__item:active {
  filter: var(--al-press);
}

.animated-list__lead {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: max(8px, calc(var(--al-radius) - 4px));
  background: var(--al-well);
  color: var(--al-ink);
}

.animated-list__lead img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.animated-list__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.animated-list__title {
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.animated-list__description {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  color: var(--al-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.animated-list__meta {
  flex: none;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--al-muted);
}

.animated-list__rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--al-tile-edge),
    inset 0 1px 0 var(--al-tile-highlight);
  pointer-events: none;
}

.animated-list__indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.animated-list__ring {
  position: absolute;
  inset: 0;
  border-radius: var(--al-radius);
  background: var(--al-ring-fill);
  box-shadow: inset 0 0 0 1px var(--al-ring);
}


/* ---------------- StatusMark ---------------- */
.status-mark {
  --sm-size: 20px;
  --sm-stroke: 2;
  --sm-color: currentColor;
  --sm-done: #22c55e;
  --sm-error: #ef4444;
  --sm-fill: 0.06;
  --sm-font: 14px;
  --sm-draw: 240ms;
  --sm-strike-delay: 180ms;
  --sm-muted: 0.55;
  --sm-check-delay: 120ms;
  --sm-label-o: 0.65;
  --sm-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --sm-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  position: relative;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--sm-size) * 0.5);
  vertical-align: middle;
  line-height: 1;
}

.status-mark__glyph {
  flex: none;
  overflow: visible;
  color: var(--sm-color);
  transition: color 200ms ease;
}

.status-mark[data-status='done'] .status-mark__glyph {
  color: var(--sm-done);
}

.status-mark[data-status='failed'] .status-mark__glyph {
  color: var(--sm-error);
}

.status-mark__track {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: var(--sm-stroke);
  fill-opacity: 0;
  stroke-opacity: 0;
  transition:
    fill-opacity 180ms ease,
    stroke-opacity 200ms ease;
}

.status-mark[data-status='running'] .status-mark__track {
  stroke-opacity: 0.2;
}

.status-mark[data-status='done'] .status-mark__track,
.status-mark[data-status='failed'] .status-mark__track {
  fill-opacity: var(--sm-fill);
}

.status-mark__ring {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--sm-stroke);
  stroke-linecap: round;
  opacity: var(--sm-muted);
  transition: opacity 200ms ease;
}

.status-mark[data-status='running'] .status-mark__ring,
.status-mark[data-status='done'] .status-mark__ring,
.status-mark[data-status='failed'] .status-mark__ring {
  opacity: 1;
}

.status-mark__check,
.status-mark__cross {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--sm-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1.05;
  opacity: 0;
  transition:
    stroke-dashoffset 160ms var(--sm-ease-out),
    opacity 0ms linear 160ms;
}

.status-mark[data-status='done'] .status-mark__check,
.status-mark[data-status='failed'] .status-mark__cross,
.status-mark[data-status='cancelled'] .status-mark__cross {
  stroke-dashoffset: 0;
  opacity: 1;
  transition:
    stroke-dashoffset var(--sm-draw) var(--sm-ease-out) var(--sm-check-delay),
    opacity 0ms linear var(--sm-check-delay);
}

.status-mark__label {
  position: relative;
  color: var(--sm-color);
  font-size: var(--sm-font);
  line-height: 1.25;
  opacity: var(--sm-label-o);
  transition: opacity 200ms ease;
}

.status-mark[data-status='running'] {
  --sm-label-o: 1;
}

.status-mark[data-status='done'] {
  --sm-label-o: 0.6;
}

.status-mark[data-status='failed'] {
  --sm-label-o: 1;
}

.status-mark[data-status='cancelled'] {
  --sm-label-o: 0.55;
}

.status-mark__strike {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: max(1px, calc(var(--sm-font) / 14));
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  translate: 0 -50%;
  pointer-events: none;
  transition: transform 160ms var(--sm-ease-out);
}

.status-mark[data-status='done'][data-strike] .status-mark__strike {
  transform: scaleX(1);
  transition: transform 280ms var(--sm-ease-out) var(--sm-strike-delay);
}

.status-mark__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@keyframes sm-breathe {
  50% {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-mark[data-indeterminate] .status-mark__ring {
    animation: sm-breathe 1400ms var(--sm-ease-in-out) infinite;
  }

  .status-mark__check,
  .status-mark__cross {
    stroke-dashoffset: 0;
    transition: opacity 200ms ease;
  }

  .status-mark__strike {
    opacity: 0;
    transform: scaleX(1) !important;
    transition: opacity 200ms ease;
  }

  .status-mark[data-status='done'][data-strike] .status-mark__strike {
    opacity: 1;
  }
}


/* ---------------- SlingButton ---------------- */
.sling-button {
  --sl-size: 56px;
  --sl-svg: 90px;
  --sl-pad: #f5f5f5;
  --sl-icon: #18181b;
  --sl-accent: #f5f5f5;
  --sl-well: #27272a;
  --sl-band: #52525b;
  --sl-stroke: 3px;
  --sl-dot: 8px;
  --sl-ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  position: relative;
  display: inline-block;
  width: var(--sl-size);
  height: var(--sl-size);
}

.sling-button__fx {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--sl-svg);
  height: var(--sl-svg);
  margin: calc(var(--sl-svg) / -2) 0 0 calc(var(--sl-svg) / -2);
  overflow: visible;
  pointer-events: none;
  shape-rendering: geometricPrecision;
}

.sling-button__well {
  fill: var(--sl-well);
  transition: fill 200ms ease;
}

.sling-button[data-sent] .sling-button__well {
  fill: var(--sl-accent);
}

.sling-button__band {
  fill: none;
  stroke: var(--sl-band);
  stroke-width: var(--sl-stroke);
  stroke-linecap: round;
  transition: stroke-width 160ms var(--sl-ease-out);
}

.sling-button[data-armed] .sling-button__band {
  stroke-width: calc(var(--sl-stroke) * 1.5);
}

.sling-button__band--hot {
  stroke: var(--sl-accent);
}

.sling-button__arc {
  fill: none;
  stroke: var(--sl-accent);
  stroke-width: var(--sl-stroke);
  stroke-linecap: butt;
  transition: stroke-width 160ms var(--sl-ease-out);
}

.sling-button[data-armed] .sling-button__arc {
  stroke-width: calc(var(--sl-stroke) * 1.5);
}

.sling-button__move {
  position: absolute;
  inset: 0;
}

.sling-button__pad {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: grab;
  outline: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.sling-button__pad::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}

.sling-button__pad[data-held] {
  cursor: grabbing;
}

.sling-button__pad[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.5;
}

.sling-button__face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--sl-pad);
  color: var(--sl-icon);
  transition: transform 160ms var(--sl-ease-out);
}

.sling-button__pad[data-held] .sling-button__face {
  transform: scale(0.97);
}

.sling-button__pad[data-armed] .sling-button__face {
  transform: scale(1.04);
}

@media (hover: hover) and (pointer: fine) {
  .sling-button__pad:not([data-held]):not([aria-disabled='true']):hover .sling-button__face {
    transform: scale(1.02);
  }
}

.sling-button__icon {
  display: inline-flex;
  will-change: transform;
}

.sling-button__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--sl-dot);
  height: var(--sl-dot);
  margin: calc(var(--sl-dot) / -2) 0 0 calc(var(--sl-dot) / -2);
  border-radius: 50%;
  background: var(--sl-accent);
  opacity: 0;
  pointer-events: none;
}

.sling-button__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .sling-button__face {
    transform: none !important;
    transition: none;
  }
}


/* ---------------- PromptBar ---------------- */
.prompt-bar {
  --pb-bg: #27272a;
  --pb-ink: #f5f5f5;
  --pb-menu: #323236;
  --pb-w: 400px;
  --pb-radius: 16px;
  --pb-press: 0.96;
  --pb-spark: #b39dff;
  --pb-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --pb-muted: color-mix(in srgb, var(--pb-ink) 55%, transparent);
  --pb-hover: color-mix(in srgb, var(--pb-ink) 8%, transparent);

  position: relative;
  width: min(var(--pb-w), 100%);
  color: var(--pb-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 22px;
}

.prompt-bar__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 2;
  padding: 4px;
  border-radius: 12px;
  background: var(--pb-menu);
  box-shadow:
    0 10px 30px -10px rgba(0, 0, 0, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.08);
  transform-origin: bottom center;
  animation: prompt-bar-pop 180ms var(--pb-ease-out) both;
}

.prompt-bar__menu[data-kind='model'] {
  right: auto;
  width: 200px;
  transform-origin: bottom left;
}

@keyframes prompt-bar-pop {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
}

.prompt-bar__glow {
  position: absolute;
  right: 4px;
  left: 4px;
  border-radius: 8px;
  background: var(--pb-hover);
  opacity: 0;
  pointer-events: none;
  transition:
    top 220ms var(--pb-ease-out),
    height 220ms var(--pb-ease-out),
    opacity 150ms ease;
}

.prompt-bar__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.prompt-bar__row-icon {
  display: inline-flex;
  flex: none;
  justify-content: center;
  width: 20px;
  color: color-mix(in srgb, var(--pb-ink) 70%, transparent);
}

.prompt-bar__row-name {
  flex: none;
  font-size: 13px;
  font-weight: 500;
}

.prompt-bar__row-desc {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--pb-muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.prompt-bar__row-tag {
  flex: none;
  margin-left: auto;
  color: var(--pb-muted);
  font-size: 11px;
}

.prompt-bar__row-check {
  display: inline-flex;
  flex: none;
  justify-content: center;
  width: 16px;
  opacity: 0;
}

.prompt-bar__row-check[data-on] {
  opacity: 1;
}

.prompt-bar__empty {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 8px;
  color: var(--pb-muted);
  font-size: 12px;
}

.prompt-bar__field {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: var(--pb-radius);
  background: var(--pb-bg);
  cursor: text;
}

.prompt-bar__field::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    140% 120% at 0% 100%,
    color-mix(in srgb, var(--pb-spark) 26%, transparent),
    transparent 62%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}

.prompt-bar__field[data-max]::before {
  opacity: 1;
}

.prompt-bar__sparks {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
}

.prompt-bar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prompt-bar__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 4px 0 8px;
  border-radius: 8px;
  background: var(--pb-hover);
  font-size: 12px;
  animation: prompt-bar-pop 200ms var(--pb-ease-out) both;
}

.prompt-bar__chip-name {
  max-width: 144px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.prompt-bar__chip-x {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  outline: none;
  transition:
    opacity 120ms ease,
    background-color 120ms ease;
}

.prompt-bar__chip-x:hover {
  background: color-mix(in srgb, var(--pb-ink) 10%, transparent);
  opacity: 1;
}

.prompt-bar__input {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  line-height: 22px;
  resize: none;
  outline: none;
  overflow-wrap: anywhere;
}

.prompt-bar__input::placeholder {
  color: color-mix(in srgb, var(--pb-ink) 45%, transparent);
}

@media (pointer: coarse) {
  .prompt-bar__input {
    font-size: 16px;
  }
}

.prompt-bar__bar {
  display: flex;
  align-items: center;
  gap: 4px;
}

.prompt-bar__spacer {
  flex: 1 1 auto;
}

.prompt-bar__tool,
.prompt-bar__pick,
.prompt-bar__send {
  flex: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.prompt-bar__tool {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: color-mix(in srgb, var(--pb-ink) 60%, transparent);
  transition:
    background-color 150ms ease,
    color 150ms ease,
    transform 160ms var(--pb-ease-out);
}

.prompt-bar__tool:active {
  transform: scale(0.94);
}

.prompt-bar__pick {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: transparent;
  color: color-mix(in srgb, var(--pb-ink) 70%, transparent);
  font-size: 12px;
  font-weight: 500;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.prompt-bar__tool[data-on],
.prompt-bar__pick[data-on] {
  background: var(--pb-hover);
  color: var(--pb-ink);
}

@media (hover: hover) and (pointer: fine) {
  .prompt-bar__tool:hover,
  .prompt-bar__pick:hover {
    background: var(--pb-hover);
    color: var(--pb-ink);
  }
}

.prompt-bar__pick[data-max] {
  color: var(--pb-spark);
}

.prompt-bar__menu[data-kind='effort'] {
  right: auto;
  width: 248px;
  padding: 12px 14px 14px;
  transform-origin: bottom left;
}

.prompt-bar__effort-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
}

.prompt-bar__effort-title {
  color: var(--pb-muted);
}

.prompt-bar__effort-level {
  font-weight: 500;
}

.prompt-bar__effort-help {
  display: inline-flex;
  margin-left: auto;
  color: var(--pb-muted);
}

.prompt-bar__effort-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--pb-muted);
  font-size: 12px;
  line-height: 16px;
}

.prompt-bar__effort-track {
  position: relative;
  height: 22px;
  margin-top: 8px;
  border-radius: 11px;
  background: var(--pb-hover);
  cursor: pointer;
  outline: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.prompt-bar__effort-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--pb-effort-fill);
  border-radius: 11px;
  background: color-mix(in srgb, var(--pb-ink) 18%, transparent);
  transition:
    width 220ms var(--pb-ease-out),
    background-color 300ms ease;
}

.prompt-bar__effort-dot {
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--pb-ink) 30%, transparent);
}

.prompt-bar__effort-thumb {
  position: absolute;
  top: -3px;
  left: var(--pb-effort-x);
  width: 14px;
  height: 28px;
  margin-left: -7px;
  border-radius: 7px;
  background: var(--pb-ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition:
    left 220ms var(--pb-ease-out),
    background-color 300ms ease;
}

.prompt-bar[data-max] .prompt-bar__effort-fill {
  background: color-mix(in srgb, var(--pb-spark) 35%, transparent);
}

.prompt-bar[data-max] .prompt-bar__effort-thumb {
  background: var(--pb-spark);
}

.prompt-bar__eq {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
}

.prompt-bar__eq i {
  display: block;
  width: 2.5px;
  height: 100%;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  animation: prompt-bar-eq 900ms ease-in-out infinite;
}

.prompt-bar__eq i:nth-child(2) {
  animation-delay: 150ms;
}

.prompt-bar__eq i:nth-child(3) {
  animation-delay: 300ms;
}

@keyframes prompt-bar-eq {
  0%,
  100% {
    transform: scaleY(0.35);
  }

  50% {
    transform: scaleY(1);
  }
}

.prompt-bar__send {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--pb-ink) 12%, var(--pb-bg));
  color: color-mix(in srgb, var(--pb-ink) 55%, var(--pb-bg));
  transition:
    background-color 200ms ease,
    color 200ms ease,
    transform 160ms var(--pb-ease-out);
}

.prompt-bar__send:disabled {
  cursor: default;
}

.prompt-bar__send[data-armed] {
  background: var(--pb-ink);
  color: var(--pb-bg);
}

.prompt-bar__send[data-pressed] {
  transform: scale(var(--pb-press));
}

.prompt-bar__glyph {
  display: block;
  width: 16px;
  height: 16px;
  transform-origin: 50% 50%;
}

@media (prefers-reduced-motion: reduce) {
  .prompt-bar__menu,
  .prompt-bar__chip {
    animation: none;
  }

  .prompt-bar__glow {
    transition: opacity 150ms ease;
  }

  .prompt-bar__effort-fill,
  .prompt-bar__effort-thumb {
    transition: background-color 300ms ease;
  }

  .prompt-bar__tool:active,
  .prompt-bar__send[data-pressed] {
    transform: none;
  }
}
