body.smart-batch-open { overflow: hidden; }

.smart-batch-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0;
  padding: 17px 18px;
  border: 1px solid #bad2da;
  border-radius: 15px;
  background: linear-gradient(135deg, #eaf4f7, #fff);
}
.smart-batch-launch > div { display: flex; align-items: center; gap: 12px; }
.smart-batch-launch > div > span { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 12px; color: #fff; background: #193f4e; font-size: 22px; }
.smart-batch-launch p, .smart-batch-launch strong, .smart-batch-launch small { display: block; margin: 0; }
.smart-batch-launch strong { color: #173846; font-size: 15px; }
.smart-batch-launch small { margin-top: 4px; color: #68767c; line-height: 1.35; }
.smart-batch-launch button,
.smart-batch-primary { min-height: 43px; padding: 0 17px; border: 0; border-radius: 11px; color: #fff; background: #193f4e; font-weight: 750; cursor: pointer; }
.smart-batch-launch button:hover, .smart-batch-primary:hover { background: #0f3240; }
.smart-batch-launch button:disabled, .smart-batch-feed-button:disabled, .smart-batch-primary:disabled { cursor: wait; opacity: .65; }
.smart-batch-feed-button { margin-top: 13px; }

.smart-batch-toast { position: fixed; z-index: 100002; right: 24px; bottom: 24px; max-width: 430px; padding: 14px 17px; border-radius: 12px; color: #fff; background: #193f4e; box-shadow: 0 14px 45px rgba(0,0,0,.23); font-size: 13px; line-height: 1.45; }
.smart-batch-overlay { position: fixed; z-index: 100001; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(10, 25, 31, .66); }
.smart-batch-dialog { position: relative; display: flex; width: min(1040px, 100%); max-height: min(900px, calc(100vh - 36px)); flex-direction: column; overflow: hidden; border-radius: 22px; background: #f5f2ef; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.smart-batch-dialog > header { display: flex; align-items: center; gap: 14px; padding: 23px 76px 21px 25px; border-bottom: 1px solid #ddd8d3; background: #fff; }
.smart-batch-dialog > header p, .smart-batch-dialog > header h2, .smart-batch-dialog > header span { margin: 0; }
.smart-batch-dialog > header p { color: #57839a; font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.smart-batch-dialog > header h2 { margin-top: 3px; color: #101719; font-size: 25px; }
.smart-batch-dialog > header div > span { display: block; margin-top: 4px; color: #747a7d; font-size: 12px; }
.smart-batch-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 14px; color: #fff; background: #193f4e; font-size: 25px; }
.smart-batch-close { position: absolute; z-index: 2; top: 17px; right: 20px; display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; color: #17272e; background: #f2efec; font-size: 28px; line-height: 1; cursor: pointer; }
.smart-batch-body { overflow-y: auto; padding: 20px 25px 22px; }
.smart-batch-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.smart-batch-metrics article { padding: 15px 16px; border: 1px solid #ddd8d3; border-radius: 13px; background: #fff; }
.smart-batch-metrics strong, .smart-batch-metrics span { display: block; }
.smart-batch-metrics strong { font-size: 25px; }
.smart-batch-metrics span { margin-top: 3px; color: #687278; font-size: 12px; }
.smart-batch-metrics .ready { border-color: #bfdccb; background: #f1f9f4; }
.smart-batch-metrics .review { border-color: #e5d2a0; background: #fffaf0; }
.smart-batch-metrics .blocked { border-color: #e5c4bf; background: #fff5f3; }
.smart-batch-explainer { display: flex; gap: 8px; margin: 13px 0; padding: 12px 14px; border-radius: 11px; color: #58666c; background: #eaf2f5; font-size: 12px; line-height: 1.45; }
.smart-batch-explainer strong { color: #193f4e; }
.smart-batch-items { display: grid; gap: 10px; }
.smart-batch-item { overflow: hidden; border: 1px solid #ddd8d3; border-radius: 13px; background: #fff; }
.smart-batch-item.ready { border-left: 4px solid #5b9473; }
.smart-batch-item.review { border-left: 4px solid #c59b3a; }
.smart-batch-item.blocked { border-left: 4px solid #be5d52; }
.smart-batch-item summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; list-style: none; cursor: pointer; }
.smart-batch-item summary::-webkit-details-marker { display: none; }
.smart-batch-item summary div strong, .smart-batch-item summary div small { display: block; }
.smart-batch-item summary div strong { color: #18252a; }
.smart-batch-item summary div small { margin-top: 3px; color: #777d80; }
.smart-batch-item summary > b { color: #52717f; font-size: 12px; }
.smart-batch-status { padding: 5px 8px; border-radius: 999px; color: #2f6649; background: #e9f5ed; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.smart-batch-item.review .smart-batch-status { color: #775b19; background: #fff0c9; }
.smart-batch-item.blocked .smart-batch-status { color: #8e3730; background: #fae7e4; }
.smart-batch-item-body { padding: 0 16px 16px; border-top: 1px solid #eeeae6; }
.smart-batch-item-body > p { margin: 13px 0; color: #536168; font-size: 13px; line-height: 1.45; }
.smart-batch-proposed { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.smart-batch-proposed > strong { width: 100%; color: #365767; font-size: 12px; }
.smart-batch-proposed span { padding: 6px 8px; border-radius: 8px; color: #486069; background: #edf4f6; font-size: 11px; }
.smart-batch-choice { display: grid; grid-template-columns: minmax(190px, .65fr) 1.35fr; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #eeeae6; }
.smart-batch-choice span strong, .smart-batch-choice span small { display: block; }
.smart-batch-choice span small { margin-top: 3px; color: #8a7a4d; }
.smart-batch-choice select { box-sizing: border-box; width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid #d8d0bf; border-radius: 9px; background: #fffdf7; }
.smart-batch-check { display: grid; grid-template-columns: 21px 1fr; gap: 9px; padding: 12px 0; border-top: 1px solid #eeeae6; cursor: pointer; }
.smart-batch-check input { width: 17px; height: 17px; margin-top: 2px; accent-color: #193f4e; }
.smart-batch-check span strong, .smart-batch-check span small { display: block; }
.smart-batch-check span strong { color: #293a41; font-size: 12px; }
.smart-batch-check span small { margin-top: 4px; color: #73797c; line-height: 1.4; }
.smart-batch-item-body ul { margin: 8px 0 0; padding: 10px 12px 10px 29px; border-radius: 9px; color: #843f38; background: #fff2f0; font-size: 12px; line-height: 1.5; }
.smart-batch-privacy { margin-top: 14px; color: #777d80; font-size: 11px; line-height: 1.45; }
.smart-batch-dialog > footer { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 25px; border-top: 1px solid #ddd8d3; background: #fff; }
.smart-batch-secondary { min-height: 43px; padding: 0 17px; border: 1px solid #193f4e; border-radius: 11px; color: #193f4e; background: #fff; font-weight: 750; cursor: pointer; }

@media (max-width: 720px) {
  .smart-batch-launch { align-items: stretch; flex-direction: column; }
  .smart-batch-launch button { width: 100%; }
  .smart-batch-overlay { padding: 0; }
  .smart-batch-dialog { width: 100%; max-height: 100vh; min-height: 100vh; border-radius: 0; }
  .smart-batch-dialog > header { padding-left: 15px; }
  .smart-batch-body { padding: 15px; }
  .smart-batch-metrics { grid-template-columns: 1fr; }
  .smart-batch-explainer { flex-direction: column; }
  .smart-batch-item summary { grid-template-columns: 1fr auto; }
  .smart-batch-status { grid-column: 1 / -1; justify-self: start; }
  .smart-batch-choice { grid-template-columns: 1fr; }
  .smart-batch-dialog > footer { align-items: stretch; flex-direction: column-reverse; padding: 13px 15px; }
  .smart-batch-dialog > footer button { width: 100%; }
  .smart-batch-toast { right: 12px; bottom: 12px; left: 12px; max-width: none; }
}
