.roster-actions {
  align-items: center;
  flex-wrap: wrap;
}

.roster-bot-message-wrap {
  display: grid;
  gap: 4px;
  width: min(340px, 44vw);
  color: #29263b;
  font-size: 12px;
  font-weight: 900;
}

.roster-bot-message {
  width: 100%;
  min-height: 54px;
  resize: vertical;
  padding: 8px 10px;
  color: #29263b;
  background: #fffdf8;
  border: 2px solid #e7a9bd;
  border-radius: 12px 4px 12px 4px;
  box-shadow: 3px 3px 0 #8be2e5;
  font: inherit;
  font-weight: 700;
}

.roster-bot-message:focus {
  outline: 3px solid #78dce1;
  outline-offset: 1px;
}

.roster-bot-status {
  flex-basis: 100%;
  min-height: 20px;
  color: #565669;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.roster-bot-status.success { color: #17634e; }
.roster-bot-status.warning { color: #915f05; }
.roster-bot-status.error { color: #b42347; }
.roster-bot-status a { color: #176c84; }

.roster-bot-preview-open { overflow: hidden; }

.roster-bot-preview-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(41, 38, 59, .72);
}

.roster-bot-preview-modal[hidden] { display: none; }

.roster-bot-preview-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  background: #fffaf0;
  border: 3px solid #29263b;
  border-radius: 18px 6px 18px 6px;
  box-shadow: 9px 9px 0 #8be2e5;
}

.roster-bot-preview-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: #29263b;
  background: linear-gradient(100deg, #ffb8cf, #ffe6a0 48%, #9ce5e8);
  border-bottom: 3px solid #29263b;
}

.roster-bot-preview-card > header button {
  width: 34px;
  height: 34px;
  padding: 0;
  color: #29263b;
  background: #fffdf8;
  border: 2px solid #29263b;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.roster-bot-preview-scroll {
  overflow: auto;
  padding: 12px;
}

.roster-bot-preview-scroll img {
  display: block;
  width: 100%;
  height: auto;
  margin: auto;
}

@media (max-width: 760px) {
  .roster-actions { align-items: stretch; }
  .roster-bot-message-wrap { width: 100%; }
  .roster-actions > button { flex: 1 1 calc(50% - 6px); }
  .roster-bot-status { text-align: left; }
  .roster-bot-preview-modal { padding: 8px; }
  .roster-bot-preview-card { width: 100%; max-height: 96vh; }
}
