#AlertSystem{
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

#AlertSystem:empty{
  display: none;
}

#AlertSystem:not(:has(.alert[open])){
  display: none;
}

#AlertSystem .alerts{
  display: grid;
  gap: 10px;
  padding: var(--pad) calc(var(--pad) + 2px);
}

#AlertSystem .alert{
  position: relative;
  border: 1px solid rgba(255,255,255,.12);
  background: var(--surface0);
  border-radius: 14px;
  padding: 10px;
}

#AlertSystem .alert:not([open]){
  display: none;
}

#AlertSystem .alert > summary{
  list-style: none;
  position: absolute;
  top: 10px;
  right: 10px;
}

#AlertSystem .alert > summary::-webkit-details-marker{
  display: none;
}

#AlertSystem .alert-inner{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-right: 40px;
}

#AlertSystem .alert-ico{
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: var(--control-bg);
  font-weight: 900;
  flex: 0 0 auto;
}

#AlertSystem .alert-body{
  flex: 1;
  min-width: 0;
}

#AlertSystem .alert-title{
  font-weight: 800;
  letter-spacing: .01em;
}

#AlertSystem .alert-text{
  margin-top: 2px;
  font-size: 13px;
  opacity: .82;
}

#AlertSystem .alert-x{
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: var(--control-bg);
  color: inherit;
}

#AlertSystem .alert-warn{
  border-color: rgba(255,200,80,.30);
  background: #3b2f12;
}

#AlertSystem .alert-info{
  border-color: rgba(120,160,255,.28);
  background: #13233c;
}

@media (max-width: 900px){
  #AlertSystem .alerts{
    padding: 12px;
  }
}
