:root {
  --paper: #fbfaf7; --ink: #1d1c1a; --soft: #8b867e; --hair: #e4e0d8;
  --accent: #1d1c1a; --mark: #b4515c;
  --serif: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --latin: "Cormorant Garamond", "Noto Serif KR", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --rowh: 92px; --gap: 2px;
}
@media (min-width: 700px) { :root { --rowh: 200px; --gap: 6px; } }
@media (min-width: 1200px) { :root { --rowh: 240px; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }

.wordmark { font-family: var(--latin); font-size: 15px; letter-spacing: .42em; text-transform: uppercase; padding-left: .42em; }
.wordmark.small { font-size: 12px; color: var(--soft); }

/* ── 표지 (사진 없이 글자만) ───────────────────── */
.cover { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.coverText { width: min(380px, 100%); text-align: center; }
.coverText .wordmark { color: var(--ink); }
.coverTitle { font-family: var(--serif); font-weight: 400; font-size: clamp(18px, 4.6vw, 22px); line-height: 1.45; margin: 30px 0 8px; letter-spacing: .04em; word-break: keep-all; }
.coverSub { font-family: "EB Garamond", serif; font-weight: 400; font-size: 14px; letter-spacing: .16em; line-height: 1.4; margin-top: 12px; color: var(--soft); margin: 0 0 48px; }
.coverSub::after { content: ""; display: block; width: 28px; height: 1px; background: var(--hair); margin: 28px auto 0; }
.pinForm { position: relative; border-bottom: 1px solid var(--ink); }
.pinForm input { display: block; width: 100%; background: none; border: 0; color: var(--ink); padding: 12px 52px; font-family: var(--serif); font-size: 16px; letter-spacing: .25em; text-align: center; outline: none; }
.pinForm input::placeholder { font-family: var(--serif); color: var(--soft); letter-spacing: .12em; }
.pinForm button { position: absolute; right: 0; top: 0; bottom: 0; padding: 0 4px 0 12px; font-family: var(--serif); font-size: 13px; letter-spacing: .14em; }
.loginMsg { min-height: 1.5em; font-family: var(--serif); font-size: 13px; margin: 14px 0 0; color: var(--mark); }

/* ── 위쪽 ───────────────────── */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--hair); }
.topInner { max-width: 1400px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 16px 0; text-align: center; }
.galleryTitle { font-family: var(--serif); font-weight: 400; font-size: 18px; margin: 8px 0 12px; word-break: keep-all; }
.coverTitle .t1, .galleryTitle .t1, .coverTitle .t2, .galleryTitle .t2 { display: block; }
.coverTitle .t1 { font-size: 14px; color: var(--soft); letter-spacing: .04em; margin-bottom: 14px; }
.galleryTitle .t1 { font-size: 12px; color: var(--soft); margin-bottom: 4px; }
.tabs { display: flex; justify-content: center; gap: 22px; font-size: 13px; }
.tab { padding: 8px 0 10px; color: var(--soft); border-bottom: 1px solid transparent; margin-bottom: -1px; }
.tab em { font-style: normal; font-variant-numeric: tabular-nums; margin-left: 2px; }
.tab.on { color: var(--ink); border-color: var(--ink); }
.notice { max-width: 1400px; margin: 14px auto 0; padding: 0 16px; font-size: 13px; color: var(--soft); text-align: center; }

/* ── 사진 목록: 원본 비율 그대로 한 줄에 맞춰 배치 ── */
#grid { max-width: 1400px; margin: 0 auto; padding: 4px var(--gap) 110px; }
.scene { content-visibility: auto; contain-intrinsic-size: auto 800px; }
.sceneHead { display: flex; align-items: baseline; gap: 10px; padding: 26px 6px 10px; }
.sceneHead b { font-family: var(--latin); font-weight: 500; font-size: 20px; }
.sceneHead span { font-size: 12px; color: var(--soft); }
.rows { display: flex; flex-wrap: wrap; gap: var(--gap); }
.rows::after { content: ""; flex-grow: 1e4; }
.tile { position: relative; flex-grow: var(--r); flex-basis: calc(var(--r) * var(--rowh)); background: #ece8e1; overflow: hidden; }
.tile img { display: block; width: 100%; aspect-ratio: var(--r); object-fit: cover; transition: opacity .3s; }
.tile img:not(.ld) { opacity: 0; }
.heart { position: absolute; right: 0; bottom: 0; width: 44px; height: 44px; display: grid; place-items: center; }
.heart svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 1.6; filter: drop-shadow(0 1px 2px #0007); }
.tile.picked .heart svg { fill: #fff; }
.tile.picked::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--ink); pointer-events: none; }
.tile .memo { position: absolute; left: 7px; bottom: 9px; font-size: 10px; letter-spacing: .08em; color: #fff; text-shadow: 0 1px 2px #0008; }
.empty { text-align: center; color: var(--soft); padding: 80px 16px; font-size: 14px; line-height: 1.8; }

/* ── 아래쪽 ───────────────────── */
.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--hair); }
.tally { font-family: var(--latin); font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1; }
.tally #tallyOf { font-size: 15px; color: var(--soft); margin-left: 3px; }
.tally.full #tallyNum { color: var(--mark); }
.saveState { flex: 1; font-size: 11px; color: var(--soft); }
.submit { background: var(--ink); color: var(--paper); padding: 12px 22px; font-size: 13px; letter-spacing: .12em; }
.submit:disabled { background: var(--hair); color: var(--soft); cursor: default; }
.submit.wide { width: 100%; margin-top: 10px; }

