.batch-layout {
  display: grid;
  grid-template-columns: 470px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.batch-config-panel {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 28px 30px 22px;
  padding-right: 24px;
  scrollbar-gutter: stable;
}

.batch-config-panel .section-desc,
.batch-config-panel .info-box,
.batch-config-panel .mini-help {
  padding-right: 14px;
}

.workspace {
  display: grid;
  gap: 18px;
}

.upload-group-section {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.upload-group-section.is-dragover {
  border-color: #5d86ff;
  box-shadow: 0 0 0 3px rgba(93, 134, 255, 0.12), 0 22px 44px rgba(77, 112, 182, 0.12);
  background:
    radial-gradient(circle at top left, rgba(122, 162, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 248, 255, 0.97));
}

.upload-group-hint {
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px dashed #bfd0ef;
  border-radius: 14px;
  background: #f8fbff;
  color: #597091;
  font-size: 13px;
  line-height: 1.5;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.slot-grid-reference {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.slot-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(120, 157, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
  padding: 14px;
  display: grid;
  gap: 12px;
  min-height: 286px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.slot-card.is-dragover {
  border-color: #5d86ff;
  box-shadow: 0 0 0 3px rgba(93, 134, 255, 0.12);
  transform: translateY(-1px);
}

.slot-preview {
  position: relative;
  height: 170px;
  border-radius: 16px;
  overflow: hidden;
  background: #edf2fb;
  border: 1px dashed #b7c8eb;
}

.slot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slot-preview-empty {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  color: #5e7395;
  font-size: 14px;
  line-height: 1.6;
}

.slot-preview-empty strong {
  color: #24415f;
  font-size: 15px;
}

.slot-body {
  display: grid;
  gap: 8px;
}

.slot-title {
  font-size: 15px;
  font-weight: 800;
  color: #173252;
}

.slot-meta {
  min-height: 38px;
  color: #607493;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.slot-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.slot-action {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #edf3ff;
  color: #315a96;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.slot-action.danger {
  background: #fff1f0;
  color: #ab433c;
}

.slot-fold {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcff;
  overflow: hidden;
}

.slot-fold summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 800;
  color: #24415f;
}

.slot-fold summary::-webkit-details-marker {
  display: none;
}

.slot-fold[open] summary {
  border-bottom: 1px solid var(--line);
}

.slot-fold .slot-grid,
.slot-fold .size-grid {
  padding: 16px;
}

.size-grid {
  display: grid;
  gap: 12px;
}

.size-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.size-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.size-field {
  display: grid;
  gap: 6px;
}

.size-field-label {
  color: #5e7395;
  font-size: 12px;
  font-weight: 700;
}

.size-label {
  font-size: 14px;
  font-weight: 800;
  color: #173252;
}

.size-input {
  width: 100%;
  min-width: 0;
  border: 1px solid #c9d6ef;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  color: #183153;
  background: #fdfefe;
}

.size-input:focus {
  outline: none;
  border-color: #7ea1f6;
  box-shadow: 0 0 0 3px rgba(98, 132, 235, 0.12);
}

.batch-job-list,
.batch-item-grid {
  display: grid;
  gap: 12px;
}

.batch-job-list.is-collapsed {
  gap: 0;
}

.batch-job-collapsed {
  border: 1px dashed #c8d7f6;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7faff 0%, #f2f7ff 100%);
  padding: 16px 18px;
  color: #4b6287;
}

.batch-job-collapsed-title {
  font-size: 14px;
  font-weight: 800;
  color: #173252;
}

.batch-job-collapsed-meta {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.batch-job-card,
.batch-item-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}

.batch-job-card {
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.batch-job-card:hover {
  transform: translateY(-1px);
  border-color: #8caeff;
}

.batch-job-card.is-active {
  border-color: #5d86ff;
  box-shadow: 0 0 0 3px rgba(93, 134, 255, 0.14);
}

.batch-job-head,
.batch-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.batch-job-side {
  display: grid;
  justify-items: end;
  gap: 10px;
  flex: 0 0 auto;
}

.batch-job-title,
.batch-item-title {
  font-size: 16px;
  font-weight: 800;
  color: #183153;
}

.batch-job-meta,
.batch-item-meta,
.batch-job-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: #5e7395;
  font-size: 13px;
}

.batch-job-summary {
  line-height: 1.6;
}

.batch-item-previews {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.batch-thumb,
.batch-output,
.batch-thumb.empty,
.batch-item-empty {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  background: #eff3fa;
  object-fit: cover;
}

.batch-thumb.empty,
.batch-item-empty {
  display: grid;
  place-items: center;
  color: #5e7395;
  font-size: 13px;
  text-align: center;
}

.batch-output-link {
  display: inline-flex;
  border-radius: 16px;
  overflow: hidden;
}

.batch-item-card {
  display: grid;
  gap: 14px;
}

.batch-item-error {
  margin-top: 8px;
  color: #c2453c;
  font-size: 13px;
  line-height: 1.6;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.queued {
  background: #edf3ff;
  color: #315a96;
}

.status-pill.running {
  background: #fff4da;
  color: #9a6412;
}

.status-pill.success {
  background: #e8f8ee;
  color: #1d7a47;
}

.status-pill.partial_success {
  background: #edf8f3;
  color: #2a7954;
}

.status-pill.failed {
  background: #fff0ee;
  color: #bb473e;
}

.batch-job-download,
#btnDownloadActiveJob {
  white-space: nowrap;
}

.batch-job-download.is-busy,
#btnDownloadActiveJob.is-busy {
  opacity: 0.72;
  cursor: wait;
}

@media (max-width: 1180px) {
  .batch-layout {
    grid-template-columns: 1fr;
  }

  .batch-config-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .size-row {
    grid-template-columns: 1fr;
  }

  .size-fields {
    grid-template-columns: 1fr;
  }

  .batch-item-previews {
    grid-template-columns: 1fr;
  }
}

/* Replica workbench */
body.replica-workbench-page .replica-dashboard-hero {
  grid-template-columns: minmax(0, 1.28fr) 320px;
  margin-bottom: 18px;
}

body.replica-workbench-page .studio-hero-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.replica-workbench-page .studio-hero-flow-card,
body.replica-workbench-page .studio-hero-stat,
body.replica-workbench-page .studio-overview-card,
body.replica-workbench-page .batch-config-panel,
body.replica-workbench-page .studio-rail-card,
body.replica-workbench-page .upload-group-section,
body.replica-workbench-page .slot-card,
body.replica-workbench-page .size-row,
body.replica-workbench-page .batch-job-card,
body.replica-workbench-page .batch-item-card,
body.replica-workbench-page .slot-fold {
  border: 1px solid rgba(27, 35, 48, 0.06);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(86, 132, 255, 0.08), rgba(86, 132, 255, 0) 34%),
    rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 30px rgba(38, 68, 127, 0.06);
}

body.replica-workbench-page .studio-hero-flow-card {
  min-height: 176px;
  padding: 20px 20px 22px;
}

body.replica-workbench-page .studio-hero-flow-kicker,
body.replica-workbench-page .studio-overview-label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a93a1;
}

body.replica-workbench-page .studio-hero-flow-title,
body.replica-workbench-page .studio-overview-value {
  font-family: "SF Pro Display", "Avenir Next", "Inter", "PingFang SC", sans-serif;
  color: #171d27;
}

body.replica-workbench-page .studio-hero-flow-title {
  margin: 0 0 10px;
  font-size: 27px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

body.replica-workbench-page .studio-hero-flow-sub,
body.replica-workbench-page .studio-overview-meta {
  color: #657083;
}

body.replica-workbench-page .studio-hero-aside {
  display: grid;
  gap: 12px;
}

body.replica-workbench-page .studio-hero-stat {
  min-height: 146px;
}

body.replica-workbench-page .studio-page-head {
  margin-bottom: 18px;
}

body.replica-workbench-page .studio-status-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

body.replica-workbench-page .batch-layout {
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

body.replica-workbench-page .batch-sidebar-stack {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
  align-self: start;
}

body.replica-workbench-page .batch-config-panel {
  position: static;
  max-height: none;
  padding: 22px;
}

body.replica-workbench-page .studio-rail-card {
  padding: 22px;
}

body.replica-workbench-page .studio-rail-list {
  display: grid;
  gap: 10px;
}

body.replica-workbench-page .studio-rail-item {
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(248, 250, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(27, 35, 48, 0.05);
}

body.replica-workbench-page .studio-rail-index {
  background: rgba(35, 87, 235, 0.1);
  color: #2357eb;
}

body.replica-workbench-page .studio-overview-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.replica-workbench-page .studio-overview-card {
  padding: 20px 22px;
}

body.replica-workbench-page .studio-overview-value {
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

body.replica-workbench-page .workspace {
  display: grid;
  gap: 20px;
}

body.replica-workbench-page .workspace > .panel.card {
  padding: 22px;
}

body.replica-workbench-page .upload-group-hint,
body.replica-workbench-page .batch-job-collapsed {
  border-color: rgba(27, 35, 48, 0.06);
  border-radius: 18px;
  background: #f6f8fc;
}

body.replica-workbench-page .slot-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

body.replica-workbench-page .slot-grid-reference {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body.replica-workbench-page .slot-card {
  min-height: 292px;
  padding: 16px;
}

body.replica-workbench-page .slot-preview {
  border-color: rgba(35, 87, 235, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f9fd 0%, #eef2f8 100%);
}

body.replica-workbench-page .slot-title,
body.replica-workbench-page .size-label,
body.replica-workbench-page .batch-job-title,
body.replica-workbench-page .batch-item-title {
  font-family: "SF Pro Display", "Avenir Next", "Inter", "PingFang SC", sans-serif;
  color: #171d27;
}

body.replica-workbench-page .slot-meta,
body.replica-workbench-page .batch-job-meta,
body.replica-workbench-page .batch-item-meta,
body.replica-workbench-page .batch-job-summary,
body.replica-workbench-page .batch-item-error {
  color: #657083;
}

body.replica-workbench-page .slot-action {
  background: rgba(238, 243, 255, 0.96);
  color: #325ba0;
}

body.replica-workbench-page .slot-action.danger {
  background: rgba(255, 240, 238, 0.96);
  color: #b14b42;
}

body.replica-workbench-page .size-row {
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 16px;
}

body.replica-workbench-page .size-field-label {
  color: #7b8696;
}

body.replica-workbench-page .size-input {
  border: 1px solid rgba(27, 35, 48, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
}

body.replica-workbench-page .size-input:focus {
  outline: none;
  border-color: rgba(35, 87, 235, 0.38);
  box-shadow: 0 0 0 4px rgba(35, 87, 235, 0.08);
}

body.replica-workbench-page .status-pill.queued {
  background: rgba(35, 87, 235, 0.08);
  color: #2357eb;
}

body.replica-workbench-page .status-pill.running {
  background: rgba(255, 236, 199, 0.7);
  color: #9b6615;
}

body.replica-workbench-page .status-pill.success,
body.replica-workbench-page .status-pill.partial_success {
  background: rgba(223, 246, 231, 0.88);
  color: #267246;
}

body.replica-workbench-page .status-pill.failed {
  background: rgba(255, 236, 234, 0.88);
  color: #b44840;
}

@media (max-width: 1360px) {
  body.replica-workbench-page .replica-dashboard-hero,
  body.replica-workbench-page .batch-layout {
    grid-template-columns: 1fr;
  }

  body.replica-workbench-page .studio-hero-aside,
  body.replica-workbench-page .studio-hero-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.replica-workbench-page .batch-sidebar-stack {
    position: static;
  }
}

@media (max-width: 980px) {
  body.replica-workbench-page .studio-hero-flow,
  body.replica-workbench-page .studio-hero-aside,
  body.replica-workbench-page .studio-overview-band,
  body.replica-workbench-page .size-fields,
  body.replica-workbench-page .batch-item-previews {
    grid-template-columns: 1fr;
  }

  body.replica-workbench-page .size-row {
    grid-template-columns: 1fr;
  }
}

/* Replica batch refresh */
.batch-layout {
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 22px;
}

.batch-config-panel {
  top: 20px;
  max-height: calc(100vh - 40px);
  padding: 24px 24px 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, #f8f9fc 0%, #f3f5fa 100%);
  box-shadow: none;
}

.batch-config-panel .page-section-head {
  margin-bottom: 10px;
}

.batch-config-panel .section-title {
  display: none;
}

.batch-config-panel .section-desc {
  margin-bottom: 16px;
}

.workspace {
  gap: 20px;
}

.workspace > .panel.card {
  padding: 22px;
}

.upload-group-section.is-dragover {
  border-color: rgba(35, 87, 235, 0.22);
  box-shadow: 0 0 0 4px rgba(35, 87, 235, 0.06), 0 20px 38px rgba(38, 68, 127, 0.08);
}

.upload-group-hint,
.batch-job-collapsed {
  border-color: rgba(27, 35, 48, 0.06);
  border-radius: 18px;
  background: #f6f8fc;
}

.slot-card,
.size-row,
.slot-fold,
.batch-job-card,
.batch-item-card {
  border-color: rgba(27, 35, 48, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 30px rgba(38, 68, 127, 0.06);
}

.slot-card {
  min-height: 292px;
  padding: 16px;
}

.slot-preview {
  border-color: rgba(35, 87, 235, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f9fd 0%, #eef2f8 100%);
}

.slot-title,
.size-label,
.batch-job-title,
.batch-item-title {
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  color: #171d27;
}

.slot-meta,
.batch-job-summary,
.batch-item-error {
  line-height: 1.7;
}

.slot-action {
  background: #f4f6fb;
  color: #42536d;
}

.slot-action.danger {
  background: rgba(255, 241, 240, 0.94);
}

.slot-fold summary {
  color: #243247;
}

.size-input {
  border-color: rgba(27, 35, 48, 0.08);
  border-radius: 14px;
}

.size-input:focus {
  border-color: rgba(35, 87, 235, 0.28);
  box-shadow: 0 0 0 4px rgba(35, 87, 235, 0.06);
}

.status-pill {
  min-height: 32px;
  padding: 0 12px;
}

@media (max-width: 1180px) {
  .batch-layout {
    grid-template-columns: 1fr;
  }
}

/* Replica batch dashboard refresh */
.batch-dashboard-hero {
  grid-template-columns: minmax(0, 1.35fr) 360px;
}

.studio-hero-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.studio-hero-flow-card {
  min-height: 164px;
  padding: 20px 20px 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(27, 35, 48, 0.05);
}

.studio-hero-flow-kicker,
.studio-overview-label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8b94a4;
}

.studio-hero-flow-title {
  margin: 0 0 10px;
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #171d27;
}

.studio-hero-flow-sub,
.studio-overview-meta {
  font-size: 14px;
  line-height: 1.75;
  color: #657083;
}

.studio-hero-aside {
  gap: 12px;
}

.studio-hero-stat {
  min-height: 144px;
}

.studio-page-head {
  margin-bottom: 18px;
}

.studio-status-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.batch-layout {
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.batch-sidebar-stack {
  top: 20px;
}

.batch-config-panel {
  position: static;
  max-height: none;
  overflow: visible;
  padding: 22px 22px 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(86, 132, 255, 0.12), rgba(86, 132, 255, 0) 36%),
    linear-gradient(180deg, #fafbfd 0%, #f4f6fb 100%);
}

.studio-rail-card {
  padding: 22px;
}

.studio-rail-list {
  display: grid;
  gap: 10px;
}

.studio-rail-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(27, 35, 48, 0.05);
}

.studio-rail-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 999px;
  background: rgba(35, 87, 235, 0.1);
  color: #2357eb;
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.studio-rail-title {
  font-size: 15px;
  font-weight: 700;
  color: #171d27;
}

.studio-rail-sub {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.7;
  color: #657083;
}

.studio-overview-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.studio-overview-card {
  padding: 22px 24px;
}

.studio-overview-value {
  margin-bottom: 8px;
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  font-size: 32px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #171d27;
}

.workspace {
  gap: 20px;
}

.workspace > .panel.card {
  padding: 22px;
}

.studio-empty-state {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(27, 35, 48, 0.05);
}

.studio-empty-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8b94a4;
}

.studio-empty-title {
  margin-bottom: 8px;
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #171d27;
}

.studio-empty-sub {
  font-size: 14px;
  line-height: 1.8;
  color: #657083;
}

.studio-empty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.studio-empty-card {
  min-height: 156px;
  padding: 18px 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(27, 35, 48, 0.05);
}

.studio-empty-card-title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #171d27;
}

.studio-empty-card-sub {
  font-size: 14px;
  line-height: 1.75;
  color: #657083;
}

@media (max-width: 1360px) {
  .batch-dashboard-hero,
  .batch-layout,
  .studio-overview-band,
  .studio-empty-grid,
  .studio-hero-flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .studio-status-pills {
    justify-content: flex-start;
  }

  .studio-hero-flow-card,
  .studio-overview-card,
  .studio-rail-card,
  .batch-config-panel,
  .workspace > .panel.card {
    padding: 20px;
  }
}

/* 2026-04 replica batch polish */
body.replica-workbench-page .replica-dashboard-hero {
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  align-items: start;
}

body.replica-workbench-page .studio-hero-flow-card {
  min-height: 152px;
}

body.replica-workbench-page .studio-hero-aside {
  grid-template-columns: 1fr;
}

body.replica-workbench-page .batch-layout {
  grid-template-columns: minmax(308px, 336px) minmax(0, 1fr);
  gap: 20px;
}

body.replica-workbench-page .batch-sidebar-stack {
  top: 106px;
}

body.replica-workbench-page .batch-config-panel,
body.replica-workbench-page .studio-rail-card {
  border-radius: 28px;
}

body.replica-workbench-page .batch-config-panel {
  padding: 20px;
}

body.replica-workbench-page .quick-create-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 14px;
  margin-top: 16px;
  background: linear-gradient(180deg, rgba(245, 248, 255, 0), rgba(245, 248, 255, 0.96) 26%);
}

body.replica-workbench-page .upload-group-section,
body.replica-workbench-page .slot-card,
body.replica-workbench-page .size-row,
body.replica-workbench-page .batch-job-card,
body.replica-workbench-page .batch-item-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body.replica-workbench-page .upload-group-section:hover,
body.replica-workbench-page .slot-card:hover,
body.replica-workbench-page .size-row:hover,
body.replica-workbench-page .batch-job-card:hover,
body.replica-workbench-page .batch-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px rgba(17, 35, 71, 0.1);
  border-color: rgba(41, 93, 227, 0.16);
}

body.replica-workbench-page .slot-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

body.replica-workbench-page .slot-preview {
  height: 182px;
}

body.replica-workbench-page .batch-item-previews {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1360px) {
  body.replica-workbench-page .replica-dashboard-hero,
  body.replica-workbench-page .batch-layout {
    grid-template-columns: 1fr;
  }

  body.replica-workbench-page .studio-hero-aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.replica-workbench-page .batch-sidebar-stack {
    position: static;
  }
}

@media (max-width: 980px) {
  body.replica-workbench-page .studio-hero-flow,
  body.replica-workbench-page .studio-hero-aside,
  body.replica-workbench-page .studio-overview-band,
  body.replica-workbench-page .batch-item-previews {
    grid-template-columns: 1fr;
  }

  body.replica-workbench-page .batch-config-panel {
    padding: 18px;
  }

  body.replica-workbench-page .quick-create-actions {
    position: static;
    background: transparent;
    padding-top: 0;
  }
}
