/* Issue #137: content first, settings alongside, one persistent execution bar. */
.make-image-main-grid.creation-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, 1fr);
  align-items: start;
  gap: 24px;
  padding: 24px;
}
.creation-workspace > section { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.creation-settings { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.creation-section-head h2 { margin: 0; font: 700 18px/1.4 var(--font-serif); color: var(--ink-main); }
.creation-section-head p, .creation-help { margin: 5px 0 0; font-size: 12px; line-height: 1.65; color: var(--ink-muted); }
.creation-content #make-image-subject { min-height: 190px; font-size: 15px; line-height: 1.8; padding: 14px; }
.creation-content .make-image-results-section { margin-top: 0; }
.creation-content .make-image-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.creation-settings .make-image-top-row { flex-direction: column; align-items: stretch; gap: 16px; }
.creation-settings .make-image-inline-group { flex-wrap: wrap; }
.creation-settings .make-image-pickers-row,
.creation-settings .make-image-pickers-row.has-style2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.creation-settings .make-image-picker-card { padding: 10px; gap: 8px; min-height: 76px; }
.creation-settings .make-image-picker-thumb { width: 36px; height: 44px; flex-basis: 36px; }
.creation-settings .make-image-ratio-row { flex-direction: column; align-items: stretch; gap: 10px; }
.creation-settings .make-image-more-row { align-items: flex-start; }
.creation-settings .make-image-moods-input { min-width: 0; flex-basis: 100%; }
.creation-settings .make-image-inline-field { min-width: 0; flex-basis: 100%; }
.creation-settings .make-image-inline-field input { min-width: 0; }
.creation-settings .make-image-collapsible-toggle { gap: 10px; line-height: 1.6; }
.creation-form > .make-image-action-bar,
.creation-form > .batch-action-bar {
  margin-top: 16px;
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--paper-card, #fffaf2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 4px 20px rgba(43, 38, 35, .08);
}
.creation-form .make-image-btn-wrap,
.creation-form .batch-btn-wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.creation-form .make-image-busy-hint,
.creation-form .batch-busy-hint { white-space: normal; max-width: 320px; }
.creation-workspace :is(input, textarea, button, select, [tabindex]) { scroll-margin-block: 100px 150px; }
.creation-workspace .batch-plan-row-a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.creation-workspace .batch-seed-wrap { min-width: 0; flex-direction: column; align-items: stretch; }
.creation-workspace .batch-seed-input { min-width: 0; }
.creation-workspace .batch-count-wrap { flex-direction: column; align-items: stretch; }
.creation-workspace .batch-strategy-wrap { grid-column: 1 / -1; flex-wrap: wrap; }
.creation-workspace .batch-plan-row-b-wrap { flex-direction: column; align-items: stretch; }
.creation-workspace .batch-plan-action-wrap { align-items: flex-start; flex-wrap: wrap; justify-content: flex-start; min-width: 0; }
.creation-workspace .batch-plan-notice { white-space: normal; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.creation-workspace .batch-btn-plan-hero { min-height: 42px; }
.creation-workspace .batch-prompts-textarea { min-height: 190px; }
.creation-workspace .batch-table-wrap { box-sizing: border-box; }
.creation-workspace .batch-iter-label { white-space: normal; overflow-wrap: anywhere; }
.creation-workspace .batch-edit-table { min-width: 0; table-layout: fixed; width: 100%; }
.creation-workspace .batch-col-layout { width: 130px !important; }
.creation-workspace .batch-col-refs { width: 100px !important; min-width: 0; }
.creation-workspace .batch-btn-row-refs-mobile { width: 100%; min-width: 0; padding: 5px; white-space: normal; font-size: 11px; }
.creation-workspace .batch-row-refs-desktop { display: none; }
.creation-workspace .batch-row-refs-mobile { display: block; }
.creation-workspace .batch-row-layout-btn { width: 100%; max-width: 100%; }
.creation-workspace .batch-row-layout-name { max-width: 100%; }
@media (max-width: 980px) {
  .make-image-main-grid.creation-workspace { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 20px; }
  .creation-settings { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 20px; }
  .creation-settings .make-image-top-row { flex-direction: row; flex-wrap: wrap; }
  .creation-form .make-image-btn-wrap, .creation-form .batch-btn-wrap { width: auto; flex-direction: row; }
  .creation-form .make-image-btn-wrap button, .creation-form .batch-btn-wrap button { width: auto; }
}
@media (max-width: 540px) {
  .make-image-main-grid.creation-workspace { padding: 14px; gap: 18px; }
  .creation-form > .make-image-action-bar, .creation-form > .batch-action-bar { bottom: 6px; padding: 12px; gap: 8px; }
  .creation-form .make-image-btn-wrap, .creation-form .batch-btn-wrap { width: 100%; }
  .creation-form .make-image-btn-run, .creation-form .make-image-run-btn, .creation-form .batch-stop-btn { flex: 1; min-height: 44px; padding: 10px 14px; }
  .creation-form .make-image-busy-hint, .creation-form .batch-busy-hint { flex-basis: 100%; }
  .creation-workspace .batch-table-wrap { overscroll-behavior-x: contain; }
  .creation-content .make-image-results-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Stack editable rows on phones so theme, layout, references and delete stay accessible. */
@media (max-width: 600px) {
  .creation-workspace .batch-edit-table, .creation-workspace .batch-preview-table,
  .creation-workspace .batch-edit-table tbody, .creation-workspace .batch-preview-table tbody { display: block; min-width: 0; width: 100%; }
  .creation-workspace .batch-edit-table thead, .creation-workspace .batch-preview-table thead { display: none; }
  .creation-workspace .batch-edit-row, .creation-workspace .batch-table-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line-soft); }
  .creation-workspace .batch-edit-row > td, .creation-workspace .batch-table-row > td { display: block; padding: 0; border: 0; min-width: 0; }
  .creation-workspace .batch-edit-row > td:first-child { flex: 1; }
  .creation-workspace .batch-edit-row > td:last-child { order: -1; margin-left: auto; }
  .creation-workspace .batch-edit-row > td:first-child { order: -2; }
  .creation-workspace .batch-edit-row > td:nth-child(2),
  .creation-workspace .batch-edit-row > .batch-col-layout,
  .creation-workspace .batch-edit-row > .batch-col-refs { flex-basis: 100%; width: 100% !important; }
  .creation-workspace .batch-edit-row > td:nth-child(2)::before { content: "画面主题"; }
  .creation-workspace .batch-edit-row > .batch-col-layout::before { content: "图型版式"; }
  .creation-workspace .batch-edit-row > .batch-col-refs::before { content: "参考图"; }
  .creation-workspace .batch-edit-row > td::before { display: block; margin-bottom: 5px; font-size: 11px; color: var(--ink-muted); }
  .creation-workspace .batch-row-theme-input { font-size: 13px; min-height: 40px; }
  .creation-workspace .batch-row-layout-btn, .creation-workspace .batch-btn-row-refs-mobile { min-height: 40px; }
  .creation-workspace .batch-table-row > .batch-col-content { flex-basis: 100%; order: 1; }
  .creation-workspace .batch-table-row > .batch-col-status { margin-left: auto; }
  .creation-workspace .batch-table-row > .batch-col-action { order: 2; margin-left: auto; }
}

/* #138 Single-image split workspace; the batch page is unchanged. */
.ic-quick-stage:has(.make-image-chat-container){overflow:hidden;padding-bottom:14px}
/* Fit the actual stage height (including short laptop viewports) so the sidebar, not the clipped parent, owns vertical overflow. */
.make-image-chat-container{display:flex;flex-direction:column;height:100%;max-height:100%;min-height:0}
.make-image-chat-layout{display:flex;flex:1 1 auto;min-height:0}
.make-image-main-grid.creation-workspace.make-image-chat-workspace{display:grid;grid-template-columns:minmax(300px,.92fr) minmax(0,1.85fr);gap:0;padding:0;width:100%;height:100%;min-height:0;align-items:stretch;overflow:hidden}
.make-image-chat-workspace>.make-image-properties,.make-image-chat-workspace>.make-image-conversation{min-width:0;min-height:0;gap:14px;box-sizing:border-box}
.make-image-chat-workspace>.make-image-properties{grid-column:1;grid-row:1;padding:22px 20px;border:0;border-right:1px solid var(--line-soft);overflow-x:hidden;overflow-y:auto;scrollbar-width:auto;scrollbar-color:var(--ink-muted) var(--paper-inset);overscroll-behavior:contain}
/* #140: A flex-column scroll panel must not shrink its content to fit the viewport.
   Collapsible cards themselves use overflow:hidden to round their corners; if the
   flex algorithm shrinks a card, its expanded body is clipped rather than included
   in the sidebar scrollHeight. Keep each section at its natural full height. */
@media (min-width:981px) {
  .make-image-chat-workspace > .make-image-properties > * {
    flex-shrink:0;
  }
}
/* Keep a noticeable native scrollbar when the property content overflows, without showing one on short content. */
.make-image-chat-workspace>.make-image-properties::-webkit-scrollbar{width:11px}
.make-image-chat-workspace>.make-image-properties::-webkit-scrollbar-track{background:var(--paper-inset);border-radius:8px}
.make-image-chat-workspace>.make-image-properties::-webkit-scrollbar-thumb{background:var(--ink-muted);border:2px solid var(--paper-inset);border-radius:8px}
.make-image-chat-workspace>.make-image-properties::-webkit-scrollbar-thumb:hover{background:var(--ink-main)}
.make-image-chat-workspace>.make-image-conversation{grid-column:2;grid-row:1;padding:22px 24px 18px;overflow:hidden;display:flex;flex-direction:column;background:var(--paper-bg)}
.make-image-output-scroll{min-height:0;flex:1 1 auto;overflow-x:hidden;overflow-y:auto;padding:6px 2px 18px;scrollbar-width:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.make-image-output-scroll::-webkit-scrollbar{display:none}
.make-image-chat-workspace .make-image-results-section{margin:0}
.make-image-chat-workspace .make-image-results-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:12px}
.make-image-chat-workspace .make-image-result-thumb{aspect-ratio:auto;min-height:160px}
.make-image-chat-workspace .make-image-result-thumb img{object-fit:contain;max-height:480px;height:auto}
.make-image-output-empty{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;color:var(--ink-muted)}
.make-image-output-empty strong{font-size:16px;color:var(--ink-main)}
.make-image-output-empty p{margin:0;font-size:12px}
.make-image-pending{width:min(100%,420px);margin:0 auto 18px}
.make-image-pending-art{position:relative;display:grid;place-items:center;width:100%;max-height:440px;overflow:hidden;background:linear-gradient(110deg,var(--paper-inset),var(--paper-card),var(--paper-inset));border:1px dashed var(--line-strong);border-radius:12px}
.make-image-pending-symbol{font-size:46px;color:var(--vermilion);opacity:.35;animation:make-image-breathe 2s ease-in-out infinite}
.make-image-pending-shimmer{position:absolute;inset:0;transform:translateX(-110%);pointer-events:none;background:linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent);animation:make-image-shimmer 2s ease-in-out infinite}
.make-image-pending-caption{text-align:center;padding:12px;font-size:13px;color:var(--ink-muted)}
@keyframes make-image-shimmer{to{transform:translateX(110%)}}
@keyframes make-image-breathe{50%{opacity:1;transform:scale(1.08)}}
.make-image-chat-workspace .make-image-composer{flex:0 0 auto;padding:12px 14px;background:var(--paper-card);border:1px solid var(--line-strong);border-radius:16px;box-shadow:0 7px 24px rgba(43,38,35,.09)}
/* Extreme short stages: keep the dock inside the visible right pane; its own content stays reachable. */
@media(min-width:981px){
.make-image-chat-workspace .make-image-composer{box-sizing:border-box;max-height:calc(100% - 38px);overflow-y:auto}
}
.make-image-chat-workspace .make-image-composer .make-image-field-wrap{gap:5px}
.make-image-chat-workspace .make-image-composer #make-image-subject{min-height:76px;max-height:180px;padding:8px 0;font-size:14px;line-height:1.6;border:0;outline:none;background:transparent;box-shadow:none;resize:vertical}
.make-image-chat-workspace .make-image-composer #make-image-subject:focus-visible{outline:none;border:0}
.make-image-chat-workspace .make-image-composer .make-image-more-row{min-height:38px;gap:8px}
.make-image-chat-workspace .make-image-composer .make-image-more-label,.make-image-chat-workspace .make-image-composer .creation-help{display:none}
.make-image-chat-workspace .make-image-composer .make-image-more-thumbs{max-width:100%}
.make-image-chat-workspace .make-image-composer .make-image-add-reference{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;font-size:24px;line-height:1;color:var(--ink-main);background:var(--paper-inset);border:1px solid var(--line-strong);border-radius:50%;cursor:pointer}
.make-image-chat-workspace .make-image-add-reference:hover{border-color:var(--vermilion);color:var(--vermilion)}
.make-image-chat-workspace .make-image-add-reference:focus-visible{outline:2px solid var(--vermilion);outline-offset:2px}
.make-image-chat-workspace .make-image-action-bar{position:static;margin:0;padding:0;background:transparent;box-shadow:none;border:0;gap:8px;min-width:0}
.make-image-chat-workspace .make-image-cost{font-size:11px;color:var(--ink-muted)}
.make-image-chat-workspace .make-image-btn-wrap{margin-left:auto;gap:6px}
.make-image-chat-workspace .make-image-btn-reset{padding:7px 9px;min-height:38px}
.make-image-chat-workspace .make-image-btn-run{min-height:40px;padding:8px 18px;font-size:13px}
.make-image-chat-workspace .make-image-busy-hint{flex-basis:100%;font-size:11px;max-width:260px}
.make-image-chat-workspace .make-image-properties .make-image-pickers-row,.make-image-chat-workspace .make-image-properties .make-image-pickers-row.has-style2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:980px){
.ic-quick-stage:has(.make-image-chat-container){overflow:auto;padding-bottom:28px}
.make-image-chat-container{height:auto;max-height:none;min-height:0}
.make-image-chat-layout{display:block}
.make-image-main-grid.creation-workspace.make-image-chat-workspace{display:flex;flex-direction:column;height:auto;overflow:visible}
.make-image-chat-workspace>.make-image-conversation{order:0;overflow:visible;min-height:420px;padding:20px}
.make-image-chat-workspace>.make-image-properties{order:1;overflow:visible;padding:20px;border-right:0;border-top:1px solid var(--line-soft)}
.make-image-output-scroll{max-height:min(55dvh,500px)}
.make-image-chat-workspace .make-image-composer{position:sticky;bottom:8px;z-index:6}
}
@media(max-width:540px){
.make-image-chat-workspace>.make-image-conversation,.make-image-chat-workspace>.make-image-properties{padding:14px}
.make-image-chat-workspace .make-image-results-grid{grid-template-columns:minmax(0,1fr)}
.make-image-chat-workspace .make-image-action-bar{flex-wrap:wrap}
.make-image-chat-workspace .make-image-cost{flex-basis:100%}
.make-image-chat-workspace .make-image-btn-wrap{width:100%}
.make-image-chat-workspace .make-image-btn-run{flex:1}
}
@media(prefers-reduced-motion:reduce){.make-image-pending-symbol,.make-image-pending-shimmer{animation:none!important}}

