/* ============================================================
   Random email generator (random-email) - two-column layout
   ============================================================ */

.em-tool {
  max-width: 1280px;
}

.em-panels {
  align-items: flex-start;
}

.em-input-panel,
.em-result-panel {
  height: auto;
  min-width: 0;
}

.em-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.em-result-status {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary, #6c757d);
  max-width: 60%;
  text-align: right;
}

.em-settings-body,
.em-result-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  overflow: visible;
}

.em-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.em-field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #212529);
}

.em-field small,
.em-field-note {
  font-size: 12px;
  color: var(--text-secondary, #6c757d);
  line-height: 1.45;
}

.em-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.em-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary, #212529);
  line-height: 1.45;
  cursor: pointer;
}

.em-check input {
  margin-top: 2px;
  accent-color: var(--brand, #0a58ca);
}

.em-domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 10px;
}

.em-domain-grid .item-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-primary, #212529);
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.em-domain-grid .item-checkbox input {
  accent-color: var(--brand, #0a58ca);
  flex-shrink: 0;
}

.em-domain-grid .item-checkbox span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.em-action-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.em-action-row .btn {
  min-width: 120px;
}

.em-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fdecea;
  color: #b3261e;
  font-size: 13px;
  line-height: 1.5;
}

.em-message.hidden {
  display: none;
}

/* ---- result ---- */

.em-result-body .result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-color, #e3e6ea);
  padding-top: 12px;
  margin-top: 4px;
}

.em-result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.em-result-textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: pre-wrap;
  resize: vertical;
  min-height: 300px;
  max-height: 560px;
  background: var(--surface, #fff);
}

.em-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary, #6c757d);
}

.em-note i {
  margin-top: 2px;
}

/* ---- mobile ---- */

@media (max-width: 767px) {
  .em-field-grid {
    grid-template-columns: 1fr;
  }

  .em-domain-grid {
    grid-template-columns: 1fr 1fr;
  }

  .em-result-status {
    max-width: 100%;
    text-align: left;
  }

  .em-result-body .result-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
