.apeiron-chatbox {
  --ap-bg: rgba(15, 22, 38, 0.88);
  --ap-bg-2: rgba(21, 31, 52, 0.92);
  --ap-border: rgba(103, 202, 255, 0.32);
  --ap-text: #e9efff;
  --ap-muted: #aab6ca;
  --ap-cyan: #55f6ff;
  --ap-magenta: #c949ff;
  --ap-purple: #8b66ff;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: var(--ap-text);
}

.apeiron-window {
  width: min(100%, 760px);
  margin: 0 auto;
  border: 1px solid var(--ap-border);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(85, 246, 255, 0.10), transparent 30%),
    radial-gradient(circle at 100% 30%, rgba(201, 73, 255, 0.14), transparent 32%),
    linear-gradient(180deg, var(--ap-bg-2), rgba(12, 18, 32, 0.94));
  box-shadow:
    0 0 0 1px rgba(201, 73, 255, 0.08) inset,
    0 26px 90px rgba(0, 0, 0, 0.42),
    0 0 42px rgba(85, 246, 255, 0.07);
  backdrop-filter: blur(18px);
}

.apeiron-titlebar {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(103, 202, 255, 0.22);
  background: rgba(255, 255, 255, 0.025);
}

.apeiron-dots {
  position: absolute;
  left: 28px;
  display: flex;
  gap: 12px;
}

.apeiron-dots .dot {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  display: block;
  box-shadow: 0 0 18px currentColor;
}

.apeiron-dots .red { background: #ff5f57; color: #ff5f57; }
.apeiron-dots .yellow { background: #ffbd2e; color: #ffbd2e; }
.apeiron-dots .green { background: #28c840; color: #28c840; }

.apeiron-title {
  letter-spacing: 0.08em;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  color: rgba(233, 239, 255, 0.92);
}

.apeiron-body {
  padding: clamp(28px, 5vw, 48px);
  font-size: clamp(1rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.apeiron-body p {
  margin: 0 0 1.1em;
}

.apeiron-muted {
  color: var(--ap-muted);
}

.apeiron-command-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 34px;
}

.apeiron-command {
  appearance: none;
  border: 1px solid rgba(103, 202, 255, 0.28);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ap-text);
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, color .22s ease;
}

.apeiron-command:hover,
.apeiron-command:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ap-cyan);
  color: #fff;
  box-shadow: 0 0 28px rgba(85, 246, 255, 0.16), 0 0 22px rgba(201, 73, 255, 0.10) inset;
  outline: none;
}

.apeiron-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(103, 202, 255, 0.14);
}

.apeiron-prompt {
  color: var(--ap-magenta);
  font-weight: 800;
}

.apeiron-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--ap-text);
  font: inherit;
  outline: none;
}

.apeiron-input::placeholder {
  color: rgba(170, 182, 202, 0.48);
}

.apeiron-feedback {
  margin-top: 12px;
  min-height: 1.4em;
  color: var(--ap-cyan);
  font-size: 0.82em;
}

@media (max-width: 767px) {
  .apeiron-window {
    border-radius: 22px;
  }

  .apeiron-titlebar {
    min-height: 60px;
  }

  .apeiron-dots {
    left: 18px;
    gap: 8px;
  }

  .apeiron-dots .dot {
    width: 11px;
    height: 11px;
  }

  .apeiron-command-list {
    gap: 10px;
  }

  .apeiron-command {
    padding: 11px 15px;
  }
}
