.halo-drop-host {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto 18px;
}

.halo-drop-host.is-compact {
  margin: 0 0 10px;
}

.halo-drop-host--home[hidden],
.halo-drop-host--dock[hidden] {
  display: none !important;
}

body.is-file-drag .halo-drop-host--home {
  position: fixed;
  inset: 0;
  z-index: 240;
  width: auto;
  margin: 0;
  padding: 32px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(8, 8, 11, 0.72);
  backdrop-filter: blur(8px);
}

body.is-file-drag .halo-drop-host--home .halo-drop {
  pointer-events: auto;
  width: min(520px, 100%);
}

body.is-file-drag .halo-drop-host--dock {
  display: block !important;
  margin-bottom: 8px;
}

.halo-drop {
  position: relative;
  border-radius: 16px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 15, 0.96);
  transition: border-color 160ms ease, transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.halo-drop.is-dragover,
.halo-drop:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
  transform: scale(0.998);
}

.halo-drop.is-success .halo-drop__ring {
  opacity: 0.9;
  transform: scale(1.02);
}

@keyframes halo-spin {
  to {
    --halo-angle: 360deg;
  }
}

@property --halo-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.halo-drop__inner {
  position: relative;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  min-height: 148px;
  display: grid;
  place-items: center;
  padding: 22px 20px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease;
}

.halo-drop.is-compact .halo-drop__inner {
  min-height: 88px;
  padding: 14px 16px;
}

.halo-drop.is-dragover .halo-drop__inner,
.halo-drop:focus-within .halo-drop__inner {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.halo-drop__ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  opacity: 0.35;
  animation: halo-pulse 3.2s ease-in-out infinite;
  pointer-events: none;
}

.halo-drop.is-compact .halo-drop__ring {
  width: 90px;
  height: 90px;
}

@keyframes halo-pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.28;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.55;
  }
}

.halo-drop__body {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 26rem;
}

.halo-drop__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  background: rgba(8, 8, 10, 0.45);
  color: #e4e4e7;
}

.halo-drop.is-compact .halo-drop__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
}

.halo-drop__title {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fafafa;
}

.halo-drop.is-compact .halo-drop__title {
  font-size: 14px;
}

.halo-drop__hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #c8c8d0;
}

.halo-drop__pick {
  margin-top: 12px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f4f4f5;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.halo-drop__pick:hover {
  border-color: rgba(233, 213, 255, 0.45);
}

.halo-drop__preview {
  position: absolute;
  inset: 0;
  display: none;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.halo-drop.has-preview .halo-drop__preview {
  display: block;
}

.halo-drop.has-preview .halo-drop__body {
  background: rgba(8, 8, 10, 0.62);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.halo-drop__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.halo-drop-files {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.halo-drop-file {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.halo-drop-file__thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.halo-drop-file__name {
  font-size: 13px;
  color: #f4f4f5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.halo-drop-file__bar {
  grid-column: 2 / 4;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.halo-drop-file__bar > span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c4b5fd, #f4f4f5);
  transition: width 80ms linear;
}

.halo-drop-file__remove {
  min-width: 28px;
  min-height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c8c8d0;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.halo-drop-file__remove:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
}

.stage.has-chat .halo-drop-host:not(.halo-drop-host--dock) {
  display: none;
}

.stage:not(.has-chat) .halo-drop-host--dock {
  display: none;
}