.aw-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: #f3f4f8;
  border-radius: 12px;
  margin-bottom: 18px;
}
.aw-mode {
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 11px 10px;
  font-size: 15px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.aw-mode.active {
  background: #fff;
  color: #4f46e5;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.12);
}

.aw-text-wrap textarea { min-height: 170px; }
.aw-count {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}
.aw-count-over { color: #dc2626; font-weight: 600; }

#aw-rewrite-fields[hidden], #aw-reply-fields[hidden], #aw-subject-block[hidden] { display: none; }

/* Output versions */
.aw-subject-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  min-width: 0;
}
.aw-subject-row strong { overflow-wrap: anywhere; min-width: 0; }

.aw-version { margin-bottom: 18px; }
.aw-version-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.aw-version-head .mk-out-label { margin-bottom: 0; }

/* Link to the generator */
.aw-related {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 22px 24px;
  margin-top: 36px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.06);
}
.aw-related h3 { margin: 0 0 4px; font-size: 18px; }
.aw-related p { margin: 0 !important; font-size: 15px; color: #6b7280 !important; }
.aw-related a.mk-btn { text-decoration: none; }

@media (max-width: 575px) {
  .aw-subject-row { flex-wrap: wrap; }
  .aw-related { padding: 18px; }
  .aw-related a.mk-btn { width: 100%; }
}