.stitch-settings {margin-top:20px;border-top:1px solid #dfe6ef;padding-top:14px;font-size:12px;color:#334155}
.stitch-settings[hidden], .stitch-settings [hidden] {display:none}
.stitch-settings h2 {font-size:12px;margin:0 0 10px}
.stitch-help {font-size:11px;line-height:1.6;color:#718096;margin:0 0 12px}
.stitch-settings label {display:flex;flex-direction:column;gap:5px;margin-bottom:10px;min-width:0}
.stitch-settings select, .stitch-settings input[type=number] {width:100%;min-width:0;height:32px;padding:5px 7px;border:1px solid #d5deeb;border-radius:5px;background:white;color:#334155;font:inherit;box-sizing:border-box}
.stitch-settings input[type=color] {width:100%;height:32px;border:1px solid #d5deeb;border-radius:5px;background:white;padding:3px}
.stitch-field-pair {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.stitch-settings .stitch-checkbox {flex-direction:row;align-items:center;gap:7px}
.stitch-checkbox input {margin:0;width:14px;height:14px}
.stitch-list-heading {display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.stitch-settings button:not(.btn) {border:1px solid #d5deeb;background:white;border-radius:4px;padding:4px 6px;color:#475569;font:inherit;cursor:pointer}
.stitch-source-list button {min-width:28px;min-height:30px}
.stitch-settings button:disabled {opacity:.4;cursor:default}
.stitch-source-list {list-style:none;padding:0;margin:0 0 12px;display:flex;flex-direction:column;gap:6px}
.stitch-source-list li {display:flex;align-items:center;gap:6px;padding:6px;border:1px solid #e2e8f0;background:white;border-radius:5px;min-width:0}
.stitch-settings .stitch-source-preview {display:grid;place-items:center;flex-shrink:0;padding:2px;border:0;background:#f1f5f9;min-width:34px;min-height:40px}
.stitch-settings .stitch-source-preview:hover {background:#e2e8f0}
.stitch-settings .stitch-source-preview:focus-visible {outline:2px solid #2563eb;outline-offset:2px}
.stitch-source-list img {width:30px;height:36px;object-fit:contain;background:#f1f5f9;flex-shrink:0}
.stitch-source-name {flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.image-page .stitch-result-card {grid-column:1/-1;background:#f5f8ff}
.image-page .stitch-result-card .batch-preview {width:100%}
.image-page .stitch-result-card img {max-height:500px;background:repeating-conic-gradient(#edf0f5 0% 25%,white 0% 50%) 50% / 16px 16px}
@media(max-width:700px) {
  .image-page .mode-options {grid-template-columns:repeat(2,minmax(0,1fr))}
  .stitch-settings {margin-top:12px}
  .image-page .stitch-result-card .batch-preview {width:100%}
}
