/* Listing Studio shares Chilldex's connected registers, surfaces and controls.
   Global workspace/compact-ui styles own typography and general form controls. */
.shopify-studio {
  --sl-line: var(--subtab-line, #e0e5ed);
  --sl-surface: var(--subtab-surface, #fff);
  --sl-strip: var(--subtab-strip, #f6f8fb);
  --sl-ink: var(--subtab-ink, #334155);
  --sl-blue: #285f99;
  color: var(--sl-ink); padding: 2px 0 12px; min-width: 0;
}
.shopify-studio *, .shopify-studio *::before, .shopify-studio *::after { box-sizing: border-box; }
.shopify-studio [hidden] { display: none !important; }
.shopify-studio :is(button,input,textarea,select) { max-width: 100%; font: inherit; }
.shopify-studio button { cursor: pointer; border: 1px solid #d2dce8; background: #f8fafc; border-radius: 6px; color: var(--sl-ink); padding: 7px 11px; font-size: 13px; }
.shopify-studio button:disabled { cursor: default; opacity: .5; }
body #app .shopify-studio button.primary { background: var(--sl-blue); border-color: var(--sl-blue); color: #fff; }
body #app .shopify-studio button.primary:hover:not(:disabled) { background: #214e7e; color: #fff; }
.shopify-studio :is(button,input,select,textarea,summary):focus-visible { outline: 2px solid #397ac4; outline-offset: 2px; }
.sl-note { font-size: 12px; color: #64748b; line-height: 1.5; }
.sl-toolbar, .sl-search, .sl-actions, .sl-editor-heading, .sl-color-picker, .sl-content-tools, .sl-section-heading { display: flex; align-items: center; gap: 10px; }
.sl-toolbar { justify-content: space-between; padding: 12px 0; gap: 20px; }
.sl-search { width: min(440px, 100%); gap: 5px; }
.sl-search input { flex: 1; min-width: 0; }
.sl-search button { flex-shrink: 0; }
.sl-quota { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #64748b; white-space: nowrap; }
.sl-quota [data-quota] { display: flex; gap: 6px; align-items: center; }
.sl-quota progress { width: 32px; height: 4px; accent-color: var(--sl-blue); }
body #app .sl-quota button { border: 0; background: none; min-height: 24px; padding: 2px 5px; }
.sl-status { font-size: 12px; color: #526579; }
.sl-status:not(:empty) { padding: 7px 0; }
.sl-status[data-error=true] { color: #a12727; }
.sl-loading { height: 3px; background: #e7edf5; overflow: hidden; }
.sl-loading::after { content: ''; display: block; width: 35%; height: 100%; background: #397ac4; animation: sl-load 1s infinite ease-in-out; }
@keyframes sl-load { from { transform: translateX(-100%); } to { transform: translateX(390%); } }

/* Product selection: one identity, one progress line, one publication state. */
.sl-product-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 14px; padding: 8px 0; }
body #app .shopify-studio .sl-product-card { display: flex; flex-direction: column; gap: 12px; padding: 0; overflow: hidden; border: 1px solid var(--sl-line); border-radius: 9px; text-align: left; background: #fff; color: var(--sl-ink); font-weight: 400; }
body #app .shopify-studio .sl-product-card:hover { background: #fff; border-color: #91accd; }
.sl-product-card > img, .sl-product-placeholder { display: block; width: 100%; height: 200px; object-fit: contain; background: #f5f7fa; }
.sl-product-placeholder { display: grid; place-items: center; color: #b1becd; font-size: 42px; }
.sl-product-card > :is(strong,.sl-progress,.sl-badges,.sl-live) { margin: 0 13px; }
.sl-product-card > strong { font-size: 17px; letter-spacing: .02em; }
.sl-badges { display: flex; flex-wrap: wrap; gap: 5px; font-size: 11px; }
.sl-badges > span { background: #f1f5f9; border-radius: 4px; padding: 3px 6px; color: #64748b; }
.sl-badges [data-work-state=done] { background: #edf7f0; color: #267048; }
.sl-badges [data-work-state=prepared] { background: #fff7e7; color: #946414; }
.sl-card-action { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 13px; background: var(--sl-strip); border-top: 1px solid var(--sl-line); font-size: 12px; font-weight: 600; color: #285f99; }
.sl-live { display: inline-flex; align-items: center; gap: 6px; color: #64748b; font-size: 11px; }
.sl-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; flex-shrink: 0; }
.sl-live[data-live=all-live]::before { background: #389561; }
.sl-live[data-live=part-live]::before { background: #c28a27; }
.sl-progress { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sl-progress > span:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 11px; color: #64748b; }
.sl-progress b { font-size: 16px; font-weight: 650; color: #285f99; font-variant-numeric: tabular-nums; }
.sl-progress-track { display: block; height: 5px; width: 100%; background: #e6edf5; border-radius: 3px; overflow: hidden; }
.sl-progress-track > span { display: block; height: 100%; background: #5e87b8; border-radius: inherit; }
.sl-progress small { font-size: 10px; color: #758394; }

/* The editor: compact identity, connected register strip, one active workspace. */
.sl-editor-heading { padding: 13px 0; flex-wrap: wrap; border-top: 1px solid var(--sl-line); }
.sl-editor-heading h3 { margin: 0; flex: 1; font-size: 18px; }
.sl-color-picker { font-size: 11px; color: #64748b; margin-left: auto; }
.sl-color-picker select { min-width: 112px; }
.sl-editor-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 15px; }
.sl-editor-summary > .sl-progress { width: 260px; }
.sl-editor-summary .sl-progress small { display: none; }
.sl-editor-summary .sl-progress b { font-size: 14px; }
.sl-editor-frame { border: 1px solid var(--sl-line); border-radius: 8px; background: var(--sl-surface); overflow: clip; }
.sl-tabs.sales-tabs { display: flex; align-items: end; flex-wrap: wrap; gap: 5px; margin: 0; padding: 9px 10px 0; background: var(--sl-strip); border-bottom: 1px solid var(--sl-line); }
.sl-tabs > button { position: relative; border: 1px solid var(--subtab-idle-line,#b8c8dc); border-radius: 6px 6px 0 0; background: var(--subtab-idle,#dce5f0); margin: 0 0 -1px; padding: 9px 16px; font-weight: 600; }
.sl-tabs > button[aria-selected=true] { background: var(--sl-surface); border-color: var(--sl-line); border-bottom-color: var(--sl-surface); color: #1e3a5f; }
.sl-editor-body { padding: 20px; min-width: 0; }
.sl-editor-body > :first-child { margin-top: 0; }
.sl-overview-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-bottom: 18px; }
.sl-overview-heading h3 { margin: 0 0 5px; }
.sl-overview-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.sl-workflow { border: 1px solid var(--sl-line); border-radius: 7px; overflow: hidden; }
.sl-workflow h4 { padding: 11px 14px; margin: 0; background: var(--sl-strip); border-bottom: 1px solid var(--sl-line); font-size: 12px; font-weight: 650; }
.sl-task-list { display: flex; flex-direction: column; }
body #app .shopify-studio .sl-task { display: flex; align-items: center; text-align: left; gap: 11px; padding: 13px 14px; border: 0; border-radius: 0; border-bottom: 1px solid #edf0f5; background: #fff; font-weight: 400; width: 100%; }
body #app .shopify-studio .sl-task:last-child { border-bottom: 0; }
body #app .shopify-studio .sl-task:hover { background: #f5f8fc; }
.sl-task > span:nth-child(2) { min-width: 0; flex: 1; }
.sl-task b { display: block; font-size: 12px; font-weight: 600; }
.sl-task small { display: block; font-size: 10px; color: #758394; margin-top: 4px; }
.sl-task-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #f1f5f9; color: #8794a4; font-size: 17px; }
.sl-task[data-work-state=done] .sl-task-icon { background: #edf7f0; color: #267048; }
.sl-task[data-work-state=prepared] .sl-task-icon { background: #fff7e7; color: #946414; }
.sl-task-open { color: #6a87aa; }

/* Content tools and a live draft preview, without a second navigation layer. */
.sl-content-tools { justify-content: space-between; flex-wrap: wrap; margin: 12px 0 18px; }
.sl-content-form > details { grid-column: 1/-1; }
.sl-content-block { border: 1px solid var(--sl-line); border-radius: 7px; padding: 16px; margin: 12px 0; }
.sl-section-heading { justify-content: space-between; margin-bottom: 10px; }
.sl-form .sl-section-heading label { margin: 0; font-size: 13px; font-weight: 600; }
.sl-section-heading > span { color: #64748b; background: #f1f5f9; border-radius: 4px; padding: 3px 7px; font-size: 10px; }
.sl-form label { display: block; font-size: 12px; font-weight: 550; margin-bottom: 12px; }
.sl-form :is(input,textarea) { display: block; width: 100%; margin-top: 5px; padding: 9px 10px; border: 1px solid #d2dce8; border-radius: 6px; background: #fff; color: inherit; font-weight: 400; }
.sl-form textarea { min-height: 160px; resize: vertical; line-height: 1.7; }
.sl-actions { flex-wrap: wrap; margin-top: 12px; }
.sl-tools { margin: 15px 0 0; font-size: 12px; }
.sl-tools summary { cursor: pointer; color: #64748b; padding: 7px 0; font-size: 11px; }
.sl-tools pre, .sl-suggestion pre, .sl-source pre, .sl-job pre { white-space: pre-wrap; font-family: inherit; font-size: 12px; line-height: 1.6; max-height: 280px; overflow: auto; }
.sl-suggestion { margin-top: 13px; padding: 10px; background: #f2f6fb; border: 1px solid #e0e8f2; border-radius: 6px; font-size: 12px; }
.sl-suggestion summary { cursor: pointer; font-weight: 600; }
.sl-table-wrap { overflow: auto; }
.sl-table-wrap table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sl-table-wrap :is(td,th) { padding: 9px; text-align: left; border-bottom: 1px solid var(--sl-line); }

/* Images and source files retain their existing approval and identity boundaries. */
.sl-reference-tools { border: 1px solid var(--sl-line); border-radius: 7px; padding: 5px 13px; margin: 0 0 18px; background: var(--sl-strip); }
.sl-reference-tools > summary { font-weight: 600; color: var(--sl-ink); }
.sl-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 12px; }
.sl-image, .sl-source, .sl-job { border: 1px solid var(--sl-line); border-radius: 7px; padding: 12px; overflow-wrap: anywhere; }
.sl-source, .sl-job { margin: 12px 0; }
.sl-image img { width: 100%; height: 170px; object-fit: contain; background: #f5f7fa; }
.sl-image label { display: block; font-size: 11px; }
.sl-image select { display: block; width: 100%; margin-top: 5px; }
.sl-recipe-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 14px; margin: 14px 0; }
.sl-recipe { border: 1px solid var(--sl-line); border-radius: 7px; padding: 15px; min-width: 0; }
.sl-recipe h4 { font-size: 13px; margin: 0 0 8px; }
.sl-recipe > p { font-size: 11px; color: #64748b; }
.sl-recipe label { display: block; font-size: 11px; margin-bottom: 12px; }
.sl-recipe .sl-actions button { flex: 1 1 45%; font-size: 11px; }
.sl-result-preview { display: block; width: 100%; max-height: 300px; object-fit: contain; background: #f5f7fa; margin-top: 12px; }
.sl-approved-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.sl-approved-strip > div { display: flex; align-items: center; gap: 4px; }
.sl-approved-strip img { width: 60px; height: 80px; object-fit: contain; background: #f5f7fa; }
.sl-approved-strip button { padding: 3px 6px; }
[data-image-feedback] { display: block; width: 100%; min-height: 70px; border: 1px solid #d2dce8; border-radius: 6px; padding: 9px; margin-top: 5px; }

@media(max-width:900px) {
  .sl-content-form { grid-template-columns: 1fr; }
}
@media(max-width:600px) {
  .sl-toolbar { gap: 8px; }
  .sl-quota progress { display: none; }
  .sl-quota { gap: 3px; }
  .sl-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .sl-product-card > img, .sl-product-placeholder { height: 145px; }
  .sl-product-card > :is(strong,.sl-progress,.sl-badges,.sl-live) { margin-left: 9px; margin-right: 9px; }
  .sl-badges { flex-direction: column; align-items: start; }
  .sl-card-action { padding: 9px; font-size: 10px; }
  .sl-editor-heading { gap: 8px; }
  .sl-color-picker { width: 100%; justify-content: space-between; }
  .sl-editor-summary { gap: 12px; align-items: end; }
  .sl-editor-summary > .sl-progress { width: 150px; }
  .sl-editor-summary > .sl-live { max-width: 130px; font-size: 10px; }
  .sl-tabs.sales-tabs { gap: 3px; padding: 7px 6px 0; }
  body #app .shopify-studio .sl-tabs > button { flex: 1 1 28%; padding: 8px 6px; font-size: 11px; min-height: 32px; }
  .sl-editor-body { padding: 12px; }
  .sl-overview-columns { grid-template-columns: 1fr; gap: 12px; }
  .sl-overview-heading { align-items: stretch; }
  .sl-overview-heading > button { width: 100%; }
  .sl-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .sl-recipe-grid { grid-template-columns: 1fr; }
  .sl-content-tools > .sl-note { font-size: 10px; }
}
@media(prefers-reduced-motion:reduce) { .sl-loading::after { animation-duration: 2.5s; } }
/* Parent product page: one compact action row; color controls belong to images. */
.sl-editor-heading { gap: 9px; padding: 8px 0; border-top: 0; margin: 0; }
.sl-editor-heading h3 { flex: 0 0 auto; font-size: 15px; }
.sl-editor-heading > [data-workflow] { flex: 0 1 190px; }
.sl-editor-heading .sl-editor-summary { padding: 0; display: block; }
.sl-editor-heading .sl-editor-summary > .sl-progress { width: 130px; }
.sl-editor-heading .sl-editor-summary > .sl-live { margin-top: 4px; font-size: 9px; }
.sl-editor-heading .sl-search { flex: 0 1 185px; width: 185px; margin-left: auto; }
.sl-editor-heading .sl-quota { flex-shrink: 0; }
.sl-editor-heading > [data-image-manager] { margin-left: 2px; }
.sl-editor-heading .sl-color-picker { margin: 0; gap: 4px; }
.sl-editor-heading .sl-color-picker > span { display: none; }
.sl-editor-heading .sl-color-picker select { min-width: 90px; max-width: 145px; }
.sl-image-context:empty { display: none; }
.sl-editor-frame { margin-top: 3px; }
.sl-editor-body { padding: 14px; }
.sl-parent-content-state { padding: 7px 10px; border: 1px solid #e5d4b3; border-radius: 5px; background: #fffaf0; color: #8b692c; font-size: 11px; margin-bottom: 12px; }
.sl-parent-content-state[data-text-state=approved] { border-color: #9ecdb0; background: #eaf7ef; color: #267048; }
.sl-parent-content-state[data-text-state=approved]::before { content: '✓ '; font-weight: 700; }
.sl-content-form { gap: 12px 16px; }
.sl-content-block { padding: 12px; }
.sl-content-block[data-field-state=approved] { border-color: #9ecdb0; background: #f0faf3; }
.sl-content-block[data-field-state=approved] .sl-section-heading > span { background: #dff1e5; color: #267048; }
.sl-content-block[data-field-state=approved] .sl-section-heading > span::before { content: '✓ '; }
.sl-content-block[data-field-state=pending],.sl-content-block[data-field-state=reviewStale] { border-color: #e5d4b3; background: #fffdf8; }
body #app .shopify-studio .sl-content-form :is(input,textarea) { font-size: 12px; min-height: 30px; padding: 6px 9px; line-height: 1.55; }
.sl-content-form textarea { min-height: 72px; height: auto; max-height: 310px; }
.sl-content-form .sl-actions { margin-top: 8px; gap: 6px; }
.sl-prices { border-top: 1px solid var(--sl-line); margin-top: 16px; padding-top: 12px; }
.sl-prices h4 { font-size: 13px; }
.sl-prices label { margin: 10px 0 4px; font-size: 11px; }
.sl-price-input { display: flex; align-items: center; gap: 7px; }
.sl-price-input input { width: 100px; }
.sl-price-input > span,.sl-prices > small { font-size: 10px; color: #64748b; }
.sl-price-suggestion { font-size: 10px; color: #526579; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 9px; }
body #app .sl-price-suggestion button { font-size: 10px; min-height: 24px; padding: 3px 5px; }
.sl-inline-image-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--sl-line); font-size: 11px; }
.sl-history-row { margin: 0; border-bottom: 1px solid var(--sl-line); }
.sl-history-row > summary { display: flex; align-items: center; gap: 14px; padding: 8px 5px; font-size: 11px; }
.sl-history-row > summary::before { content: '▸'; color: #7b8a9c; }
.sl-history-row[open] > summary::before { content: '▾'; }
.sl-history-row time { font-size: 10px; color: #64748b; min-width: 132px; }
.sl-history-row > summary > span { flex: 1; }
.sl-history-row > summary > small { font-size: 10px; }
.sl-history-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; background: #f8fafc; }
.sl-history-diff small { color: #64748b; }
.sl-local-job { padding: 8px 0; font-size: 11px; color: #285f99; }
.sl-local-job .sl-loading { margin: 0 0 6px; }
.sl-recipe[data-approved=true] { border-color: #9ecdb0; background: #f0faf3; }
@media(max-width:900px) {
 .sl-editor-heading .sl-search { width: 150px; flex-basis: 150px; }
 .sl-editor-heading > [data-workflow] { flex-basis: 135px; }
}
@media(max-width:600px) {
 .sl-editor-heading { gap: 7px; }
 .sl-editor-heading > [data-workflow] { order: 4; flex: 1; }
 .sl-editor-heading .sl-search { order: 5; margin-left: 0; flex-basis: 150px; }
 .sl-editor-heading .sl-quota { order: 6; }
 .sl-editor-heading .sl-color-picker { width: auto; }
 .sl-editor-heading h3 { flex: 1; }
 .sl-editor-heading .sl-editor-summary > .sl-live { display: none; }
 .sl-editor-body { padding: 10px; }
 .sl-history-row > summary { flex-wrap: wrap; gap: 5px 10px; }
 .sl-history-row time { min-width: auto; }
 .sl-history-diff { grid-template-columns: 1fr; }
}
.sl-price-warning { margin: 5px 0; font-size: 10px; color: #946414; }
.sl-recipe .sl-job-error { color: #9c3737; background: #fff4f4; border-radius: 4px; padding: 7px; font-size: 11px; }

/* One compact parent workflow: content, prices, then image manager. */
.sl-content-form { display: flex; flex-direction: column; gap: 10px; }
.sl-content-form > * { width: 100%; box-sizing: border-box; }
.sl-content-editor > .sl-content-block { display: grid; grid-template-columns: minmax(0,1fr) 165px; column-gap: 16px; padding: 10px 12px; }
.sl-content-block > .sl-section-heading { grid-column: 1/-1; margin-bottom: 6px; }
.sl-content-block > :is(input,textarea) { grid-column: 1; margin-bottom: 0; width: 100%; box-sizing: border-box; }
.sl-content-block > .sl-actions { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; margin: 0; align-self: start; }
.sl-content-block > .sl-suggestion { grid-column: 1/-1; }
.sl-prices { border: 1px solid var(--sl-line); border-radius: 7px; padding: 10px 12px; margin: 0; }
.sl-prices[data-price-approved=true] { border-color: #9ecdb0; background: #f0faf3; }
.sl-prices h4 { margin: 0; }
.sl-price-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 165px; gap: 16px; align-items: start; }
.sl-price-columns label { margin-top: 0; }
.sl-price-confirm { display: flex; flex-direction: column; gap: 7px; }
.sl-price-confirm .sl-note { font-size: 10px; }
.sl-prices .sl-tools { margin: 5px 0 0; padding: 5px 0 0; }
.sl-size-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 8px 12px; margin-top: 10px; }
.sl-size-grid label { margin: 0; }
.sl-size-grid select { width: 100%; }
.sl-image-entry { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--sl-line); border-radius: 7px; }
.sl-image-dimensions { display: block; color: #64748b; font-size: 10px; margin: 4px 0; }
@media(max-width:600px) {
 .sl-content-editor > .sl-content-block { grid-template-columns: minmax(0,1fr); gap: 7px; }
 .sl-content-block > .sl-actions { grid-column: 1; grid-row: auto; flex-direction: row; flex-wrap: wrap; }
 .sl-price-columns { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
 .sl-price-confirm { grid-column: 1/-1; flex-direction: row; align-items: center; justify-content: space-between; }
 .sl-price-input input { width: 100%; min-width: 0; }
}
.sl-content-block > input { align-self: start; height: 32px; }

/* Shared interactions; mobile layout is isolated in shopify-listing-mobile.css. */
.sl-mobile-search,.sl-mobile-image-nav { display: none; }
body #app .shopify-studio button.sl-open-image { display: block; border: 0; background: transparent; padding: 0; width: 100%; min-width: 0; cursor: zoom-in; box-shadow: none; }
.sl-open-image img { margin: 0; }
body #app .shopify-studio .sl-approved-strip button.sl-open-image { width: 60px; }
.sl-image-dialog { width: min(900px,96vw); max-width: 96vw; max-height: 95vh; max-height: 95dvh; padding: 14px; border: 1px solid var(--sl-line); border-radius: 10px; background: #fff; color: #334155; }
.sl-image-dialog::backdrop { background: #152337b8; }
.sl-image-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.sl-image-dialog [data-full-image] { display: block; width: 100%; height: calc(88vh - 60px); height: calc(88dvh - 60px); object-fit: contain; margin-top: 10px; }
.sl-image-dialog [data-preview-status]:empty { display: none; }
.sl-price-feedback { font-size: 12px; line-height: 1.5; padding: 9px 10px; margin-bottom: 10px; border-radius: 5px; background: #eaf7ef; color: #267048; }
.sl-price-feedback[data-error=true] { background: #fff7e7; color: #875d16; }
.sl-size-grid [data-price-unresolved=true] { border-left: 3px solid #c28a27; padding-left: 8px; }
.sl-open-size-actions { margin: 8px 0; }

/* Original product photos stay beside the content being edited. */
.sl-content-form { display: grid; grid-template-columns: minmax(230px,.8fr) minmax(0,1.6fr); align-items: start; gap: 12px 18px; }
.sl-content-form > .sl-product-gallery { grid-column: 1; grid-row: 1; position: sticky; top: 12px; }
.sl-content-form > [data-content-field] { grid-column: 2; }
.sl-content-form > :is(.sl-prices,.sl-image-entry,details) { grid-column: 1/-1; }
.sl-product-gallery { border: 1px solid var(--sl-line); border-radius: 7px; padding: 10px; min-width: 0; background: var(--sl-surface); }
.sl-gallery-heading { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.sl-gallery-heading strong { font-size: 13px; }
.sl-gallery-heading small,.sl-product-gallery > small { color: #64748b; font-size: 10px; overflow-wrap: anywhere; }
.sl-photo-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; height: 330px; border-radius: 5px; background: #f5f7fa; }
.sl-photo-track::-webkit-scrollbar { display: none; }
.sl-photo-slide { flex: 0 0 100%; min-width: 0; height: 100%; scroll-snap-align: start; }
body #app .shopify-studio .sl-photo-slide .sl-open-image { width: 100%; height: 100%; display: block; position: relative; }
.sl-photo-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sl-photo-slide .sl-loading { position: absolute; bottom: 0; left: 0; width: 100%; }
.sl-photo-slide [data-photo-error] { position: absolute; inset: 40% 10px auto; font-size: 12px; }
.sl-gallery-controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0; font-size: 11px; }
.sl-product-gallery [data-photo-more] { margin-top: 8px; width: 100%; }
.sl-gallery-empty { margin: 8px 0; }
@media (min-width:768px) and (max-width:1050px) {
 .sl-content-editor > .sl-content-block { grid-template-columns: minmax(0,1fr); }
 .sl-content-block > .sl-actions { grid-column: 1; grid-row: auto; flex-direction: row; }
}
.sl-content-form { grid-template-rows: min-content auto; }

.sl-content-editor { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sl-content-editor > .sl-content-block { margin: 0; }

/* Image review: the selected color's originals remain visible beside results. */
.sl-image-workspace { display: grid; grid-template-columns: minmax(230px,300px) minmax(0,1fr); align-items: start; gap: 16px; }
.sl-image-workbench { min-width: 0; }
.sl-review-originals { position: sticky; top: 12px; }
.sl-compare-dialog { width: min(1100px,96vw); }
.sl-compare-pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; margin-top: 10px; }
.sl-compare-pair section { min-width: 0; }
.sl-compare-pair h4 { margin: 0 0 8px; font-size: 13px; min-height: 28px; }
.sl-compare-photo { height: min(60vh,580px); height: min(60dvh,580px); position: relative; background: #f5f7fa; border-radius: 5px; }
body #app .shopify-studio .sl-compare-photo > .sl-open-image { width: 100%; height: 100%; }
.sl-compare-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sl-compare-photo .sl-loading { position: absolute; bottom: 0; width: 100%; }
.sl-compare-pair small { display: block; font-size: 11px; color: #64748b; overflow-wrap: anywhere; }
.sl-compare-dialog > .sl-note { font-size: 12px; margin-bottom: 0; }
.sl-recipe > [data-image-compare] { margin: 7px 0; }
.sl-compare-photo > .sl-note { position: absolute; inset: 40% 8px auto; font-size: 12px; }
.sl-compare-photo > .sl-note:empty { display: none; }

.sl-slot-feedback textarea{width:100%;min-height:64px;font-size:14px;box-sizing:border-box}.sl-existing-dialog{width:min(900px,calc(100vw - 24px));max-height:88dvh;overflow:auto;box-sizing:border-box;border:1px solid var(--border,#ddd);border-radius:16px;padding:16px}.sl-existing-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.sl-existing-grid article{display:flex;flex-direction:column;gap:6px;min-width:0}.sl-existing-grid img{width:100%;height:190px;object-fit:contain}.sl-existing-grid small{overflow-wrap:anywhere}.sl-existing-dialog button{min-height:44px}.sl-existing-dialog::backdrop{background:#0008}

.sl-excluded-images{margin-top:12px}.sl-excluded-choice{display:flex;align-items:center;gap:10px;min-height:44px;padding:5px 0}.sl-excluded-choice input{width:18px;height:18px;flex:0 0 auto}

.sl-listing-fields{grid-column:1/-1;border:1px solid var(--border,#d5deeb);border-radius:12px;padding:12px}.sl-listing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sl-listing-field{display:flex;flex-direction:column;gap:7px;padding:10px;border:1px solid var(--border,#d5deeb);border-radius:10px;min-width:0}.sl-listing-field[data-approved=true]{background:#edf9f0;border-color:#8bc89a}.sl-listing-field input:not([type=checkbox]),.sl-listing-field textarea,.sl-listing-field select,.sl-listing-grid>label input,.sl-listing-grid>label select{width:100%;box-sizing:border-box}.sl-listing-grid label{display:flex;flex-direction:column;gap:5px}.sl-listing-grid .sl-listing-check{flex-direction:row;align-items:flex-start}.sl-listing-check input{width:18px;height:18px;flex:0 0 auto}.sl-listing-category-choice{display:flex;gap:6px;flex-wrap:wrap}.sl-listing-category-choice select{flex:1 1 180px}.sl-listing-field small[data-error=true]{color:#a52727}.sl-listing-fields button{min-height:36px}.sl-existing-dialog label{min-width:0}.sl-existing-dialog dl{display:grid;grid-template-columns:1fr 1fr;gap:6px}.sl-existing-dialog dd{margin:0;overflow-wrap:anywhere}@media(max-width:767px){.sl-listing-grid{grid-template-columns:1fr}.sl-listing-field input,.sl-listing-field textarea,.sl-listing-field select,.sl-existing-dialog input,.sl-existing-dialog select{font-size:16px}.sl-listing-fields button{min-height:44px}}
