.tenant-editor-layout { grid-template-columns: minmax(0, 1fr); max-width: 1120px; }
.tenant-editor-layout > .admin-panel { min-width: 0; }
.tenant-editor-intro { color: #647184; line-height: 1.5; margin: 0 0 20px; }
.tenant-identity-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border: 1px solid #d5dee8; border-radius: 14px; padding: 18px; min-width: 0; }
.tenant-identity-fields legend { font-weight: 700; padding: 0 8px; }
.tenant-candidate-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.tenant-editor-layout input, .tenant-editor-layout select { min-width: 0; width: 100%; box-sizing: border-box; }
.tenant-editor-layout input[type="checkbox"] { width: auto; }
.tenant-editor-status { grid-column: 1 / -1; margin: 0; line-height: 1.5; color: #526174; overflow-wrap: anywhere; }
.tenant-editor-status.error, .tenant-link-preview .error { color: #a52b23; }
.tenant-editor-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }
.tenant-lifecycle { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tenant-stage { border: 1px solid #d9e0e7; border-radius: 8px; padding: 7px 10px; font-size: 13px; background: #f5f7fa; }
.tenant-stage.ready { border-color: #b4decf; color: #146247; background: #f0faf5; }
.tenant-stage.pending { color: #725122; background: #fffaf0; border-color: #e7d8b7; }
.tenant-card-connection { color: #687485; font-size: 12px; line-height: 1.45; }
.tenant-visual-card.status-draft { border-color: #ccb88e; }
.tenant-visual-card.status-draft .tenant-card-accent { background: #d7b76b; }
.tenant-link-preview { margin-top: 24px; padding: 18px; border: 1px solid #d5dee8; border-radius: 14px; }
.tenant-link-preview td { white-space: normal; overflow-wrap: anywhere; }
.tenant-link-preview input[type="checkbox"] { width: 20px; height: 20px; }
.tenant-editor-layout [hidden], .tenant-link-preview[hidden] { display: none !important; }
@media (max-width: 650px) {
  .tenant-editor-layout .admin-form--two, .tenant-identity-fields, .tenant-candidate-fields { grid-template-columns: minmax(0, 1fr); }
  .tenant-identity-fields { padding: 12px; }
  .tenant-editor-actions > button { width: 100%; }
  .tenant-link-preview { padding: 12px; }
}

.tenant-editor-actions > button, .tenant-link-preview > button, #newTenantBtn { min-height: 40px; padding: 9px 16px; border: 1px solid #d5c9bf; border-radius: 8px; background: #fff; color: #85431e; font: inherit; font-weight: 600; cursor: pointer; }
.tenant-link-preview > button { border-color: #91441f; background: linear-gradient(135deg, #b45d2c, #91441f); color: #fff; }
.tenant-editor-layout button:disabled { cursor: default; opacity: .6; }
.tenant-editor-layout input:disabled { background: #f5f6f7; color: #67717e; }
