.gen-page {
  padding-bottom: 64px;
}

.gen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.gen-tab {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-weight: 760;
  cursor: pointer;
}

.gen-tab.active {
  color: #061019;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.gen-panel {
  display: none;
}

.gen-panel.active {
  display: block;
}

.gen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}

.gen-card,
.gen-output-card,
.identity-table-wrap {
  min-width: 0;
}

.identity-preview-card {
  display: grid;
  gap: 14px;
}

.identity-avatar {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  color: #061019;
  font-weight: 800;
  font-size: 1.3rem;
}

.identity-kv {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px 14px;
}

.identity-kv dt {
  color: var(--muted);
  font-weight: 700;
}

.identity-kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.identity-table-wrap {
  overflow-x: auto;
}

.identity-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.identity-table th,
.identity-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.identity-table th {
  color: var(--muted);
  font-size: 0.9rem;
}

.identity-table td {
  overflow-wrap: anywhere;
}

.gen-note {
  margin-top: 18px;
}

@media (max-width: 860px) {
  .gen-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gen-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .gen-tab,
  .hero-actions .btn {
    width: 100%;
  }

  .identity-kv {
    grid-template-columns: 1fr;
  }
}
