.batch-picker {
  display: flex; align-items: end; flex-wrap: wrap; gap: 14px 22px;
  margin: 0 0 18px; padding: 16px 20px;
  background: #fff; border: 1px solid var(--border); border-radius: 7px;
}
.batch-picker label { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.batch-picker select { min-width: 128px; max-width: 100%; }
.batch-select { flex: 1 1 265px; min-width: 0; }
.batch-range { display: flex; padding: 3px; gap: 2px; background: #f4f1f0; border-radius: 5px; }
.batch-range button { background: transparent; padding: 8px 12px; border: 0; border-radius: 4px; color: #625b5d; cursor: pointer; }
.batch-range button.active { background: #fff; color: #762a3b; box-shadow: 0 1px 4px #40232a1c; font-weight: 600; }
.batch-workspace { overflow: hidden; }
.batch-overline { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 23px 24px 15px; border-top: 3px solid #783344; }
.batch-overline h2 { margin: 7px 0 3px; font-size: 23px; }
.batch-overline p,.topic-heading p,.batch-rule-body>p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.batch-tabs { border-bottom: 1px solid var(--border); padding: 0 24px; }
.batch-topics,.batch-rule-body { padding: 20px 24px; }
.topic-heading { align-items: start; flex-wrap: wrap; gap: 10px; }
.topic-heading h2,.batch-rule-body h2 { margin: 0; font-size: 17px; }
.topic-controls,.batch-links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; }
.topic-controls { margin: 14px 0; }
.topic-controls input[hidden] { display: none; }
.topic-form { padding: 16px; background: #f8f7f5; border-radius: 6px; margin: 16px 0; }
.topic-record { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border); }
.topic-record small { display: block; margin: 4px 0; color: var(--muted); }
.topic-record p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 8em; overflow: auto; }
.topic-record .btn { flex: none; }
.batch-links { padding: 14px 24px; background: #fbfaf9; border-top: 1px solid var(--border); }
@media(max-width:600px) {
  .batch-picker,.batch-topics,.batch-rule-body,.batch-overline { padding: 14px; }
  .batch-picker { align-items: stretch; flex-direction: column; }
  .batch-select { flex-basis: auto; }
  .batch-tabs,.batch-links { padding-left: 14px; padding-right: 14px; }
}
