.lp-screenshot-stitch { --border: #cbd5e1; --accent: #2563eb; color: #172033; font: 16px/1.5 system-ui, sans-serif; max-width: 960px; margin: auto; padding: 20px; overflow-wrap: anywhere; }
.lp-screenshot-stitch * { box-sizing: border-box; }
.lp-screenshot-stitch .intro { margin: 0 0 8px; color: #334155; }
.lp-screenshot-stitch .step { margin: 18px 0; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: #fff; scroll-margin: 18px; }
.lp-screenshot-stitch .step.active { border: 2px solid var(--accent); box-shadow: 0 0 0 3px #dbeafe; }
.lp-screenshot-stitch .step.locked { opacity: .48; }
.lp-screenshot-stitch .step h3 { margin: 0 0 8px; }
.lp-screenshot-stitch .locked-hint { color: #475569; font-weight: 600; }
.lp-screenshot-stitch .step .locked-hint[hidden] { display: none; }
.lp-screenshot-stitch label { display: block; margin: 12px 0; }
.lp-screenshot-stitch input, .lp-screenshot-stitch select, .lp-screenshot-stitch button { font: inherit; padding: 10px; max-width: 100%; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: inherit; }
.lp-screenshot-stitch input[type="number"], .lp-screenshot-stitch select { display: block; margin-top: 4px; }
.lp-screenshot-stitch input[type="number"] { width: 9em; }
.lp-screenshot-stitch button { cursor: pointer; margin: 4px; min-height: 44px; }
.lp-screenshot-stitch button:disabled { opacity: .5; cursor: not-allowed; }
.lp-screenshot-stitch button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; padding: 10px 20px; }
.lp-screenshot-stitch button.secondary { background: #f8fafc; color: #475569; }
.lp-screenshot-stitch button.small { min-height: 36px; padding: 4px 10px; font-size: .9rem; background: #f8fafc; }
.lp-screenshot-stitch .row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.lp-screenshot-stitch .drop { position: relative; border: 2px dashed var(--border); padding: 18px; border-radius: 8px; background: #f8fafc; text-align: center; }
.lp-screenshot-stitch .drop p { margin: 0 0 8px; }
.lp-screenshot-stitch .drop.dragging { border-color: var(--accent); background: #eff6ff; }
.lp-screenshot-stitch .drop:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.lp-screenshot-stitch .visually-hidden-file { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.lp-screenshot-stitch .file-input { width: 1px; height: 1px; padding: 0; border: 0; }
.lp-screenshot-stitch .file-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 8px 0; padding: 0; }
.lp-screenshot-stitch .file-chip { max-width: 100%; padding: 4px 9px; border: 1px solid var(--border); border-radius: 999px; background: #f8fafc; }
.lp-screenshot-stitch .shots { list-style: none; margin: 12px 0; padding: 0; }
.lp-screenshot-stitch .shot { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; }
.lp-screenshot-stitch .thumb { flex: none; display: block; max-width: 96px; height: auto; border: 1px solid var(--border); background: #fff; }
.lp-screenshot-stitch .shot-info { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.lp-screenshot-stitch .shot-name { color: #475569; font-size: .9rem; }
.lp-screenshot-stitch .shot-actions { display: flex; flex-wrap: wrap; margin: 4px -4px 0; }
.lp-screenshot-stitch .join { margin: 6px 0 6px 24px; padding: 4px 0 4px 14px; border-left: 3px solid #93c5fd; }
.lp-screenshot-stitch .join label { margin: 4px 0; font-size: .95rem; }
.lp-screenshot-stitch .join-state { display: block; font-size: .9rem; font-weight: 600; color: #166534; }
.lp-screenshot-stitch .join.weak, .lp-screenshot-stitch .join.none { border-left-color: #f59e0b; }
.lp-screenshot-stitch .join.weak .join-state, .lp-screenshot-stitch .join.none .join-state { color: #9a3412; }
.lp-screenshot-stitch .join.manual .join-state { color: #1e40af; }
.lp-screenshot-stitch .settings { margin: 12px 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; background: #f8fafc; }
.lp-screenshot-stitch .settings summary, .lp-screenshot-stitch .caution summary { cursor: pointer; font-weight: 600; }
.lp-screenshot-stitch .check { display: flex; gap: 8px; align-items: flex-start; }
.lp-screenshot-stitch .check input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.lp-screenshot-stitch .note { color: #475569; font-size: .95rem; }
.lp-screenshot-stitch .summary { margin: 4px 0; font-size: 1.3rem; font-weight: 750; }
.lp-screenshot-stitch .sub-summary { margin: 0 0 8px; color: #334155; font-weight: 600; }
.lp-screenshot-stitch .preview-box { max-height: 70vh; overflow: auto; margin: 12px 0; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: #e2e8f0; }
.lp-screenshot-stitch .preview { position: relative; width: fit-content; max-width: 100%; margin: auto; }
.lp-screenshot-stitch .preview canvas { display: block; max-width: 100%; height: auto; background: #fff; }
.lp-screenshot-stitch .preview-box[hidden] { display: none; }
.lp-screenshot-stitch .mark { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--accent); pointer-events: none; }
.lp-screenshot-stitch .mark span { position: absolute; right: 2px; top: 2px; padding: 0 6px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 12px; white-space: nowrap; }
.lp-screenshot-stitch .status:empty { display: none; }
.lp-screenshot-stitch .caution { margin: 8px 0 16px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; background: #f8fafc; }
.lp-screenshot-stitch .caution ul { margin: 8px 0 0; padding-left: 20px; }
.lp-screenshot-stitch :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) {
  .lp-screenshot-stitch { padding: 12px; }
  .lp-screenshot-stitch .step { padding: 14px; }
  .lp-screenshot-stitch .summary { font-size: 1.15rem; }
  .lp-screenshot-stitch .join { margin-left: 8px; }
  .lp-screenshot-stitch .thumb { max-width: 64px; }
}
