.domain-panel {
  margin-top: 26px;
}

.domain-panel[hidden] {
  display: none;
}

.domain-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.domain-tools input {
  flex: 1;
  min-width: 220px;
}

.domain-tools select {
  width: 210px;
}

.domain-table {
  min-width: 850px;
}

.domain-table td {
  white-space: normal;
}

.domain-table.orders-list {
  min-width: 0;
}

.orders-list small {
  display: block;
  margin-top: 4px;
  color: #8b849b;
  font-size: 12px;
  line-height: 1.6;
}

.orders-list td:first-child strong,
.orders-list .role-badge,
.orders-list .domain-action button {
  white-space: nowrap;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.domain-card {
  border: 1px solid #e2dfe9;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 18px;
  background: white;
}

.domain-card h3 {
  margin: 0 0 18px;
  font-size: 17px;
}

.domain-card .full {
  grid-column: 1/-1;
}

.domain-card textarea {
  height: 100px;
  padding: 12px;
}

.domain-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.domain-stat {
  padding: 16px 22px;
  background: #f8f6fc;
  border: 1px solid #ede8f6;
  border-radius: 12px;
  flex: 1;
}

.domain-stat small {
  display: block;
  color: #827a91;
}

.domain-stat strong {
  display: block;
  font-size: 21px;
  margin-top: 5px;
}

.domain-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 0;
}

.domain-photo {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.domain-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.domain-steps span {
  padding: 8px 12px;
  background: #f1edf9;
  color: #655589;
  border-radius: 8px;
}

.domain-steps .current {
  background: var(--brand);
  color: white;
}

.domain-note {
  font-size: 12px;
  color: #80778e;
  margin: 12px 0;
}

.domain-toast {
  position: fixed;
  bottom: 26px;
  right: 26px;
  background: #44359b;
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  z-index: 1000;
}

.domain-action {
  display: flex;
  gap: 6px;
}

.domain-action button {
  border: 1px solid #ddd6eb;
  background: white;
  color: var(--brand);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
}

.domain-empty {
  padding: 40px;
  text-align: center;
  color: #8b849b;
}
