/* Scheduled Generation — Apple Minimalism Edition (2026-11-27 Copy)
 * Preserves Studio V2.2 untouched in its own file.
 * Design language: macOS Sequoia / iOS 18 HIG — SF Pro / PingFang SC optical typography,
 * pure neutral graphite & #f5f5f7 inset-grouped sheets, translucent vibrancy,
 * iconic segmented controls, pill CTAs (#0071e3 / #0a84ff), ultra-quiet chrome.
 */

/* ===== 1. Apple System Tokens ===== */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready,
#scheduled-generation-edit-modal.ssv2-edit-drawer {
  --ap-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --ap-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;

  /* macOS Dark Vibrancy (Pure Neutral Graphite — zero muddy blue cast) */
  --ap-canvas: #161618;
  --ap-bar: rgba(28, 28, 30, 0.92);
  --ap-sheet: #232326;
  --ap-sheet-elev: #2c2c2e;
  --ap-track: rgba(118, 118, 128, 0.24);
  --ap-thumb: #3a3a3c;
  --ap-hover: rgba(255, 255, 255, 0.055);
  --ap-sep: rgba(255, 255, 255, 0.085);
  --ap-ring: rgba(10, 132, 255, 0.55);

  --ap-ink-1: #f5f5f7;
  --ap-ink-2: rgba(235, 235, 245, 0.64);
  --ap-ink-3: rgba(235, 235, 245, 0.38);

  --ap-blue: #0a84ff;
  --ap-blue-hover: #2997ff;
  --ap-blue-soft: rgba(10, 132, 255, 0.16);
  --ap-green: #30d158;
  --ap-green-soft: rgba(48, 209, 88, 0.15);
  --ap-orange: #ff9f0a;
  --ap-orange-soft: rgba(255, 159, 10, 0.15);
  --ap-red: #ff453a;
  --ap-red-soft: rgba(255, 69, 58, 0.16);

  --ap-field: rgba(118, 118, 128, 0.18);
  --ap-window-shadow: 0 36px 100px rgba(0, 0, 0, 0.68), 0 0 0 0.5px rgba(255, 255, 255, 0.12);
  --ap-sheet-shadow: 0 1px 2px rgba(0, 0, 0, 0.24), 0 0 0 0.5px rgba(255, 255, 255, 0.06);
  --ap-thumb-shadow: 0 1px 4px rgba(0, 0, 0, 0.32), 0 0.5px 1px rgba(0, 0, 0, 0.2);

  font-family: var(--ap-font) !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

/* Apple Light Mode (Zhitu Day — Pure #f5f5f7 & #ffffff Inset Grouped) */
body.x-cg-skin:not(.xcg-night) #scheduled-generation-modal.scheduled-workspace.ssv2-ready,
body.x-cg-skin:not(.xcg-night) #scheduled-generation-edit-modal.ssv2-edit-drawer {
  --ap-canvas: #f5f5f7;
  --ap-bar: rgba(255, 255, 255, 0.88);
  --ap-sheet: #ffffff;
  --ap-sheet-elev: #ffffff;
  --ap-track: rgba(118, 118, 128, 0.11);
  --ap-thumb: #ffffff;
  --ap-hover: rgba(0, 0, 0, 0.038);
  --ap-sep: rgba(60, 60, 67, 0.10);
  --ap-ring: rgba(0, 113, 227, 0.36);

  --ap-ink-1: #1d1d1f;
  --ap-ink-2: #6e6e73;
  --ap-ink-3: #86868b;

  --ap-blue: #0071e3;
  --ap-blue-hover: #0077ed;
  --ap-blue-soft: rgba(0, 113, 227, 0.10);
  --ap-green: #248a3d;
  --ap-green-soft: rgba(52, 199, 89, 0.13);
  --ap-orange: #c93400;
  --ap-orange-soft: rgba(255, 149, 0, 0.13);
  --ap-red: #d70015;
  --ap-red-soft: rgba(255, 59, 48, 0.11);

  --ap-field: rgba(118, 118, 128, 0.09);
  --ap-window-shadow: 0 32px 96px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  --ap-sheet-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  --ap-thumb-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.09), 0 0.5px 1px rgba(0, 0, 0, 0.06);
}

/* Global typography inheritance inside modal & drawer */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready *,
#scheduled-generation-edit-modal.ssv2-edit-drawer * {
  font-family: var(--ap-font);
}

