* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: #f8fafc; color: #1e293b; line-height: 1.6; }
.stitch-page { max-width: 1024px; padding: 28px 16px 48px; margin: auto; }
h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 10px; } h2 { font-size: 19px; margin: 0 0 16px; } h3 { font-size: 16px; }
.header { margin: 0 0 24px; } .privacy { color: #047857; font-size: 14px; }
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } .source-panel, .settings-panel, .result, .guide { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; min-width: 0; }
.drop-zone { display: flex; flex-direction: column; gap: 10px; padding: 22px 16px; border: 2px dashed #93c5fd; border-radius: 8px; background: #eff6ff; cursor: pointer; color: #1d4ed8; text-align: center; }
.drop-zone.dragging { background: #dbeafe; } .drop-zone input { width: 100%; font-size: 13px; } small, .hint, #count { font-size: 13px; color: #64748b; }
.actions { display: flex; gap: 10px; margin-top: 16px; } button, .primary { border-radius: 6px; border: 1px solid #cbd5e1; padding: 10px 14px; font: inherit; font-size: 14px; background: white; color: #334155; cursor: pointer; }
.primary { display: inline-block; background: #2563eb; border-color: #2563eb; color: white; text-align: center; } .primary:hover { background: #1d4ed8; } button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; } [hidden] { display: none !important; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .fields label { font-size: 14px; display: flex; flex-direction: column; gap: 6px; } .fields input, select { width: 100%; min-width: 0; height: 42px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 8px; background: white; font: inherit; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-top: 18px; } #generate { width: 100%; margin-top: 12px; }
.image-list { padding: 0; list-style: none; max-height: 430px; overflow-y: auto; } .image-item { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; border-top: 1px solid #e2e8f0; padding: 12px 0; } .image-item img { width: 54px; height: 54px; object-fit: contain; background: #f1f5f9; border-radius: 4px; } .image-name { overflow-wrap: anywhere; font-size: 14px; } .image-detail { color: #64748b; font-size: 12px; } .item-actions { display: flex; gap: 6px; grid-column: 2; flex-wrap: wrap; } .item-actions button { padding: 6px 10px; font-size: 12px; }
.status { border-radius: 6px; padding: 12px 16px; background: #eff6ff; color: #1d4ed8; overflow-wrap: anywhere; } .status.error { background: #fef2f2; color: #b91c1c; }
.result { margin: 24px 0; } .result-heading { display: flex; gap: 16px; justify-content: space-between; align-items: center; } .result-heading h2 { margin: 0; } .preview { max-height: 620px; overflow: auto; text-align: center; background: repeating-conic-gradient(#e2e8f0 0% 25%, #fff 0% 50%) 0 0 / 20px 20px; } .preview img { display: block; max-width: 100%; height: auto; margin: auto; }
.guide { font-size: 14px; color: #475569; } .guide li { margin: 8px 0; } .related { display: flex; flex-wrap: wrap; gap: 12px 24px; } a { color: #2563eb; } .guide ol { padding-left: 22px; }
@media (max-width: 700px) { .workspace { grid-template-columns: 1fr; gap: 16px; } .source-panel, .settings-panel, .result, .guide { padding: 18px; } .stitch-page { padding-top: 20px; } .image-list { max-height: 280px; } .result-heading { flex-wrap: wrap; } }
@media (max-width: 360px) { .fields { grid-template-columns: 1fr; } }
