.admin-main { margin-top: 28px; }
.admin-heading { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.admin-heading h1 { font-size: 32px; }
.admin-grid { display: grid; grid-template-columns: minmax(230px, 30%) minmax(0, 1fr); gap: 18px; align-items: start; }
.batch-browser h2 { font-size: 21px; }
.batch-browser { padding: 17px; }
.management-status { background: #ebefdf; border: 1px solid #d8e0ca; border-radius: 10px; padding: 11px 14px; margin: 0 0 15px; }
.management-status[data-kind="error"] { color: #943d29; background: #f7ede3; border-color: #dec9b9; }
.batch-choice { width: 100%; text-align: left; display: grid; gap: 3px; border: 1px solid var(--line); background: #faf9f2; padding: 10px; border-radius: 9px; margin-bottom: 8px; }
.batch-choice[aria-current="true"] { border-color: var(--green); background: #eaf0df; }
.batch-choice strong { color: var(--green); font-size: 15px; overflow-wrap: anywhere; }
.batch-choice small { color: var(--muted); overflow-wrap: anywhere; }
.page-buttons { display: flex; gap: 8px; }
.form-section { margin: 18px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); }
.form-section legend { font-weight: 700; font-family: var(--heading); color: var(--deep); font-size: 21px; padding-right: 10px; }
.fields-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.field { min-width: 0; display: grid; align-content: start; gap: 4px; font-size: 13px; color: var(--muted); }
.field-wide { grid-column: 1/-1; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #ced7c3; border-radius: 7px; background: #fafbf4; color: var(--deep); padding: 9px; font: 15px/1.5 var(--body); }
.field input[readonly] { background: #eeeede; }
.field textarea { resize: vertical; min-height: 78px; }
.item-editor { border: 1px solid var(--line); border-radius: 10px; padding: 13px; margin-bottom: 12px; }
.item-editor .section-line { margin-bottom: 10px; }
.item-editor h3 { font-size: 16px; }
.remove-row { border: 0; padding: 6px 9px; min-height: 38px; background: #f1e8db; color: #88472c; border-radius: 6px; }
.save-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 20px; }
.save-bar .btn { min-width: 140px; }
.form-note { color: var(--muted); font-size: 13px; margin: 8px 0 12px; }
.connect { max-width: 780px; margin-top: 26px; }
.connect h1 { font-size: 32px; }
.connect h2 { margin-bottom: 12px; }
.connect .detail-card { margin-top: 18px; }
.connect p { margin-bottom: 12px; }
.connect code { overflow-wrap: anywhere; font-size: 13px; }
.connect pre { overflow: auto; background: #edf1e4; padding: 12px; border-radius: 8px; font-size: 13px; }
.connect li { margin-bottom: 8px; }
@media (max-width: 760px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-main { margin-top: 18px; }
  .admin-heading h1, .connect h1 { font-size: 26px; }
  .batch-browser { max-height: 350px; overflow: auto; }
}
@media (max-width: 400px) {
  .fields-grid { grid-template-columns: 1fr; }
  .admin-heading { flex-wrap: wrap; }
}
