.dps { max-width: 680px; }

.dps-section { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.dps-h { margin: 0 0 2px; font-size: 15px; font-weight: 700; color: #27331f; }

.dps-section label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: #27331f; }
.dps-section input, .dps-section select, .dps-section textarea {
  padding: 9px 11px; font-size: 14.5px; border: 1px solid #d9e0d4; border-radius: 6px; font-family: inherit;
}
.dps-section textarea { font-family: ui-monospace, monospace; font-size: 13.5px; resize: vertical; }
.dps-section input:focus, .dps-section select:focus, .dps-section textarea:focus {
  outline: 2px solid #19616a; outline-offset: 1px;
}

.dps-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dps-row2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* Repeatable rows (recipe ingredients, loot entries, tag members) */
.dps-list-rows { display: flex; flex-direction: column; gap: 8px; }
.dps-list-row { display: flex; gap: 8px; align-items: center; }
.dps-list-row input, .dps-list-row select { flex: 1; }
.dps-list-row .dps-key-input { flex: 0 0 60px; }
.dps-list-row .dps-count-input { flex: 0 0 80px; }
.dps-btn-remove {
  flex: 0 0 auto; width: 32px; height: 32px; border: 1px solid #d9e0d4; border-radius: 6px; background: #fff;
  color: #27331f; cursor: pointer; font-size: 16px; line-height: 1; font-weight: 700;
}
.dps-btn-remove:hover { border-color: #19616a; color: #19616a; }
.dps-btn-add {
  align-self: flex-start; padding: 8px 14px; font-size: 13px; font-weight: 700; border: 1px solid #19616a;
  border-radius: 6px; background: #fff; color: #19616a; cursor: pointer;
}
.dps-btn-add:hover { background: #19616a; color: #fff; }

.dps-btn-primary {
  align-self: flex-start; padding: 10px 18px; font-size: 14px; font-weight: 700; border: 1px solid #19616a;
  border-radius: 6px; background: #19616a; color: #fff; cursor: pointer;
}
.dps-btn-primary:hover { background: #144e55; border-color: #144e55; }
.dps-btn-primary:disabled { background: #5b6b56; border-color: #5b6b56; cursor: not-allowed; opacity: 0.7; }

/* 3x3 shaped-recipe grid (reused pattern from datapack-builders-simple) */
.dps-grid3 { display: grid; grid-template-columns: repeat(3, 44px); gap: 6px; }
.dps-grid3 input {
  width: 44px; height: 44px; padding: 0; text-align: center; font-size: 16px; font-weight: 700;
}

/* Running list of added datapack items */
.dps-list { display: flex; flex-direction: column; gap: 8px; }
.dps-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; background: #f3f4f8; border: 1px solid #d9e0d4; border-radius: 6px;
}
.dps-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dps-item-path { font-family: ui-monospace, monospace; font-size: 13px; color: #19616a; font-weight: 700; word-break: break-all; }
.dps-item-desc { font-size: 12.5px; color: #5b6b56; }
.dps-empty { font-size: 13px; color: #5b6b56; }

.dps-summary {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: #f3f4f8;
  border: 1px solid #d9e0d4; border-radius: 6px; font-size: 13px; color: #27331f;
}
.dps-summary-count { font-weight: 700; }
.dps-summary-path { font-family: ui-monospace, monospace; font-size: 12.5px; color: #5b6b56; }

#dps-build-status { margin-top: 10px; }
.dps-status-msg { font-size: 13px; color: #5b6b56; }
.dps-status-error { font-size: 13px; color: #a4342a; font-weight: 700; }
.dps-download-link {
  display: inline-block; margin-top: 8px; padding: 9px 16px; font-size: 13.5px; font-weight: 700;
  border: 1px solid #19616a; border-radius: 6px; background: #19616a; color: #fff; text-decoration: none;
}
.dps-download-link:hover { background: #144e55; border-color: #144e55; }

.dps-hint { font-size: 12.5px; color: #5b6b56; margin: 4px 0 0; }
.dps-note { margin-top: 8px; font-size: 13px; color: #5b6b56; }

@media (max-width: 480px) {
  .dps-row3 { grid-template-columns: 1fr; }
  .dps-row2 { grid-template-columns: 1fr; }
}