/* #139: quiet ChatGPT-like attachment strip inside the composer. */
.make-image-chat-workspace .make-image-composer-attachments {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px;
  padding:2px 0 10px; max-height:130px; overflow-y:auto;
}
.make-image-chat-workspace .make-image-ref-thumb {
  position:relative; flex:0 0 60px; width:60px; height:60px;
  box-sizing:border-box; border:1px solid var(--line-soft);
  border-radius:10px; overflow:visible; background:var(--paper-inset);
}
.make-image-chat-workspace .make-image-ref-thumb .make-image-slot-thumb-wrap {
  width:100%; height:100%; border:0; border-radius:9px; overflow:hidden;
}
.make-image-chat-workspace .make-image-ref-thumb .make-image-slot-thumb-wrap img {
  display:block; width:100%; height:100%; object-fit:cover;
}
.make-image-chat-workspace .make-image-ref-thumb .make-image-slot-clear {
  top:-7px; right:-7px; width:22px; height:22px; border-radius:50%;
  background:var(--ink-main); color:white; font-size:14px; z-index:2;
}
.make-image-chat-workspace .make-image-composer-bottom {
  display:flex; align-items:center; flex-wrap:wrap; gap:10px;
}
.make-image-chat-workspace .make-image-composer-bottom > .make-image-action-bar {
  flex:1 1 360px; min-width:0;
}
.make-image-chat-workspace .make-image-composer #make-image-subject {
  display:block; width:100%; min-height:80px; margin:0 0 8px;
}
@media (max-width:540px) {
 .make-image-chat-workspace .make-image-composer-bottom > .make-image-action-bar {flex-basis:calc(100% - 48px);}
 .make-image-chat-workspace .make-image-ref-thumb {flex-basis:54px;width:54px;height:54px;}
}


