.auto-dev-page .hero h1 {
  margin-bottom: 0;
}

.auto-dev-panel {
  overflow: hidden;
}

.auto-dev-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.auto-dev-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auto-dev-form label span {
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.auto-dev-form input,
.auto-dev-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7dde8;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.auto-dev-form textarea {
  min-height: 74px;
  resize: vertical;
}

.auto-dev-form .full-row {
  grid-column: 1 / -1;
}

.auto-dev-form-actions,
.auto-dev-toolbar,
.detail-head,
.mini-buttons,
.auto-dev-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.auto-dev-toolbar,
.detail-head {
  justify-content: space-between;
  margin-bottom: 14px;
}

.auto-dev-message {
  color: #475569;
  font-size: 14px;
}

.auto-dev-message.ok {
  color: #0f766e;
}

.auto-dev-message.bad {
  color: #b91c1c;
}

.form-help {
  margin: -2px 0 2px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.auto-dev-category-sync-hint {
  flex-basis: 100%;
  display: grid;
  gap: 8px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #f0f9ff;
  color: #0f172a;
  padding: 10px 12px;
  font-size: 13px;
}

.auto-dev-category-sync-hint code {
  color: #075985;
  font-weight: 800;
}

.auto-dev-category-sync-hint .sync-command {
  overflow: auto;
  border: 1px solid #d7dde8;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  padding: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: nowrap;
}

.small-muted {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.auto-dev-table-shell {
  min-height: 140px;
}

.auto-dev-table-scroll {
  overflow: auto;
  border: 1px solid #d7dde8;
  border-radius: 8px;
  background: #fff;
}

.auto-dev-grid {
  min-width: 2600px;
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.auto-dev-grid th,
.auto-dev-grid td {
  border: 1px solid #d7dde8;
  padding: 8px;
  vertical-align: top;
  background: #fff;
}

.auto-dev-grid th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f3f6fb;
  color: #1f2937;
  white-space: nowrap;
}

.auto-dev-grid .group-row th {
  background: #e8eef8;
  text-align: center;
  font-weight: 800;
}

.auto-dev-grid .sticky-col {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 128px;
  background: #f8fafc;
}

.task-id-link {
  color: #0f766e;
  font-weight: 800;
  text-decoration: none;
}

.task-id-link:hover {
  text-decoration: underline;
}

.auto-dev-row {
  cursor: default;
}

.auto-dev-row.selected td {
  background: #eff6ff;
}

.auto-dev-row:hover td {
  background: #f8fafc;
}

.auto-dev-grid .wide {
  min-width: 220px;
  max-width: 300px;
}

.auto-dev-grid .path {
  min-width: 180px;
  max-width: 260px;
  word-break: break-all;
  color: #475569;
}

.auto-dev-thumb {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.auto-dev-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.auto-dev-status.ok {
  color: #047857;
  background: #d1fae5;
}

.auto-dev-status.wait {
  color: #92400e;
  background: #fef3c7;
}

.auto-dev-status.run {
  color: #1d4ed8;
  background: #dbeafe;
}

.auto-dev-status.bad {
  color: #b91c1c;
  background: #fee2e2;
}

.mini-buttons,
.auto-dev-actions {
  min-width: 150px;
}

.mini-buttons button,
.auto-dev-actions button,
.auto-dev-actions .button-like {
  min-height: 26px;
  padding: 4px 8px;
  font-size: 12px;
}

.auto-dev-actions .button-like {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0f766e;
  border-radius: 8px;
  color: #0f766e;
  background: #ecfeff;
  font-weight: 700;
  text-decoration: none;
}

.mini-buttons button.supplement {
  color: #075985;
  background: #e0f2fe;
  border-color: #bae6fd;
}

.auto-dev-actions {
  min-width: 250px;
}

.auto-dev-detail.empty,
.auto-dev-empty {
  color: #64748b;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}

.detail-head h3 {
  margin: 0;
}

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

.detail-card {
  border: 1px solid #d7dde8;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.detail-card-wide {
  grid-column: 1 / -1;
}

.detail-card h4 {
  margin: 0 0 12px;
}

.detail-line {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid #eef2f7;
}

.detail-line span {
  color: #64748b;
}

.detail-line strong {
  color: #111827;
  font-weight: 600;
  word-break: break-word;
}

.log-level {
  display: inline-block;
  min-width: 44px;
  font-weight: 800;
}

.supplement-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
}

.supplement-panel {
  width: min(840px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  padding: 18px;
}

.supplement-head,
.supplement-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.supplement-head h3 {
  margin: 0 0 6px;
}

.supplement-head p,
.supplement-note p {
  margin: 0;
  color: #64748b;
}

.supplement-profile-key {
  margin-top: 6px !important;
  font-size: 12px;
  word-break: break-all;
}

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

.supplement-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.supplement-field span {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.supplement-field input {
  border: 1px solid #d7dde8;
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
}

.supplement-note {
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  padding: 14px;
}

.supplement-note h4 {
  margin: 0 0 8px;
}

.supplement-note ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.supplement-actions {
  margin-top: 16px;
}

.log-level.error {
  color: #b91c1c;
}

.log-level.warn {
  color: #92400e;
}

.log-level.info {
  color: #0369a1;
}

.auto-dev-candidate-list {
  display: grid;
  gap: 10px;
}

.auto-dev-candidate {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.candidate-title {
  font-weight: 800;
  word-break: break-word;
}

.candidate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.candidate-meta span {
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
}

.auto-dev-candidate p {
  margin: 6px 0 0;
  word-break: break-word;
}

@media (max-width: 900px) {
  .auto-dev-form,
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
