@import url('/assets/editorial-templates.css');
@import url('/assets/reference-templates.css');
@import url("selected-templates.css");
@import url("photo50-templates.css");
@import url("template-type.css");
/* DURUDURU mockups — 조각보 작업대 (tool surfaces) + invitation templates */

/* Core fonts are self-hosted so an external stylesheet cannot block startup. */
@font-face{font-family:'Pretendard Variable';src:url('fonts/pretendard.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:'Gowun Batang';src:url('fonts/gowun-0.woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Gowun Batang';src:url('fonts/gowun-1.woff2');font-weight:700;font-display:swap}
@font-face{font-family:'Bodoni Moda';src:url('fonts/bodoni-1.woff2');font-weight:400 700;font-display:swap}
@font-face{font-family:'Bodoni Moda';src:url('fonts/bodoni-0.woff2');font-style:italic;font-weight:400 700;font-display:swap}
@font-face{font-family:'Nanum Pen Script';src:url('fonts/nanum-pen.ttf');font-display:swap}
@font-face{font-family:'Allura';src:url('fonts/allura.ttf');font-display:swap}

:root {
  /* ground: 모시 (warm neutral, not green-tinted) */
  --mosi: #F7F6F2;
  --mosi-2: #EDEBE4;
  --sheet: #FDFCFA;
  --ink: #1F2328;
  --ink-2: #555B63;
  --ink-3: #5F646B;
  --seam: #E4E1D8;
  --seam-strong: #C7C2B4;
  --focus: #2F5D62;
  --focus-tint: #ECE9E1;
  --danger: #A13A3A;
  --ok: #2E6B4F;

  /* 조각 colors: they identify the three versions, nothing else */
  --v-ko: #3B5B8C;      /* 쪽 */
  --v-en: #66798D;      /* 청회 */
  --v-parent: #A3445A;  /* 홍화 */

  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif-ko: "Gowun Batang", "Nanum Myeongjo", serif;
  --hand: "Nanum Pen Script", cursive;
  --serif-en: "Bodoni Moda", "Didot", serif;

  --r: 3px;
  --t-fast: 180ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mosi);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
::selection { background: color-mix(in srgb, var(--v-ko) 24%, transparent); color: var(--ink); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
input, textarea { caret-color: var(--focus); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

* { scrollbar-width: thin; scrollbar-color: var(--seam-strong) transparent; }

svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 14px; height: 14px; }
svg.i.lg { width: 22px; height: 22px; }

/* ---------- app bar ---------- */
.appbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  height: 56px; padding: 0 24px;
  background: var(--mosi);
  border-bottom: 1px solid var(--seam);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 1.0625rem; white-space: nowrap; }
.brand .logo { display: block; height: 28px; width: auto; flex: none; }
.brand small { font-weight: 500; color: var(--ink-3); font-size: 0.8125rem; letter-spacing: 0; }
.steps { display: flex; align-items: center; gap: 2px; margin: 0 0 0 8px; list-style: none; padding: 0; }
.steps li { display: flex; align-items: center; }
.steps a {
  display: flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: var(--r);
  text-decoration: none; color: var(--ink-3); font-size: 0.8125rem; font-weight: 500; white-space: nowrap;
}
.steps a .n { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--seam-strong); display: grid; place-items: center; font-size: 0.6875rem; font-variant-numeric: tabular-nums; line-height: 1; }
.steps a:hover { background: var(--mosi-2); color: var(--ink); }
.steps a[aria-current="step"] { color: var(--ink); font-weight: 650; }
.steps a[aria-current="step"] .n { background: var(--ink); border-color: var(--ink); color: var(--mosi); }
.steps a.done { color: var(--ink-2); }
.steps a.done .n { background: var(--mosi-2); border-color: var(--seam); }
.steps .sep { width: 12px; height: 1px; background: var(--seam-strong); }
.appbar .spacer { flex: 1; }
.appbar .meta { font-size: 0.8125rem; color: var(--ink-3); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.appbar .meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.appbar .acts { display: flex; gap: 8px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--r);
  border: 1px solid var(--seam-strong); background: var(--sheet); color: var(--ink);
  font-size: 0.875rem; font-weight: 560; text-decoration: none; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:hover { background: #fff; border-color: var(--ink-3); }
.btn:active { background: var(--mosi-2); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--mosi); }
.btn.primary:hover { background: #343A41; border-color: #343A41; }
.btn.primary .price { padding-left: 10px; margin-left: 3px; border-left: 1px solid rgba(241,242,236,0.3); font-variant-numeric: tabular-nums; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--mosi-2); border-color: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 0.8125rem; gap: 5px; }
.btn.lg { height: 46px; padding: 0 20px; font-size: 0.9375rem; }
.btn.block { width: 100%; }

/* ---------- 조각 (version pieces) ---------- */
[data-v="ko"] { --c: var(--v-ko); }
[data-v="en"] { --c: var(--v-en); }
[data-v="parent"] { --c: var(--v-parent); }
.pdot { width: 9px; height: 9px; border-radius: 1px; background: var(--c); flex: none; display: inline-block; }

/* set bar: the pieces sewn into one cloth */
.setbar {
  display: flex; align-items: stretch;
  border: 1px solid var(--seam); background: var(--sheet); border-radius: var(--r);
  overflow: hidden;
}
.setbar .piece {
  position: relative; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  padding: 8px 12px 9px 14px; border: 0; text-align: left; color: var(--ink);
  background: color-mix(in srgb, var(--c) 6%, var(--sheet));
  transition: background var(--t-fast) var(--ease);
}
.setbar .piece + .piece { border-left: 1px dashed var(--seam-strong); }
.setbar .piece + .piece::before {
  content: ""; position: absolute; left: 4px; top: 7px; bottom: 7px; width: 1px;
  background: repeating-linear-gradient(180deg, var(--seam-strong) 0 3px, transparent 3px 6px);
}
.setbar .piece:hover { background: color-mix(in srgb, var(--c) 12%, var(--sheet)); }
.setbar .piece[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 17%, var(--sheet)); }
.setbar .piece .t { display: flex; align-items: center; gap: 7px; font-size: 0.8125rem; font-weight: 650; white-space: nowrap; overflow: hidden; }
.setbar .piece .s { font-size: 0.75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setbar .piece .badge { font-size: 0.6875rem; font-weight: 600; color: var(--ink-2); border: 1px solid var(--seam-strong); border-radius: 2px; padding: 0 4px; line-height: 16px; }
.setbar .piece .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease); }
.setbar .piece[aria-pressed="true"] .bar { transform: scaleX(1); }