/* ===== 2. macOS Window Shell ===== */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready {
  background: rgba(0, 0, 0, 0.54) !important;
  backdrop-filter: blur(22px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
  padding: 24px !important;
  align-items: center !important;
  justify-content: center !important;
}

body.x-cg-skin:not(.xcg-night) #scheduled-generation-modal.scheduled-workspace.ssv2-ready {
  background: rgba(0, 0, 0, 0.30) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-dialog {
  width: min(1080px, 95vw) !important;
  max-width: 1080px !important;
  height: min(88vh, 860px) !important;
  max-height: 92vh !important;
  margin: 0 !important;
  border-radius: 22px !important;
  background: var(--ap-canvas) !important;
  border: 0 !important;
  box-shadow: var(--ap-window-shadow) !important;
  color: var(--ap-ink-1) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: relative !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-panel {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--ap-canvas) !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

/* ===== 3. Translucent Apple Titlebar (56px) ===== */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-head {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 24px !important;
  min-height: 56px !important;
  background: var(--ap-bar) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border-bottom: 0.5px solid var(--ap-sep) !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-head-left {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-title,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-head .scheduled-title {
  font-family: var(--ap-display) !important;
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: -0.022em !important;
  color: var(--ap-ink-1) !important;
  white-space: nowrap !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-head .nano-modal-sub {
  display: none !important;
}

/* Iconic Apple Segmented Control */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-tabs {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 2.5px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  background: var(--ap-track) !important;
  border: 0 !important;
  width: auto !important;
  min-height: 0 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-tab {
  border: 0 !important;
  background: transparent !important;
  color: var(--ap-ink-2) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  padding: 5px 18px !important;
  border-radius: 7.5px !important;
  cursor: pointer !important;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  min-height: 27px !important;
  box-shadow: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-tab::before,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-tab::after {
  display: none !important;
  content: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-tab:hover {
  color: var(--ap-ink-1) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-tab.is-active {
  background: var(--ap-thumb) !important;
  color: var(--ap-ink-1) !important;
  font-weight: 600 !important;
  box-shadow: var(--ap-thumb-shadow) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-tab #scheduled-generation-active-count {
  font-size: 11px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums !important;
  min-width: 17px !important;
  height: 17px !important;
  padding: 0 5px !important;
  border-radius: 980px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--ap-blue-soft) !important;
  color: var(--ap-blue) !important;
  border: 0 !important;
}

/* Circular Apple Toolbar Buttons */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-head-right {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-head-right #scheduled-generation-close,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-head-right .nano-close,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-head-right #scheduled-generation-refresh {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 980px !important;
  border: 0 !important;
  background: var(--ap-track) !important;
  color: var(--ap-ink-2) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-head-right button:hover {
  background: var(--ap-hover) !important;
  color: var(--ap-ink-1) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-head-right svg {
  width: 14px !important;
  height: 14px !important;
}

/* ===== 4. Scrollable Canvas ===== */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 !important;
  background: var(--ap-canvas) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  grid-template-columns: none !important;
  margin: 0 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-pane {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-pane.hidden,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .hidden,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready[data-workspace-view="batches"] #scheduled-generation-footer {
  display: none !important;
}

/* ===== 5. Airy Apple Control Bar ===== */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-workbench {
  flex: 0 0 auto;
  background: var(--ap-bar);
  border-bottom: 0.5px solid var(--ap-sep);
  padding: 13px 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-wb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-wb-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ap-ink-3);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Apple Segmented Rail for Schedule & Interval */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-seg-track {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2.5px;
  border-radius: 9px;
  background: var(--ap-track);
  flex-wrap: wrap;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-seg-btn {
  height: 26px;
  padding: 0 11px;
  border: 0;
  border-radius: 6.5px;
  background: transparent;
  color: var(--ap-ink-2);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-seg-btn:hover {
  color: var(--ap-ink-1);
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-seg-btn.is-active {
  background: var(--ap-thumb);
  color: var(--ap-ink-1);
  font-weight: 600;
  box-shadow: var(--ap-thumb-shadow);
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-seg-btn[data-ssv2-start="immediate"].is-active {
  background: var(--ap-thumb);
  color: var(--ap-green);
  box-shadow: var(--ap-thumb-shadow);
}

/* Apple Blue Pill Trigger for AI Planning */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-agent-trigger {
  margin-left: auto;
  height: 29px;
  padding: 0 13px;
  border-radius: 980px;
  border: 0;
  background: var(--ap-blue-soft);
  color: var(--ap-blue);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-agent-trigger:hover,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-agent-trigger.is-open {
  background: var(--ap-blue);
  color: #ffffff;
}

/* Row 2: Defaults + Quiet Optional Batch Name */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-wb-row-secondary {
  padding-top: 9px;
  border-top: 0.5px solid var(--ap-sep);
  gap: 8px;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-def-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-def-select {
  height: 28px;
  padding: 0 22px 0 10px;
  border-radius: 8px;
  border: 0;
  background: var(--ap-field);
  color: var(--ap-ink-1);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  outline: none;
  max-width: 156px;
  transition: background 0.14s ease;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-def-select:hover,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-def-select:focus {
  background: var(--ap-track);
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-sync-link {
  height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 980px;
  background: transparent;
  color: var(--ap-blue);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-sync-link:hover {
  background: var(--ap-blue-soft);
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-batch-title-wrap {
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 1 1 200px !important;
  max-width: 340px !important;
  min-width: 160px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-batch-title-label {
  display: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-batch-title {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 28px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  background: var(--ap-field) !important;
  color: var(--ap-ink-1) !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
  outline: none !important;
  transition: all 0.15s ease !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-batch-title::placeholder {
  color: var(--ap-ink-3) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-batch-title:focus {
  border-color: var(--ap-ring) !important;
  background: var(--ap-sheet) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-draft-state {
  font-size: 11.5px !important;
  font-weight: 400 !important;
  color: var(--ap-ink-3) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-mobile-wb-summary {
  display: none;
}

/* ===== 6. Apple Intelligence Style Smart Agent Sheet ===== */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready details.sw-agent {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready details.sw-agent:not([open]),
#scheduled-generation-modal.scheduled-workspace.ssv2-ready details.sw-agent > summary,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-agent-prompt-title {
  display: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-agent-bar {
  margin: 16px 24px 0 !important;
  padding: 16px 18px !important;
  border-radius: 16px !important;
  background: var(--ap-sheet) !important;
  border: 0 !important;
  box-shadow: var(--ap-sheet-shadow) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  overflow: visible !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-agent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-agent-head-copy {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-agent-head-copy strong {
  font-family: var(--ap-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ap-ink-1);
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-agent-head-copy span {
  font-size: 12px;
  color: var(--ap-ink-3);
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-agent-close {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 980px;
  background: transparent;
  color: var(--ap-blue);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-agent-close:hover {
  background: var(--ap-blue-soft);
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-agent-reference {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-agent-composer {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  margin: 0 !important;
  border-radius: 13px !important;
  background: var(--ap-canvas) !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  grid-template-columns: none !important;
  overflow: visible !important;
  transition: border-color 0.16s ease !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-agent-composer:focus-within {
  border-color: var(--ap-ring) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-agent-input {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  max-height: 150px !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--ap-ink-1) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.55 !important;
  padding: 2px 0 !important;
  margin: 0 !important;
  resize: none !important;
  outline: none !important;
  box-shadow: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-agent-input::placeholder {
  color: var(--ap-ink-3) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-agent-reference-grid:empty {
  display: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-agent-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 9px;
  border-top: 0.5px solid var(--ap-sep);
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-agent-foot-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-agent-add-image.scheduled-agent-upload,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-agent-distribution-trigger {
  position: static !important;
  width: auto !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 11px !important;
  border-radius: 980px !important;
  border: 0 !important;
  background: var(--ap-track) !important;
  color: var(--ap-ink-2) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-agent-add-image.scheduled-agent-upload:hover,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-agent-distribution-trigger:hover {
  color: var(--ap-ink-1) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-agent-add-image svg,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-agent-distribution-trigger svg {
  width: 13px !important;
  height: 13px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-agent-reference-select {
  display: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-agent-distribution-picker {
  position: relative !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-agent-distribution-menu:not(.is-open) {
  display: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-agent-distribution-menu.is-open {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  position: absolute !important;
  left: 0 !important;
  top: calc(100% + 6px) !important;
  min-width: 170px !important;
  padding: 4px !important;
  border-radius: 12px !important;
  background: var(--ap-sheet-elev) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 0 0 0.5px var(--ap-sep) !important;
  z-index: 30 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-agent-distribution-option {
  border: 0 !important;
  background: transparent !important;
  color: var(--ap-ink-1) !important;
  font-size: 12.5px !important;
  padding: 7px 10px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  text-align: left !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-agent-distribution-option:hover {
  background: var(--ap-hover) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-agent-plan.scheduled-agent-send {
  position: static !important;
  width: auto !important;
  height: 32px !important;
  padding: 0 16px !important;
  border-radius: 980px !important;
  border: 0 !important;
  background: var(--ap-blue) !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-agent-plan.scheduled-agent-send:hover:not(:disabled) {
  background: var(--ap-blue-hover) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-agent-plan svg {
  width: 13px !important;
  height: 13px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-agent-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-agent-chip {
  height: 26px;
  padding: 0 11px;
  border-radius: 980px;
  border: 0;
  background: var(--ap-field);
  color: var(--ap-ink-2);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-agent-chip:hover {
  background: var(--ap-blue-soft);
  color: var(--ap-blue);
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-agent-status {
  margin: 0 !important;
  font-size: 12px !important;
  color: var(--ap-ink-2) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-agent-status:empty {
  display: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-agent-preview {
  margin: 0 !important;
  padding: 13px 15px !important;
  border-radius: 13px !important;
  background: var(--ap-canvas) !important;
  border: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-agent-preview.hidden {
  display: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-agent-preview-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-agent-apply {
  background: var(--ap-blue) !important;
  color: #ffffff !important;
  border-radius: 980px !important;
  padding: 0 16px !important;
  height: 32px !important;
  font-weight: 600 !important;
}

/* Status Banner */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-status {
  margin: 12px 24px 0 !important;
  padding: 8px 14px !important;
  border-radius: 11px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  background: var(--ap-sheet) !important;
  border: 0 !important;
  color: var(--ap-ink-2) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-status:empty {
  display: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-status[data-tone="success"] {
  background: var(--ap-green-soft) !important;
  color: var(--ap-green) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-status[data-tone="error"] {
  background: var(--ap-red-soft) !important;
  color: var(--ap-red) !important;
}

/* ===== 7. Quiet Section Header Above Inset Grouped List ===== */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-pane-toolbar {
  display: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sw-tools {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  padding: 16px 28px 8px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  position: static !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sw-check {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: var(--ap-ink-2) !important;
  cursor: pointer !important;
  margin: 0 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-selected,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-list-counter {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: var(--ap-ink-3) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sw-tool-actions {
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-wrap: wrap !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-mini-btn {
  height: 29px !important;
  min-height: 29px !important;
  padding: 0 11px !important;
  border-radius: 980px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ap-ink-2) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  transition: background 0.14s ease, color 0.14s ease !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-mini-btn:hover:not(:disabled) {
  background: var(--ap-hover) !important;
  color: var(--ap-ink-1) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-add {
  background: var(--ap-blue-soft) !important;
  color: var(--ap-blue) !important;
  font-weight: 600 !important;
  padding: 0 13px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-add:hover {
  background: var(--ap-blue) !important;
  color: #ffffff !important;
}

/* Keep #sw-params (统一参数: 批量提示词/参考图/模型参数) ALWAYS visible & styled cleanly */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor.sw-editor {
  margin: 6px 24px 12px !important;
  padding: 16px 18px !important;
  border-radius: 16px !important;
  background: var(--ap-sheet) !important;
  border: 0 !important;
  box-shadow: var(--ap-sheet-shadow) !important;
  color: var(--ap-ink-1) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor[hidden] {
  display: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor .sw-editor-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 8px !important;
  border-bottom: 0.5px solid var(--ap-sep) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor .sw-editor-head strong {
  font-family: var(--ap-display) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--ap-ink-1) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor .sw-bulk-sections {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor .sw-bulk-section:last-child {
  grid-column: 1 / -1 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor .sw-bulk-section {
  background: var(--ap-canvas) !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 12px 13px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 0 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor .sw-bulk-heading {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ap-ink-1) !important;
  cursor: pointer !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor .sw-bulk-heading input[type="checkbox"] {
  accent-color: var(--ap-blue) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor .sw-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  font-size: 11.5px !important;
  color: var(--ap-ink-3) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor .sw-bulk-scope {
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor .sw-fields {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor .sw-bulk-image-tools {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor #sw-images-pick {
  background: var(--ap-blue-soft) !important;
  color: var(--ap-blue) !important;
  font-weight: 600 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor textarea,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor select,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor input:not([type="checkbox"]):not([type="file"]) {
  width: 100% !important;
  background: var(--ap-field) !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  color: var(--ap-ink-1) !important;
  font-size: 12.5px !important;
  padding: 6px 10px !important;
  outline: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor .sw-bulk-scope select {
  width: auto !important;
  min-width: 180px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor textarea:focus,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor select:focus,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor input:focus {
  border-color: var(--ap-ring) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor .sw-editor-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  padding-top: 4px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor #sw-editor-apply {
  background: var(--ap-blue) !important;
  color: #ffffff !important;
  padding: 0 18px !important;
  height: 32px !important;
  font-weight: 600 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sux-stale-banner {
  margin: 6px 24px 10px !important;
  padding: 9px 14px !important;
  border-radius: 12px !important;
  background: var(--ap-red-soft) !important;
  border: 0 !important;
  color: var(--ap-ink-1) !important;
}

/* ===== 8. Iconic Apple Inset Grouped List Sheet ===== */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-row-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 24px 24px !important;
  padding: 0 !important;
  background: var(--ap-sheet) !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: var(--ap-sheet-shadow) !important;
  overflow: hidden !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row {
  position: relative !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 13px 18px !important;
  margin: 0 !important;
  transition: background 0.14s ease !important;
  box-shadow: none !important;
}

/* Subtle Apple Inset Separator (indented from left like iOS/macOS lists!) */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 0.5px;
  background: var(--ap-sep);
  pointer-events: none;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row:hover,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row.has-open-params {
  background: var(--ap-hover) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row.ssv2-row-stale {
  background: var(--ap-red-soft) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row-main {
  display: grid !important;
  grid-template-columns: 78px 60px minmax(240px, 1fr) auto auto !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Col 1: Tabular Number + Clean Apple Timing */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sw-row-number {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 44px !important;
  cursor: pointer !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sw-row-number .ssv2-row-id-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sw-row-number input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  accent-color: var(--ap-blue) !important;
  cursor: pointer !important;
  opacity: 0.65;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row:hover .sw-row-number input[type="checkbox"],
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sw-row-number input[type="checkbox"]:checked {
  opacity: 1;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sw-row-number .ssv2-row-seq,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sw-row-number > span {
  font-size: 11.5px !important;
  font-weight: 500 !important;
  font-variant-numeric: tabular-nums !important;
  color: var(--ap-ink-3) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--ap-ink-2);
  white-space: nowrap;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-time-pill.is-instant {
  color: var(--ap-green);
  font-weight: 500;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-time-pill.is-stale {
  padding: 1px 7px;
  border-radius: 980px;
  background: var(--ap-red-soft);
  color: var(--ap-red);
}

/* Col 2: Clean Soft Squircle Reference Slot */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-reference-wrap {
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  margin: 0 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-drop {
  width: 60px !important;
  height: 46px !important;
  min-height: 46px !important;
  border-radius: 11px !important;
  border: 1px solid transparent !important;
  background: var(--ap-field) !important;
  padding: 3px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  overflow: hidden !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-drop:hover {
  background: var(--ap-blue-soft) !important;
  border-color: var(--ap-ring) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-drop-empty {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  color: var(--ap-ink-3) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-drop-empty svg {
  width: 15px !important;
  height: 15px !important;
  opacity: 0.7;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-thumb-grid {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  width: 100% !important;
  height: 100% !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-thumb {
  position: relative !important;
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  border-radius: 7px !important;
  overflow: hidden !important;
  border: 0 !important;
}

/* Col 3: Apple Editorial Prompt Typography (14.5px Regular, Ultra Crisp) */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-prompt-wrap {
  min-width: 0 !important;
  margin: 0 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-textarea {
  width: 100% !important;
  min-height: 46px !important;
  height: 46px !important;
  max-height: 160px !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--ap-ink-1) !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  letter-spacing: -0.012em !important;
  line-height: 1.52 !important;
  resize: none !important;
  outline: none !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
  box-shadow: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-textarea:hover {
  background: var(--ap-field) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-textarea:focus {
  background: var(--ap-canvas) !important;
  border-color: var(--ap-ring) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-textarea::placeholder {
  color: var(--ap-ink-3) !important;
}

/* Col 4: Whisper Param Pill */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-param-toggle {
  height: 29px !important;
  min-height: 29px !important;
  padding: 0 10px !important;
  border-radius: 980px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ap-ink-3) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  max-width: 210px !important;
  box-shadow: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-param-toggle:hover,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-param-toggle.is-open {
  background: var(--ap-track) !important;
  color: var(--ap-ink-1) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-param-toggle.ssv2-is-custom {
  background: var(--ap-blue-soft) !important;
  color: var(--ap-blue) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-param-primary {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  color: inherit !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 175px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-param-time {
  display: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-param-chevron {
  font-size: 11px !important;
  opacity: 0.65 !important;
  border: 0 !important;
  background: transparent !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  transition: transform 0.15s ease !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-param-toggle.is-open .scheduled-param-chevron {
  transform: rotate(180deg) !important;
}

/* Col 5: Subtle Monochrome Hover Actions */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row .scheduled-row-actions {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 2px !important;
  flex-shrink: 0 !important;
  width: auto !important;
  opacity: 0.42;
  transition: opacity 0.15s ease;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row:hover .scheduled-row-actions,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row:focus-within .scheduled-row-actions,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row.has-open-params .scheduled-row-actions {
  opacity: 1;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row .scheduled-row-actions .scheduled-mini-btn,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row .scheduled-row-actions .scheduled-icon-btn {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  border-radius: 980px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ap-ink-2) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row .scheduled-row-actions .scheduled-mini-btn:hover:not(:disabled) {
  background: var(--ap-track) !important;
  color: var(--ap-ink-1) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row .scheduled-row-actions [data-scheduled-remove]:hover:not(:disabled) {
  background: var(--ap-red-soft) !important;
  color: var(--ap-red) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row .scheduled-row-actions .ssv2-btn-lbl {
  display: none;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row .scheduled-row-actions svg {
  width: 14px !important;
  height: 14px !important;
}

/* Inline Expanded Parameter Panel */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-param-panel {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 12px 0 2px 0 !important;
  padding: 13px 14px !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
  background: var(--ap-canvas) !important;
  border: 0 !important;
  box-shadow: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-param-panel:not(.is-open) {
  display: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-param-panel .scheduled-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(100px, 1fr)) minmax(185px, 1.4fr) !important;
  gap: 10px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-field-label {
  display: block !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: var(--ap-ink-3) !important;
  margin-bottom: 5px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-select,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-input {
  width: 100% !important;
  height: 32px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  border: 0 !important;
  background: var(--ap-sheet) !important;
  color: var(--ap-ink-1) !important;
  font-size: 12.5px !important;
  outline: none !important;
  box-shadow: var(--ap-sheet-shadow) !important;
}

/* ===== 9. Translucent Apple Footer with Iconic Blue Pill CTA ===== */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 13px 24px !important;
  background: var(--ap-bar) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border-top: 0.5px solid var(--ap-sep) !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-summary {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sw-summary {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  font-size: 13px !important;
  letter-spacing: -0.01em !important;
  color: var(--ap-ink-2) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sw-summary strong,
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sw-summary b {
  color: var(--ap-ink-1) !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sw-time-range {
  font-size: 11.5px !important;
  color: var(--ap-ink-3) !important;
  letter-spacing: -0.005em !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-balance-pill {
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ap-green);
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-balance-pill.is-short {
  padding: 2px 9px;
  border-radius: 980px;
  background: var(--ap-red-soft);
  color: var(--ap-red);
  font-weight: 600;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-clear {
  height: 36px !important;
  padding: 0 12px !important;
  border-radius: 980px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ap-ink-3) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-clear:hover {
  color: var(--ap-ink-1) !important;
  background: var(--ap-hover) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-save {
  height: 36px !important;
  padding: 0 16px !important;
  border-radius: 980px !important;
  border: 0 !important;
  background: var(--ap-track) !important;
  color: var(--ap-ink-1) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-save:hover {
  background: var(--ap-hover) !important;
}

/* Iconic Apple Blue Full-Pill Primary CTA */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-submit {
  height: 38px !important;
  padding: 0 22px !important;
  border-radius: 980px !important;
  border: 0 !important;
  background: var(--ap-blue) !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  cursor: pointer !important;
  transition: background 0.15s ease, transform 0.12s ease !important;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.28) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-submit:hover:not(:disabled) {
  background: var(--ap-blue-hover) !important;
  transform: translateY(-0.5px) !important;
}

/* ===== 10. Batch Records Tab (Apple Cards & Segmented Filter) ===== */
#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-batches-pane {
  padding: 18px 24px 26px !important;
  gap: 14px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-batches-headbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-batch-filters {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2.5px;
  border-radius: 9px;
  background: var(--ap-track);
  flex-wrap: wrap;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-filter-pill {
  height: 26px;
  padding: 0 11px;
  border-radius: 6.5px;
  border: 0;
  background: transparent;
  color: var(--ap-ink-2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-filter-pill.is-active {
  background: var(--ap-thumb);
  color: var(--ap-ink-1);
  font-weight: 600;
  box-shadow: var(--ap-thumb-shadow);
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-filter-pill em {
  font-style: normal;
  font-size: 11px;
  color: var(--ap-ink-3);
  font-variant-numeric: tabular-nums;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sux-queue {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  padding: 4px 2px !important;
  border: 0 !important;
  background: transparent !important;
  margin: 0 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sux-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 12px !important;
  color: var(--ap-ink-3) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sux-chip b {
  color: var(--ap-ink-1) !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-batch-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-batch {
  background: var(--ap-sheet) !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: var(--ap-sheet-shadow) !important;
  padding: 16px 20px !important;
  margin: 0 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-batch.ssv2-filter-hidden {
  display: none !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-batch-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-batch-title {
  font-family: var(--ap-display) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  color: var(--ap-ink-1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 980px;
  background: var(--ap-track);
  color: var(--ap-ink-2);
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-status-badge[data-tone="running"] {
  background: var(--ap-blue-soft);
  color: var(--ap-blue);
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-status-badge[data-tone="pending"] {
  background: var(--ap-orange-soft);
  color: var(--ap-orange);
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-status-badge[data-tone="success"] {
  background: var(--ap-green-soft);
  color: var(--ap-green);
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-status-badge[data-tone="danger"] {
  background: var(--ap-red-soft);
  color: var(--ap-red);
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-batch-meta {
  font-size: 12px !important;
  color: var(--ap-ink-3) !important;
  margin-top: 4px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-batch .scheduled-row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-batch [data-scheduled-batch-edit],
#scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-batch .scheduled-batch-download {
  background: var(--ap-blue-soft) !important;
  color: var(--ap-blue) !important;
  font-weight: 600 !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sux-batch-insight {
  margin-top: 10px !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sux-bar {
  height: 4px !important;
  border-radius: 980px !important;
  background: var(--ap-track) !important;
  overflow: hidden !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sux-bar i.is-success {
  background: var(--ap-green) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .sux-bar i.is-failed {
  background: var(--ap-red) !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-batch-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 0.5px solid var(--ap-sep);
  overflow-x: auto;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-batch-thumb-btn {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 10px;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--ap-canvas);
  cursor: pointer;
  transition: transform 0.15s ease;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-batch-thumb-btn:hover {
  transform: scale(1.04);
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-batch-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready details.sw-more > summary {
  list-style: none !important;
  height: 29px !important;
  padding: 0 10px !important;
  border-radius: 980px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ap-ink-3) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer !important;
}

#scheduled-generation-modal.scheduled-workspace.ssv2-ready details.sw-more > summary::-webkit-details-marker {
  display: none !important;
}

/* ===== 11. Slide-over Apple Sheet Drawer ===== */
#scheduled-generation-edit-modal.ssv2-edit-drawer:not(.is-open):not(.open) {
  display: none !important;
}

#scheduled-generation-edit-modal.ssv2-edit-drawer.is-open,
#scheduled-generation-edit-modal.ssv2-edit-drawer.open {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: min(600px, 100%) !important;
  height: 100% !important;
  z-index: 40 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--ap-canvas) !important;
  border-left: 0.5px solid var(--ap-sep) !important;
  box-shadow: -28px 0 80px rgba(0, 0, 0, 0.42) !important;
  color: var(--ap-ink-1) !important;
  overflow: hidden !important;
  animation: apSlideIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes apSlideIn {
  from { transform: translateX(30px); opacity: 0.78; }
  to { transform: translateX(0); opacity: 1; }
}

#scheduled-generation-edit-modal.ssv2-edit-drawer .scheduled-edit-head {
  flex: 0 0 auto !important;
  padding: 15px 22px !important;
  background: var(--ap-bar) !important;
  border-bottom: 0.5px solid var(--ap-sep) !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

#scheduled-generation-edit-modal.ssv2-edit-drawer .scheduled-edit-title {
  font-family: var(--ap-display) !important;
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: var(--ap-ink-1) !important;
}

#scheduled-generation-edit-modal.ssv2-edit-drawer .scheduled-edit-note {
  margin: 3px 0 0 0 !important;
  font-size: 12px !important;
  color: var(--ap-ink-3) !important;
}

#scheduled-generation-edit-modal.ssv2-edit-drawer .scheduled-edit-close {
  width: 30px !important;
  height: 30px !important;
  border-radius: 980px !important;
  border: 0 !important;
  background: var(--ap-track) !important;
  color: var(--ap-ink-2) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

#scheduled-generation-edit-modal.ssv2-edit-drawer .scheduled-edit-close svg {
  width: 14px !important;
  height: 14px !important;
}

#scheduled-generation-edit-modal.ssv2-edit-drawer .scheduled-edit-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 16px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

#scheduled-generation-edit-modal.ssv2-edit-drawer .scheduled-edit-row {
  background: var(--ap-sheet) !important;
  border: 0 !important;
  box-shadow: var(--ap-sheet-shadow) !important;
  border-radius: 14px !important;
  padding: 13px 15px !important;
  display: grid !important;
  grid-template-columns: 26px minmax(130px, 1.4fr) minmax(88px, 0.8fr) minmax(92px, 0.9fr) !important;
  gap: 8px !important;
  align-items: start !important;
}

#scheduled-generation-edit-modal.ssv2-edit-drawer .scheduled-edit-row.is-locked {
  opacity: 0.6 !important;
}

#scheduled-generation-edit-modal.ssv2-edit-drawer .scheduled-edit-field-prompt,
#scheduled-generation-edit-modal.ssv2-edit-drawer .scheduled-edit-field-time,
#scheduled-generation-edit-modal.ssv2-edit-drawer .scheduled-edit-row > .scheduled-edit-meta {
  grid-column: 2 / -1 !important;
}

#scheduled-generation-edit-modal.ssv2-edit-drawer .scheduled-edit-row > .scheduled-edit-field:nth-of-type(2) {
  grid-column: 2 !important;
}

#scheduled-generation-edit-modal.ssv2-edit-drawer .scheduled-edit-row textarea,
#scheduled-generation-edit-modal.ssv2-edit-drawer .scheduled-edit-row select,
#scheduled-generation-edit-modal.ssv2-edit-drawer .scheduled-edit-row input {
  width: 100% !important;
  background: var(--ap-field) !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: var(--ap-ink-1) !important;
  font-size: 13px !important;
}

#scheduled-generation-edit-modal.ssv2-edit-drawer .scheduled-edit-footer {
  flex: 0 0 auto !important;
  padding: 13px 22px !important;
  background: var(--ap-bar) !important;
  border-top: 0.5px solid var(--ap-sep) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

#scheduled-generation-edit-modal.ssv2-edit-drawer .scheduled-edit-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#scheduled-generation-edit-modal.ssv2-edit-drawer #scheduled-generation-edit-cancel {
  height: 34px !important;
  padding: 0 14px !important;
  border-radius: 980px !important;
  border: 0 !important;
  background: var(--ap-track) !important;
  color: var(--ap-ink-1) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

#scheduled-generation-edit-modal.ssv2-edit-drawer #scheduled-generation-edit-save {
  background: var(--ap-blue) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 980px !important;
  height: 36px !important;
  padding: 0 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

/* ===== 12. iOS 18 Mobile Layout (<= 767px, 16px Inputs) ===== */
@media (max-width: 767px) {
  #scheduled-generation-modal.scheduled-workspace.ssv2-ready {
    padding: 0 !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-dialog {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-head {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 12px 16px !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-head-left { order: 1; }
  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-head-right { order: 2; }
  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-tabs {
    order: 3;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-tab { justify-content: center !important; }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-batch-title,
  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-textarea,
  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-select,
  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-input,
  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-def-select,
  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-agent-input,
  #scheduled-generation-modal.scheduled-workspace.ssv2-ready input:not([type="checkbox"]):not([type="file"]),
  #scheduled-generation-modal.scheduled-workspace.ssv2-ready textarea,
  #scheduled-generation-modal.scheduled-workspace.ssv2-ready select,
  #scheduled-generation-edit-modal.ssv2-edit-drawer input,
  #scheduled-generation-edit-modal.ssv2-edit-drawer textarea,
  #scheduled-generation-edit-modal.ssv2-edit-drawer select {
    font-size: 16px !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-workbench {
    padding: 11px 16px;
    gap: 9px;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-wb-row {
    gap: 6px;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-seg-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-seg-track::-webkit-scrollbar {
    display: none;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-agent-trigger {
    margin-left: 0;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-mobile-wb-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-mobile-wb-text {
    font-size: 12.5px;
    color: var(--ap-ink-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-mobile-wb-toggle {
    flex-shrink: 0;
    height: 27px;
    padding: 0 11px;
    border-radius: 980px;
    border: 0;
    background: var(--ap-blue-soft);
    color: var(--ap-blue);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-workbench:not(.is-mobile-open) .ssv2-wb-row-secondary {
    display: none;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-def-group {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-def-select {
    max-width: none;
    height: 36px;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-sync-link {
    grid-column: 1 / -1;
    background: var(--ap-blue-soft);
    height: 34px;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-batch-title-wrap {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-batch-title {
    height: 36px !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-agent-bar {
    margin: 12px 16px 0 !important;
    padding: 14px !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .ssv2-agent-head-copy span {
    display: none;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .sw-tools {
    padding: 12px 18px 6px !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor.sw-editor {
    margin: 6px 16px 12px !important;
    padding: 14px !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready #sw-editor .sw-bulk-sections {
    grid-template-columns: 1fr !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-row-list {
    margin: 0 16px 16px !important;
    border-radius: 16px !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row {
    padding: 14px !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row-main {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 9px !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .sw-row-number {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 0 !important;
    width: 100% !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-reference-wrap {
    width: 100% !important;
    max-width: none !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-drop {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-drop-empty {
    flex-direction: row !important;
    gap: 6px !important;
    font-size: 12.5px !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-textarea {
    min-height: 64px !important;
    height: auto !important;
    background: var(--ap-field) !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-param-toggle {
    width: 100% !important;
    max-width: none !important;
    justify-content: space-between !important;
    background: var(--ap-field) !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row .scheduled-row-actions {
    opacity: 1 !important;
    width: 100% !important;
    gap: 6px !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row .scheduled-row-actions .scheduled-mini-btn,
  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row .scheduled-row-actions .scheduled-icon-btn {
    flex: 1 1 0 !important;
    width: auto !important;
    height: 34px !important;
    background: var(--ap-field) !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-row .scheduled-row-actions .ssv2-btn-lbl {
    display: inline !important;
    font-size: 12px;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-param-panel .scheduled-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-param-panel .scheduled-field-datetime {
    grid-column: 1 / -1 !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-batches-pane {
    padding: 14px 16px 20px !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 8px !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready .scheduled-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: auto auto 1fr !important;
    gap: 6px !important;
  }

  #scheduled-generation-modal.scheduled-workspace.ssv2-ready #scheduled-generation-submit {
    width: 100% !important;
    padding: 0 12px !important;
  }

  #scheduled-generation-edit-modal.ssv2-edit-drawer.is-open,
  #scheduled-generation-edit-modal.ssv2-edit-drawer.open {
    width: 100vw !important;
    border-left: 0 !important;
  }
}
