.batch-feed-dialog{color:#f2f4f8;background:#161c24;border:1px solid #465365;border-radius:18px;width:min(920px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:24px;box-sizing:border-box;overflow:auto}
.batch-feed-dialog::backdrop{background:#000b}
.batch-feed-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.batch-feed-dialog h2{margin:4px 0 8px;font-size:26px}
.batch-feed-dialog small,.batch-feed-dialog p{color:#bac5d3;line-height:1.5}
.batch-feed-dialog label{display:grid;gap:8px;margin:14px 0;font-weight:600}
.batch-feed-dialog select,.batch-feed-dialog textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #526177;border-radius:8px;background:#0d131b;color:#fff;font:inherit}
.batch-feed-dialog textarea{resize:vertical;min-height:120px;overflow-wrap:anywhere}
.batch-feed-dialog :focus-visible{outline:3px solid #80b7ff;outline-offset:3px}
.batch-feed-dialog [hidden]{display:none!important}
.batch-feed-dialog .batch-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}
.batch-feed-dialog button:disabled{opacity:.5;cursor:default}
.batch-progress{display:grid;gap:10px;padding:16px;background:#10161e;border-radius:10px}
.batch-progress progress{width:100%;height:12px;accent-color:#6ba5ff}
.batch-results-wrap{overflow:auto;margin-top:20px}
.batch-results-wrap caption{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.batch-feed-dialog table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}
.batch-feed-dialog th,.batch-feed-dialog td{padding:12px 8px;border-bottom:1px solid #344050;overflow-wrap:anywhere}
.batch-feed-dialog th{color:#c7d2e3}
.batch-feed-dialog th:nth-child(2),.batch-feed-dialog td:nth-child(2){white-space:nowrap}
.batch-feed-dialog tr[data-result=working] td:nth-child(2){color:#85dfb1}
.batch-feed-dialog tr[data-result=failed] td:nth-child(2),#batchFeedError{color:#ffb7b7}
.batch-feed-dialog tr[data-result=deferred] td:nth-child(2){color:#f4d388}
@media(max-width:600px){.batch-feed-dialog{padding:16px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.batch-feed-dialog h2{font-size:22px}.batch-feed-dialog .batch-actions button{flex:1 1 140px}.batch-feed-dialog th,.batch-feed-dialog td{padding:10px 5px;font-size:12px}.batch-feed-dialog input[type=file]{width:100%;font-size:12px}}
.maintenance-tools #openBatchFeedTest{grid-column:1/-1;width:100%}
.batch-feed-dialog input[type=password],.batch-feed-dialog input[type=number]{width:100%;box-sizing:border-box;padding:12px;border:1px solid #526177;border-radius:8px;background:#0d131b;color:#fff;font:inherit}
.batch-range{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.batch-feed-dialog input[type=text]{width:100%;box-sizing:border-box;padding:12px;border:1px solid #526177;border-radius:8px;background:#0d131b;color:#fff;font:inherit}
.batch-saved-actions,.batch-saved-row{display:flex;gap:12px;justify-content:space-between;align-items:center;margin:12px 0}
.batch-saved-row{padding:12px;background:#10161e;border-radius:8px}
.batch-feed-dialog .batch-saved-row label{display:flex;align-items:center;gap:12px;margin:0;min-width:0;overflow-wrap:anywhere}
.batch-saved-row input{width:20px;height:20px;flex-shrink:0}
.batch-saved-row button{flex-shrink:0}
.batch-subscription-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.batch-saved-row small{display:block;font-weight:400;margin-top:4px}
.batch-account-summary{font-size:13px;margin:10px 0}
#batchSavedNotice{padding:12px;background:#123026;border-radius:8px;color:#b7f2d3}
#batchSavedEditor{border:1px solid #465365;padding:16px;border-radius:8px;margin:16px 0}
#batchSavedEditor summary{cursor:pointer;font-weight:600}
#batchSavedEditor small{display:block;margin-top:10px}
.batch-feed-dialog td details{margin-top:8px}.batch-feed-dialog td details p{margin:6px 0;font-size:12px}
@media(max-width:600px){
  .batch-saved-row{flex-wrap:wrap}.batch-subscription-actions{width:100%;justify-content:flex-start}
  .batch-results-wrap table,.batch-results-wrap tbody{display:block;width:100%}
  .batch-results-wrap thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .batch-results-wrap tr{display:grid;grid-template-columns:minmax(0,1fr) auto;border-bottom:1px solid #344050;padding:12px 0}
  .batch-results-wrap td{border:0;padding:4px 0;font-size:14px}
  .batch-results-wrap td:first-child{font-weight:600;padding-right:12px}
  .batch-results-wrap td:nth-child(2){white-space:nowrap}
  .batch-results-wrap td:last-child{grid-column:1/-1;margin-top:6px}
}
