html {
  line-height: 1.5;
  tab-size: 4;
  color-scheme: dark;
  background-color: rgba(52, 53, 65);
  font-family: Söhne, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Helvetica Neue, Arial, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}

.main-box {
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  padding-bottom: 12rem;
}

.AI-head,
.human-head {
  display: flex;
  width: 30px;
  height: 30px;
  border-radius: 2px;
  align-items: center;
  justify-content: center;
}

.human-head {
  background-color: rgb(84, 54, 218);
}

.AI-head {
  background-color: rgb(16, 163, 127);
}

.head-box {
  display: flex;
}

.AI-head img,
.human-head img {
  width: 1.4rem;
  height: 1.4rem;
  margin-left: 0.1rem;
}

.AI-box,
.human-box {
  border: 0 solid #d9d9e3;
  box-sizing: border-box;
}

.AI-box,
.human-box {
  border-width: 0 0 1px 0;
  border-color: rgba(32, 33, 35, .5);
  color: rgba(236, 236, 241);
  width: 100%;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  min-height: 20px;
  transition: filter ease 0.2s;
}

.AI-box {
  background-color: rgba(68, 70, 84);
}

.human-box {
  background-color: rgba(52, 53, 65);
}

.context-box {
  position: relative;
  margin: auto;
  display: flex;
  justify-content: space-between;
}

.context {
  margin-left: 1rem;
}

.context * {
  max-width: 48rem;
  white-space: pre-wrap;
}

.button-box {
  display: flex;
  width: 60px;
  color: rgba(172, 172, 190);
  padding-left: .5rem;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.button {
  margin: 4px;
}


.edit-group {
  position: absolute;
  top: 0;
  left: 110%;
  height: 100%;
  display: flex;
  width: 90px;
  justify-content: space-between;
  align-items: center;
}

.edit-group img {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.human-box:hover .edit-group img,
.AI-box:hover .edit-group img {
  opacity: 1;
}

.edit-group>* {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  cursor: pointer;

  transition: all 0.2s ease-in-out;
  background-color: rgba(255, 255, 255, 0);
}

.edit-group>*:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.edit>img {
  width: 29px;
  height: 29px;
}

.delete>img {
  width: 32px;
  height: 32px;
}



@media (min-width: 1280px) {
  .context-box {
    max-width: 48rem;
  }

  .AI-box:hover,
  .human-box:hover {
    filter: brightness(1.1) saturate(1.1);
  }
}

@media (min-width: 1024px) {
  .context {
    width: calc(100% - 115px);
  }
}

.form-box {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-image: linear-gradient(180deg, rgba(53, 55, 64, 0), #353740 58.85%);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
}

.input-out {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.input-box {
  position: relative;
  border-width: 1px;
  padding-left: 1rem;
  padding-bottom: .5rem;
  padding-top: .75rem;
  width: 768px;
  margin: 70px 0 0 0;

  box-shadow: rgba(0, 0, 0, 0.1) 0 0 15px 0;
  border-radius: 6px;
  border-color: rgba(32, 33, 35, 0.5);
  background-color: rgb(64, 65, 79);
}

.input-main {

  max-height: 200px;
  margin: 0;
  overflow-y: auto;
  padding-right: 28px;
  width: 100%;
  padding: 0;
  padding-right: 1.75rem;



  border: none;
  outline: none;
  resize: none;
  background: none;
  box-shadow: none;
}

.input-main:focus {
  --tw-ring-color: #00000000;
}

.input-button {
  position: absolute;
  padding: 4px;
  transform: rotate(90deg);
  color: rgb(142, 142, 160);
}

.tip {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.75rem 1rem 1.2rem 1rem;
}

@media (min-width: 768px) {
  .input-button {
    right: .5rem;
    bottom: .775rem;
  }
}


.dailog {
  opacity: 1;
  position: fixed;
  bottom: calc(50vh - 7rem);
  left: calc(50vw - 14rem);
  width: 32rem;
  box-shadow: #00000055 0 .25rem 1rem 0;
  background-color: rgb(64, 65, 79);
  padding: 1.25rem 1.75rem 1.5rem;
  border-radius: .25rem;
  transition: all 0.3s cubic-bezier(0.83, 0, 1, 0.46);
}

.dailog[state="close"] {
  opacity: 0;
  bottom: -10vh;
  pointer-events: none;
}

.dai-context{
  margin-bottom: 2rem;
}

.dai-context>div{
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #d9d9e3;
}

.dai-title {
  font-size: 1.5rem;
  padding-bottom: 0.75rem;
}

.dai-button {
  background-color: rgb(85, 87, 106);
  padding: 0.5rem 1.25rem;
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  border-radius: .2rem;
  cursor: pointer;
}

.dai-button:hover{
  filter: brightness(1.2);
}