/* ── 크게 보기 ───────────────────── */
#viewer { position: fixed; inset: 0; z-index: 20; background: #111110; color: #f2efe9; display: grid; grid-template-rows: auto 1fr auto; }
.vTop { display: flex; justify-content: space-between; align-items: center; padding: calc(12px + env(safe-area-inset-top)) 16px 10px; font-size: 12px; }
.vInfo { color: #a9a49b; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.vClose { letter-spacing: .12em; padding: 6px 0; }
.vStage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 8px; touch-action: pan-y; }
#vImg { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.vNav { position: absolute; top: 0; bottom: 0; width: 18%; display: grid; align-items: center; opacity: .55; }
.vNav svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.2; }
#vPrev { left: 0; justify-items: start; padding-left: 14px; } #vNext { right: 0; justify-items: end; padding-right: 14px; }
@media (hover: none) { .vNav { display: none; } }
.vBottom { display: grid; gap: 10px; width: min(520px, 100%); margin: 0 auto; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
#vNote { background: none; border: 0; border-bottom: 1px solid #ffffff40; color: #fff; padding: 10px 2px; font-size: 14px; outline: none; }
#vNote::placeholder { color: #ffffff66; }
.vPick { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 14px; border: 1px solid #ffffff59; font-size: 14px; letter-spacing: .1em; }
.vPick svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.vPick.on { background: #f2efe9; color: #111110; border-color: #f2efe9; }
.vPick.on svg { fill: currentColor; }

/* ── 안내창, 알림 ───────────────────── */
.modal { position: fixed; inset: 0; z-index: 30; background: #1d1c1a80; display: grid; place-items: center; padding: 16px; }
.modalBox { background: var(--paper); padding: 28px 24px 22px; width: min(420px, 100%); }
.modalBox h2 { font-family: var(--serif); font-weight: 400; font-size: 19px; margin: 0 0 14px; text-align: center; }
.modalBox ol { padding-left: 18px; margin: 0 0 8px; font-size: 14px; line-height: 1.75; color: #3d3b37; }
#toast { position: fixed; left: 50%; bottom: 128px; transform: translateX(-50%); z-index: 40; background: var(--ink); color: var(--paper);
  padding: 11px 18px; font-size: 13px; max-width: calc(100% - 32px); text-align: center; }
.plain { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--soft); }
.plain .wordmark { color: var(--ink); margin-bottom: 16px; }

/* 휴대폰: 사진 화면 위쪽에는 메뉴만 (제목은 첫 화면에서 이미 봤으니 빼서 사진을 더 넓게) */
@media (max-width: 699px) {
  .top .galleryTitle { display: none; }
  .top .wordmark { color: var(--ink); font-size: 11px; }
  .top .wordmark::after { content: "  |  SELECT"; white-space: pre; }
  .topInner { padding-top: calc(12px + env(safe-area-inset-top)); }
  .tabs { margin-top: 4px; }
}

/* ── 사람별 하트 색 (--c: 한 명이면 그 사람 색, 여러 명이면 보라) ── */
:root { --bride: #d98a9c; --groom: #6f8fbf; --both: #a3122a; }
.tile.pk .heart svg { fill: var(--c); stroke: #fff; }
.tile.pk::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 3px var(--c); }
.tile.multi .heart { width: auto; min-width: 44px; padding: 0 8px; }
.tile.multi .hearts { display: flex; }
.tile.multi .hearts svg { width: 19px; height: 19px; margin-left: -8px; fill: var(--both); stroke: #fff; stroke-width: 1.4; }
.tile.multi .hearts svg:first-child { margin-left: 0; }
.tile.multi .heart em { font-style: normal; color: #fff; font-size: 11px; margin-left: 3px; text-shadow: 0 1px 2px #0008; }
.vPick.pk.on { background: var(--c); border-color: var(--c); color: #fff; }
.hb, .hg, .hbg { display: inline-block; padding: 0 6px; color: #fff; font-size: 12px; }
.hb { background: var(--bride); } .hg { background: var(--groom); } .hbg { background: var(--both); }

/* ── 누가 고르나요 ── */
.whoQ { font-family: var(--serif); font-size: 15px; margin: 0 0 14px; }
.whoBtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.whoBtns button { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--serif); padding: 14px 8px; border: 1px solid var(--mc); font-size: 15px; letter-spacing: .1em; }
.whoBtns button i { width: 9px; height: 9px; border-radius: 50%; background: var(--mc); }
.addMember { margin-top: 14px; font-family: var(--serif); font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.memberForm { margin-top: 16px; display: grid; gap: 12px; }
.memberForm input { padding: 12px; border: 0; border-bottom: 1px solid var(--ink); background: none; font-family: var(--serif); font-size: 15px; text-align: center; outline: none; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sw { width: 30px; height: 30px; border-radius: 50%; background: var(--mc); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px transparent; }
.sw.on { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.sw:disabled { opacity: .2; cursor: default; }
.whoHint { font-size: 12px; color: var(--soft); margin: 12px 0 0; }
.whoBar { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 11px; color: var(--soft); padding: 9px 0 9px; }
.whoBar button { text-decoration: underline; text-underline-offset: 2px; }
.linkBtn { text-decoration: underline; text-underline-offset: 2px; color: var(--ink); margin-left: 4px; }
.helpCount { font-size: 14px; line-height: 1.7; text-align: center; background: #f1eee8; padding: 12px; margin: 0 0 14px; }
.notice b { color: var(--ink); }

/* ── 제출 단계 ── */
.sheetBox { max-height: 88svh; overflow-y: auto; }
#sheetBody h2 { font-family: var(--serif); font-weight: 400; font-size: 19px; margin: 0 0 10px; text-align: center; }
.sheetText { font-size: 14px; line-height: 1.7; color: #4a4741; text-align: center; margin: 0 0 18px; }
.sheetText.small { font-size: 12px; color: var(--soft); }
.sheetBtns { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.sheetBtns > * { flex: 1; }
.ghostBtn { border: 1px solid var(--hair); padding: 12px 14px; font-size: 13px; letter-spacing: .06em; background: var(--paper); }
.sceneLinks { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sceneLinks button { border: 1px solid var(--hair); padding: 8px 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.choice { display: grid; gap: 10px; }
.choice button { display: grid; gap: 4px; text-align: left; padding: 16px; border: 1px solid var(--hair); }
.choice button b { font-family: var(--serif); font-weight: 500; font-size: 15px; }
.choice button span { font-size: 13px; color: var(--soft); }
.choice button[data-act="keep"] { border-color: var(--ink); }
.addBlock { border-top: 1px solid var(--hair); padding: 14px 0 6px; }
.addTitle { font-family: var(--serif); font-size: 14px; margin-bottom: 10px; }
.addRow { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.addRow select { flex: 1; min-width: 0; padding: 10px 8px; border: 1px solid var(--hair); background: var(--paper); font-size: 13px; color: var(--ink); }
.addRow .grow { flex: 1; font-size: 13px; }
.addRow .grow em { font-style: normal; color: var(--soft); margin-left: 6px; }
.stand { display: block; font-size: 13px; margin: -2px 0 8px; }
.cart { list-style: none; padding: 0; margin: 6px 0 0; }
.cart li { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 8px 0; border-top: 1px dashed var(--hair); }
.cart li span { flex: 1; } .cart .x { color: var(--soft); font-size: 12px; text-decoration: underline; }
.summary { margin: 0; }
.summary div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.summary dt { color: #4a4741; } .summary dd { margin: 0; font-variant-numeric: tabular-nums; }
.summary .sum { border-bottom: 0; font-family: var(--serif); font-size: 16px; padding-top: 14px; }
.sheetBox { padding-left: 18px; padding-right: 18px; }
.sheetText.two { font-size: clamp(12px, 3.4vw, 14px); white-space: nowrap; }

/* ── 연사 묶음 ── */
.stack { position: absolute; left: 0; top: 0; min-width: 40px; height: 30px; padding: 0 9px; background: #1d1c1acc; color: #fff; font-size: 12px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.bestTag { position: absolute; right: 6px; top: 6px; background: var(--paper); color: var(--ink); font-size: 10px; letter-spacing: .1em; padding: 2px 6px; }
.tile.inBurst img { opacity: .92; }
.modalBox { max-height: 88svh; overflow-y: auto; }
.recommend { border-top: 1px solid var(--hair); margin-top: 14px; padding-top: 14px; }
.recommend h3 { font-family: var(--serif); font-weight: 400; font-size: 15px; margin: 0 0 8px; text-align: center; }
.recommend ol { margin: 0 0 8px; }
.recommend ol span { color: var(--soft); font-size: 13px; }
.recommend p { font-size: 13px; line-height: 1.7; color: var(--soft); margin: 0; text-align: center; }
#viewer { height: 100%; min-height: 100dvh; overscroll-behavior: none; touch-action: none; }
.vStage { touch-action: none; overflow: hidden; }
#vImg { will-change: transform; }
.burstHead { display: grid; gap: 4px; padding: 12px 6px; background: var(--paper); }
.burstBack { justify-self: start; font-family: var(--serif); font-size: 15px; padding: 4px 0; }
.burstHead span { font-size: 12px; color: var(--soft); }

/* ── 두 분 모두 고르면 떠오르는 하트 ── */
.floatHeart { position: fixed; z-index: 60; width: 30px; height: 30px; margin: -15px 0 0 -15px; pointer-events: none; opacity: 0; }
.floatHeart svg { width: 100%; height: 100%; fill: currentColor; stroke: #fff; stroke-width: 1.2; }

/* ── 앨범 구성 ── */
.tabs { gap: 18px; }
.albumHead { text-align: center; padding: 18px 8px 6px; }
.albumSum { font-family: var(--serif); font-size: 15px; }
.albumSum b { font-family: var(--latin); font-size: 24px; font-weight: 500; margin-right: 2px; }
.albumSum span { color: var(--soft); font-size: 12px; }
.albumHint { font-size: 12px; color: var(--soft); line-height: 1.7; margin: 8px 0 10px; }
.ghostBtn.small { padding: 8px 12px; font-size: 12px; }
.spreadBox { padding: 14px 4px 6px; content-visibility: auto; contain-intrinsic-size: auto 260px; }
.spreadNo { display: flex; gap: 8px; align-items: baseline; padding: 0 2px 6px; }
.spreadNo b { font-family: var(--latin); font-weight: 500; font-size: 17px; }
.spreadNo span { font-size: 11px; color: var(--soft); }
.spreadPaper { position: relative; aspect-ratio: 26 / 10; background: #fff; box-shadow: 0 1px 0 var(--hair), 0 6px 18px #0000000f; }
.spreadPaper .gutter { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(#0000, #0000001f 20%, #0000001f 80%, #0000); pointer-events: none; }
/* 실제 앨범처럼 사진을 자르지 않고 칸 안에 맞춰 넣음 (가로 사진은 위아래 여백) */
.frame { position: absolute; overflow: hidden; background: transparent; cursor: pointer; }
.frame img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.frame.sel { outline: 3px solid var(--ink); outline-offset: -3px; z-index: 1; background: #00000008; }
.frame.sel::after { content: "선택됨"; position: absolute; left: 4px; top: 4px; background: var(--ink); color: #fff; font-size: 10px; padding: 1px 5px; }
.spreadTools { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px 0; }
.spreadTools button { font-size: 12px; color: #4a4741; padding: 6px 2px; }
.spreadTools em { font-style: normal; color: var(--soft); margin-left: 4px; font-variant-numeric: tabular-nums; }
.spreadTools .mv button { width: 32px; border: 1px solid var(--hair); margin-left: 6px; padding: 4px 0; }
.spreadTools button:disabled { opacity: .3; }
.albumSelBar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 8; display: flex; align-items: center; background: var(--ink); color: var(--paper); font-size: 12px; white-space: nowrap; }
.albumSelBar button { padding: 11px 12px; }
.albumSelBar .x { opacity: .7; }
.albumSelBar .main { font-weight: 600; border-right: 1px solid #ffffff33; }
.replaceNow { display: flex; align-items: center; gap: 10px; justify-content: center; margin: -2px 0 12px; font-size: 12px; color: var(--soft); }
.replaceNow img { height: 56px; outline: 2px solid var(--ink); }
.pickGrid { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 14px; }
.pickGrid::after { content: ""; flex-grow: 1e4; }
.pickThumb { position: relative; flex-grow: var(--r); flex-basis: calc(var(--r) * 70px); padding: 0; }
.pickThumb img { display: block; width: 100%; aspect-ratio: var(--r); object-fit: cover; }
.pickThumb.used img { opacity: .35; }
.pickThumb em { position: absolute; left: 4px; bottom: 4px; font-style: normal; font-size: 10px; color: var(--ink); background: #fffc; padding: 0 4px; }

/* ── 자유 배치 편집기 ── */
.spreadTools .lt { display: flex; gap: 16px; white-space: nowrap; }
.spreadTools .lt button[data-act="free"] { text-decoration: underline; text-underline-offset: 3px; }
#freeEd { position: fixed; inset: 0; z-index: 50; background: #1d1c1a; color: #f2efe9; display: grid; grid-template-rows: auto 1fr auto auto; touch-action: none; }
.feTop { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; font-family: var(--serif); font-size: 14px; }
.feTop button { padding: 6px 4px; font-size: 13px; }
.feTop .feDone { background: #f2efe9; color: #1d1c1a; padding: 7px 16px; }
.feStage { display: grid; place-items: center; min-height: 0; }
.fePaper { position: relative; background: #fff; box-shadow: 0 10px 30px #0006; }
.feGuides i { position: absolute; z-index: 5; pointer-events: none; }
.feGuides .gx { top: 0; bottom: 0; width: 1px; background: #e0475b; }
.feGuides .gy { left: 0; right: 0; height: 1px; background: #e0475b; }
.feFrame { position: absolute; cursor: move; touch-action: none; outline: 1px solid #0000; }
.feFrame:hover, .feFrame:active { outline-color: #1d1c1a55; }
.feFrame img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }
.feHandle { position: absolute; right: -11px; bottom: -11px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #1d1c1a; cursor: nwse-resize; touch-action: none; }
.feHandle::before { content: ""; position: absolute; inset: -10px; }
.feHint { text-align: center; font-size: 12px; color: #b9b4ab; line-height: 1.7; margin: 8px 16px; }
@media (orientation: landscape) { .feRotate { display: none; } }
.feBottom { display: flex; justify-content: center; gap: 10px; padding: 0 16px calc(14px + env(safe-area-inset-bottom)); }
.feBottom button { border: 1px solid #ffffff40; padding: 9px 14px; font-size: 12px; }
.ltBtn { border: 1px solid var(--ink) !important; padding: 7px 12px !important; color: var(--ink) !important; }
.freeTag { font-style: normal; font-size: 11px; color: var(--soft); align-self: center; }
.ltGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ltOpt { display: grid; gap: 4px; padding: 6px; border: 1px solid var(--hair); }
.ltOpt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ltOpt em { font-style: normal; font-size: 11px; color: var(--ink); }
.ltPaper { position: relative; display: block; aspect-ratio: 26 / 10; background: #fff; box-shadow: 0 1px 4px #0002; }
.ltPaper i { position: absolute; }
.ltPaper img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ltPaper b { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: #0000001a; }
.ltGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
.ltPaper u { position: absolute; inset: 6%; background: #e9e5de; text-decoration: none; }
.frame.empty { background: #f1eee8; outline: 1px dashed #b9b4ab; outline-offset: -4px; display: grid; place-items: center; }
.frame.empty span { font-size: 11px; color: var(--soft); }
.pickThumb.here { outline: 2px solid var(--ink); outline-offset: -2px; }
.pickThumb em.new { color: var(--mark); }
.ltGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
.ltPaper u { position: absolute; inset: 6%; background: #e9e5de; text-decoration: none; }
.ltOpt em.rec { color: var(--mark); }
.frame.empty { background: #f1eee8; outline: 1px dashed #b9b4ab; outline-offset: -4px; display: grid; place-items: center; }
.frame.empty span { font-size: 11px; color: var(--soft); }
.pickThumb.here { outline: 2px solid var(--ink); outline-offset: -2px; }
.pickThumb em.new { color: var(--mark); }

/* ── 사진 자르기 편집기 ── */
#cropEd { position: fixed; inset: 0; z-index: 50; background: #1d1c1a; color: #f2efe9; display: grid; grid-template-rows: auto 1fr auto auto auto; touch-action: none; }
.crStage { display: grid; place-items: center; min-height: 0; }
.crBox { position: relative; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px #ffffff55, 0 10px 30px #0006; touch-action: none; cursor: grab; }
.crBox img { position: absolute; pointer-events: none; user-select: none; }
.crZoom { display: flex; align-items: center; gap: 10px; padding: 4px 28px 10px; }
.crZoom input { flex: 1; accent-color: #f2efe9; }
.crZoom span { font-size: 18px; opacity: .7; }
.cropBtn { margin: 0 0 14px; }
/* 레이아웃 고르기 창: 견본이 화면 밖으로 넘치지 않게 */
.modalBox { overflow-x: hidden; }
.ltGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ltOpt { min-width: 0; width: 100%; box-sizing: border-box; }
.ltPaper { width: 100%; overflow: hidden; }
.ltPaper i { overflow: hidden; }
.pickGrid { min-width: 0; }
.ltPaper img.fill { object-fit: cover; }

/* ── 문구 ── */
.txt { position: absolute; z-index: 2; transform: translate(-50%, -50%); width: max-content; max-width: 46%; text-align: center; line-height: 1.35; letter-spacing: .03em; cursor: pointer; overflow-wrap: anywhere; }
#txtIn { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid var(--hair); font-family: var(--serif); font-size: 15px; resize: none; background: #fff; margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chips button { border: 1px solid var(--hair); padding: 6px 10px; font-size: 12px; }
.chips button.on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.txtPrev { margin: 6px 0 4px; }
.txtPrev .spreadPaper { position: relative; aspect-ratio: 26 / 10; }
.spreadTools .lt button[data-act="text"] { text-decoration: underline; text-underline-offset: 3px; }

/* ── 보류한 사진 ── */
.heldBox { margin: 10px 4px 4px; padding: 12px; background: #f1eee8; }
.heldHead { display: grid; gap: 2px; margin-bottom: 8px; }
.heldHead b { font-family: var(--serif); font-weight: 400; font-size: 14px; }
.heldHead span { font-size: 11px; color: var(--soft); }
.heldRow { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.heldThumb { flex: none; padding: 0; }
.heldThumb img { height: 64px; display: block; }

/* 아이폰 사파리: 앨범 화면이 옆으로 넓어지며 칸이 틀어지던 문제 */
#grid { overflow-x: clip; }
.spreadPaper { overflow: hidden; }
.spreadBox, .spreadTools { max-width: 100%; }
/* 레이아웃 고르기 견본: 그리드 대신 두 칸씩 줄바꿈 */
.ltGrid { display: flex !important; flex-wrap: wrap; gap: 12px; }
.ltOpt { flex: 0 0 calc(50% - 6px); max-width: calc(50% - 6px); }
/* 자르기 편집기 버튼은 아래에 */
#cropEd { grid-template-rows: auto 1fr auto auto auto auto; }
.crTitle { justify-content: center; padding-top: calc(16px + env(safe-area-inset-top)); }
.crBtns { display: flex; gap: 10px; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); }
.crBtns button { flex: 1; padding: 13px; border: 1px solid #ffffff40; font-size: 14px; }
.crBtns .feDone { background: #f2efe9; color: #1d1c1a; border-color: #f2efe9; }
#cropEd .feBottom { padding-bottom: 12px; }
#cropEd { grid-template-columns: minmax(0, 1fr); overflow: hidden; }
#cropEd .crStage { overflow: hidden; }
/* 빈 칸: 점선 테두리를 칸 안쪽에 확실히 그림 (아이폰에서 아래가 잘려 보이던 문제) */
.frame.empty { display: block; background: transparent; outline: none; }
.frame.empty::before { content: ""; position: absolute; inset: 3px; border: 1px dashed #a9a39a; background: #f1eee8; box-sizing: border-box; }
.frame.empty span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; z-index: 1; }
.frame { box-sizing: border-box; }
.frame.empty { padding: 0; }   /* 목록 화면 ".empty" 안내문 여백(80px)이 빈 칸에도 붙어 칸이 길어지던 문제 */
/* 첫 장·마지막 장의 비는 면 */
.blankPage { position: absolute; top: 0; bottom: 0; width: 50%; background: repeating-linear-gradient(135deg, #f4f1eb 0 6px, #efebe4 6px 12px); display: grid; place-items: center; }
.blankPage.left { left: 0; } .blankPage.right { right: 0; }
.blankPage span { font-size: 11px; color: var(--soft); letter-spacing: .1em; }
.textOnlyBtn { width: 100%; margin: -4px 0 14px; }
.tab { white-space: nowrap; }
/* 데이터형 → 앨범형 안내 */
.upBanner { margin: 14px 4px 0; padding: 16px; background: #fff; border: 1px solid var(--ink); text-align: center; }
.upBanner b { font-family: var(--serif); font-weight: 500; font-size: 15px; }
.upBanner p { font-size: 13px; line-height: 1.7; color: #4a4741; margin: 6px 0 12px; }
.upBanner .submit { width: 100%; }
.upBanner.done { border-color: var(--hair); }
.upBanner.done p { margin-bottom: 0; }
/* 보류한 사진 · 대기 중인 하트 (나란히) */
.trays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 4px 4px; }
.tray { padding: 10px; background: #f1eee8; min-width: 0; }
.tray.wait { background: #fbeef0; }
.tray .heldThumb img { height: 52px; }
.trayEmpty { font-style: normal; font-size: 11px; color: var(--soft); padding: 14px 0; }
.pickThumb em.wait { color: #a3122a; }
.frame.slotText { display: grid; place-items: center; text-align: center; padding: 4%; box-sizing: border-box; }
.frame.slotText span { line-height: 1.4; letter-spacing: .03em; overflow-wrap: anywhere; }
.modeChips { margin-bottom: 4px; } .modeChips button { flex: 1; padding: 9px; font-size: 13px; }
/* 문구: 손글씨·색·크기·기울기 */
.colorRow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.colorRow .chips { margin-bottom: 0; }
.colorPick { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; border: 1px solid var(--hair); padding: 3px 8px; }
.colorPick input { width: 26px; height: 22px; border: 0; padding: 0; background: none; }
.txtRange { width: 100%; margin: 0 0 12px; accent-color: var(--ink); }
.addTitle em { font-style: normal; color: var(--soft); font-size: 12px; margin-left: 4px; }
.addTitle .linkBtn { font-size: 12px; margin-left: 8px; }
.chips[data-name="font"] button[data-v="pen"] { font-family: "Nanum Pen Script", cursive; font-size: 16px; }
.chips[data-name="font"] button[data-v="gaegu"] { font-family: "Gaegu", cursive; font-size: 14px; }
.chips[data-name="font"] button[data-v="brush"] { font-family: "Nanum Brush Script", cursive; font-size: 16px; }
.chips[data-name="font"] button[data-v="flower"] { font-family: "Gamja Flower", cursive; font-size: 14px; }
.chips[data-name="font"] button[data-v="script"] { font-family: "Dancing Script", cursive; font-size: 14px; }

/* ── 꾸미기: 스티커·배경·포스터 ── */
.pageBg { position: absolute; top: 0; bottom: 0; width: 50%; pointer-events: none; }
.stk { position: absolute; z-index: 2; display: block; line-height: 0; pointer-events: none; }
.stk svg { width: 100%; height: auto; display: block; overflow: visible; }
.spreadBox .stk { pointer-events: auto; cursor: pointer; }
#decoEd { position: fixed; inset: 0; z-index: 50; background: #1d1c1a; color: #f2efe9; display: grid; grid-template-rows: auto auto auto 1fr auto auto; grid-template-columns: minmax(0, 1fr); overflow: hidden; touch-action: none; }
.deItems { display: flex; gap: 6px; align-items: center; overflow-x: auto; padding: 0 12px 8px; min-height: 50px; touch-action: pan-x; scrollbar-width: none; }
.deItems::-webkit-scrollbar { display: none; }
.deItems .lbl { flex: none; font-size: 11px; color: #b9b4ab; margin-right: 2px; }
.deItems button { flex: none; width: 42px; height: 42px; border: 1px solid #ffffff30; border-radius: 8px; display: grid; place-items: center; overflow: hidden; padding: 3px; background: #2a2926; }
.deItems button.on { border-color: #f2efe9; box-shadow: 0 0 0 2px #e0475b; }
.deItems img, .deItems svg { width: 100%; height: 100%; object-fit: contain; }
.deItems .txtItem { width: auto; max-width: 110px; padding: 0 8px; }
.deItems .txtItem b { font-weight: 400; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 2px #0008; }
.deItems .bgItem { width: auto; padding: 0 8px; grid-auto-flow: column; gap: 4px; font-size: 10px; color: #b9b4ab; }
.deItems .bgItem i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #ffffff55; }
.deSel input[type=range] { touch-action: pan-x; }
.deTools { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 4px 10px 8px; }
.deTools button { border: 1px solid #ffffff40; padding: 8px 10px; font-size: 12px; }
#decoEd .crStage { overflow: hidden; }
.dePaper { position: relative; background: #fff; touch-action: none; }
.dePaper .ed, .dePaper [data-dt] { pointer-events: auto; cursor: move; }
.dePaper .stk.on, .dePaper .txt.on { outline: 1.5px dashed #e0475b; outline-offset: 3px; }
.deSel { padding: 8px 16px 10px; height: 200px; overflow-y: auto; overscroll-behavior: contain; }   /* 높이 고정: 고른 것이 바뀌어도 사진 자리가 움직이지 않게 */
.deHint { font-size: 12px; color: #b9b4ab; text-align: center; margin: 6px 0 8px; }
.deRow { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; }
.deRow > span:first-child { width: 58px; color: #b9b4ab; flex: none; }
.deRow input[type=range] { flex: 1; accent-color: #f2efe9; }
.deRow.btns { justify-content: center; }
.deRow.btns button { border: 1px solid #ffffff40; padding: 8px 14px; }
.deRow .danger { color: #ff9aa6; }
.deCols { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.deCols button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #ffffff55; }
.deCols button.on { box-shadow: 0 0 0 2px #f2efe9; }
.deCols button.none { width: auto; border-radius: 0; padding: 0 8px; font-size: 11px; height: 24px; }
#decoEd .colorPick { color: #f2efe9; border-color: #ffffff40; }
.stkGrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.stkGrid button { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 1px solid #ffffff30; color: #f2efe9; }
.stkGrid svg { width: 28px; height: 28px; }
.stkGrid span { font-size: 10px; color: #b9b4ab; }
.posterGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.posterGrid button { padding: 14px 6px; border: 1px solid #ffffff40; font-size: 17px; color: #f2efe9; }
#decoEd .chips button { color: #f2efe9; border-color: #ffffff40; }
#decoEd .chips button.on { background: #f2efe9; color: #1d1c1a; }
.spreadTools .lt { gap: 12px; }
.spreadTools .lt button[data-act="deco"] { text-decoration: underline; text-underline-offset: 3px; }
@media (orientation: landscape) and (max-height: 500px) {
  .deSel { height: 34svh; }
  .deItems { min-height: 40px; padding-bottom: 4px; } .deItems button { width: 34px; height: 34px; }
  #decoEd .crTitle { padding-top: 6px; padding-bottom: 2px; }
  #decoEd .crBtns { padding-bottom: 8px; } #decoEd .crBtns button { padding: 8px; }
}
.pBorder { position: absolute; pointer-events: none; z-index: 1; }
.slotTools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.swatchBtn { width: 30px; height: 30px; padding: 0 !important; background: var(--sw) !important; border: 1px solid #0002 !important; }
.swatchBtn.on { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }
.shadowChk { display: block; font-size: 13px; margin: 4px 0 6px; }
/* 누끼 사진 */
.stk.cut img { width: 100%; height: auto; display: block; pointer-events: none; }
.stk.cut.pending { aspect-ratio: 3 / 4; border: 1px dashed #ffffffaa; background: #0003; display: grid; place-items: center; }
.stk.cut.pending span { font-size: 10px; color: #fff; text-shadow: 0 1px 2px #0008; text-align: center; padding: 4px; }
.cutGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
.cutGrid button { position: relative; padding: 0; aspect-ratio: 1; overflow: hidden; }
.cutGrid img { width: 100%; height: 100%; object-fit: cover; }
.cutGrid em { position: absolute; left: 2px; bottom: 2px; font-style: normal; font-size: 9px; background: #000a; color: #fff; padding: 0 3px; }
/* 내 사진 올리기 */
.mySec { margin: 14px 4px 6px; padding: 12px; background: #fff; border: 1px solid var(--hair); }
.myHead { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.myHead div { display: grid; gap: 2px; }
.myHead b { font-family: var(--serif); font-weight: 500; font-size: 15px; }
.myHead span { font-size: 11px; color: var(--soft); }
.myHead .submit { flex: none; padding: 10px 14px; }
.mySec .rows { margin-top: 10px; }
/* 컬러 스티커 */
.stk.emo img { width: 100%; height: auto; display: block; pointer-events: none; filter: drop-shadow(0 1px 2px #0003); }
.stkTabs { margin-bottom: 8px; flex-wrap: nowrap; overflow-x: auto; }
.stkTabs button { white-space: nowrap; }
.stkGrid img { width: 34px; height: 34px; }
.stkGrid { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); max-height: 30svh; overflow-y: auto; }
/* 언어 고르기 (오른쪽 위) */
#langBox { position: fixed; top: calc(8px + env(safe-area-inset-top)); right: 10px; z-index: 12; font-size: 12px; }
#langBtn { background: color-mix(in srgb, var(--paper) 90%, transparent); border: 1px solid var(--hair); padding: 5px 9px; color: var(--ink); }
#langBtn span { font-size: 9px; color: var(--soft); }
#langList { position: absolute; right: 0; top: 30px; background: var(--paper); border: 1px solid var(--hair); box-shadow: 0 6px 20px #0002; display: grid; min-width: 120px; }
#langList button { text-align: left; padding: 9px 12px; font-size: 13px; }
#langList button:hover { background: #f1eee8; }
@media (max-width: 699px) { .top .topInner { padding-right: 70px; padding-left: 70px; } }
html[lang="my"] body { font-family: "Myanmar Sangam MN", "Noto Sans Myanmar", var(--sans); }
/* 한글이 글자 중간에서 줄바꿈되지 않게 (예: "사진 대신 문 / 구 넣기") */
body { word-break: keep-all; overflow-wrap: break-word; }
.sheetBtns > * { min-width: 0; }
.ghostBtn, .submit { word-break: keep-all; }
.pickThumb em { white-space: nowrap; }
/* 창은 화면 위쪽부터 보이게 (위가 브라우저 주소창에 가려지지 않게 여백) */
.modal { place-items: start center; padding-top: calc(20px + env(safe-area-inset-top)); padding-bottom: 90px; }
.modalBox { max-height: calc(100svh - 130px); }
/* 칸 고르기 창 아래 버튼 한 줄 */
.sheetBtns.oneLine { flex-wrap: nowrap; gap: 6px; }
.sheetBtns.oneLine > * { flex: 1 1 0; padding: 11px 4px; font-size: 12px; letter-spacing: 0; white-space: nowrap; }
/* 문구 창: 미리보기를 위에 고정 */
.txtPrev.sticky { position: sticky; top: -28px; z-index: 3; background: var(--paper); margin: -6px -18px 10px; padding: 8px 18px 6px; box-shadow: 0 6px 10px -8px #0003; }
.txtPrev.sticky .txt { cursor: grab; touch-action: none; outline: 1px dashed #e0475b88; outline-offset: 2px; }
#txtPrevPaper { touch-action: none; }
.prevHint { font-size: 11px; color: var(--soft); text-align: center; margin: 5px 0 0; }
.sheetBtns.oneLine { position: sticky; bottom: -22px; background: var(--paper); margin: 0 -18px -22px; padding: 10px 18px 16px; box-shadow: 0 -6px 10px -8px #0003; }
/* 축가 카드 (음악 플레이어 모양) — 글자 크기는 카드 너비에 맞춰 em 으로 */
.stk.music { line-height: 1.35; display: grid; justify-items: center; gap: .55em; padding: .9em .6em; text-align: center; font-family: "Noto Serif KR", serif; color: #3a3632; font-style: normal; }
.stk.music.card { background: color-mix(in srgb, var(--cbg, #fff) var(--cop, 85%), transparent); border-radius: .8em; box-shadow: 0 .2em .8em #0001; }
.stk.music .mT { font-family: "Cormorant Garamond", "Noto Serif KR", serif; font-weight: 500; font-size: 1.45em; color: var(--mc); letter-spacing: .02em; }
.stk.music .mT small { font-family: "Noto Serif KR", serif; font-size: .55em; margin-left: .4em; opacity: .85; }
.stk.music .mBar { position: relative; width: 62%; height: .12em; background: color-mix(in srgb, var(--mc) 30%, #fff); border-radius: 1em; color: var(--mc); }
.stk.music .mBar i { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background: var(--mc); border-radius: 1em; }
.stk.music .mBar svg { position: absolute; left: 38%; top: 50%; width: .8em; height: .8em; transform: translate(-50%, -50%); }
.stk.music .mL { font-size: .78em; padding: .15em .7em; white-space: nowrap; min-height: 1.3em; }
.stk.music .mL.on { background: color-mix(in srgb, var(--mc) 22%, #fff); color: var(--mc); }
.stk.music .mBtn { display: flex; gap: 2.2em; color: color-mix(in srgb, var(--mc) 70%, #fff); margin-top: .2em; }
.stk.music .mBtn svg { width: .85em; height: .85em; }
.deItems .mIco { font-size: 22px; color: #f2c6d4; line-height: 1; }
.deTxt { flex: 1; min-width: 0; background: #2a2926; border: 1px solid #ffffff30; color: #f2efe9; padding: 7px 8px; font-size: 16px; border-radius: 4px; }
/* 손으로 쓰기 */
.dePaper .penLayer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 400; pointer-events: none; }
.stk.draw svg { width: 100%; height: auto; overflow: visible; }
.deFonts { display: flex; flex-wrap: wrap; gap: 5px; }
.deFonts button { border: 1px solid #ffffff40; padding: 5px 8px; font-size: 12px; color: #f2efe9; }
.deFonts button.on { background: #f2efe9; color: #1d1c1a; }
.deRow.btns button[disabled] { opacity: .4; }
.copVal { font-weight: 400; font-size: 12px; width: 38px; text-align: right; flex: none; }
.stk.music.card.dark { color: #f2efe9; }
/* 플라워샤워 */
.stk.shower svg { width: 100%; height: auto; display: block; overflow: visible; }
.palDots { display: inline-flex; margin-right: 4px; vertical-align: -2px; }
.palDots b { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #0002; margin-right: -3px; }
/* 선택한 사진: 사람별 보기 */
.pickFilter { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 12px 12px 4px; }
.pickFilter button { border: 1px solid var(--hair); border-radius: 999px; padding: 6px 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; background: #fff; }
.pickFilter button i { width: 9px; height: 9px; border-radius: 50%; background: var(--mc); }
.pickFilter button em { font-style: normal; color: var(--muted, #8b867e); font-size: 12px; }
.pickFilter button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pickFilter button.on em { color: #ffffffb0; }
/* 전체: 오른쪽 줄에 각자 본 곳 ✓ */
#seenRail { position: fixed; right: 0; top: 150px; bottom: 86px; width: 30px; z-index: 6; pointer-events: none; }
#seenRail .track { position: absolute; right: 6px; top: 0; bottom: 0; width: 2px; background: #0000000f; border-radius: 2px; }
#seenRail .track b { position: absolute; left: -2px; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #00000040; }
#seenRail .seenMark { position: absolute; right: 0; transform: translateY(-50%); pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--mc); color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; opacity: .92; text-align: center; box-shadow: 0 1px 4px #0003; padding: 0; }
#seenRail .seenMark span { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 10px; font-weight: 500; color: var(--mc); background: #fffd; padding: 1px 5px; border-radius: 6px; opacity: 0; transition: opacity .2s; }
#seenRail .seenMark:hover span, #seenRail .seenMark:focus span { opacity: 1; }
.resumeBar { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 20; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 16px; font-size: 13px; display: flex; gap: 10px; align-items: center; box-shadow: 0 4px 14px #0003; white-space: nowrap; }
.resumeBar button { background: #fff; color: var(--ink); border-radius: 999px; padding: 5px 12px; font-size: 12px; }
.scene.forceShow { content-visibility: visible; }
/* 되돌리기 고르기 */
.snapList { display: grid; gap: 8px; margin: 12px 0; }
.snapItem { display: grid; gap: 3px; text-align: left; padding: 12px 14px; border: 1px solid var(--hair); background: #fff; }
.snapItem b { font-weight: 500; font-size: 15px; }
.snapItem span { font-size: 12px; color: var(--muted, #8b867e); }
.snapItem.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
/* 메뉴 순서: 전체 → 선택한 사진 → 앨범 만들기 | 이용 안내 */
.tabs .tab { position: relative; }
.tabs .tab[data-view="picked"]::before, .tabs .tab[data-view="album"]:not([hidden])::before, .tabs .tab.help::before { position: absolute; left: -12px; top: 8px; transform: translateX(-50%); color: #b9b4ab; font-size: 11px; pointer-events: none; }
.tabs .tab[data-view="picked"]::before, .tabs .tab[data-view="album"]:not([hidden])::before { content: '→'; left: -9px; }
.tabs .tab.help::before { content: ''; top: 11px; height: 12px; width: 1px; background: #d6d1c8; left: -9px; transform: none; }
.albumFee { max-width: 360px; margin: 10px auto 14px; border: 1px solid var(--hair); background: #fff; padding: 6px 14px; text-align: left; }
.feeRow:last-child { border-bottom: 0; }
.feeRow { display: grid; grid-template-columns: 1fr auto 76px; gap: 10px; align-items: baseline; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--hair); }
.feeRow .q { color: var(--soft); text-align: right; }
.feeRow .q small { display: block; font-size: 10.5px; color: #a8a29a; margin-top: 1px; }
.feeRow b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.feeRow.sum { border-bottom: 0; padding-top: 9px; font-size: 14px; }
.feeRow.sum b { font-weight: 700; }
#decoEd .crTitle { display: grid; justify-items: center; gap: 2px; }
.deFee { font-size: 11px; color: #b9b4ab; letter-spacing: 0; }
.deFee.paid { color: #f2c6d4; }
.helpFee { display: block; margin-top: 8px; font-size: 12.5px; color: var(--soft); line-height: 1.6; }
.pickSec { font-size: 13px; font-weight: 600; margin: 14px 0 6px; display: flex; gap: 6px; align-items: baseline; }
.pickSec b { color: var(--ink); }
.pickSec span { font-weight: 400; font-size: 11.5px; color: var(--soft); }
.pickSec.held { color: #b4515c; }
.pickSec + .pickGrid { margin-bottom: 4px; }
/* 펼침 아래 도구: 왼쪽 면 / 오른쪽 면 */
.spreadTools { flex-wrap: nowrap; gap: 6px; }
.spreadTools .lt.half { flex: 1; display: flex; gap: 10px; justify-content: center; min-width: 0; }
.spreadTools .lt.half.L { border-right: 1px solid var(--hair); }
.spreadTools .lt.half.onlyR { margin-left: 50%; }
.spreadTools .lt.half.onlyL { margin-right: auto; flex: 0 0 50%; }
.spreadTools .lt.half button { text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.spreadTools .lt.half .ltBtn { text-decoration: none; border: 1px solid #1d1c1a; padding: 4px 8px; }
.ltPaper.half { aspect-ratio: 13 / 10; }
.ltOpt.half { min-width: 0; }
/* 레이아웃 고르기 위쪽: 비율 · 여백 */
.ltBar { position: sticky; top: -22px; z-index: 2; background: var(--paper); margin: 0 -18px 6px; padding: 8px 18px 10px; display: grid; gap: 8px; justify-items: center; box-shadow: 0 6px 10px -8px #0002; }
.ratioRow { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ratioRow button { position: relative; border: 1px solid var(--hair); background: #fff; padding: 6px 11px; font-size: 13px; font-variant-numeric: tabular-nums; }
.ratioRow button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ratioRow button i { position: absolute; top: -8px; right: -6px; font-style: normal; font-size: 9.5px; background: #b4515c; color: #fff; padding: 1px 4px; border-radius: 6px; }
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg button { padding: 6px 16px; font-size: 13px; background: #fff; }
.seg button.on { background: var(--ink); color: #fff; }
/* 펼침 아래 도구: 왼쪽 면 아래엔 왼쪽 것, 오른쪽 면 아래엔 오른쪽 것 (반씩) · 위아래 화살표는 번호 옆 */
.spreadTools { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0; padding: 8px 0 0; }
.spreadTools .lt.half { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 2px 4px; border: 0 !important; margin: 0 !important; flex: none !important; }
.spreadTools .lt.half.L { border-right: 1px solid var(--hair) !important; }
.spreadTools .lt.half .ltBtn { padding: 5px 10px; }
.spreadNo { display: flex; align-items: baseline; gap: 6px; }
.spreadNo .mv { margin-left: auto; display: flex; gap: 6px; }
.spreadNo .mv button { width: 34px; border: 1px solid var(--hair); padding: 3px 0; font-size: 13px; background: #fff; }
.spreadNo .mv button:disabled { opacity: .3; }
.albumSum .selN { font-family: 'Cormorant Garamond', serif; letter-spacing: .14em; font-size: .8em; }
.deFee { display: none; }
.helpFee b.t { display: block; color: var(--ink); margin-bottom: 2px; }
/* 앨범 만들기 제목 숫자: 높이가 고른 숫자 */
.albumSum b { font-family: var(--serif) !important; font-variant-numeric: lining-nums tabular-nums; font-size: 21px !important; font-weight: 600 !important; }
.albumSum .selN { font-family: var(--serif) !important; letter-spacing: .12em; font-size: 12px; color: var(--soft); margin-left: 2px; }
/* 내 사진 넣기 안내 */
.myNote { display: block; margin-top: 6px; font-size: 11.5px; line-height: 1.6; color: #8b867e; }
.upRules { margin: 8px 0 14px; padding-left: 0; list-style: none; display: grid; gap: 10px; font-size: 13.5px; line-height: 1.6; }
.upRules li { background: #fff; border: 1px solid var(--hair); padding: 10px 12px; }
.upAgree { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 14px; margin-bottom: 6px; }
.upAgree input { width: 18px; height: 18px; accent-color: var(--ink); }
#help.must .modalBox [data-close] { position: sticky; bottom: -22px; box-shadow: 0 -8px 14px -6px var(--paper); }
#langBtn { display: inline-flex; align-items: center; gap: 5px; }
#langBtn .globe { width: 15px; height: 15px; color: #6b665e; flex: none; }
#langBtn .langName { font-weight: 400; }
.helpFee .hl { display: block; }
#help .modalBox { position: relative; }
.helpLang { position: absolute; top: 12px; right: 12px; z-index: 3; }
.helpLang .langList2 { position: absolute; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid var(--hair); box-shadow: 0 6px 16px #0002; display: grid; min-width: 130px; }
.helpLang .langList2 button { text-align: left; padding: 8px 12px; font-size: 13px; }
.helpLang .langList2 button.on { font-weight: 700; }
.helpLang > button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--hair); background: #fff; padding: 5px 9px; font-size: 12.5px; }
.helpLang .globe { width: 14px; height: 14px; color: #6b665e; }
.helpCount .hl { display: block; }
.helpCount .hl.big { font-weight: 600; }
.sheetText .hl { display: block; }
.helpCount .dataNote { font-size: 12px; color: var(--soft); margin-top: 2px; font-weight: 400; }
.payBox { margin: 14px 0 4px; border: 1px solid var(--hair); background: #fff; padding: 10px 14px; text-align: left; }
.payBox.short { margin: 8px auto 0; max-width: 420px; }
.payRow { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; }
.payRow span { color: var(--soft); width: 64px; flex: none; font-size: 13px; }
.payRow b { font-weight: 600; font-variant-numeric: tabular-nums; }
.copyBtn { margin-left: auto; border: 1px solid var(--ink); padding: 3px 10px; font-size: 12px; background: #fff; }
.payNote { font-size: 12px; color: var(--soft); margin: 6px 0 0; line-height: 1.5; }
.paidOk { color: #3d7a4f; font-weight: 600; }
.notice .hl { display: block; }
body.proofing .spreadBox { content-visibility: visible !important; }
body.proofing .frame.empty span { visibility: hidden; }
.proofBtn { margin-left: 6px; }
.pcTip { color: #7a4a3e; }
.myNote .hl { display: block; }
.upRules .strong { font-weight: 700; }
.spreadPaper .blankPage, .dePaper .blankPage { z-index: 450; pointer-events: none; flex-direction: column; gap: 4px; }
.blankPage { display: grid; align-content: center; justify-items: center; }
.blankPage small { font-size: 9.5px; color: #a8a29a; }

/* 구역 버튼 */
.zoneBar { display: flex; gap: 8px; overflow-x: auto; padding: 14px 6px 6px; scrollbar-width: none; }
.zoneBar::-webkit-scrollbar { display: none; }
.zoneBar button { flex: none; padding: 8px 14px; border: 1px solid var(--hair); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; cursor: pointer; }
.zoneBar button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.zoneBar em { font-style: normal; font-size: 11px; opacity: .65; margin-left: 2px; }
.sceneHead b.zn { font-family: inherit; font-size: 17px; font-weight: 600; }
/* 변경 기록 */
.actList { max-height: 50vh; overflow-y: auto; margin-bottom: 14px; text-align: left; }
.actRow { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--hair); font-size: 13px; }
.actRow img, .actRow > i { width: 44px; height: 44px; flex: none; object-fit: cover; border-radius: 4px; background: #f1eee8; }
.actRow small { color: var(--soft); font-size: 11px; }