/* #141 Series creation shares the single-image split workspace vocabulary. */
.ic-quick-stage:has(.batch-series-container){overflow:hidden;padding-bottom:14px}
.batch-series-container{display:flex;flex-direction:column;height:100%;max-height:100%;min-height:0}
.batch-series-form{display:flex;flex:1 1 auto;min-height:0}
.make-image-main-grid.creation-workspace.batch-series-workspace{
  display:grid;grid-template-columns:minmax(290px,.92fr) minmax(0,1.85fr);
  gap:0;padding:0;width:100%;height:100%;min-height:0;overflow:hidden;align-items:stretch
}
.batch-series-workspace > .batch-series-properties,
.batch-series-workspace > .batch-series-content{min-width:0;min-height:0;box-sizing:border-box}
.batch-series-workspace > .batch-series-properties{
  grid-column:1;grid-row:1;padding:20px;border:0;border-right:1px solid var(--line-soft);
  overflow-x:hidden;overflow-y:auto;scrollbar-width:auto;
  scrollbar-color:var(--ink-muted) var(--paper-inset);overscroll-behavior:contain;
  display:flex;flex-direction:column;gap:18px
}
.batch-series-workspace > .batch-series-properties > *{flex-shrink:0}
.batch-series-properties::-webkit-scrollbar{width:11px}
.batch-series-properties::-webkit-scrollbar-thumb{background:var(--ink-muted);border-radius:10px;border:2px solid var(--paper-inset)}
.batch-series-workspace .batch-plan-card{margin:0;min-width:0}
.batch-series-workspace .batch-plan-row-a{grid-template-columns:minmax(0,1fr) 86px;gap:10px}
.batch-series-workspace .batch-strategy-wrap{grid-column:1/-1}
.batch-series-workspace .batch-plan-row-b{flex-wrap:wrap}
.batch-series-workspace .batch-plan-inputs-panel{min-width:0}
.batch-series-workspace .batch-plan-action-wrap{flex-wrap:wrap}
.batch-series-bulk-input{border:1px solid var(--line-soft);border-radius:10px;padding:10px;background:var(--paper-bg)}
.batch-series-bulk-input summary{cursor:pointer;color:var(--ink-muted);font-size:12px;font-weight:650}
.batch-series-bulk-input textarea{margin-top:10px;resize:vertical}
.batch-series-workspace .batch-pickers-row,.batch-series-workspace .batch-pickers-row.has-style2{grid-template-columns:repeat(2,minmax(0,1fr))}
.batch-series-workspace > .batch-series-content{
  grid-column:2;grid-row:1;display:flex;flex-direction:column;overflow:hidden;gap:0;
  background:var(--paper-bg);padding:18px 22px 16px
}
.batch-series-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:0 0 auto;padding-bottom:14px}
.batch-series-toolbar>span{font-size:14px;color:var(--ink-muted)}
.batch-series-toolbar strong{font-size:18px;color:var(--ink-main);font-variant-numeric:tabular-nums}
.batch-series-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;overscroll-behavior:contain;padding:1px 2px 20px}
.batch-series-scroll::-webkit-scrollbar{display:none}
.batch-series-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px}
.batch-series-empty{grid-column:1/-1;display:grid;place-items:center;text-align:center;min-height:220px;color:var(--ink-muted);font-size:13px}
.batch-series-card{min-width:0;background:var(--paper-card);border:1px solid var(--line-soft);border-radius:14px;overflow:hidden;box-shadow:0 2px 8px rgba(28,22,16,.04)}
.batch-series-card.is-generating{border-color:var(--vermilion)}
.batch-series-card-head{display:flex;align-items:center;gap:10px;padding:10px 12px}
.batch-series-card-head>strong{font-size:13px;color:var(--ink-muted);letter-spacing:.04em}
.batch-series-card-head .batch-status-badge{margin-left:auto}
.batch-series-delete{width:26px;height:26px;border:0;border-radius:7px;background:transparent;color:var(--ink-muted);font-size:19px;cursor:pointer}
.batch-series-delete:hover{background:var(--paper-inset);color:var(--vermilion)}
.batch-series-delete:disabled{opacity:.3;cursor:default}
.batch-series-visual{position:relative;background:var(--paper-inset);width:100%;max-height:280px;min-height:155px;overflow:hidden;display:grid;place-items:center}
.batch-series-visual>.batch-iter-thumb-btn{width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;position:absolute;inset:0;display:grid;place-items:center;cursor:zoom-in}
.batch-series-visual>.batch-iter-thumb-btn img{width:100%;height:100%;object-fit:contain;display:block}
.batch-series-visual .batch-iter-schematic-badge{position:absolute;bottom:10px;left:12px;right:auto;width:max-content;max-width:calc(100% - 24px);z-index:1;font-size:11px;padding:5px 8px;border-radius:6px}
.batch-series-placeholder,.batch-series-pending,.batch-series-failed{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;color:var(--ink-muted);font-size:14px;text-align:center}
.batch-series-placeholder>span{font-size:32px;color:var(--line-strong)}
.batch-series-placeholder>small,.batch-series-failed>small{font-size:11px}
.batch-series-pending{background:linear-gradient(115deg,var(--paper-inset),var(--paper-card),var(--paper-inset))}
.batch-series-pending-mark{font-size:35px;color:var(--vermilion);animation:make-image-breathe 2s ease-in-out infinite}
.batch-series-shimmer{position:absolute;inset:0;transform:translateX(-100%);pointer-events:none;background:linear-gradient(90deg,transparent,rgba(255,255,255,.66),transparent);animation:make-image-shimmer 1.9s ease-in-out infinite}
.batch-series-pending-label{position:relative;color:var(--ink-muted);font-size:12px}
.batch-series-failed{background:var(--paper-inset);color:var(--vermilion)}
.batch-series-card-editor{padding:12px;display:flex;flex-direction:column;gap:9px}
.batch-series-card-label{font-size:12px;font-weight:700;color:var(--ink-main)}
.batch-series-theme-input{min-height:70px!important;width:100%;font-size:13px!important;line-height:1.6!important;resize:vertical}
.batch-series-card-settings{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(96px,1fr);gap:8px;align-items:stretch}
.batch-series-card-settings .batch-row-layout-btn{max-width:100%;width:100%;min-width:0;min-height:58px;padding:7px;border-radius:8px}
.batch-series-card-settings .batch-row-layout-thumb-wrap{width:36px;height:40px;flex:0 0 36px}
.batch-series-card-settings .batch-row-layout-name{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.batch-series-ref-picker{min-width:0;display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;padding:7px;border:1px solid var(--line-soft);border-radius:8px;background:var(--paper-bg);font:inherit;font-size:11px;color:var(--ink-main);cursor:pointer}
.batch-series-ref-picker img{width:26px;height:32px;object-fit:cover;border-radius:4px}
.batch-series-plus{font-size:18px;color:var(--ink-muted)}
.batch-series-global-toggle{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--ink-muted)}
.batch-series-card-foot{min-height:32px;padding:0 12px 12px;display:flex;justify-content:flex-end;align-items:center}
.batch-series-content>.batch-action-bar{position:static;flex:0 0 auto;margin:0;border:1px solid var(--line-strong);border-radius:14px;background:var(--paper-card);box-shadow:0 5px 20px rgba(28,22,16,.07);padding:12px 14px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.batch-series-content .batch-cost-wrap{min-width:0;display:flex;flex-wrap:wrap;gap:8px;font-size:12px}
.batch-series-content .batch-btn-wrap{margin-left:auto;display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.batch-series-content .batch-btn-wrap .make-image-run-btn{min-height:40px;padding:9px 16px}
@media (max-width:980px){
 .ic-quick-stage:has(.batch-series-container){overflow:auto;padding-bottom:28px}
 .batch-series-container{height:auto;max-height:none}
 .batch-series-form{display:block}
 .make-image-main-grid.creation-workspace.batch-series-workspace{display:flex;flex-direction:column;height:auto;overflow:visible}
 .batch-series-workspace>.batch-series-properties{order:0;overflow:visible;padding:16px;border:0;border-bottom:1px solid var(--line-soft)}
 .batch-series-workspace>.batch-series-content{order:1;overflow:visible;padding:16px}
 .batch-series-scroll{max-height:none;overflow:visible}
 .batch-series-content>.batch-action-bar{position:sticky;bottom:8px;z-index:5}
}
@media (max-width:540px){
 .batch-series-grid{grid-template-columns:minmax(0,1fr)}
 .batch-series-card-settings{grid-template-columns:minmax(0,1fr) minmax(96px,.7fr)}
 .batch-series-content>.batch-action-bar{gap:8px}
 .batch-series-content .batch-btn-wrap{width:100%}
 .batch-series-content .batch-btn-wrap .make-image-run-btn{flex:1}
}
@media(prefers-reduced-motion:reduce){.batch-series-pending-mark,.batch-series-shimmer{animation:none!important}}


/* #142: The series planner and generation controls share one quiet bottom dock.
   AI planning is a secondary step; generating already-reviewed cards remains primary. */
.batch-series-content > .batch-series-dock {
  position:relative; z-index:5; display:flex; flex-direction:column;
  flex:0 1 auto; min-height:0; max-height:min(440px, 62%);
  background:var(--paper-card); border:1px solid var(--line-strong);
  border-radius:16px; box-shadow:0 6px 24px rgba(43,38,35,.08); overflow:hidden;
}
.batch-series-dock > .batch-series-planner {
  margin:0; padding:14px 16px 8px; border:0; border-radius:0;
  background:transparent; min-height:0; min-width:0; flex:0 1 auto;
  overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain;
  scrollbar-width:thin; scrollbar-color:var(--line-strong) transparent;
}
.batch-series-seed-line{display:flex;flex-direction:column;gap:6px;min-width:0}
.batch-series-seed-label{color:var(--ink-main);font-size:12px;font-weight:700}
.batch-series-seed-line .batch-seed-input{
  width:100%;min-width:0;box-sizing:border-box;min-height:46px;
  font-size:14px;line-height:1.5;padding:10px 12px;border-radius:10px;
  background:var(--paper-bg)
}
.batch-series-options-wrap{margin-top:8px}
.batch-series-options-toggle{
  width:100%;display:flex;justify-content:space-between;align-items:center;
  gap:12px;padding:7px 2px;border:0;background:transparent;color:var(--ink-muted);
  font:inherit;font-size:12px;cursor:pointer;text-align:left
}
.batch-series-options-toggle:hover{color:var(--ink-main)}
.batch-series-options-toggle:focus-visible{outline:2px solid var(--vermilion);outline-offset:2px;border-radius:5px}
.batch-series-options-toggle small{margin-left:8px;font-size:11px;font-weight:500;color:var(--ink-muted)}
.batch-series-options-body[hidden]{display:none!important}
.batch-series-options-body{display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--line-soft);padding:12px 0 4px}
.batch-series-options-grid{display:flex;align-items:end;gap:16px;flex-wrap:wrap}
.batch-series-options-grid > .batch-count-wrap{width:auto;min-width:98px;display:flex;flex-direction:column;align-items:start;gap:5px}
.batch-series-options-grid .batch-count-input{width:92px;min-height:36px}
.batch-series-options-grid > .batch-strategy-wrap{flex:1 1 230px;display:flex;flex-direction:column;align-items:start;gap:6px}
.batch-series-options-grid .batch-strategy-seg{max-width:100%}
.batch-series-options-body .batch-plan-row-b-wrap{min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.batch-series-options-body .batch-plan-row-b{min-width:0;max-width:100%}
.batch-series-options-body .batch-ai-layout-row .batch-layout-req-input{min-width:0;flex:1 1 180px}
.batch-series-options-body .batch-series-bulk-input{width:100%;box-sizing:border-box}
.batch-series-options-body .batch-prompts-textarea{min-height:100px;max-height:200px}
.batch-series-dock > .batch-series-footer{
  flex:0 0 auto;display:flex;flex-direction:column;gap:8px;
  padding:10px 15px 12px;border-top:1px solid var(--line-soft)
}
.batch-series-footer-meta{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.batch-series-footer .batch-cost-wrap{font-size:11px;line-height:1.45;min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.batch-series-footer .batch-plan-notice{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.batch-series-footer-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.batch-series-footer-actions .batch-plan-action-wrap{
  display:flex;align-items:center;gap:7px;flex:0 0 auto;margin:0;width:auto;
}
.batch-series-footer-actions .batch-series-plan-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:40px;padding:8px 14px;font:inherit;font-size:13px;font-weight:650;
  border:1px solid var(--line-strong);border-radius:10px;background:var(--paper-bg);
  color:var(--ink-main);cursor:pointer
}
.batch-series-plan-btn:hover:not(:disabled){border-color:var(--vermilion);background:var(--paper-inset)}
.batch-series-plan-btn:focus-visible{outline:2px solid var(--vermilion);outline-offset:2px}
.batch-series-plan-btn:disabled{opacity:.5;cursor:default}
.batch-series-footer-actions > .batch-btn-wrap{
  flex:1 1 auto;display:flex;align-items:center;justify-content:flex-end;
  flex-wrap:wrap;gap:8px;margin:0;min-width:0
}
.batch-series-footer-actions .batch-btn-wrap button{white-space:nowrap}
.batch-series-footer-actions .batch-btn-wrap .make-image-run-btn{
  min-height:40px;padding:8px 18px;border-radius:10px;font-size:13px;font-weight:750
}
.batch-series-footer-actions .batch-btn-wrap .batch-btn-reset{opacity:.85}
.batch-series-footer-actions .batch-btn-wrap #batch-btn-download-all:disabled{display:none}
.batch-series-dock .batch-busy-status{font-size:11px}
@media(max-width:1200px){
  .batch-series-footer-actions{gap:8px}
  .batch-series-footer-actions .batch-btn-wrap{gap:6px}
  .batch-series-footer-actions .batch-btn-wrap .make-image-run-btn{padding:8px 12px}
}
@media(max-width:980px){
  .batch-series-content>.batch-series-dock{
    position:sticky;bottom:8px;z-index:6;
    max-height:min(460px, 60vh);flex:0 0 auto;
  }
  .batch-series-content>.batch-series-scroll{padding-bottom:20px}
}
@media(max-width:540px){
  .batch-series-content>.batch-series-dock{max-height: min(430px, 65vh)}
  .batch-series-dock>.batch-series-planner{padding:10px 12px 6px}
  .batch-series-dock>.batch-series-footer{padding:8px 12px 10px;gap:6px}
  .batch-series-footer-actions{align-items:stretch;gap:7px}
  .batch-series-footer-actions .batch-plan-action-wrap{flex:1 1 auto}
  .batch-series-footer-actions .batch-plan-action-wrap .batch-series-plan-btn{min-width:0;width:auto;flex:1}
  .batch-series-footer-actions .batch-btn-wrap{flex:1 1 auto;width:auto}
  .batch-series-footer-actions .batch-btn-wrap .make-image-run-btn{flex:1}
  .batch-series-footer-actions .batch-btn-wrap .batch-btn-reset{min-height:38px}
  .batch-series-footer-actions .batch-btn-wrap #batch-btn-download-all:not(:disabled){order:3;flex:0 0 auto}
  .batch-series-options-grid>.batch-strategy-wrap{flex-basis:100%}
}

/* #142 QA: never compress the composer out of view to make room for card grid. */
.batch-series-content>.batch-series-dock {
  flex:0 0 auto;
  max-height:min(480px, 65%);
}
.batch-series-footer-meta .batch-series-undo {
  border:0;background:transparent;padding:1px 3px;
  font:inherit;font-size:11px;color:var(--ink-muted);
  text-decoration:underline;text-underline-offset:2px;
  cursor:pointer;
}
.batch-series-footer-meta .batch-series-undo:hover{color:var(--vermilion)}
.batch-series-footer-meta .batch-series-undo:focus-visible{outline:2px solid var(--vermilion);border-radius:4px}
.batch-series-footer-actions{flex-wrap:nowrap}
@media(max-width:980px){
  .batch-series-content>.batch-series-dock{max-height:min(460px, 60vh)}
}
@media(max-width:540px){
  .batch-series-content>.batch-series-dock{max-height:min(430px, 64vh)}
  .batch-series-footer-actions{flex-wrap:nowrap;gap:6px;align-items:center}
  .batch-series-footer-actions .batch-plan-action-wrap{flex:0 0 auto;width:auto;min-width:0}
  .batch-series-footer-actions .batch-plan-action-wrap .batch-series-plan-btn{
    flex:0 0 auto;min-width:80px;width:auto;
    min-height:38px;padding:7px 9px;font-size:12px;
  }
  .batch-series-footer-actions .batch-btn-wrap{
    flex:1 1 auto;width:auto;min-width:0;gap:5px;
    flex-wrap:nowrap;justify-content:flex-end;
  }
  .batch-series-footer-actions .batch-btn-wrap .batch-btn-reset{
    flex:0 0 auto;min-height:38px;padding:7px 6px;
  }
  .batch-series-footer-actions .batch-btn-wrap .make-image-run-btn{
    flex:1 1 auto;min-width:0;min-height:38px;
    padding:7px 9px;font-size:12px;
  }
}


/* #143: focused series image / dual-property sidebar / single-image-like composer. */
@media(min-width:981px) {
  .batch-series-workspace>.batch-series-properties{
    display:flex;flex-direction:column;gap:0;padding:0;overflow:hidden;min-height:0
  }
  .batch-series-workspace>.batch-series-properties>.batch-series-shared,
  .batch-series-workspace>.batch-series-properties>.batch-series-selected-settings{
    flex-shrink:1;min-height:0
  }
  .batch-series-workspace>.batch-series-properties>.batch-series-shared{
    flex:1 1 58%;overflow-y:auto
  }
  .batch-series-workspace>.batch-series-properties>.batch-series-selected-settings{
    flex:1 1 42%;overflow-y:auto
  }
}
.batch-series-shared,.batch-series-selected-settings{
  min-width:0;padding:16px 18px;box-sizing:border-box;
  overscroll-behavior:contain;scrollbar-color:var(--ink-muted) var(--paper-inset);
  scrollbar-width:auto
}
.batch-series-shared>*{flex-shrink:0}
.batch-series-shared::-webkit-scrollbar,.batch-series-selected-settings::-webkit-scrollbar{width:10px}
.batch-series-shared::-webkit-scrollbar-thumb,.batch-series-selected-settings::-webkit-scrollbar-thumb{
  border-radius:8px;border:2px solid var(--paper-inset);background:var(--ink-muted)
}
.batch-series-selected-settings{
  border-top:1px solid var(--line-strong);background:var(--paper-card);
  display:flex;flex-direction:column;gap:12px
}
.batch-series-section-title{
  display:flex;gap:6px;align-items:center;justify-content:space-between;
  color:var(--ink-muted);font-size:12px;font-weight:650;min-height:24px
}
.batch-series-section-title strong{color:var(--ink-main);font-size:14px}
.batch-series-selected-settings .batch-series-delete{
  width:auto;min-height:28px;padding:4px 9px;font-size:11px;background:var(--paper-inset);
}
.batch-series-selected-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.batch-series-selected-field .batch-row-layout-btn{max-width:100%;width:100%}
.batch-series-selected-ref-summary,.batch-series-selected-empty{
  font-size:11px;color:var(--ink-muted);line-height:1.6
}
.batch-series-top-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
.batch-series-top-controls>.batch-count-wrap{
  display:flex;flex-direction:column;align-items:start;gap:5px;flex:0 0 78px;min-width:0
}
.batch-series-top-controls .batch-count-input{width:78px;min-width:0}
.batch-series-top-controls>.batch-strategy-wrap{
  display:flex;flex-direction:column;align-items:start;gap:6px;min-width:0;flex:1 1 180px
}
.batch-series-top-controls .batch-strategy-seg{max-width:100%}
.batch-series-fixed-layout{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.batch-series-fixed-layout .btn{min-width:0;text-align:left}
.batch-series-shared .batch-series-bulk-input{margin:2px 0 8px}
.batch-series-shared .batch-series-bulk-input textarea{min-height:76px;max-height:150px}
.batch-series-content>.batch-series-stage{
  flex:1 1 auto;min-height:0;display:grid;
  grid-template-columns:minmax(0,1fr) clamp(70px,9vw,96px);
  align-items:stretch;gap:12px;overflow:hidden;padding:0 0 12px;
}
.batch-series-main-card{
  display:flex;align-items:center;justify-content:center;
  min-height:0;min-width:0;overflow:hidden;
  background:var(--paper-card);border:1px solid var(--line-soft);
  border-radius:14px
}
.batch-series-main-card>.batch-series-empty{padding:30px;line-height:1.7}
.batch-series-focused{
  width:100%;height:100%;min-height:0;min-width:0;display:flex;
  flex-direction:column;background:transparent;border:0;border-radius:0;box-shadow:none
}
.batch-series-focused .batch-series-card-head{
  flex:0 0 auto;min-height:38px;border-bottom:1px solid var(--line-soft);gap:10px
}
.batch-series-focused .batch-series-card-head .batch-status-badge{margin-right:auto;margin-left:0}
.batch-series-focused .batch-series-visual{
  position:relative;flex:1 1 auto;width:100%;min-width:0;min-height:0;
  max-height:none;aspect-ratio:auto!important;overflow:hidden;
  background:var(--paper-inset)
}
.batch-series-focused .batch-series-visual .batch-series-image{position:absolute;inset:0;width:100%;height:100%}
.batch-series-focused .batch-series-visual img{width:100%;height:100%;object-fit:contain}
.batch-series-focused .batch-series-placeholder,.batch-series-focused .batch-series-pending,.batch-series-focused .batch-series-failed{
  position:absolute;inset:0
}
.batch-series-thumbs{
  min-height:0;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:9px;
  overflow-x:hidden;overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain;padding:2px
}
.batch-series-thumbs::-webkit-scrollbar{display:none}
.batch-series-thumb{
  width:100%;flex:0 0 auto;padding:5px;min-width:0;
  border:1px solid var(--line-soft);border-radius:10px;
  background:var(--paper-card);cursor:pointer;text-align:center;
  display:flex;flex-direction:column;align-items:center;gap:4px;
  color:var(--ink-muted);font:inherit;transition:border-color .15s,background .15s
}
.batch-series-thumb:hover{border-color:var(--ink-muted);background:var(--paper-inset)}
.batch-series-thumb.is-selected{border:2px solid var(--vermilion);padding:4px;box-shadow:0 1px 6px rgba(151,80,60,.12)}
.batch-series-thumb:focus-visible{outline:2px solid var(--vermilion);outline-offset:2px}
.batch-series-thumb-picture{
  display:flex;align-items:center;justify-content:center;position:relative;
  width:100%;aspect-ratio:3/4;max-height:104px;overflow:hidden;border-radius:6px;background:var(--paper-inset)
}
.batch-series-thumb-picture img{width:100%;height:100%;object-fit:cover;display:block}
.batch-series-thumb-empty{color:var(--ink-muted);font-size:22px}
.batch-series-thumb-number{color:var(--ink-main);font-size:11px;font-weight:700}
.batch-series-thumb-status{color:var(--ink-muted);font-size:10px}
.batch-series-thumb-pulse{
  position:absolute;inset:0;
  background:linear-gradient(110deg,transparent,rgba(255,255,255,.65),transparent);
  animation:make-image-shimmer 1.8s ease-in-out infinite
}
.batch-series-content>.batch-series-dock{
  flex:0 0 auto;max-height:min(350px,47%);min-height:0;display:flex;flex-direction:column
}
.batch-series-dock>.batch-series-composer{
  display:flex;flex-direction:column;flex:0 1 auto;min-height:0;
  overflow-y:auto;overscroll-behavior:contain;gap:8px;padding:10px 13px 6px
}
.batch-series-composer-modes{display:flex;align-items:center;gap:14px}
.batch-series-composer-modes button{
  appearance:none;border:0;background:transparent;min-height:28px;padding:3px 1px 5px;
  font:inherit;font-size:12px;color:var(--ink-muted);cursor:pointer
}
.batch-series-composer-modes button.is-active{
  font-weight:750;color:var(--ink-main);border-bottom:2px solid var(--vermilion)
}
.batch-series-composer-modes button:disabled{opacity:.4;cursor:not-allowed}
.batch-series-composer-modes button:focus-visible{outline:2px solid var(--vermilion)}
.batch-series-composer-input.make-image-textarea{
  min-height:58px;max-height:132px;resize:vertical;
  width:100%;box-sizing:border-box;padding:8px 2px;
  font-size:14px;line-height:1.6;background:transparent;
  border:0;outline:0;box-shadow:none
}
.batch-series-composer-input.make-image-textarea:focus{outline:0;border:0;box-shadow:none}
.batch-series-composer-attachments{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.batch-series-attachment{
  width:53px;height:62px;position:relative;display:flex;align-items:center;
  border:1px solid var(--line-soft);border-radius:8px;overflow:hidden;background:var(--paper-inset)
}
.batch-series-attachment img{width:100%;height:100%;object-fit:cover}
.batch-series-attachment>button{
  position:absolute;right:3px;top:3px;width:18px;height:18px;border:0;
  border-radius:9px;color:white;background:rgba(0,0,0,.65);cursor:pointer;line-height:1
}
.batch-series-composer-bottom{display:flex;align-items:center;gap:8px;color:var(--ink-muted);font-size:11px}
.batch-series-add-reference{
  flex:0 0 34px;width:34px;height:34px;border:1px solid var(--line-soft);
  border-radius:10px;background:var(--paper-inset);color:var(--ink-main);
  font:inherit;font-size:23px;cursor:pointer;line-height:1
}
.batch-series-add-reference:hover{border-color:var(--vermilion)}
.batch-series-dock>.batch-series-footer{flex:0 0 auto;padding:7px 12px 10px;gap:6px}
.batch-series-dock .batch-series-footer-actions{flex-wrap:nowrap;gap:8px}
@media(max-width:980px){
  .batch-series-workspace>.batch-series-properties{display:flex;flex-direction:column;gap:0;padding:0}
  .batch-series-shared,.batch-series-selected-settings{padding:16px}
  .batch-series-content>.batch-series-stage{flex:0 0 auto;height:clamp(280px,53vh,560px)}
  .batch-series-content>.batch-series-dock{flex:0 0 auto;max-height:min(350px,50vh)}
}
@media(max-width:540px){
  .batch-series-content>.batch-series-stage{
    height:clamp(280px,46vh,430px);grid-template-columns:minmax(0,1fr) 62px;gap:7px
  }
  .batch-series-thumbs{gap:6px}
  .batch-series-thumb{padding:3px;border-radius:7px;gap:2px}
  .batch-series-thumb.is-selected{padding:2px}
  .batch-series-thumb-picture{max-height:68px}
  .batch-series-thumb-status{font-size:9px}
  .batch-series-dock>.batch-series-footer{padding:6px 10px 9px}
  .batch-series-composer-modes{gap:10px}
  .batch-series-composer-modes button{font-size:11px}
  .batch-series-composer-input.make-image-textarea{font-size:13px;min-height:50px}
}
@media(prefers-reduced-motion:reduce){.batch-series-thumb-pulse{animation:none!important}}

/* Keep zoom affordance without zooming the entire canvas or stretching the layout hint. */
.batch-series-focused .batch-iter-thumb-btn:hover{transform:none;opacity:1}


/* #144: One continuous property rail, using the same picker and segmented
   button vocabulary as the single-image page. Selection is a subsection,
   not a second independently-sized scroll pane. */
@media(min-width:981px){
  .batch-series-workspace>.batch-series-properties{
    display:flex;flex-direction:column;gap:0;min-height:0;
    padding:20px;overflow-x:hidden;overflow-y:auto;
    scrollbar-width:auto;overscroll-behavior:contain
  }
  .batch-series-workspace>.batch-series-properties>.batch-series-shared,
  .batch-series-workspace>.batch-series-properties>.batch-series-selected-settings{
    display:flex;flex-direction:column;flex:0 0 auto;
    width:100%;min-width:0;min-height:auto;overflow:visible;
    padding:0;background:transparent;border:0
  }
}
.batch-series-workspace>.batch-series-properties>.batch-series-shared,
.batch-series-workspace>.batch-series-properties>.batch-series-selected-settings{
  background:transparent;border:0;box-shadow:none
}
.batch-series-selected-settings{
  padding:0;margin-top:22px;border:0;gap:12px
}
.batch-series-selected-settings>.batch-series-section-title{
  justify-content:flex-start;gap:8px
}
.batch-series-selected-settings>.batch-series-section-title .batch-series-delete{
  margin-left:auto
}
.batch-series-layout-strategy{
  display:flex;flex-direction:column;align-items:flex-start;gap:7px;
  margin:0 0 2px;min-width:0
}
.batch-series-layout-strategy>.make-image-btn-group{
  display:flex;align-items:center;flex-wrap:wrap;gap:6px
}
.batch-series-fixed-picker,
.batch-series-workspace .batch-series-fixed-picker{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;margin:0 0 4px
}
.batch-series-fixed-picker>.make-image-picker-card{
  min-width:0;width:100%;box-sizing:border-box
}
/* Thumbnail placeholders carry only image numbers; completed thumbnails have
   a hover/focus-only translucent image label to preserve image surface area. */
.batch-series-thumb{
  gap:0;padding:5px;position:relative
}
.batch-series-thumb-picture{max-height:106px}
.batch-series-thumb-empty{
  font-size:14px;font-weight:650;color:var(--ink-muted);white-space:nowrap
}
.batch-series-thumb-overlay{
  position:absolute;inset:0;z-index:2;display:flex;align-items:center;
  justify-content:center;background:rgba(27,27,27,.48);color:#fff;
  border-radius:6px;font-size:13px;font-weight:750;
  opacity:0;pointer-events:none;transition:opacity .14s ease
}
.batch-series-thumb.has-result:hover .batch-series-thumb-overlay,
.batch-series-thumb.has-result:focus-visible .batch-series-thumb-overlay{
  opacity:1
}
.batch-series-thumb-number,.batch-series-thumb-status{display:none!important}
.batch-series-thumb-pulse{pointer-events:none}
.batch-series-dock{
  padding:12px 14px 10px;
  background:var(--paper-card);
  border-radius:16px;
}
.batch-series-dock>.batch-series-composer{
  flex:0 1 auto;padding:0;gap:6px;min-height:0;overflow-x:hidden
}
.batch-series-composer-bottom{
  display:flex;align-items:center;flex-wrap:wrap;gap:9px;
  width:100%;min-width:0
}
.batch-series-composer-bottom>.batch-series-add-reference.make-image-add-reference{
  display:grid;place-items:center;
  flex:0 0 38px;width:38px;height:38px;
  border-radius:50%;font-size:24px;line-height:1;
  color:var(--ink-main);background:var(--paper-inset);
  border:1px solid var(--line-strong);padding:0;cursor:pointer
}
.batch-series-composer-bottom>.batch-series-add-reference.make-image-add-reference:hover{
  color:var(--vermilion);border-color:var(--vermilion)
}
.batch-series-composer-bottom>.batch-series-add-reference.make-image-add-reference:focus-visible{
  outline:2px solid var(--vermilion);outline-offset:2px
}
.batch-series-composer-bottom>.batch-series-footer-actions{
  flex:1 1 auto;min-width:0;
  display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px
}
.batch-series-count{
  display:inline-flex;align-items:center;gap:5px;
  color:var(--ink-muted);font-size:11px;white-space:nowrap
}
.batch-series-count>.batch-count-input{
  width:50px;min-width:0;min-height:36px;
  padding:6px 4px;text-align:center;font-size:12px
}
.batch-series-composer-bottom .batch-series-plan-btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:38px;gap:6px;padding:8px 12px;border-radius:10px;
  border:1px solid var(--line-strong);
  color:var(--ink-main);background:var(--paper-bg);
  font-size:12px;font-weight:650;white-space:nowrap;cursor:pointer
}
.batch-series-composer-bottom .batch-series-plan-btn:hover:not(:disabled){
  border-color:var(--vermilion);background:var(--paper-inset)
}
.batch-series-composer-bottom .batch-series-run-btn,
.batch-series-composer-bottom .batch-stop-btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:40px;border-radius:10px;padding:8px 14px;
  font-size:12px;font-weight:700;white-space:nowrap
}
.batch-series-dock>.batch-series-footer{
  border:0;border-top:1px solid var(--line-soft);margin-top:10px;
  padding:8px 0 0;gap:0;min-height:0
}
.batch-series-footer-meta{
  display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:7px
}
.batch-series-secondary-actions{
  display:flex;align-items:center;justify-content:flex-end;
  gap:6px;flex-wrap:wrap
}
.batch-series-secondary-actions>button.btn{
  min-height:28px;font-size:11px;padding:4px 7px
}
.batch-series-secondary-actions #batch-btn-download-all:disabled{display:none}
.batch-series-composer-input.make-image-textarea{margin-bottom:3px}
@media(max-width:980px){
  .batch-series-workspace>.batch-series-properties{
    display:flex;flex-direction:column;gap:0;padding:16px;overflow:visible
  }
  .batch-series-workspace>.batch-series-properties>.batch-series-shared,
  .batch-series-workspace>.batch-series-properties>.batch-series-selected-settings{
    flex:0 0 auto;min-height:0;padding:0;overflow:visible
  }
}
@media(max-width:540px){
  .batch-series-dock{padding:10px 11px}
  .batch-series-composer-bottom{gap:6px;flex-wrap:nowrap}
  .batch-series-composer-bottom>.batch-series-add-reference.make-image-add-reference{
    flex-basis:34px;width:34px;height:34px;font-size:22px
  }
  .batch-series-composer-bottom>.batch-series-footer-actions{
    gap:5px;flex:1 1 auto;flex-wrap:wrap
  }
  .batch-series-count{font-size:10px;gap:3px}
  .batch-series-count>.batch-count-input{
    width:37px;min-height:34px;padding:4px 2px;font-size:11px
  }
  .batch-series-composer-bottom .batch-series-plan-btn{
    min-height:36px;padding:6px 7px;gap:4px;font-size:11px
  }
  .batch-series-composer-bottom .batch-series-plan-btn svg{width:13px;height:13px}
  .batch-series-composer-bottom .batch-series-run-btn,
  .batch-series-composer-bottom .batch-stop-btn{
    min-height:36px;padding:6px 8px;font-size:11px
  }
  .batch-series-dock>.batch-series-footer{padding-top:6px;margin-top:7px}
}
@media(prefers-reduced-motion:reduce){
  .batch-series-thumb-overlay{transition:none}
}


/* #144 polish: consistent vertical rhythm and picker cards within one sidebar. */
.batch-series-shared{gap:16px}
.batch-series-selected-settings{gap:12px}
.batch-series-selected-field .batch-row-layout-btn.make-image-picker-card{
  width:100%;max-width:100%;min-height:76px;
  display:flex;align-items:center;gap:8px;padding:10px;
  border-radius:8px;background:var(--paper-bg);
  border:1px solid var(--line-soft);
  color:var(--ink-main);text-align:left;box-shadow:none
}
.batch-series-selected-field .batch-row-layout-btn.make-image-picker-card.is-selected{
  border-color:var(--vermilion);background:var(--paper-card)
}
.batch-series-selected-field .batch-row-layout-btn.make-image-picker-card:hover{
  border-color:var(--line-strong)
}
.batch-series-selected-field .batch-row-layout-thumb-wrap.make-image-picker-thumb{
  flex:0 0 36px;width:36px;height:44px;border-radius:6px;
  border:1px solid var(--line-soft)
}
.batch-series-selected-field .batch-row-layout-info.make-image-picker-info{gap:2px}
.batch-series-selected-field .batch-row-layout-code.make-image-picker-badge{color:var(--vermilion)}
.batch-series-selected-field .batch-row-layout-name.make-image-picker-name{
  color:var(--ink-main);font-size:12px;line-height:1.45;font-weight:650;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.batch-series-selected-field .batch-row-layout-thumb{object-fit:contain}


/* #145: concise series editor, secondary controls neutral; only Run is primary. */
.batch-series-properties .make-image-btn-group .btn.btn-primary.is-active{
  background:var(--paper-inset);border-color:var(--ink-muted);
  color:var(--ink-main);box-shadow:inset 0 -2px 0 var(--vermilion)
}
.batch-series-properties .make-image-btn-group .btn.btn-primary.is-active:hover{
  background:var(--paper-card);border-color:var(--vermilion)
}
.batch-series-layout-strategy{
  display:flex;flex-direction:row;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:8px;margin:0
}
.batch-series-layout-strategy>.make-image-field-label{flex:0 0 auto;white-space:nowrap}
.batch-series-layout-strategy>.make-image-btn-group{
  display:flex;align-items:center;flex-wrap:nowrap;gap:5px;min-width:0
}
.batch-series-layout-strategy .make-image-btn-group>.btn{
  min-width:0;padding:7px 10px;font-size:12px;white-space:nowrap
}
.batch-series-workspace .batch-series-fixed-picker{
  grid-template-columns:repeat(2,minmax(0,1fr));margin:0
}
.batch-series-workspace .batch-series-fixed-picker>.make-image-picker-card{
  grid-column:1/-1
}
/* Clear the unused heading row and let the single picture fill the stage. */
.batch-series-content>.batch-series-stage{padding-top:0}
.batch-series-main-card{
  background:transparent;border:none;border-radius:16px;
  box-shadow:none;overflow:hidden
}
.batch-series-focused{position:relative;border:0;background:transparent}
.batch-series-focused .batch-series-visual{
  background:transparent;border:0;border-radius:16px;overflow:hidden;
}
.batch-series-floating-action{
  position:absolute;right:14px;bottom:14px;z-index:10;
  display:flex;gap:8px;align-items:center
}
.batch-series-floating-action .btn{
  border-radius:9px;padding:8px 12px;
  background:var(--paper-card);box-shadow:0 2px 12px rgba(33,28,24,.12)
}
.batch-series-focused .batch-series-placeholder{
  background:
    radial-gradient(ellipse 42% 34% at 50% 46%,rgba(195,180,155,.18),transparent 95%),
    linear-gradient(135deg,var(--paper-card),var(--paper-inset) 55%,var(--paper-card));
  border:0;border-radius:16px;gap:9px;isolation:isolate
}
.batch-series-placeholder-glow{
  position:absolute;width:min(42%,180px);aspect-ratio:1;
  border-radius:50%;background:radial-gradient(circle,rgba(198,153,120,.20),rgba(198,153,120,0) 75%);
  filter:blur(8px);pointer-events:none
}
.batch-series-placeholder-symbol{
  font-size:46px;font-weight:300;line-height:1;color:var(--vermilion);
  opacity:.55;transform:translateY(-2px)
}
.batch-series-placeholder-title{
  font-size:14px;font-weight:650;letter-spacing:.03em;color:var(--ink-main)
}
.batch-series-placeholder small{font-size:11px;letter-spacing:.08em;color:var(--ink-muted)}
.batch-series-thumbs-rail{
  min-width:0;min-height:0;display:flex;flex-direction:column;gap:7px
}
.batch-series-thumbs-rail>.batch-series-thumbs{flex:1 1 auto;min-height:0}
.batch-series-thumb-picture{
  width:100%;aspect-ratio:4/3;max-height:none
}
.batch-series-add-slot{
  flex:0 0 34px;width:100%;display:grid;place-items:center;
  border:1px solid var(--line-soft);border-radius:8px;
  font-size:20px;line-height:1;background:var(--paper-card);
  color:var(--ink-muted);cursor:pointer
}
.batch-series-add-slot:hover:not(:disabled){
  color:var(--vermilion);border-color:var(--vermilion)
}
.batch-series-add-slot:focus-visible{outline:2px solid var(--vermilion);outline-offset:2px}
.batch-series-add-slot:disabled{opacity:.4;cursor:default}
.batch-series-composer-bottom .batch-series-run-btn{
  background:var(--vermilion);color:#fff;border-color:var(--vermilion)
}
.batch-series-composer-bottom .batch-series-plan-btn{
  background:var(--paper-bg);color:var(--ink-main);border-color:var(--line-strong)
}
@media(min-width:981px){
  .batch-series-content>.batch-series-stage{
    grid-template-columns:minmax(0,1fr) clamp(84px,9vw,106px)
  }
}
@media(max-width:540px){
  .batch-series-content>.batch-series-stage{
    grid-template-columns:minmax(0,1fr) 72px;gap:7px
  }
  .batch-series-thumb-picture{aspect-ratio:4/3;max-height:none}
  .batch-series-layout-strategy .make-image-btn-group>.btn{
    padding:6px 7px;font-size:11px
  }
  .batch-series-add-slot{flex-basis:30px}
  .batch-series-placeholder-symbol{font-size:38px}
}


/* #146 — Single-image visual parity for the series inspector.
   The shape and colors below intentionally reuse the same UI tokens rather
   than the older neutralized series-only active buttons. */
@media(min-width:981px){
  .batch-series-workspace>.batch-series-properties{
    padding:22px 20px;border-right:1px solid var(--line-soft)
  }
}
.batch-series-workspace>.batch-series-properties>.batch-series-shared{
  gap:14px
}
.batch-series-workspace>.batch-series-properties>.batch-series-selected-settings{
  gap:14px;margin-top:20px
}
.batch-series-properties .make-image-btn-group .btn.btn-primary.is-active{
  background:var(--vermilion);border-color:var(--vermilion);
  color:#fff;box-shadow:none
}
.batch-series-properties .make-image-btn-group .btn.btn-primary.is-active:hover{
  background:var(--vermilion);border-color:var(--vermilion);color:#fff
}
.batch-series-workspace .batch-series-fixed-picker,
.batch-series-workspace .batch-pickers-row,
.batch-series-workspace .batch-pickers-row.has-style2{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));
  align-items:stretch;gap:10px;width:100%
}
.batch-series-workspace .batch-series-fixed-picker>.make-image-picker-card{
  grid-column:auto;min-width:0;width:100%;box-sizing:border-box
}
.batch-series-selected-field .batch-row-layout-btn.make-image-picker-card{
  width:calc(50% - 5px);max-width:calc(50% - 5px);min-width:0;
  box-sizing:border-box;min-height:76px
}
/* The only empty-state focal point is its centered content and one action. */
.batch-series-focused .batch-series-visual{
  display:flex;align-items:center;justify-content:center;
}
.batch-series-focused .batch-series-placeholder{
  position:absolute;inset:0;margin:0;padding:18px;
  box-sizing:border-box;min-width:0;min-height:0;width:100%;height:100%;
  display:grid;place-items:center;text-align:center
}
.batch-series-placeholder-center{
  position:relative;z-index:1;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:8px;
  min-width:0;max-width:100%;text-align:center
}
.batch-series-placeholder-center .batch-series-placeholder-symbol{
  display:block;font-size:45px;line-height:1.15;margin-bottom:2px
}
.batch-series-placeholder-center .batch-series-placeholder-title{
  display:block;font-size:15px;font-weight:700;color:var(--ink-main);
  letter-spacing:.02em
}
.batch-series-placeholder-center .batch-series-placeholder-note{
  display:block;color:var(--ink-muted);font-size:12px
}
.batch-series-generate-one{
  appearance:none;display:inline-flex;justify-content:center;align-items:center;
  gap:8px;margin-top:16px;min-height:42px;min-width:126px;
  padding:10px 16px;border-radius:11px;
  border:1px solid var(--vermilion);background:var(--vermilion);
  color:#fff;font:inherit;font-size:13px;font-weight:700;
  cursor:pointer;box-shadow:0 5px 16px rgba(143,67,47,.14);
  transition:filter .15s ease,transform .15s ease
}
.batch-series-generate-one:hover:not(:disabled){filter:brightness(.94);transform:translateY(-1px)}
.batch-series-generate-one:focus-visible{outline:2px solid var(--vermilion);outline-offset:3px}
.batch-series-generate-one:disabled{opacity:.5;cursor:wait}
.batch-series-generate-one svg{flex:0 0 auto}
.batch-series-focused .batch-series-pending{
  position:absolute;inset:0;display:flex;align-items:center;
  justify-content:center;flex-direction:column;gap:12px;
  padding:16px;text-align:center;background:transparent
}
.batch-series-focused .batch-series-pending-art{
  flex:0 1 auto;display:grid;place-items:center;position:relative;
  min-width:0;min-height:100px;
  width:min(56%,290px);max-height:calc(100% - 55px);
  aspect-ratio:3/4;border:0;border-radius:14px;
  background:linear-gradient(110deg,var(--paper-inset),var(--paper-card),var(--paper-inset));
  overflow:hidden
}
.batch-series-focused .batch-series-pending .make-image-pending-caption{
  padding:0;position:relative;flex:0 0 auto;color:var(--ink-muted)
}
.batch-series-focused .batch-series-failed{
  position:absolute;inset:0;display:flex;align-items:center;
  justify-content:center;text-align:center
}
@media(max-width:980px){
  .batch-series-workspace>.batch-series-properties{
    padding:20px;border-right:0
  }
}
@media(max-width:540px){
  .batch-series-workspace>.batch-series-properties{padding:14px}
  .batch-series-placeholder-center .batch-series-placeholder-symbol{font-size:36px}
  .batch-series-placeholder-center .batch-series-placeholder-title{font-size:13px}
  .batch-series-generate-one{margin-top:10px;min-height:38px;padding:8px 11px}
  .batch-series-focused .batch-series-pending-art{width:min(68%,230px)}
}
@media(prefers-reduced-motion:reduce){
  .batch-series-generate-one{transition:none}
}

/* #147: Strategy and style mode share the same label/button grid. */
.batch-series-properties .make-image-top-row .make-image-inline-group,
.batch-series-properties .batch-series-layout-strategy{
  display:grid;grid-template-columns:76px minmax(0,1fr);
  align-items:center;justify-content:initial;gap:10px;
  margin:0;min-width:0
}
.batch-series-properties .make-image-top-row .make-image-inline-group>.make-image-field-label,
.batch-series-properties .batch-series-layout-strategy>.make-image-field-label{
  width:auto;min-width:0;white-space:nowrap
}
.batch-series-properties .make-image-top-row .make-image-inline-group>.make-image-btn-group,
.batch-series-properties .batch-series-layout-strategy>.make-image-btn-group{
  display:flex;justify-content:flex-start;align-items:center;
  flex-wrap:wrap;gap:6px;min-width:0
}
.batch-series-properties .batch-series-layout-strategy .make-image-btn-group>.btn{
  padding:7px 10px;font-size:12px;min-width:0
}
/* Read-only inspection is visually distinct from editable settings. */
.batch-series-focused .batch-series-placeholder{
  overflow-y:auto;scrollbar-width:none
}
.batch-series-focused .batch-series-placeholder::-webkit-scrollbar{display:none}
.batch-series-placeholder-center{width:min(100%,420px);gap:12px}
.batch-series-preview{width:100%;min-width:0;text-align:left}
.batch-series-preview-eyebrow{
  display:block;text-align:center;font-size:11px;letter-spacing:.08em;
  color:var(--ink-muted);margin-bottom:10px
}
.batch-series-preview-theme{
  color:var(--ink-main);font-size:clamp(15px,2vw,20px);line-height:1.5;font-weight:650;
  text-align:center;overflow-wrap:anywhere;margin:0 0 16px
}
.batch-series-preview-details{
  margin:0;padding:12px 16px;background:var(--paper-card);
  border:1px solid var(--line-soft);border-radius:12px;
  display:grid;gap:9px
}
.batch-series-preview-property{
  display:grid;grid-template-columns:64px minmax(0,1fr);
  gap:10px;align-items:baseline;font-size:12px;line-height:1.6
}
.batch-series-preview-property dt{color:var(--ink-muted)}
.batch-series-preview-property dd{
  margin:0;color:var(--ink-main);font-weight:550;
  overflow-wrap:anywhere;min-width:0
}
@media(max-width:540px){
  .batch-series-properties .make-image-top-row .make-image-inline-group,
  .batch-series-properties .batch-series-layout-strategy{
    grid-template-columns:70px minmax(0,1fr)
  }
  .batch-series-preview-details{padding:10px 12px}
}
