/* Stapel einlesen */
.stp-intro, .stp-run { max-width: 640px; }
.stp-intro .check { margin: 4px 0 14px; }
.stp-run .progress { margin: 10px 0 6px; }
.stp-live { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.stp-live-page { position: relative; width: 64px; height: 88px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.stp-live-page img { width: 100%; height: 100%; object-fit: cover; }
.stp-live-page.blank { opacity: .35; }
.stp-live-page span { position: absolute; left: 3px; bottom: 3px; font-size: .7rem; font-weight: 700; background: rgba(0,0,0,.6); color: #fff; border-radius: 999px; padding: 0 6px; }

.stp-groups { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.stp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stp-card.off { opacity: .5; }
.stp-card.saved { border-color: var(--accent); }
.stp-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.stp-head .check { flex: 1; margin: 0; }
.stp-head input { width: 22px; height: 22px; accent-color: var(--primary); }
.stp-body { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .stp-body { grid-template-columns: minmax(260px, 2fr) 3fr; } }
.stp-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; align-items: flex-start; }
.stp-page { position: relative; flex: none; width: 120px; }
.stp-page.back .stp-img { border-style: dashed; }
.stp-img { display: block; width: 120px; height: 166px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: zoom-in; }
.stp-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.stp-no { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; pointer-events: none; }
.stp-tools { display: flex; justify-content: center; gap: 2px; margin-top: 2px; }
.stp-tools .icon-btn { width: 34px; height: 34px; }
.stp-fields .field { margin-bottom: 8px; }
.stp-blanks { margin: 8px 0 14px; }
.stp-blanks summary { cursor: pointer; color: var(--muted); }
.stp-blanks .stp-page { width: 70px; }
.stp-blanks img { width: 70px; height: 96px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; }
.stp-global { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 12px 14px; border-radius: var(--radius); background: var(--accent-soft); }
.stp-global > div { flex: 1 1 100%; }
.stp-global .check { margin: 0; }
.stp-savebar {
  position: sticky; bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); z-index: 26; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding: 10px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.stp-savebar .grow { flex: 1 1 180px; }
@media (min-width: 900px) { .stp-savebar { bottom: 20px; } }
.stp-warn { color: var(--coral-ink); font-weight: 650; }
.stp-big { display: block; width: 100%; height: auto; border-radius: 6px; margin-bottom: 8px; }
