/* 훈훈 디자인 생성기 — 화면 모양. 색·간격은 아래 토큰으로만 쓴다. */
@font-face { font-family: "Pretendard"; src: url("/vendor/Pretendard.woff2") format("woff2"); font-weight: 45 920; font-display: swap; }

:root {
  --bg: #f4f5f7; --panel: #ffffff; --line: #e4e6ea; --line-strong: #cfd3d9;
  --ink: #15171c; --ink-2: #3b3f47; --muted: #6b7280; --faint: #9aa0aa;
  --accent: #2f6bff; --accent-ink: #ffffff; --accent-soft: #eaf0ff; --accent-line: #b9ccff;
  --block: #d92d20; --block-soft: #fdecea; --check: #b54708; --check-soft: #fef4e6; --ok: #067647; --ok-soft: #e7f6ee;
  --radius: 12px; --radius-s: 8px; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
img { display: block; }
.boot { padding: 80px; text-align: center; color: var(--muted); }

/* 머리띠 */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 24px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; color: var(--ink); white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800; }
.top-search { flex: 1; max-width: 520px; position: relative; }
.top-search input { width: 100%; height: 38px; padding: 0 14px 0 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); outline: none; }
.top-search input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.top-search svg { position: absolute; left: 12px; top: 11px; color: var(--faint); }
.top-gap { flex: 1; }
.top-note { font-size: 13px; color: var(--muted); white-space: nowrap; }
.top-link { font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.top-link:hover { color: var(--accent); }
.who { width: 130px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); font-size: 13px; outline: none; }
.who:focus { border-color: var(--accent); background: #fff; }

/* 처음 화면 */
.hero { padding: 8px 0 8px; }
.hero h1 { font-size: 30px; margin-bottom: 8px; }
.hero .lead { margin-bottom: 18px; max-width: 760px; }
.hero-search { display: flex; gap: 10px; max-width: 760px; margin-bottom: 18px; }
.hero-search input { flex: 1; height: 50px; padding: 0 18px; font-size: 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; outline: none; box-shadow: var(--shadow); }
.hero-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-search .btn { height: 50px; padding: 0 22px; border-radius: 14px; font-size: 16px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.job-card { cursor: default; }
.job-card:hover { transform: none; }
.row-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.done { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--ok-soft); border: 1px solid #bfe5cf; }
.done > div:first-child { flex: 1; min-width: 200px; }

/* 테마(배경) 고르기 */
.theme-bar { margin: 0 0 16px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.theme-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.theme-list { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 4px 12px 4px 4px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.theme-chip img { width: 52px; height: 34px; object-fit: cover; border-radius: 8px; background: #eef0f3; }
.theme-chip:hover { border-color: var(--accent-line); }
.theme-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

/* 꾸미기 요소 칸 */
.elem-thumb { background: repeating-conic-gradient(#eef0f3 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.elem-thumb.off { background: var(--bg); border-style: dashed; }

/* 여러 상품 한 번에 — 꾸미기 한 번에 */
.all-elements { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; margin: 0 0 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); font-size: 14px; }
.all-el { display: inline-flex; align-items: center; gap: 6px; }
.all-el select { height: 32px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; padding: 0 8px; }

/* 피그마에서 다시 받기 */
.refetch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); }
.refetch .log { width: 100%; max-height: 260px; overflow: auto; margin: 4px 0 0; padding: 10px 12px; background: #15171c; color: #e5e7eb; border-radius: 8px; font: 12px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; }

/* 쪽 */
.page { max-width: 1240px; margin: 0 auto; padding: 28px 24px 80px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
h1 { font-size: 26px; line-height: 1.3; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 18px; margin: 0 0 12px; }
.lead { color: var(--ink-2); margin: 0 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* 처음 화면의 세 단계 */
.steps { list-style: none; margin: -6px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; color: var(--ink-2); }
.steps b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 13px; }
.steps strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }

/* 카드·목록 */
.grid { display: grid; gap: 16px; }
.grid.kinds { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid.families { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.grid.designs { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: inherit; overflow: hidden; transition: border-color .12s, box-shadow .12s, transform .12s; cursor: pointer; text-align: left; padding: 0; }
.card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.card:focus-visible { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.card-body { padding: 14px 16px 16px; }
.card-title { font-weight: 700; font-size: 16px; margin: 0 0 4px; }
.card-meta { font-size: 13px; color: var(--muted); }
.thumb { background: #eef0f3; display: grid; place-items: center; overflow: hidden; }
.thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.kind-collage { height: 150px; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: #eef0f3; }
.kind-collage .thumb:first-child { grid-row: span 2; }
.kind-collage img { width: 100%; height: 100%; object-fit: cover; }
.family-thumb { height: 190px; padding: 12px; }
.design-thumb { height: 150px; padding: 8px; }
.design-card .card-body { padding: 10px 12px 12px; }
.design-card .card-title { font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.chip.accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.section { margin-top: 36px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.toolbar .grow { flex: 1; }
.filter { height: 38px; width: 280px; max-width: 100%; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none; }
.filter:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-s); background: var(--panel); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.note.warn { background: var(--check-soft); border-color: #f7d7ad; }

/* 단추 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--bg); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: #245ae6; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--bg); }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.link { height: auto; padding: 0; border: 0; background: none; color: var(--accent); font-weight: 500; font-size: 13px; }

/* 편집 화면 */
.editor { display: grid; grid-template-columns: minmax(340px, 400px) 1fr; gap: 20px; align-items: start; }
.editor-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.editor-head .grow { flex: 1; min-width: 240px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form { padding: 6px 0; }
.group { padding: 14px 18px 8px; border-bottom: 1px solid var(--line); }
.group:last-child { border-bottom: 0; }
.group-title { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.field { padding: 8px 10px; margin: 0 -10px 6px; border-radius: 10px; transition: background .12s; }
.field.active { background: var(--accent-soft); }
.field-label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font-weight: 650; font-size: 14px; }
.field-label .role { font-weight: 400; font-size: 12px; color: var(--faint); }
.field-label .reset { margin-left: auto; }
.input, .textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; padding: 8px 11px; outline: none; transition: border-color .12s, box-shadow .12s; }
.input { height: 38px; }
.textarea { resize: vertical; min-height: 38px; line-height: 1.45; }
.input:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.changed .input, .field.changed .textarea, .field.changed .num { border-color: var(--accent-line); }
.field.blocked .input, .field.blocked .textarea, .field.blocked .num { border-color: var(--block); }
.num { display: flex; align-items: center; height: 38px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; overflow: hidden; }
.num:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.num input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; padding: 0 11px; font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 600; }
.affix { padding: 0 11px; color: var(--muted); background: var(--bg); height: 100%; display: flex; align-items: center; white-space: pre; font-size: 14px; }
.run { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px; }
.run-tag { flex: none; width: 54px; padding-top: 9px; font-size: 11px; color: var(--muted); line-height: 1.2; }
.run .grow { flex: 1; }
.fixed-run { font-size: 13px; color: var(--muted); padding: 2px 0 6px 62px; }
.was { font-size: 12px; color: var(--faint); margin-top: 4px; white-space: pre-wrap; }
.issues { margin: 6px 0 0; padding: 0; list-style: none; }
.issue { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 1.4; padding: 6px 9px; border-radius: 8px; margin-top: 4px; }
.issue.block { background: var(--block-soft); color: var(--block); }
.issue.check { background: var(--check-soft); color: var(--check); }
.issue.info { background: var(--bg); color: var(--muted); }
.issue b { font-weight: 700; flex: none; }
.auto { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin: 2px 0 10px; }
.auto input { accent-color: var(--accent); }

/* 사진 칸 */
.photo { display: flex; gap: 12px; align-items: center; }
.photo-thumb { width: 84px; height: 84px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: repeating-conic-gradient(#eef0f3 0 25%, #fff 0 50%) 0 0 / 14px 14px; display: grid; place-items: center; overflow: hidden; }
.photo-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.photo-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; margin: 10px 0 8px; }
.seg button { border: 0; background: #fff; padding: 6px 11px; font-size: 13px; cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent); color: #fff; }
.slider { display: grid; grid-template-columns: 70px 1fr 42px; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); margin: 4px 0; }
.slider input { accent-color: var(--accent); width: 100%; }

/* 미리보기 — 오른쪽 칸 전체 높이 안에서 화면 위쪽에 붙어 있게(왼쪽 칸을 내려도 보이도록) */
.preview-col { align-self: stretch; }
.preview-stick { position: sticky; top: 76px; }
.preview { padding: 14px; }
.preview-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.tabs { display: inline-flex; background: var(--bg); border-radius: 10px; padding: 3px; }
.tabs button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.stage { position: relative; background: repeating-conic-gradient(#f0f1f4 0 25%, #fafbfc 0 50%) 0 0 / 16px 16px; border-radius: 10px; padding: 16px; display: flex; justify-content: center; align-items: flex-start; gap: 16px; overflow: auto; max-height: calc(100vh - 200px); }
.shot { position: relative; flex: none; box-shadow: 0 2px 10px rgba(16, 24, 40, .12); background: #fff; }
.shot img { width: 100%; height: auto; }
.shot-cap { font-size: 12px; color: var(--muted); margin-bottom: 6px; text-align: center; }
.box { position: absolute; border: 2px solid var(--accent); border-radius: 3px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(21, 23, 28, .0); }
.box.block { border-color: var(--block); }
.box.hint { border: 1px dashed rgba(47, 107, 255, .6); }
.hit { position: absolute; cursor: pointer; border-radius: 3px; }
.hit:hover { background: rgba(47, 107, 255, .08); outline: 1px solid rgba(47, 107, 255, .5); }
.busy { position: absolute; top: 10px; right: 10px; font-size: 12px; background: rgba(21, 23, 28, .72); color: #fff; padding: 3px 9px; border-radius: 999px; }
.status { margin-top: 10px; font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.status .pill { padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.block { background: var(--block-soft); color: var(--block); }
.pill.check { background: var(--check-soft); color: var(--check); }

/* 창(사진 고르기) */
.modal-back { position: fixed; inset: 0; background: rgba(15, 18, 25, .45); z-index: 50; display: grid; place-items: center; padding: 24px; }
.modal { width: min(920px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; flex: 1; }
.modal-body { padding: 16px 20px 20px; overflow: auto; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.pick { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0; cursor: pointer; overflow: hidden; text-align: left; }
.pick:hover { border-color: var(--accent); }
.pick.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pick .photo-thumb { width: 100%; height: 120px; border: 0; border-radius: 0; }
.pick span { display: block; padding: 6px 8px; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop { border: 2px dashed var(--line-strong); border-radius: 12px; padding: 34px 20px; text-align: center; color: var(--muted); margin-bottom: 16px; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* 여러 개 한 번에 */
.table-wrap { overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
table.sheet { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; }
.sheet th, .sheet td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0; vertical-align: top; }
.sheet th { position: sticky; top: 0; background: #f8f9fb; font-weight: 650; font-size: 13px; text-align: left; padding: 9px 10px; white-space: nowrap; z-index: 1; }
.sheet td.cell input { width: 100%; min-width: 120px; height: 40px; border: 0; padding: 0 10px; outline: none; background: transparent; }
.sheet td.cell input:focus { box-shadow: inset 0 0 0 2px var(--accent); background: #fff; }
.sheet td.cell.changed input { background: #f4f7ff; }
.sheet td.cell.block input { box-shadow: inset 0 0 0 2px var(--block); }
.sheet td.na { background: repeating-linear-gradient(135deg, #f6f7f9 0 6px, #fff 6px 12px); }
.sheet td.lead-cell { padding: 6px 10px; min-width: 210px; }
.row-head { display: flex; gap: 10px; align-items: center; }
.row-head img { width: 64px; height: 44px; object-fit: contain; background: #eef0f3; border-radius: 6px; }
.row-state { font-size: 12px; margin-top: 4px; }
.check-list { display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 920px) {
  .editor { grid-template-columns: 1fr; }
  .preview { position: static; }
  .top-note { display: none; }
}

/* 머리띠 배지(피그마 새 것) */
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--block); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px; }

/* 피그마 새 것 */
.sync-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.sync-status > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.sync-status b { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.sync-status .hot { color: var(--block); font-weight: 700; }
.task { margin: 0 0 16px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.task.running { border-color: var(--accent-line); background: var(--accent-soft); }
.task.ok { border-color: #bfe5cf; background: var(--ok-soft); }
.task.bad { border-color: #f1b7b1; background: var(--block-soft); }
.task-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.task .log { max-height: 280px; overflow: auto; margin: 10px 0 0; padding: 10px 12px; background: #15171c; color: #e5e7eb; border-radius: 8px; font: 12px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; }
.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plain li { padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.cand { cursor: default; }
.cand:hover { transform: none; }
.cand-thumbs { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; height: 170px; background: #eef0f3; }
.cand-thumbs .thumb:first-child { grid-row: span 2; }
.cand-thumbs .thumb:only-child { grid-column: span 2; }
.cand-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.cand-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.cand-actions select { height: 30px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; padding: 0 8px; font-size: 13px; }

/* 로그인·도움말 */
.login { display: grid; place-items: center; min-height: calc(100vh - 120px); }
.login-box { width: min(420px, 100%); padding: 28px 28px 24px; }
.help .lead { max-width: 820px; }
.help-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; max-width: 860px; color: var(--ink-2); }
.help-list b { color: var(--ink); margin-right: 4px; }

/* 여러 상품 한 번에 — 사진 칸 */
.sheet td.photo-cell { padding: 6px 8px; min-width: 150px; }
.photo-cell-in { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.photo-mini { width: 96px; height: 64px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: repeating-conic-gradient(#eef0f3 0 25%, #fff 0 50%) 0 0 / 12px 12px; display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.photo-mini img { max-width: 100%; max-height: 100%; object-fit: contain; }
.photo-mini:hover { border-color: var(--accent); }

/* 여러 상품 한 번에 — 구간이 여럿인 칸 */
.sheet td.cell-runs { padding: 4px 6px; min-width: 220px; }
.cell-runs .run-row { display: flex; align-items: center; gap: 6px; }
.cell-runs .run-row .run-tag { flex: none; width: 48px; padding: 0; font-size: 11px; color: var(--muted); line-height: 1.2; }
.sheet td.cell-runs input { height: 32px; min-width: 150px; }
.cell-runs .run-fixed { font-size: 11px; color: var(--faint); padding: 0 0 2px 54px; }

/* 그림에서 끌어 자리 옮기기 */
.hit.draggable { cursor: grab; }
.hit.draggable:active { cursor: grabbing; }
.box.dragging { border-style: dashed; background: rgba(47, 107, 255, .08); }
.drag-tip { position: absolute; left: 10px; bottom: 10px; font-size: 12px; background: rgba(21, 23, 28, .78); color: #fff; padding: 3px 9px; border-radius: 999px; pointer-events: none; }
.offset-chip { color: var(--accent); font-weight: 600; }
