#page-batch-invite{padding-top:0}
#page-batch-invite .batch-invite-hero{margin:0 -38px 14px;padding:12px 38px;min-height:58px;align-items:center;border:1px solid var(--line);border-top:0;border-radius:0 0 12px 12px;background:linear-gradient(100deg,rgba(18,37,34,.9),rgba(14,20,28,.9))}
#page-batch-invite .batch-invite-hero .eyebrow{display:none}
#page-batch-invite .batch-invite-hero h3{font-size:20px;margin:0 0 3px}
#page-batch-invite .batch-invite-hero p:last-child{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.batch-invite-form .form-section-title{align-items:center;padding-bottom:12px}
.batch-config-toggle{margin-left:auto;flex:0 0 auto;border:1px solid #2d485a;background:#152331;color:#a9d4ed;border-radius:8px;padding:7px 11px;font-size:11px;font-weight:700}
.batch-config-toggle:hover{border-color:#4aa4d6;color:#e1f4ff}
.batch-invite-config-body{padding-top:2px}
.batch-invite-config-body{display:flex;flex-direction:column;gap:16px}.batch-config-group{border:1px solid #263342;border-radius:12px;background:rgba(13,19,27,.58);padding:16px 18px}.batch-config-group-head{display:flex;align-items:baseline;gap:10px;margin-bottom:12px}.batch-config-group-head small{color:var(--muted);font-size:10px}.batch-config-kicker{color:#dce8f3;font-size:12px;font-weight:800;letter-spacing:.03em}.batch-fields-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr);gap:0 16px}.batch-fields-grid.timing{grid-template-columns:minmax(190px,.9fr) minmax(250px,1.2fr) minmax(170px,.7fr);align-items:start}.batch-config-group label{margin-top:0}.batch-rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.batch-rule-card{min-height:66px;padding:12px 13px;border:1px solid #263342;border-radius:9px;background:#101820;display:flex;flex-direction:column;justify-content:center;gap:6px}.batch-rule-card strong{font-size:11px;color:#dce8f3}.batch-rule-card span{font-size:11px;color:var(--muted);line-height:1.45}.batch-config-group .timezone-now{margin-top:2px}.batch-config-group .task-group-config{margin-top:0}
@media(max-width:850px){#page-batch-invite .batch-invite-hero{margin-left:-18px;margin-right:-18px;padding-left:18px;padding-right:18px}.batch-invite-hero .independent-badge{display:none}}
@media(max-width:900px){.batch-fields-grid.timing{grid-template-columns:repeat(2,minmax(0,1fr))}.batch-fields-grid.timing .toggle-field{grid-column:1/-1}.batch-rule-grid{grid-template-columns:1fr}}
@media(max-width:560px){#page-batch-invite .batch-invite-hero{min-height:52px}.batch-invite-hero p:last-child{white-space:normal}.batch-config-toggle{padding:6px 8px}.batch-config-group{padding:14px}.batch-fields-grid,.batch-fields-grid.timing{grid-template-columns:1fr}.batch-fields-grid.timing .toggle-field{grid-column:auto}}

/* v4 compact density: keep every area, action baseline, and statistic card aligned */
#page-batch-invite .batch-summary-grid{margin:0 0 12px;gap:10px}
#page-batch-invite .batch-summary-grid .panel{min-height:82px;padding:13px 16px;border-radius:10px}
#page-batch-invite .batch-summary-grid span{font-size:10px;line-height:1.2}
#page-batch-invite .batch-summary-grid strong{margin-top:7px;font-size:22px;line-height:1.05}
#page-batch-invite .batch-summary-grid small{display:block;margin-top:5px;color:var(--muted);font-size:9px;line-height:1.2}
#page-batch-invite .batch-invite-form{margin-bottom:12px;padding:14px 16px}
#page-batch-invite .batch-invite-config-body{gap:10px}
#page-batch-invite .batch-config-group{padding:12px 14px;border-radius:10px}
#page-batch-invite .batch-config-group-head{margin-bottom:9px}
#page-batch-invite .batch-rule-grid{gap:8px}
#page-batch-invite .batch-rule-card{min-height:52px;padding:9px 11px;gap:4px}
#page-batch-invite .batch-rule-card span{font-size:10px}
#page-batch-invite .task-group-config{padding:12px 14px}
#page-batch-invite .task-group-editor{gap:8px}
#page-batch-invite .form-actions{margin-top:2px;padding-top:11px}
#page-batch-invite .form-action-buttons{gap:8px;justify-content:flex-end}
#page-batch-invite .form-action-buttons button{height:36px;min-width:96px;padding:0 14px;line-height:1;white-space:nowrap}
#page-batch-invite .form-action-buttons #runBatchInviteOnce{min-width:122px}
#page-batch-invite .form-action-buttons #endBatchInviteRound{min-width:88px}

/* v5 structural rebuild: two-column configuration workspace */
#page-batch-invite .batch-invite-hero{min-height:48px;margin-bottom:10px;padding-top:9px;padding-bottom:9px}
#page-batch-invite .batch-invite-hero h3{font-size:18px}
#page-batch-invite .batch-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:10px}
#page-batch-invite .batch-invite-form{padding:12px 14px}
#page-batch-invite .batch-invite-config-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:start}
#page-batch-invite .batch-invite-config-body>.batch-config-group{margin:0}
#page-batch-invite .batch-invite-config-body>.batch-config-group:nth-child(1){grid-column:1;grid-row:1}
#page-batch-invite .batch-invite-config-body>.batch-config-group:nth-child(2){grid-column:1;grid-row:2}
#page-batch-invite .batch-invite-config-body>.batch-config-group:nth-child(3){grid-column:2;grid-row:1 / span 2;height:100%}
#page-batch-invite .batch-invite-config-body>.task-group-config{grid-column:1 / -1;grid-row:3;margin:0}
#page-batch-invite .batch-invite-config-body>.form-actions{grid-column:1 / -1;grid-row:4;margin:0}
#page-batch-invite .batch-fields-grid{grid-template-columns:minmax(0,1.45fr) minmax(150px,.65fr) minmax(0,1.15fr);gap:10px}
#page-batch-invite .batch-fields-grid.timing{grid-template-columns:minmax(190px,1fr) minmax(220px,1.25fr) minmax(150px,.75fr);gap:10px}
#page-batch-invite .batch-rule-grid{grid-template-columns:1fr;gap:8px;height:calc(100% - 26px)}
#page-batch-invite .batch-rule-card{min-height:0;flex:1}
#page-batch-invite .task-group-editor{grid-template-columns:minmax(0,1fr) 220px}
#page-batch-invite .form-actions{display:flex;align-items:center;justify-content:space-between;gap:16px}
#page-batch-invite .form-actions>p{margin:0;max-width:58%;line-height:1.4}
#page-batch-invite .task-record-panel{margin-top:10px}
#page-batch-invite .field-help{display:block;margin-top:5px;color:var(--muted);font-size:10px;line-height:1.35}
#page-batch-invite .batch-receipt-detail-row>td{padding:0 12px 12px;background:rgba(9,15,22,.72)}
#page-batch-invite .batch-receipt-detail{border:1px solid #263342;border-radius:9px;padding:10px 12px;background:#101820}
#page-batch-invite .batch-receipt-detail-title{font-size:11px;color:#dce8f3;font-weight:800;margin-bottom:8px}
#page-batch-invite .batch-receipt-detail-loading,#page-batch-invite .batch-receipt-detail-error{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px;line-height:1.4}
#page-batch-invite .batch-receipt-detail-error{color:#ffb5ae}
#page-batch-invite .batch-receipt-list{display:grid;gap:6px;max-height:260px;overflow:auto;overscroll-behavior:contain;min-width:0}
#page-batch-invite .batch-receipt-item{display:grid;grid-template-columns:minmax(120px,.6fr) minmax(180px,1fr) minmax(160px,1.3fr);gap:10px;padding:7px 8px;border:1px solid #1f2d3c;border-radius:7px;color:var(--muted);font-size:10px;line-height:1.35;min-width:0;overflow-wrap:anywhere}
#page-batch-invite .batch-receipt-item>span{min-width:0}
#page-batch-invite .batch-receipt-target{color:#f1c56a;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}
#page-customer-console .task-main-row.completed-hidden{display:none}
@media(max-width:1000px){#page-batch-invite .batch-invite-config-body{grid-template-columns:1fr}#page-batch-invite .batch-invite-config-body>.batch-config-group:nth-child(1),#page-batch-invite .batch-invite-config-body>.batch-config-group:nth-child(2),#page-batch-invite .batch-invite-config-body>.batch-config-group:nth-child(3),#page-batch-invite .batch-invite-config-body>.task-group-config,#page-batch-invite .batch-invite-config-body>.form-actions{grid-column:1;grid-row:auto}#page-batch-invite .batch-rule-grid{grid-template-columns:repeat(3,minmax(0,1fr));height:auto}#page-batch-invite .batch-rule-card{min-height:52px}#page-batch-invite .form-actions{display:block}#page-batch-invite .form-actions>p{max-width:none;margin-bottom:10px}}
@media(max-width:700px){#page-batch-invite .batch-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#page-batch-invite .batch-fields-grid,#page-batch-invite .batch-fields-grid.timing{grid-template-columns:1fr}#page-batch-invite .batch-rule-grid{grid-template-columns:1fr}#page-batch-invite .task-group-editor{grid-template-columns:1fr}}
@media(max-width:900px){#page-batch-invite .batch-receipt-item{grid-template-columns:1fr;gap:3px}}
@media(max-width:560px){#page-batch-invite .batch-receipt-detail-row>td{padding-left:6px;padding-right:6px}#page-batch-invite .batch-receipt-detail{padding:9px}#page-batch-invite .batch-receipt-detail-loading,#page-batch-invite .batch-receipt-detail-error{align-items:flex-start;flex-direction:column}}
