.vaulted-assistant-launcher {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 50px;
  padding: 0 1rem;
  border: 1px solid #ff2424;
  border-radius: 6px;
  background: #e51616;
  color: #fff;
  font: 800 0.9rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 28px rgba(255, 0, 0, 0.22);
}

.vaulted-assistant-launcher[hidden] {
  display: none;
}

.vaulted-assistant-launcher::before {
  width: 18px;
  height: 14px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow: 5px 5px 0 -3px #e51616, 6px 6px 0 -3px currentColor;
}

.vaulted-assistant {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 1001;
  display: none;
  width: min(390px, calc(100vw - 2rem));
  max-height: min(620px, calc(100vh - 7rem));
  overflow: hidden;
  border: 1px solid rgba(255, 38, 38, 0.72);
  border-radius: 8px;
  background: #090909;
  color: #f7f7f7;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72), 0 0 42px rgba(255, 0, 0, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.vaulted-assistant.is-open {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.vaulted-assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
}

.vaulted-assistant-header strong {
  display: block;
  font-size: 0.98rem;
}

.vaulted-assistant-header span {
  display: block;
  margin-top: 0.25rem;
  color: #999;
  font-size: 0.75rem;
}

.vaulted-assistant-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.vaulted-assistant-messages {
  overflow-y: auto;
  padding: 1rem;
}

.vaulted-assistant-message {
  max-width: 90%;
  margin: 0 0 0.75rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: #151515;
  color: #d8d8d8;
  font-size: 0.88rem;
  line-height: 1.55;
}

.vaulted-assistant-message.user {
  margin-left: auto;
  border-color: rgba(255, 35, 35, 0.45);
  background: rgba(255, 30, 30, 0.1);
  color: #fff;
}

.vaulted-assistant-message.loading {
  color: #b8b8b8;
}

.vaulted-assistant-message a {
  color: #ff4545;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.vaulted-assistant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.vaulted-assistant-options button {
  min-height: 36px;
  padding: 0 0.7rem;
  border: 1px solid rgba(255, 45, 45, 0.68);
  border-radius: 4px;
  background: rgba(255, 30, 30, 0.06);
  color: #f7f7f7;
  font: 700 0.78rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

.vaulted-assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  padding: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
}

.vaulted-assistant-form input {
  min-width: 0;
  min-height: 42px;
  padding: 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  outline: none;
  background: #070707;
  color: #fff;
  font: inherit;
}

.vaulted-assistant-form input:focus {
  border-color: #ff3030;
}

.vaulted-assistant-form button {
  min-width: 46px;
  border: 1px solid #ff2929;
  border-radius: 4px;
  background: #e51616;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.vaulted-assistant-form button:disabled,
.vaulted-assistant-form input:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 560px) {
  .vaulted-assistant-launcher {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 50px;
    padding: 0;
    justify-content: center;
    overflow: hidden;
    font-size: 0;
  }

  .vaulted-assistant {
    right: 0.75rem;
    bottom: 4.75rem;
    width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 5.75rem);
  }
}
