/* Native encounter batches use the simulator's fixed utility frame. */
.sim-batch-panel{width:min(1500px,calc(100vw - 40px));--ui-window-height:min(920px,calc(100dvh - 40px));height:var(--ui-window-height);padding:22px 24px;box-sizing:border-box;border:1px solid #3a4656;border-image:none;border-radius:12px;background:#10151e;box-shadow:0 20px 80px #0009;color:#dae2ed;overflow:hidden;font:12px/1.45 var(--ui-font-body)}
dialog.sim-batch-panel[open]{display:block}
.sim-batch-content{height:100%;min-height:0;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:16px}
.sim-batch-header{display:flex;justify-content:space-between;align-items:start;gap:20px;min-height:68px}
.sim-batch-header h2{font:28px/1.1 var(--ui-font-heading);margin:4px 0 6px;color:#edf3fb}
.sim-batch-header .eyebrow{font-size:9px;letter-spacing:.12em;color:#8d9fb6;margin:0}
.sim-batch-subtitle{margin:0;color:#a7b5c8;font-size:12px}
.sim-batch-panel .ui-button{min-width:0;border:1px solid #3d4b61;border-image:none;background:#1c2635;border-radius:5px;font:12px var(--ui-font-body);padding:8px 12px;min-height:34px;color:#dae2ed;cursor:pointer}
.sim-batch-panel .ui-button:hover:enabled{background:#29394c;border-color:#7a93b4}
.sim-batch-panel .ui-button.close{font-size:25px;width:38px;height:38px;padding:0;flex:none}
.sim-batch-panel :disabled{opacity:.45;cursor:default}
.sim-batch-panel :focus-visible{outline:2px solid #a6c5e8;outline-offset:2px}
.sim-batch-outcomes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.sim-batch-outcome{display:flex;align-items:baseline;gap:10px;padding:12px 16px;background:#182130;border:1px solid #303e51;border-radius:7px}
.sim-batch-outcome strong{font-size:28px;font-weight:500;font-variant-numeric:tabular-nums;color:#c5d3e5}
.sim-batch-outcome span{color:#a7b5c8;font-size:11px}
.sim-batch-outcome--clear strong{color:#9dd0ba}
.sim-batch-outcome--wipe strong,.sim-batch-outcome--error strong{color:#e4a397}
.sim-batch-outcome--time strong{color:#dfc78e}
.sim-batch-overview{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px}
.sim-batch-section{min-width:0;min-height:0;background:#141c28;border:1px solid #293648;border-radius:7px;padding:12px 14px;overflow:hidden}
.sim-batch-section h3{font:600 13px/1.4 var(--ui-font-body);margin:0 0 10px;color:#c5cedb}
.sim-batch-table{width:100%;border-collapse:collapse;font-size:11px;font-variant-numeric:tabular-nums}
.sim-batch-table th,.sim-batch-table td{padding:6px 8px;text-align:right;white-space:nowrap;border-bottom:1px solid #273447}
.sim-batch-table thead th{color:#91a3bb;font-size:10px;font-weight:500}
.sim-batch-table th:first-child{padding-left:0;text-align:left}
.sim-batch-table td:last-child,.sim-batch-table th:last-child{padding-right:0}
.sim-batch-table tbody th{font-weight:500;color:#c5d1e0}
.sim-batch-table td{color:#e2e9f3}
.sim-batch-table tr:last-child td,.sim-batch-table tr:last-child th{border-bottom:0}
.sim-batch-counts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:10px 0 0;border-top:1px solid #2c3a4c;padding-top:10px}
.sim-batch-counts>div{display:flex;align-items:baseline;justify-content:space-between;gap:6px}
.sim-batch-counts dt{font-size:10px;color:#91a3bb}
.sim-batch-counts dd{margin:0;color:#dce7f4;font-variant-numeric:tabular-nums}
.sim-batch-timing{display:flex;flex-direction:column;justify-content:space-between;gap:9px}
.sim-batch-time-stats{display:grid;grid-template-columns:1.2fr repeat(3,minmax(0,1fr));gap:10px;align-items:center}
.sim-batch-time-stats>span{color:#b9c8dd;font-size:11px}
.sim-batch-time-stats>div{display:flex;flex-direction:column;gap:4px;text-align:right}
.sim-batch-time-stats small{color:#91a3bb;font-size:10px}
.sim-batch-time-stats strong{font-size:16px;font-weight:500;font-variant-numeric:tabular-nums;color:#dce7f4}
.sim-batch-note{color:#8fa0b5;font-size:10px;line-height:1.5;margin:4px 0 0}
.sim-batch-diagnostics{color:#dfc78e;font-size:10px;margin-top:5px}
.sim-batch-diagnostics>summary{cursor:pointer}
.sim-batch-diagnostic-messages{max-height:84px;overflow:auto}
.sim-batch-diagnostic-messages>p{margin:4px 0}
.sim-batch-main{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:16px;min-height:0}
.sim-batch-actors,.sim-batch-runs{display:flex;flex-direction:column}
.sim-batch-scroll{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable;padding-right:5px}
.sim-batch-actor-table{min-width:650px}
.sim-batch-actor-table th:first-child{max-width:150px;overflow:hidden;text-overflow:ellipsis}
.sim-batch-actor-team h4{font-size:11px;font-weight:500;color:#97bcae;margin:4px 0 8px}
.sim-batch-actor-team+.sim-batch-actor-team{margin-top:24px}
.sim-batch-actor-team+.sim-batch-actor-team h4{color:#d49c92}
.sim-batch-empty{color:#8fa0b5;font-size:12px;padding:12px 0;margin:0}
.sim-batch-run-caption,.sim-batch-run-heading{display:grid;grid-template-columns:minmax(98px,1fr) 72px 65px minmax(75px,1fr) 46px;gap:7px;align-items:center}
.sim-batch-run-caption{color:#91a3bb;font-size:10px;padding:0 10px 8px}
.sim-batch-run-caption span:not(:first-child){text-align:right}
.sim-batch-run{border:1px solid #2f3d50;border-radius:5px;margin-bottom:7px;background:#192230;overflow:hidden}
.sim-batch-run-heading{padding:10px;cursor:pointer;list-style:none;font-variant-numeric:tabular-nums;font-size:11px}
.sim-batch-run-heading::-webkit-details-marker{display:none}
.sim-batch-run-heading>strong{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sim-batch-run-heading>strong::before{content:'›';display:inline-block;width:12px;color:#91a3bb;font-size:14px}
.sim-batch-run[open]>.sim-batch-run-heading>strong::before{content:'⌄'}
.sim-batch-run-heading>span{text-align:right}
.sim-batch-run-heading--party .sim-batch-run-outcome{color:#9dd0ba}
.sim-batch-run-heading--enemy .sim-batch-run-outcome,.sim-batch-run-heading--draw .sim-batch-run-outcome,.sim-batch-run-heading--error .sim-batch-run-outcome{color:#e4a397}
.sim-batch-run-heading--time .sim-batch-run-outcome{color:#dfc78e}
.sim-batch-run-detail{border-top:1px solid #2f3d50;padding:12px;margin:0;color:#a7b5c8;font-size:11px;overflow-wrap:anywhere}
.sim-batch-run-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 14px;margin:0 0 12px}
.sim-batch-run-totals>div{display:flex;justify-content:space-between;gap:8px}
.sim-batch-run-totals dt{color:#91a3bb;font-size:10px}
.sim-batch-run-totals dd{margin:0;color:#dce7f4;font-variant-numeric:tabular-nums}
.sim-batch-run-actor-scroll{overflow:auto;max-height:210px;margin-bottom:12px}
.sim-batch-footer{display:flex;align-items:center;justify-content:end;gap:10px;border-top:1px solid #293648;padding-top:14px;min-height:40px}
.sim-batch-action-status{color:#e4b6a9;font-size:11px;margin:0 auto 0 0;min-width:0;overflow-wrap:anywhere}
.sim-batch-replay-selection{display:flex;align-items:center;gap:10px;min-width:0;color:#91a3bb;font-size:11px}
.sim-batch-panel select{background:#101722;border:1px solid #3c4a5e;border-radius:5px;color:#e8eef6;padding:8px 9px;min-height:34px;max-width:320px;font:11px var(--ui-font-body)}
.sim-batch-is-progress{grid-template-rows:auto minmax(0,1fr) auto}
.sim-batch-progress-body{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:24px;min-height:0}
.sim-batch-progress-count{font-size:34px;font-weight:500;color:#dce7f4;font-variant-numeric:tabular-nums}
.sim-batch-progress-bar{width:min(660px,90%);height:10px;border:0;border-radius:10px;overflow:hidden;background:#243248;accent-color:#87b7a8}
.sim-batch-progress-bar::-webkit-progress-bar{background:#243248;border-radius:10px}
.sim-batch-progress-bar::-webkit-progress-value{background:#87b7a8;border-radius:10px}
.sim-batch-progress-meta{display:flex;justify-content:center;flex-wrap:wrap;gap:24px;color:#91a3bb;font-size:12px;min-height:18px;font-variant-numeric:tabular-nums}
.sim-batch-progress-active{display:grid;grid-template-rows:repeat(4,20px);gap:3px;width:min(660px,90%);height:89px;text-align:center;color:#b9c8dd;font-size:12px;font-variant-numeric:tabular-nums}
@media(max-width:1200px){.sim-batch-main{grid-template-columns:1fr 1fr}.sim-batch-panel{padding:18px}.sim-batch-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.sim-batch-run-caption,.sim-batch-run-heading{grid-template-columns:minmax(82px,1fr) 65px 58px minmax(62px,1fr) 35px;gap:5px}.sim-batch-run-caption,.sim-batch-run-heading{font-size:10px}.sim-batch-overview{grid-template-columns:1fr 1fr}.sim-batch-outcome{padding:10px}.sim-batch-outcome strong{font-size:23px}}
@media(max-width:850px){.sim-batch-panel{width:calc(100vw - 20px);--ui-window-height:calc(100dvh - 20px);padding:14px}.sim-batch-content{gap:10px}.sim-batch-main{grid-template-columns:1fr;grid-template-rows:minmax(110px,1fr) minmax(170px,1fr)}.sim-batch-overview{grid-template-columns:1fr 1fr;gap:10px}.sim-batch-outcomes{gap:5px}.sim-batch-outcome{padding:7px;flex-direction:column;gap:0}.sim-batch-time-stats{grid-template-columns:1fr;gap:6px}.sim-batch-time-stats>div{display:none}.sim-batch-time-stats>div:nth-child(2){display:flex;flex-direction:row;justify-content:space-between}.sim-batch-note{display:none}.sim-batch-replay-selection>span{display:none}.sim-batch-panel select{max-width:210px}.sim-batch-footer{gap:7px;flex-wrap:wrap}.sim-batch-header{min-height:62px}.sim-batch-header h2{font-size:24px}}