/* signature: a fresh stitch travels piece to piece when the source changes */
.setbar .piece .sew {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 9px);
  clip-path: inset(0 100% 0 0); opacity: 0;
}
.setbar .piece.sewing { background: color-mix(in srgb, var(--c) 15%, var(--sheet)); }
.setbar .piece.sewing .sew { animation: sew 620ms var(--ease) forwards; }
.setbar .piece .synced { font-size: 0.6875rem; color: var(--ink-2); font-weight: 600; opacity: 0; transition: opacity 200ms var(--ease); }
.setbar .piece.sewing .synced { opacity: 1; }
@keyframes sew {
  0% { clip-path: inset(0 100% 0 0); opacity: 1; }
  65% { clip-path: inset(0 0 0 0); opacity: 1; }
  100% { clip-path: inset(0 0 0 0); opacity: 0; }
}

/* ---------- phone frame ---------- */
.phone {
  --pw: 375px; --ph: 720px;
  position: relative; width: calc(var(--pw) + 18px); height: calc(var(--ph) + 18px);
  padding: 9px; border-radius: 46px; background: #16191D;
  flex: none;
}
.phone .screen { width: var(--pw); height: var(--ph); border-radius: 37px; overflow: hidden; background: #fff; position: relative; }
.phone .screen .scroll { height: 100%; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; }
.phone .screen .scroll::-webkit-scrollbar { display: none; }
.phone .island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #16191D; z-index: 5; }

/* scaled invitation (thumbnails) */
.mini { --s: 0.42; --mh: 700px; position: relative; width: calc(375px * var(--s)); height: calc(var(--mh) * var(--s)); overflow: hidden; border-radius: 8px; background: #fff; flex: none; box-shadow: 0 0 0 1px var(--seam); }
.mini > .inv { position: absolute; top: 0; left: 0; transform: scale(var(--s)); transform-origin: 0 0; pointer-events: none; }
/* Design cards (Notion 2026-11-13): one 2:3 frame; the continuation under a shorter cover fades into its paper. */
.mini[data-cont]::after{content:"";position:absolute;left:0;right:0;bottom:0;height:calc(var(--cont) * var(--s));background:linear-gradient(to bottom,transparent,var(--fade,#fff) 85%);pointer-events:none}

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > label, .field > .lab { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.input {
  width: 100%; height: 38px; padding: 0 11px; border-radius: var(--r);
  border: 1px solid var(--seam-strong); background: #fff; color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
textarea.input { height: auto; min-height: 112px; padding: 9px 11px; line-height: 1.65; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555B63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-tint); }
.input::placeholder { color: #6E7278; }
.hint { font-size: 0.75rem; color: var(--ink-3); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.seg { display: inline-flex; border: 1px solid var(--seam-strong); border-radius: var(--r); overflow: hidden; background: #fff; flex: none; }
.seg button { border: 0; background: transparent; height: 32px; padding: 0 11px; font-size: 0.8125rem; display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); white-space: nowrap; }
.seg button + button { border-left: 1px solid var(--seam); }
.seg button:hover { background: var(--mosi-2); color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--mosi); }

.switch { position: relative; width: 34px; height: 20px; border-radius: 20px; background: var(--seam-strong); border: 0; flex: none; transition: background var(--t-fast) var(--ease); padding: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform var(--t-fast) var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.switch[aria-checked="true"] { background: var(--focus); }
.switch[aria-checked="true"]::after { transform: translateX(14px); }

.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 2px; font-size: 0.75rem; font-weight: 600; background: var(--mosi-2); color: var(--ink-2); white-space: nowrap; }
.chip.ok { background: color-mix(in srgb, var(--ok) 12%, var(--sheet)); color: var(--ok); }

.sample-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--ink-3); }

/* ---------- page shells ---------- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.page-head { padding: 44px 0 26px; }
.page-head h1 { margin: 0; font-size: 1.75rem; line-height: 1.3; letter-spacing: -0.02em; font-weight: 720; text-wrap: balance; }
.page-head p { margin: 8px 0 0; color: var(--ink-2); max-width: 62ch; }

footer.foot { margin-top: 72px; padding: 20px 0 32px; border-top: 1px solid var(--seam); font-size: 0.75rem; color: var(--ink-3); }
footer.foot .wrap { display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: space-between; }

/* ================= INVITATION (output, 감성) ================= */
.inv { --paper: #FFFFFF; --inv-ink: #2B2A28; --inv-sub: #6B675F; --inv-accent: #6B7B63; --inv-line: #ECE8E0;
  width: 375px; background: var(--paper); color: var(--inv-ink); font-family: var(--serif-ko); font-size: 15px; line-height: calc(1.8 * var(--f-lh, 1)); text-align: center; }
.inv * { box-sizing: border-box; }
.inv .sec { padding: 60px 28px; }
.inv .sec + .sec { border-top: 1px solid var(--inv-line); }
.inv h3 { font-family: var(--serif-ko); font-weight: 700; font-size: 17px; margin: 4px 0 24px; letter-spacing: 0.02em; }
.inv p { margin: 0; }
.inv img { display: block; }
.inv .names { font-size: 21px; letter-spacing: 0.06em; }
.inv .names .amp { font-size: 13px; color: var(--inv-sub); margin: 0 10px; vertical-align: 3px; }
.inv .when { color: var(--inv-sub); font-size: 14px; line-height: 1.7; margin-top: 10px; }
.inv .phrase { font-size: 15px; line-height: 2.05; }
.inv .phrase cite { display: block; font-style: normal; font-size: 12px; color: var(--inv-sub); margin-top: 12px; }
.inv .greeting { font-size: 14.5px; line-height: 2.05; white-space: pre-line; }
.inv .family { margin-top: 32px; display: grid; gap: 6px; font-size: 15px; }
.inv .family .rel { color: var(--inv-sub); font-size: 13px; margin: 0 5px; }
.inv .family .who { font-weight: 700; }
.inv .intro { text-align: left; font-family: var(--font); font-size: 14px; line-height: 1.75; display: grid; gap: 16px; }
.inv .intro b { display: block; font-family: var(--serif-ko); font-size: 15px; margin-bottom: 4px; }
.inv .story { font-size: 14.5px; line-height: 2.05; white-space: pre-line; text-align: left; }
.inv .dec { display: inline-flex; align-items: center; gap: 1px; }
.inv .dec .kuk { width: 14px; height: 14px; margin-right: 1px; }
.inv .cal { margin: 0 auto; width: 266px; font-family: var(--font); font-size: 13px; }
.inv .cal .mon { font-family: var(--serif-ko); font-size: 15px; margin-bottom: 12px; }
.inv .cal table { width: 100%; border-collapse: collapse; table-layout: fixed; } /* 7 equal columns: the wedding-day circle must not widen its weekday */
.inv .cal th { font-weight: 500; color: var(--inv-sub); font-size: 11px; padding-bottom: 6px; }
.inv .cal td { height: 33px; font-variant-numeric: tabular-nums; }
.inv .cal .sun { color: #B0574F; }
.inv .cal td.on span { display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--inv-accent); color: #fff; font-weight: 600; }
.inv .dday { margin-top: 18px; font-size: 14px; color: var(--inv-sub); font-family: var(--font); }
.inv .dday b { color: var(--inv-ink); font-variant-numeric: tabular-nums; }
.inv .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.inv .gallery img { width: 100%; aspect-ratio: 3/4; object-fit: contain; background: var(--paper); }
.inv .map { margin: 0 -28px 20px; }
.inv .map svg { display: block; width: 100%; height: auto; }
.inv .venue { font-size: 17px; font-weight: 700; }
.inv .addr { font-family: var(--font); font-size: 13px; color: var(--inv-sub); margin-top: 4px; }
.inv .navs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 16px; font-family: var(--font); }
.inv .navs span { border: 1px solid var(--inv-line); border-radius: 4px; padding: 8px 0; font-size: 12.5px; }
.inv .ways { text-align: left; margin-top: 24px; font-family: var(--font); font-size: 13px; display: grid; gap: 12px; }
.inv .ways b { display: block; font-size: 13px; margin-bottom: 2px; }
.inv .ways span { color: var(--inv-sub); line-height: 1.6; }
.inv .acc { font-family: var(--font); text-align: left; display: grid; gap: 8px; }
.inv .acc .grp { border: 1px solid var(--inv-line); border-radius: 6px; overflow: hidden; }
.inv .acc .grp > .hd { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-size: 14px; font-weight: 600; background: color-mix(in srgb, var(--inv-line) 35%, var(--paper)); }
.inv .acc .line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; font-size: 13px; border-top: 1px solid var(--inv-line); }
.inv .acc .line small { display: block; color: var(--inv-sub); font-size: 12px; font-variant-numeric: tabular-nums; }
.inv .acc .copy { font-size: 12px; border: 1px solid var(--inv-line); border-radius: 4px; padding: 4px 9px; color: var(--inv-sub); white-space: nowrap; }
.inv .rsvp { font-family: var(--font); }
.inv .rsvp p { font-size: 14px; color: var(--inv-sub); }
.inv .rsvp .btnx { display: block; width: 100%; margin-top: 20px; padding: 14px 0; border-radius: 6px; background: var(--inv-ink); color: var(--paper); font-size: 14px; font-weight: 600; }
.inv .foot { padding: 36px 28px 52px; font-family: var(--font); font-size: 12px; color: var(--inv-sub); display: grid; gap: 10px; }
.inv .share2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.inv .share2 span { border: 1px solid var(--inv-line); border-radius: 4px; padding: 10px 0; color: var(--inv-ink); font-size: 13px; }
.inv .knot { display: block; margin: 0 auto; width: 132px; height: 132px; }

/* no-photo covers: base spacing, overridden per design below */
.inv .cover.nophoto { padding: 84px 28px 52px; }
.inv .cover.nophoto .names { margin-top: 30px; }

/* 12 template designs (req/c11eb879, 2026-09-29) — apply to the 한글·영문 pieces only.
   부모님용 keeps its own plain theme below and borrows just the accent (see invStyle()
   in app.js). Each design belongs to exactly one photo-style category and has its own
   cover layout — frame shape, photo size/position, margins, name/date placement — not
   just a different color or font. Sections below the cover (h3, .sec, etc.) share the
   base .inv rules and simply pick up each design's --paper/--inv-ink/--inv-accent. */

/* ---- 인물 중심: three different photo frames, full body/faces never cropped.
   Each frame is sized to fill the whole first screen (~700px, the gallery/미리보기/
   07-compare box) — the extra height goes into a taller photo + generous mat, not
   left blank below. ---- */
/* 여백 초상 — no frame: the photo bleeds off the right edge, the names shrink to a one-line caption above it */
/* 여백 초상 (req/f70b3757 재설계) — 참고 01·10·15의 비율: 사진이 화면의 약 62%, 위쪽 끝까지 닿고, 글자는 아래 28%에 모은다. 이름은 작게, 날짜 숫자만 크게. 장식·테두리 없음. */
.d-portrait-mat { --paper: #EFECE6; --inv-ink: #2A2826; --inv-sub: #6E6A62; --inv-accent: #6B7B63; --inv-line: #DEDAD2; }
.d-portrait-mat .cover.pmat { display: flex; flex-direction: column; min-height: 700px; padding: 0 0 44px; text-align: left; }
.d-portrait-mat .cover img { display: block; width: 100%; flex: 1 1 auto; min-height: 440px; height: 0; object-fit: cover; object-position: 18% 88%; }
.d-portrait-mat .cover .names { font-family: var(--font); font-size: 14px; font-weight: 500; letter-spacing: 0.22em; margin: 28px 28px 0; }
.d-portrait-mat .cover .names .amp { margin: 0 9px; font-size: 12px; letter-spacing: 0; color: var(--inv-sub); }
.d-portrait-mat .cover .pdate { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 18px; margin: 14px 28px 0; }
.d-portrait-mat .cover .pbig { font-family: var(--serif-en); font-weight: 400; font-size: 60px; line-height: 0.95; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.d-portrait-mat .cover .psmall { font-family: var(--font); font-size: 12.5px; line-height: 1.65; color: var(--inv-sub); text-align: right; font-variant-numeric: tabular-nums; }
/* 옥빛 세로결 — names stand as a vertical column beside a tall narrow photo, the date sits alone at the bottom */
.d-arch { --paper: #EDF0EA; --inv-ink: #2B322E; --inv-sub: #5F6963; --inv-accent: #56705F; --inv-line: #D9DFD4; }
.d-arch .cover.vcol { display: grid; grid-template-columns: 1fr 236px; padding: 56px 0 0; text-align: left; }
.d-arch .cover .vnames { display: flex; justify-content: center; padding-top: 6px; }
.d-arch .cover .vnames .names { writing-mode: vertical-rl; font-size: 27px; letter-spacing: 0.3em; line-height: 1.6; margin: 0; }
.d-arch .cover .vnames .names .amp { font-size: 12px; margin: 14px 0; letter-spacing: 0; }
.d-arch .cover img { width: 236px; height: 540px; object-fit: cover; object-position: 52% 60%; }
.d-arch .cover .vwhen { grid-column: 1 / -1; padding: 26px 28px 52px; font-family: var(--font); font-size: 13.5px; color: var(--inv-sub); font-variant-numeric: tabular-nums; }
.d-arch .cover .vwhen::before { content: ""; display: block; width: 36px; height: 1px; background: var(--inv-accent); margin-bottom: 14px; }
/* 밤빛 오버랩 — big names straddle the photo's lower edge on a dark mat */
.d-portrait-oval { --paper: #F3ECE4; --inv-ink: #2E2620; --inv-sub: #6B5B4E; --inv-accent: #7C5A46; --inv-line: #E4D8CB; }
.d-portrait-oval .cover.poverlap { position: relative; min-height: 700px; padding: 0 0 54px; background: #2A2320; color: #F3ECE4; text-align: left; }
.d-portrait-oval .cover.poverlap::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 530px; background: linear-gradient(180deg, rgba(42,35,32,0) 62%, rgba(42,35,32,0.9) 100%); pointer-events: none; }
.d-portrait-oval .cover img { width: 100%; aspect-ratio: 4/5.65; object-fit: cover; object-position: 50% 58%; }
.d-portrait-oval .cover .names { position: relative; margin: -46px 0 0; padding: 0 28px; font-size: 36px; letter-spacing: 0.03em; line-height: 1.35; color: #F3ECE4; }
.d-portrait-oval .cover .names .amp { color: #D9C3AE; font-size: 14px; margin: 0 12px; }
.d-portrait-oval .cover .when { padding: 0 28px; margin-top: 22px; color: rgba(243,236,228,0.72); font-size: 13.5px; }

/* ---- 배경 중심: wide/full-bleed, the space stays visible, decoration stays light.
   The extra height goes to the photo/space itself (taller photo, or a deliberate
   dark mat / wider paper section), never a blank leftover strip. ---- */
/* 슬레이트 시네마 — a film-slate info row (date | place) reads first, then a wide photo, then big names */
.d-scenery-cine { --paper: #F6F5F1; --inv-ink: #23262B; --inv-sub: #6B6F76; --inv-accent: #4E6178; --inv-line: #E6E4DC; }
.d-scenery-cine .cover.scine { padding: 52px 0 56px; background: #222932; color: #fff; text-align: left; }
.d-scenery-cine .cover .slate { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,0.32); border-bottom: 1px solid rgba(255,255,255,0.32); font-family: var(--font); font-size: 12.5px; letter-spacing: 0.08em; color: rgba(255,255,255,0.86); font-variant-numeric: tabular-nums; }
.d-scenery-cine .cover .slate span { padding: 14px 22px; }
.d-scenery-cine .cover .slate span + span { border-left: 1px solid rgba(255,255,255,0.32); }
.d-scenery-cine .cover img { width: 100%; height: 420px; object-fit: cover; object-position: 36% center; }
.d-scenery-cine .cover .names { padding: 30px 22px 0; margin: 0; font-size: 31px; letter-spacing: 0.04em; color: #fff; }
.d-scenery-cine .cover .names .amp { color: rgba(255,255,255,0.62); }
.d-scenery-cine .cover .when { padding: 0 22px; color: rgba(255,255,255,0.7); margin-top: 8px; }
/* 보리빛 들판 — the names sit in the photo's own empty sky; below the photo only the venue line */
/* 보리빛 들판 (req/f70b3757 재설계) — 참고 02·09·16: 사진이 카드 전체(100%), 사람은 작게 두고 비어 있는 하늘에 이름, 아래 가장자리에 날짜·장소 한 줄. */
.d-scenery-band { --paper: #F5F1E6; --inv-ink: #2B2620; --inv-sub: #8A7F63; --inv-accent: #7A6A3C; --inv-line: #E7DFC8; }
.d-scenery-band .cover.sband { position: relative; height: 700px; padding: 0; overflow: hidden; text-align: left; }
.d-scenery-band .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.d-scenery-band .cover .skytext { position: absolute; left: 28px; right: 28px; top: 64px; }
.d-scenery-band .cover .names { font-family: var(--serif-en), var(--serif-ko); font-weight: 400; font-size: 46px; line-height: 1.08; letter-spacing: 0; margin: 0; color: #2B2620; }
.d-scenery-band .cover .names .amp { display: block; font-size: 15px; letter-spacing: 0.1em; margin: 6px 0; color: #5B5440; }
.d-scenery-band .cover .bandbox { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 64px 28px 28px; background: linear-gradient(180deg, rgba(30,24,12,0) 0%, rgba(30,24,12,0.62) 100%); font-family: var(--font); font-size: 13px; line-height: 1.5; color: #fff; font-variant-numeric: tabular-nums; }
.d-scenery-band .cover .bandbox span:last-child { text-align: right; }
/* 청태 오픈필드 — true full-bleed photo filling the whole first screen, only a small corner tag (no heavy decoration) */
.d-scenery-tag { --paper: #EFF3F0; --inv-ink: #20302B; --inv-sub: #587067; --inv-accent: #3F6B5E; --inv-line: #D9E3DD; }
.d-scenery-tag .cover.stag { position: relative; padding: 0; }
.d-scenery-tag .cover .tagphoto { width: 100%; height: 700px; overflow: hidden; }
.d-scenery-tag .cover .tagphoto img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 46%; display: block; }
.d-scenery-tag .cover .tagbox { position: absolute; left: 20px; bottom: 24px; right: 20px; padding: 14px 18px; background: color-mix(in srgb, var(--paper) 88%, transparent); border: 1px solid var(--inv-accent); text-align: left; }
.d-scenery-tag .cover .tagbox .names { font-size: 18px; margin-top: 0; }
.d-scenery-tag .cover .tagbox .when { font-size: 13.5px; margin-top: 4px; }

/* ---- 셀프 & 야외무드: casual snapshot feel, movement and natural light.
   Photos here keep their full vertical extent (the couple is never cropped at
   head or foot) — the extra height comes from a bigger print/frame and more
   breathing room around it, not a blank gap. ---- */
/* 치자 앨범 페이지 — one big print and two small crops of it taped onto an album page */
.d-outdoor-tape { --paper: #F7F0EA; --inv-ink: #3A2E2A; --inv-sub: #76645C; --inv-accent: #A9624E; --inv-line: #E8D8CE; }
.d-outdoor-tape .cover.otape { padding: 52px 24px 54px; }
.d-outdoor-tape .cover .pic { position: relative; padding: 7px; background: #fff; box-shadow: 0 0 0 1px var(--inv-line); }
.d-outdoor-tape .cover .pic.big { transform: rotate(-1deg); }
.d-outdoor-tape .cover .pic.big img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 20% 30%; }
.d-outdoor-tape .cover .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.d-outdoor-tape .cover .pic.z1 { transform: rotate(1.4deg); }
.d-outdoor-tape .cover .pic.z2 { transform: rotate(-1deg); }
.d-outdoor-tape .cover .pic i { display: block; aspect-ratio: 1/1; background-repeat: no-repeat; }
.d-outdoor-tape .cover .pic.z1 i { background-size: 300%; background-position: 24% 75%; }
.d-outdoor-tape .cover .pic.z2 i { background-size: 230%; background-position: 4% 14%; }
.d-outdoor-tape .cover .tp { position: absolute; width: 50px; height: 15px; background: color-mix(in srgb, var(--inv-accent) 42%, transparent); }
.d-outdoor-tape .cover .tp.a { top: -8px; left: 18px; transform: rotate(-7deg); }
.d-outdoor-tape .cover .tp.b { top: -8px; right: 18px; transform: rotate(6deg); }
.d-outdoor-tape .cover .tp.c { top: -8px; left: 50%; margin-left: -25px; transform: rotate(3deg); }
.d-outdoor-tape .cover .handcap { font-family: var(--hand); font-size: 28px; margin-top: 24px; color: var(--inv-accent); transform: rotate(-1.5deg); }
.d-outdoor-tape .cover .names { margin-top: 6px; }
/* 물빛 겹쳐 찍기 — a wide shot with a small detail shot laid over its corner (no tilt), names left-aligned below */
.d-outdoor-tilt { --paper: #F4F1EA; --inv-ink: #2E2B27; --inv-sub: #6E6A62; --inv-accent: #5B7A8C; --inv-line: #E2DDD2; }
.d-outdoor-tilt .cover.otilt { padding: 56px 24px 56px; text-align: left; }
.d-outdoor-tilt .cover .stack { position: relative; padding-bottom: 100px; }
.d-outdoor-tilt .cover .stack .back { width: 80%; aspect-ratio: 4/5.4; object-fit: cover; object-position: 8% 30%; }
.d-outdoor-tilt .cover .stack .front { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1/1; border: 6px solid #fff; box-shadow: 0 0 0 1px var(--inv-line); background-repeat: no-repeat; background-size: 300%; background-position: 24% 75%; }
.d-outdoor-tilt .cover .sidecard { margin-top: 28px; }
.d-outdoor-tilt .cover .sidecard .names { font-size: 26px; margin-top: 0; }
.d-outdoor-tilt .cover .sidecard .when { margin-top: 10px; font-size: 14.5px; }
/* 귤빛 산책 — relaxed full-width snap with a hand-lettered note underneath, left-aligned */
/* 귤빛 산책 (req/f70b3757 재설계) — 참고 06·17·18: 사진 약 62%, 16px 여백, 손글씨 한 줄은 사진 안 초록 쪽에 흰색, 이름·날짜는 아래 왼쪽 정렬 캡션. */
.d-outdoor-note { --paper: #F3EFE6; --inv-ink: #2D2A25; --inv-sub: #756F63; --inv-accent: #8C6A3F; --inv-line: #E3DDCF; }
.d-outdoor-note .cover.onote { display: flex; flex-direction: column; min-height: 700px; padding: 16px 16px 40px; text-align: left; }
.d-outdoor-note .cover .notephoto { position: relative; width: 100%; flex: 1 1 auto; min-height: 470px; overflow: hidden; }
.d-outdoor-note .cover .notephoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 10% 18%; display: block; }
.d-outdoor-note .cover .scrawl3 { position: absolute; right: 18px; bottom: 16px; font-family: var(--hand); font-size: 40px; line-height: 1; color: #fff; }
.d-outdoor-note .cover .notebox { padding: 22px 12px 0; }
.d-outdoor-note .cover .names { margin: 0; text-align: left; font-family: var(--font); font-weight: 600; font-size: 22px; letter-spacing: 0.02em; }
.d-outdoor-note .cover .names .amp { font-weight: 400; font-size: 14px; margin: 0 8px; color: var(--inv-sub); }
.d-outdoor-note .cover .when { text-align: left; margin-top: 8px; font-family: var(--font); font-size: 13px; color: var(--inv-sub); }

/* ---- 사진 없음: typography only — with no photo to grow, the fix is scale, alignment
   and whitespace: bigger ornament/numerals/lettering and roomier margins fill the
   screen instead of a short block of text sitting on empty paper. ---- */
/* 매듭 표지 — names first, centered, ornament-led */
.d-type-emblem { --paper: #F7F6F2; --inv-ink: #242722; --inv-sub: #63695D; --inv-accent: #5E6E52; --inv-line: #E2E0D6; }
.d-type-emblem .cover.temblem { padding: 190px 28px 150px; }
.d-type-emblem .cover .knot { width: 190px; height: 190px; }
.d-type-emblem .cover.temblem .names { font-size: 27px; margin-top: 46px; }
.d-type-emblem .cover.temblem .when { font-size: 15px; margin-top: 16px; }
/* 슬레이트 헤드라인 — date first, left-aligned, bold numerals */
.d-type-date { --paper: #F3F2EE; --inv-ink: #22262C; --inv-sub: #5B6068; --inv-accent: #46586E; --inv-line: #DEE1E6; }
.d-type-date .cover.tdate { padding: 150px 30px 292px; text-align: left; }
.d-type-date .cover .tlabel { font-family: var(--font); font-size: 15px; font-weight: 700; letter-spacing: 0.28em; color: var(--inv-accent); text-transform: uppercase; }
.d-type-date .cover .bignum { font-family: var(--font); font-size: 96px; font-weight: 750; letter-spacing: -0.02em; line-height: 1; margin-top: 26px; white-space: nowrap; }
.d-type-date .cover .bignum span { color: var(--inv-accent); margin: 0 4px; }
.d-type-date .cover .names { font-family: var(--font); font-weight: 650; margin-top: 44px; text-align: left; font-size: 22px; }
.d-type-date .cover .when { text-align: left; font-size: 15px; margin-top: 14px; }
.d-type-date h3 { font-family: var(--font); font-weight: 700; letter-spacing: 0; }
/* 치자 손편지 — a short phrase first, hand-lettered, airy centered layout */
.d-type-note { --paper: #F8F1E9; --inv-ink: #3A2E27; --inv-sub: #7C695C; --inv-accent: #B06B4B; --inv-line: #EBDCCC; }
.d-type-note .cover.tnote { padding: 250px 30px 220px; }
.d-type-note .cover .scrawl4 { font-family: var(--hand); font-size: 62px; color: var(--inv-ink); transform: rotate(-2deg); margin-bottom: 10px; }
.d-type-note .cover.tnote .names { font-size: 17px; letter-spacing: 0.14em; color: var(--inv-sub); margin-top: 34px; }
.d-type-note .cover.tnote .when { margin-top: 14px; font-size: 14.5px; }

/* 부모님용: large, plain, hosts first */
.inv.v-parent { --paper: #FFFFFF; --inv-ink: #141B2A; --inv-sub: #3D4555; --inv-accent: #213A5C; --inv-line: #D8DDE5;
  font-family: var(--font); font-size: 19px; line-height: 1.75; }
.inv.v-parent .sec { padding: 44px 22px; }
.inv.v-parent .map { margin: 0 -22px 20px; }
.inv.v-parent h3 { font-family: var(--font); font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.inv.v-parent .cover { padding: 46px 22px 38px; }
.inv.v-parent .cover .lead { font-size: 18px; color: var(--inv-sub); }
.inv.v-parent .cover .head { font-family: var(--serif-ko); font-size: 40px; font-weight: 700; letter-spacing: 0.02em; margin: 4px 0 26px; line-height: 1.3; }
.inv.v-parent .cover .ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; margin-bottom: 26px; }
.inv.v-parent .hosts { display: grid; gap: 12px; font-size: 20px; }
.inv.v-parent .hosts .who { font-size: 24px; font-weight: 800; }
.inv.v-parent .hosts .rel { font-size: 17px; color: var(--inv-sub); margin: 0 4px; }
.inv.v-parent .bigwhen { margin-top: 28px; padding: 20px 10px; border-top: 2px solid var(--inv-ink); border-bottom: 2px solid var(--inv-ink); font-size: 22px; font-weight: 750; line-height: 1.55; font-variant-numeric: tabular-nums; }
.inv.v-parent .bigwhen small { display: block; font-size: 18px; font-weight: 500; color: var(--inv-sub); }
.inv.v-parent .greeting { font-size: 19px; line-height: 1.95; }
.inv.v-parent .acc .grp > .hd { font-size: 18px; padding: 16px; }
.inv.v-parent .acc .line { font-size: 18px; padding: 16px; }
.inv.v-parent .acc .line small { font-size: 16px; }
.inv.v-parent .acc .copy { font-size: 16px; padding: 9px 12px; }
.inv.v-parent .venue { font-size: 23px; }
.inv.v-parent .addr { font-size: 17px; }
.inv.v-parent .navs span { font-size: 16px; padding: 13px 0; }
.inv.v-parent .ways { font-size: 17px; }
.inv.v-parent .ways b { font-size: 17px; }
.inv.v-parent .rsvp p { font-size: 18px; }
.inv.v-parent .rsvp .btnx { font-size: 19px; padding: 18px 0; }
.inv.v-parent .foot { font-size: 15px; }
.inv.v-parent .share2 span { font-size: 17px; padding: 15px 0; }
.inv.v-parent .dday { font-size: 18px; }
.inv.v-parent .cal { width: 300px; font-size: 16px; }
.inv.v-parent .cal td { height: 38px; }
.inv.v-parent .cal td.on span { width: 34px; height: 34px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
@media (max-width: 1180px) { .steps { display: none; } }
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .appbar { padding: 0 16px; gap: 10px; }
  .appbar .meta, .brand small, .appbar .btn:not(.primary) { display: none; }
  .appbar .btn.primary .price { display: none; }
  .page-head { padding: 28px 0 18px; }
  .page-head h1 { font-size: 1.4rem; }
  .row2 { grid-template-columns: 1fr; }
}

/* the one division rule: 감침 솔기 (double running stitch) around every structural piece */
.sheet, .panel, .doc, .cloth, .flow, .cats, .box, .duo, .setbar, .cmp-card {
  border: 1px dashed var(--seam-strong) !important;
  outline: 1px dashed var(--seam); outline-offset: 3px;
}
.seam-split { border-color: var(--seam-strong) !important; border-style: dashed !important; }

/* req/08f555fc: font-pair tuning (letter-spacing) from fonts.js */
.inv .sec { letter-spacing: var(--f-ls, normal); }

/* req/08f555fc: font picker (editor) */
.fp-rec { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 12px; font-size: 0.875rem; color: var(--ink-2); }
.fontpick { margin-top: 8px; }
.fp-title { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.fp-list { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; padding: 2px; border: 1px solid var(--seam); border-radius: 10px; background: var(--paper-2, #fff); }
.fp-opt { display: grid; gap: 2px; text-align: left; padding: 9px 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; color: var(--ink); min-width: 0; }
.fp-opt:hover { background: var(--mosi-2, #eeece6); }
.fp-opt[aria-checked="true"] { border-color: var(--ink); background: var(--mosi-2, #eeece6); }
.fp-name { font-size: 0.8125rem; font-weight: 700; display: flex; gap: 6px; align-items: baseline; }
.fp-name em { font-style: normal; font-weight: 500; font-size: 0.6875rem; color: var(--ink-3); }
.fp-sample { font-size: 1.125rem; line-height: 1.4; overflow-wrap: anywhere; }
.fp-note { font-size: 0.6875rem; color: var(--ink-3); }

/* req/3e193462: in-preview photo editing */
.phone .selected-cover :is(.sc-photo,.ed-photo) { cursor: pointer; }
.phone .selected-cover > :not(.sc-photo):not(.ed-images):not(.pe-bar) { pointer-events: none; }
.selected-cover :is(.sc-photo,.ed-photo).pe-on { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; z-index: 5 !important; }
.selected-cover :is(.sc-photo,.ed-photo).pe-on.pe-drag { cursor: grabbing; }
.selected-cover :is(.sc-photo,.ed-photo).pe-on::after { content: ""; position: absolute; inset: 0; border: 2px dashed #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.45); pointer-events: none; }
.selected-cover :is(.sc-photo,.ed-photo).pe-on img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.pe-bar { position: absolute; z-index: 30; display: grid; gap: 4px; justify-items: center; padding: 6px 8px; border-radius: 12px; background: rgba(31,35,40,.92); color: #fff; font-family: var(--font); font-size: 11px; line-height: 1.3; letter-spacing: 0; text-align: center; touch-action: manipulation; }
.pe-bar * { font-family: var(--font); letter-spacing: 0; }
.pe-row { display: flex; gap: 6px; }
.pe-bar button { min-width: 40px; height: 36px; padding: 0 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: transparent; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.pe-bar button:hover { background: rgba(255,255,255,.14); }
.pe-bar .pe-done { background: #fff; color: #1F2328; border-color: #fff; }
.pe-hint { white-space: nowrap; opacity: .85; }

/* req/e2a9dc65: introduction portraits (optional) */
.inv .intro p { margin: 0; }
.inv .intro p.has-photo { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; }
.inv .intro .intro-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; display: block; }
.inv .intro p > span { display: block; min-width: 0; overflow-wrap: anywhere; }
.intro-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.ip-set { border: 1px solid var(--seam); border-radius: 10px; padding: 10px 12px 12px; margin: 0; min-width: 0; }
.ip-set legend { font-size: 0.875rem; font-weight: 600; padding: 0 4px; color: var(--ink-2); }
.ip-set .seg { display: flex; gap: 6px; flex-wrap: wrap; }
.ip-set .seg button { flex: 1 1 auto; height: 36px; padding: 0 10px; border: 1px solid var(--seam-strong); border-radius: 8px; background: transparent; font-size: 0.8125rem; cursor: pointer; color: var(--ink); }
.ip-set .seg button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.ip-body { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ip-thumb { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.ip-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ip-pick { cursor: pointer; }
@media (max-width: 560px) { .intro-photos { grid-template-columns: 1fr; } }
.inv .intro.some-photo p:not(.has-photo) { padding-left: 90px; }

/* req/50922df5: 두 사람 이야기 timeline */
.inv .tl { list-style: none; margin: 0 auto; padding: 0; text-align: left; position: relative; display: grid; gap: 26px; max-width: 290px; }
.inv .tl::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--inv-line, rgba(0,0,0,.2)); }
.inv .tl li { position: relative; padding-left: 28px; min-width: 0; }
.inv .tl li::before { content: ""; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--inv-accent, #26392e); box-shadow: 0 0 0 3px var(--paper, #fff); }
.inv .tl time { display: block; font-family: var(--font); font-size: 12px; letter-spacing: 0.06em; color: var(--inv-sub); margin-bottom: 3px; }
.inv .tl p { margin: 0; font-size: 15.5px; line-height: 1.6; font-weight: 600; color: var(--inv-ink); overflow-wrap: anywhere; word-break: keep-all; }
.tl-title { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.tl-edit { display: grid; gap: 8px; margin: 10px 0; }
.tl-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
@media (max-width: 560px) { .tl-row { grid-template-columns: 1fr auto; } .tl-row .tl-d { grid-column: 1 / -1; } }

/* req/270767a2: 사진첩 up to 42 photos */
.al-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.al-size { height: 38px; padding: 0 14px; border: 1px solid var(--seam-strong); border-radius: 999px; background: transparent; font-size: 0.875rem; font-weight: 600; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.al-size[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.al-size em { font-style: normal; font-size: 0.6875rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: #E9EFE4; color: #3B5A2E; }
.al-size[aria-checked="true"] em { background: #fff; }
.al-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 4px; }
.al-add { cursor: pointer; }
.al-add.is-disabled { opacity: .45; pointer-events: none; }
.al-msg { min-height: 1.2em; margin: 0 0 8px; color: var(--ink-2); }
.al-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 8px; }
.al-item { position: relative; margin: 0; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: var(--mosi-2); cursor: grab; min-width: 0; }
.al-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.al-item.is-drag { opacity: .4; }
.al-item.is-over { outline: 3px solid #C0392B; outline-offset: -3px; }
.al-n { position: absolute; left: 4px; top: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: rgba(31,35,40,.78); color: #fff; font-size: 11px; display: grid; place-items: center; }
.al-ctl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 2px; padding: 4px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.al-ctl button { min-width: 30px; height: 30px; border: 0; border-radius: 6px; background: rgba(255,255,255,.92); color: #1F2328; font-size: 12px; font-weight: 700; cursor: pointer; }
.al-ctl button { white-space: nowrap; padding: 0; }
.al-ctl [data-del] { color: #C0392B; }

/* req/808044e7: parent first screen = template photo stage (text hidden) + large parent lettering outside it */
.inv.v-parent .cover.pcover { padding: 46px 22px 38px; }
.inv.v-parent .pstage-wrap { position: relative; margin: 0 -22px 26px; height: var(--ph, 750px); overflow: hidden; }
.inv.v-parent .pstage { position: absolute; left: 0; top: calc(-1 * var(--pt, 0px)); width: 375px; pointer-events: none; }
.inv.v-parent .pstage .cover { padding: 0; margin: 0; }
.inv.v-parent .pstage :is(.sc-names, .sc-date, .sc-detail, .sc-title, .sc-year) { display: none !important; }

/* Account controls use the existing header on every service page. */
.account-navigation{display:flex;align-items:center;gap:12px;flex-shrink:0}
.account-navigation a,.account-navigation button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px;font:inherit;font-size:14px;font-weight:600;color:var(--ink);text-decoration:none;background:none;border:0;border-radius:var(--r);cursor:pointer}
.account-navigation a:hover,.account-navigation button:hover{background:var(--mosi-2)}
.account-navigation [aria-current=page]{text-decoration:underline;text-underline-offset:5px}
.account-navigation :focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.account-navigation button:disabled{color:var(--ink-2);cursor:wait}
.account-login{max-width:640px}.account-login .row-actions{margin-block:28px}
@media(max-width:760px){.has-account-navigation{flex-wrap:wrap;gap:8px}.has-account-navigation .spacer{display:none}.has-account-navigation .account-navigation{margin-left:auto}.appbar.has-account-navigation .l-nav{flex-wrap:wrap}.has-account-navigation .steps{order:3;flex-basis:100%}}
@media(max-width:1100px){.appbar.has-account-navigation{height:auto;min-height:56px;flex-wrap:wrap;padding-block:8px}.appbar.has-account-navigation .steps{order:3;flex-basis:100%;overflow-x:auto}}
body[data-page=manage-flow] .account-panel{padding-block:16px;margin-block:20px}
body[data-page=manage-flow] .account-panel p{margin-block:4px}
#photo-management{scroll-margin-top:24px}
#photo-list figcaption{font-size:14px;line-height:1.65;overflow-wrap:anywhere}
@media(max-width:600px){body[data-page=manage-flow] #photo-list{grid-template-columns:minmax(0,1fr)}}

/* Editing controls must not shrink with the invitation preview. */
.phone > .pe-unscaled{left:6px;right:6px;bottom:8px;padding:8px 6px;border-radius:8px}
.pe-unscaled .pe-row{display:grid;grid-template-columns:repeat(5,minmax(44px,1fr));gap:2px;width:100%}
.pe-unscaled button{min-width:44px;min-height:44px;height:44px;padding:0 4px;font-size:12px}
.pe-unscaled .pe-hint{white-space:normal}
.phone:has(>.pe-unscaled) .scroll{scroll-padding-bottom:100px}
@media(any-pointer:coarse),(max-width:600px){
 body:not([data-page=index]) :is(.btn,.cattab,.ep-mobile-modes button,.ep-nav-button,.ep-review-tabs button,.ep-version-edit button){min-height:44px;height:auto}
 body:not([data-page=index]) :is(.flow-header>a,.flow-nav>a,.service-readiness>a,.ep-nav-footer>a){display:inline-flex;align-items:center;min-height:44px}
 body:not([data-page=index]) .input{min-height:44px;font-size:16px}
 body:not([data-page=index]) .switch{width:48px;height:44px;background:transparent}
 body:not([data-page=index]) .switch::before{content:'';position:absolute;inset:12px 7px;border-radius:20px;background:var(--seam-strong)}
 body:not([data-page=index]) .switch[aria-checked=true]::before{background:var(--focus)}
 body:not([data-page=index]) .switch::after{top:14px;left:9px}
}
@media(orientation:landscape) and (any-pointer:coarse){
 body:not([data-page=index]){padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
 body:not([data-page=index]) :is(.mobile-order-bar,.upload-action-bar){padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
}
