@import url("/image-converter/styles.css?v=1");
/* Image splitter */
.sp-drop { padding: 40px 16px; }
.sp-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.sp-modes { flex-wrap: wrap; max-width: 100%; }
.sp-modes button { min-height: 40px; padding: 8px 14px; font-size: 13px; font-weight: 600; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.sp-stage { min-width: 0; display: grid; gap: 10px; justify-items: center; }
#view { display: block; max-width: 100%; border-radius: 6px; outline: none; }
#view:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.sp-zoom { width: 100%; justify-content: center; }
.sp-zoom .range { flex: 1 1 160px; max-width: 320px; }
.sp-ctl { display: grid; gap: 14px; min-width: 0; }
.sp-ctl label:not(.check):not(.color) { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.sp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-pair .in { width: 100%; }
.sp-ctl .seg button { min-height: 38px; padding: 6px 12px; font-size: 13px; }
.sp-facts { display: grid; gap: 2px; font-size: 13px; color: var(--text); }
.sp-facts:empty { display: none; }
.sp-facts .warn { color: var(--warn); }
.sp-tip { font-size: 12px; color: var(--muted); margin: 0; }
.color { display: inline-flex; align-items: center; gap: 6px; }
details.adv > div { display: grid; gap: 10px; margin-top: 10px; }
#extra { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 16px; }
#extra h2 { margin: 0 0 10px; font-size: 14px; }
#profile { display: block; border-radius: 4px; }
.sp-swipe { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.sp-swipe canvas { flex: 0 0 auto; scroll-snap-align: center; border-radius: 6px; }
.sp-actions { margin: 6px 0 14px; }
.sp-pieces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sp-piece { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); align-content: start; }
.sp-top-row { display: flex; align-items: center; justify-content: space-between; }
.sp-top-row input { width: 22px; height: 22px; accent-color: var(--accent); margin: 0; }
.sp-num { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: #10130a; font: 800 17px/34px system-ui, sans-serif; text-align: center; }
.sp-thumb { width: 100%; height: auto; max-height: 240px; object-fit: contain; border-radius: 4px; background: #2a2d36; }
.sp-meta { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.sp-btns { display: flex; gap: 6px; }
.sp-btns .dl { flex: 1; min-height: 36px; font-size: 13px; }
.sp-more { grid-column: 1 / -1; }
.hint { color: var(--muted); font-weight: 400; font-size: 12px; }
@media (max-width: 820px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .sp-modes button { padding: 8px 10px; font-size: 12px; } .sp-pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sp-end { align-self: end; }
@media (max-width: 440px) { .sp-pair.sp-sel { grid-template-columns: minmax(0, 1fr); } }
