/* 다이렉트 폼 시안 — 색·글꼴은 다이렉트 랜딩(base.css) 토큰과 같은 값 */
:root {
  --c-paper: #f4f1ea; --c-paper-2: #ebe6db; --c-ink: #101012; --c-ink-2: #2b2b30; --c-mute: #66625b;
  --c-line: rgba(16, 16, 18, .13); --c-accent: #ff4a1c; --c-accent-2: #ffd8cb; --c-accent-ink: #bf3009; --c-white: #fffdf9;
  --c-ok: #1d6b45; --c-ok-2: #dcefe3; --c-info-2: #dfe7f5; --c-info: #26457f;
  --f-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --r: 14px; --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-paper); color: var(--c-ink); font: 400 16px/1.6 var(--f-sans); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; padding: 0; } ul { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c-accent-ink); outline-offset: 2px; }
::selection { background: var(--c-accent); color: #fff; }

/* ----- 공용 ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--c-ink); color: var(--c-paper); font-weight: 700; font-size: 14px; white-space: nowrap; text-decoration: none; transition: background .2s, color .2s, box-shadow .2s; }
.btn:hover { background: var(--c-ink-2); }
.btn--accent { background: var(--c-accent); color: var(--c-ink); } .btn--accent:hover { background: #ff6238; }
.btn--line { background: transparent; color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-ink); } .btn--line:hover { background: var(--c-ink); color: var(--c-paper); }
.btn--ghost { background: transparent; color: var(--c-ink-2); font-weight: 600; } .btn--ghost:hover { background: var(--c-paper-2); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 17px; width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--c-paper-2); color: var(--c-ink-2); white-space: nowrap; }
.pill--on { background: var(--c-ok-2); color: var(--c-ok); } .pill--warn { background: var(--c-accent-2); color: var(--c-accent-ink); } .pill--info { background: var(--c-info-2); color: var(--c-info); }
.field { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--c-line); border-radius: 12px; background: var(--c-white); font-size: 16px; transition: border-color .2s; }
.field:focus { outline: 0; border-color: var(--c-ink); }
textarea.field { min-height: 120px; resize: vertical; line-height: 1.55; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; padding: 12px 20px; border-radius: 999px; background: var(--c-ink); color: var(--c-paper); font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); max-width: calc(100vw - 32px); }
.demo { background: var(--c-ink); color: var(--c-paper); font-size: 12px; text-align: center; padding: 5px 12px; }
.demo b { color: var(--c-accent); }

/* ----- 로그인 ----- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login__box { width: min(100%, 400px); background: var(--c-white); border-radius: 22px; padding: 36px 28px; box-shadow: 0 30px 60px -40px rgba(16,16,18,.5); }
.login__box img { height: 30px; margin-bottom: 26px; }
.login__box h1 { font-size: 24px; letter-spacing: -.03em; line-height: 1.3; }
.login__box p { color: var(--c-mute); font-size: 14px; margin: 8px 0 22px; }
.login__box .field { margin-bottom: 12px; }

/* ----- 상단 ----- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px clamp(14px, 3vw, 28px); background: rgba(244, 241, 234, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-line); }
.top__logo img { height: 22px; display: block; }
.top__title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top__sp { flex: 1; min-width: 0; }
.back { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; flex: none; text-decoration: none; } .back:hover { background: var(--c-paper-2); }
.tabs { display: flex; gap: 4px; padding: 0 clamp(14px, 3vw, 28px); border-bottom: 1px solid var(--c-line); background: var(--c-paper); overflow-x: auto; }
.tabs a { padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--c-mute); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--c-ink); border-color: var(--c-accent); }
.tabs a span { margin-left: 4px; font-size: 12px; background: var(--c-accent); color: var(--c-ink); padding: 1px 7px; border-radius: 999px; font-weight: 700; }

/* ----- 내 폼 목록 ----- */
.home { width: min(100% - 32px, 980px); margin: 0 auto; padding: 36px 0 80px; }
.home__hd { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.home__hd h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.035em; line-height: 1.2; }
.home__hd p { color: var(--c-mute); font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px; background: var(--c-white); border: 1px solid var(--c-line); text-decoration: none; min-width: 0; transition: transform .25s var(--ease), box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(16,16,18,.55); }
.card h3 { font-size: 18px; letter-spacing: -.02em; line-height: 1.35; }
.card__meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--c-mute); }
.card__n { margin-left: auto; font-weight: 700; color: var(--c-ink); }
.tpl { margin-top: 44px; } .tpl h2 { font-size: 16px; margin-bottom: 12px; }
.tpl__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tpl__b { text-align: left; padding: 16px; border-radius: 14px; border: 1.5px dashed rgba(16,16,18,.28); min-width: 0; transition: background .2s, border-color .2s; }
.tpl__b:hover { background: var(--c-white); border-color: var(--c-ink); border-style: solid; }
.tpl__b b { display: block; font-size: 15px; } .tpl__b span { font-size: 13px; color: var(--c-mute); }

/* ----- 편집기 ----- */
.ed { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: start; }
.ed__doc { min-width: 0; padding: 28px clamp(8px, 3vw, 40px) 120px; }
.doc { width: min(100%, 700px); margin: 0 auto; background: var(--c-white); border-radius: 22px; padding: clamp(22px, 4vw, 44px) clamp(14px, 4vw, 44px) 36px; box-shadow: 0 30px 60px -46px rgba(16,16,18,.5); }
.doc__logo { height: 22px; margin: 0 0 22px 34px; }
.doc__title, .doc__desc { display: block; width: calc(100% - 34px); margin-left: 34px; border: 0; background: none; padding: 2px 0; }
.doc__title { font-size: clamp(24px, 4vw, 32px); font-weight: 800; letter-spacing: -.035em; line-height: 1.25; }
.doc__desc { color: var(--c-ink-2); font-size: 16px; margin-top: 4px; resize: none; overflow: hidden; }
.doc__desc, .c-text { field-sizing: content; }
.doc__title:focus, .doc__desc:focus { outline: 0; }
.doc input::placeholder, .doc textarea::placeholder { color: rgba(16,16,18,.32); }
.blks { margin-top: 22px; }
.blk { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); border-radius: 12px; padding: 8px 8px 8px 0; transition: background .15s; }
.blk.is-sel { background: #f7f3ea; }
.blk.drop-before::before, .blk.drop-after::after { content: ''; position: absolute; left: 34px; right: 8px; height: 3px; border-radius: 3px; background: var(--c-accent); }
.blk.drop-before::before { top: -2px; } .blk.drop-after::after { bottom: -2px; }
.blk.is-drag { opacity: .35; }
.blk__side { display: flex; flex-direction: column; align-items: center; gap: 0; padding-top: 2px; opacity: 0; transition: opacity .15s; }
.blk:hover .blk__side, .blk.is-sel .blk__side { opacity: 1; }
.blk__side button, .grip { width: 26px; height: 24px; display: grid; place-items: center; border-radius: 6px; color: var(--c-mute); font-size: 15px; line-height: 1; }
.blk__side button:hover, .grip:hover { background: var(--c-paper-2); color: var(--c-ink); }
.grip { cursor: grab; letter-spacing: -2px; font-weight: 700; }
.q-row { display: flex; align-items: baseline; gap: 4px; }
.q-label { flex: 1; min-width: 0; border: 0; background: none; font-weight: 700; font-size: 16px; padding: 2px 0; }
.q-label:focus, .q-help:focus, .opt input:focus, .c-text:focus { outline: 0; }
.q-star { color: var(--c-accent-ink); font-weight: 800; flex: none; }
.q-help { display: none; width: 100%; border: 0; background: none; font-size: 13px; color: var(--c-mute); padding: 0 0 2px; }
.blk.is-sel .q-help, .q-help.has { display: block; }
.mock { margin-top: 6px; min-height: 44px; border: 1.5px solid var(--c-line); border-radius: 12px; background: #fff; padding: 9px 14px; color: rgba(16,16,18,.34); font-size: 15px; pointer-events: none; }
.mock--long { min-height: 84px; }
.opts { margin-top: 6px; display: grid; gap: 4px; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.opt i { flex: none; width: 18px; height: 18px; border: 1.5px solid rgba(16,16,18,.35); border-radius: 50%; }
.opt i.sq { border-radius: 5px; } .opt i.dd { border: 0; width: 18px; text-align: center; font-style: normal; color: var(--c-mute); font-size: 13px; }
.opt input { flex: 1; min-width: 0; border: 0; background: none; font-size: 15px; padding: 3px 0; border-bottom: 1px solid transparent; }
.opt input:focus { border-color: var(--c-line); }
.opt button { width: 26px; height: 26px; border-radius: 6px; color: var(--c-mute); opacity: 0; } .opt:hover button, .blk.is-sel .opt button { opacity: 1; } .opt button:hover { background: var(--c-paper-2); color: var(--c-ink); }
.opt-add { justify-self: start; font-size: 14px; color: var(--c-mute); padding: 4px 0 4px 28px; } .opt-add:hover { color: var(--c-ink); }
.c-text { width: 100%; border: 0; background: none; resize: none; overflow: hidden; font-size: 16px; color: var(--c-ink-2); padding: 2px 0; line-height: 1.6; }
.c-text--h { font-size: 21px; font-weight: 800; letter-spacing: -.025em; color: var(--c-ink); }
.c-hr { border: 0; border-top: 1.5px solid var(--c-line); margin: 12px 0; }
.bar { display: none; grid-column: 2; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--c-line); font-size: 13px; }
.blk.is-sel .bar { display: flex; }
.bar button, .bar select { min-height: 32px; padding: 0 10px; border-radius: 8px; font-weight: 600; color: var(--c-ink-2); background: none; border: 0; }
.bar button:hover, .bar select:hover { background: var(--c-paper-2); }
.bar .del { color: #b3261e; margin-left: auto; }
.sw { display: inline-flex; align-items: center; gap: 8px; padding: 0 10px 0 4px; min-height: 32px; font-weight: 600; cursor: pointer; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw i { width: 34px; height: 20px; border-radius: 999px; background: rgba(16,16,18,.22); position: relative; transition: background .2s; flex: none; }
.sw i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.sw input:checked + i { background: var(--c-accent); } .sw input:checked + i::after { transform: translateX(14px); }
.sw input:focus-visible + i { outline: 2px solid var(--c-accent-ink); outline-offset: 2px; }
.adder { display: grid; grid-template-columns: 34px minmax(0, 1fr); margin-top: 6px; }
.adder input { grid-column: 2; border: 0; background: none; padding: 10px 0; font-size: 16px; } .adder input:focus { outline: 0; }
.locked { margin: 14px 0 0 34px; padding: 14px 16px; border-radius: 14px; background: var(--c-paper); border: 1px dashed rgba(16,16,18,.25); font-size: 14px; }
.locked b { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-mute); margin-bottom: 6px; }
.locked li { display: flex; gap: 8px; align-items: center; padding: 2px 0; } .locked li i { width: 16px; height: 16px; border: 1.5px solid rgba(16,16,18,.35); border-radius: 5px; flex: none; }
.submit-ed { margin: 16px 0 0 34px; display: flex; }
.submit-ed input { flex: 1; min-width: 0; min-height: 54px; border: 0; border-radius: 999px; background: var(--c-accent); color: var(--c-ink); font-weight: 800; font-size: 17px; text-align: center; padding: 0 20px; }
.submit-ed input:focus { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.hint { margin: 14px 0 0 34px; font-size: 12.5px; color: var(--c-mute); }
.hint kbd { font: inherit; font-weight: 700; background: var(--c-paper-2); padding: 1px 6px; border-radius: 5px; }

/* 블록 고르기 메뉴 */
.menu { position: fixed; z-index: 80; width: 250px; max-height: 340px; overflow: auto; background: var(--c-white); border: 1px solid var(--c-line); border-radius: 14px; padding: 6px; box-shadow: 0 24px 50px -20px rgba(16,16,18,.5); }
.menu h4 { margin: 0; padding: 8px 10px 4px; font-size: 11px; color: var(--c-mute); font-weight: 700; letter-spacing: .04em; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 9px; font-size: 14.5px; font-weight: 600; }
.menu button.on, .menu button:hover { background: var(--c-paper-2); }
.menu button i { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: var(--c-paper); font-style: normal; font-size: 13px; font-weight: 800; }
.menu p { padding: 12px 10px; font-size: 13px; color: var(--c-mute); }

/* 미리보기(휴대폰) */
.ed__pv { position: sticky; top: 106px; padding: 24px 24px 24px 0; }
.ed__pv h4 { margin: 0 0 10px; font-size: 12px; color: var(--c-mute); font-weight: 700; text-align: center; }
.phone { width: 340px; height: min(680px, calc(100vh - 170px)); margin: 0 auto; border-radius: 38px; border: 9px solid var(--c-ink); background: var(--c-paper); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(16,16,18,.6); }
.phone__in { height: 100%; overflow: auto; }
@media (max-width: 1080px) { .ed { grid-template-columns: minmax(0, 1fr); } .ed__pv { display: none; } }

/* ----- 손님 폼 ----- */
.gf { width: min(100%, 560px); margin: 0 auto; padding: 28px 20px 60px; }
.gf__logo { height: 24px; margin-bottom: 26px; }
.gf h1 { font-size: clamp(26px, 7vw, 34px); font-weight: 800; letter-spacing: -.035em; line-height: 1.22; }
.gf__desc { margin-top: 8px; color: var(--c-ink-2); white-space: pre-line; }
.gf form { margin-top: 26px; display: grid; gap: 22px; }
.gq { min-width: 0; border: 0; padding: 0; margin: 0; }
.gq__l { display: block; font-weight: 700; margin-bottom: 4px; padding: 0; }
.gq__l em { font-style: normal; color: var(--c-accent-ink); margin-left: 3px; }
.gq__h { font-size: 13px; color: var(--c-mute); margin: -2px 0 6px; }
.gq__e { font-size: 13px; color: #b3261e; margin-top: 6px; font-weight: 600; }
.gq.err .field { border-color: #b3261e; }
.gopts { display: grid; gap: 8px; }
.gopt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 14px; border: 1.5px solid var(--c-line); border-radius: 12px; background: var(--c-white); cursor: pointer; transition: border-color .2s, background .2s; }
.gopt input { position: absolute; opacity: 0; }
.gopt i { flex: none; width: 20px; height: 20px; border: 1.5px solid rgba(16,16,18,.4); border-radius: 50%; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.gopt i.sq { border-radius: 6px; }
.gopt i::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c-ink); transform: scale(0); transition: transform .2s var(--ease); }
.gopt i.sq::after { width: 10px; height: 6px; border-radius: 0; background: none; border-left: 2.5px solid var(--c-ink); border-bottom: 2.5px solid var(--c-ink); transform: rotate(-45deg) scale(0); margin-top: -3px; }
.gopt:has(input:checked) { border-color: var(--c-ink); background: #fff4ef; }
.gopt:has(input:checked) i { background: var(--c-accent); border-color: var(--c-ink); }
.gopt:has(input:checked) i::after { transform: scale(1); } .gopt:has(input:checked) i.sq::after { transform: rotate(-45deg) scale(1); }
.gopt:has(input:focus-visible) { outline: 2px solid var(--c-accent-ink); outline-offset: 2px; }
.gh { font-size: 20px; font-weight: 800; letter-spacing: -.025em; } .gt { color: var(--c-ink-2); white-space: pre-line; } .ghr { border: 0; border-top: 1.5px solid var(--c-line); margin: 0; }
.agree { display: grid; gap: 6px; padding: 14px; border-radius: 14px; background: var(--c-paper-2); }
.agree label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; min-height: 30px; }
.agree input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--c-accent); }
.agree a { color: var(--c-mute); font-size: 13px; }
.gf .btn--lg { box-shadow: 0 12px 30px -12px rgba(255, 74, 28, .7); }
.gf__foot { margin-top: 26px; font-size: 12px; color: var(--c-mute); text-align: center; }
.done { text-align: center; padding: 60px 8px; }
.done p { margin-top: 10px; color: var(--c-ink-2); white-space: pre-line; }
.phone .gf { padding: 22px 16px 40px; } .phone .gf h1 { font-size: 24px; }

/* ----- 문의 관리 ----- */
.rs { padding: 22px clamp(14px, 3vw, 28px) 80px; }
.stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat div { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.stat span { display: block; font-size: 12px; color: var(--c-mute); font-weight: 600; } .stat b { font-size: 24px; letter-spacing: -.03em; }
.tool { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.tool .field { width: auto; min-height: 40px; padding: 7px 12px; font-size: 14px; flex: 1 1 180px; max-width: 280px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--c-white); border: 1px solid var(--c-line); }
.chip.on { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }
.tw { overflow-x: auto; background: var(--c-white); border: 1px solid var(--c-line); border-radius: 16px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--c-line); white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
th { font-size: 12px; color: var(--c-mute); font-weight: 700; background: #faf7f0; position: sticky; top: 0; }
th.gone { opacity: .55; font-style: italic; }
tbody tr { cursor: pointer; } tbody tr:hover { background: #faf7f0; } tbody tr:last-child td { border-bottom: 0; }
tr.new td:first-child { box-shadow: inset 3px 0 0 var(--c-accent); }
td select { border: 0; border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 700; background: var(--c-paper-2); }
td select[data-s="new"] { background: var(--c-accent-2); color: var(--c-accent-ink); } td select[data-s="done"] { background: var(--c-ok-2); color: var(--c-ok); } td select[data-s="called"], td select[data-s="visit"] { background: var(--c-info-2); color: var(--c-info); }
.empty { padding: 60px 20px; text-align: center; color: var(--c-mute); }
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(16,16,18,.4); display: flex; justify-content: flex-end; }
.drawer__p { width: min(100%, 430px); height: 100%; overflow: auto; background: var(--c-white); padding: 22px 22px 40px; animation: slide .35s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer__hd { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; } .drawer__hd h3 { font-size: 20px; letter-spacing: -.02em; flex: 1; min-width: 0; }
.drawer dl { margin: 0; display: grid; gap: 12px; } .drawer dt { font-size: 12px; color: var(--c-mute); font-weight: 700; } .drawer dd { margin: 0; white-space: pre-line; }
.drawer__act { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.drawer label { display: block; font-size: 12px; color: var(--c-mute); font-weight: 700; margin: 16px 0 6px; }

/* ----- 공유·설정 ----- */
.set { width: min(100% - 28px, 720px); margin: 0 auto; padding: 26px 0 80px; display: grid; gap: 16px; }
.box { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 18px; padding: 22px; min-width: 0; }
.box h2 { font-size: 17px; letter-spacing: -.02em; } .box > p { font-size: 13.5px; color: var(--c-mute); margin: 2px 0 14px; }
.box label.l { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
.url { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.url code { flex: 1 1 240px; min-width: 0; padding: 11px 14px; border-radius: 12px; background: var(--c-paper); font: 600 13.5px/1.5 ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.url code b { color: var(--c-accent-ink); }
.box .sw { padding-left: 0; }

/* ----- 손님 화면: 큰 글자 + 대표 움직임 두 가지만 (이름을 부르는 제목 · 도장 찍히는 접수증) -----
   흔한 연출(스크롤 떠오르기·흐르는 띠)은 뺐음. 움직임은 transform·opacity 위주, 모션 줄이기 설정이면 꺼짐.
   포인트 색은 .gw 에 --c-accent / --c-accent-ink / --on-accent 로 들어옴(관리 화면에서 고름) */
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-display: swap; src: url('serif-italic.woff2') format('woff2'); }
.gw { --on-accent: var(--c-ink); overflow-x: clip; }   /* 도장이 크게 내려올 때 가로 스크롤이 생기지 않게 */
.gw .btn--accent { color: var(--on-accent); }
.gprog { position: sticky; top: 0; z-index: 5; height: 4px; background: var(--c-paper-2); }
.gprog i { display: block; height: 100%; background: var(--c-accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.gf h1 { font-size: clamp(34px, 10.5vw, 56px); line-height: 1.08; letter-spacing: -.045em; }
.gf h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.gf h1 .w > span { display: inline-block; }
.gf h1 .w:last-child > span { color: var(--c-accent); }
/* 이름을 부르는 제목 */
.gname { height: 0; opacity: 0; overflow: hidden; font-size: clamp(34px, 10.5vw, 56px); font-weight: 800; line-height: 1.16; letter-spacing: -.045em; white-space: nowrap; }
.gname__c { color: var(--c-accent); }
.gname__c span { display: inline-block; }
.gname__s { display: inline-block; margin-left: .18em; font-size: .62em; font-weight: 700; letter-spacing: -.03em; }
.gq__n { display: block; font: italic 400 15px/1 'Instrument Serif', 'Times New Roman', serif; color: var(--c-accent-ink); margin-bottom: 6px; letter-spacing: .02em; }
.gq__n i { font-style: inherit; color: var(--c-mute); }
.gq__l { font-size: 19px; font-weight: 800; letter-spacing: -.03em; line-height: 1.35; }
.gopt { transition: border-color .2s, background .2s, transform .18s var(--ease); }
.gopt:active { transform: scale(.975); }
.gopt:has(input:checked) { background: color-mix(in srgb, var(--c-accent) 9%, #fff); }
.gopt:has(input:checked) span { font-weight: 700; }
.gopt i::after { background: var(--on-accent); } .gopt i.sq::after { background: none; border-color: var(--on-accent); }
.gbtn { gap: 10px; transition: background .3s, color .3s, box-shadow .3s; box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--c-accent) 75%, transparent) !important; }
.gbtn__c { font: italic 400 15px/1 'Instrument Serif', 'Times New Roman', serif; opacity: .75; }
.gbtn em { font-style: normal; display: inline-block; transition: transform .35s var(--ease); }
.gbtn.ready em { transform: translateX(5px); }
.gbtn.ready { background: var(--c-ink); color: var(--c-paper) !important; }
.phone .gf h1 { font-size: 30px; } .phone .gprog { position: static; }
.gf--mo h1 .w > span { animation: wup .7s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 80ms); }
@keyframes wup { from { transform: translateY(110%) rotate(4deg); } }
/* 도장 찍히는 접수증 */
.rc { position: relative; margin-top: 8px; padding: 26px 22px 34px; background: var(--c-white); border: 1.5px solid var(--c-ink); border-radius: 4px 4px 18px 18px; box-shadow: 0 26px 50px -34px rgba(16, 16, 18, .7); }
.rc::before { content: ''; position: absolute; left: -1.5px; right: -1.5px; top: -9px; height: 9px; background: radial-gradient(circle at 6px 0, transparent 5px, var(--c-ink) 5.5px, var(--c-ink) 6.5px, var(--c-white) 7px) 0 0 / 12px 9px repeat-x; }   /* 뜯어 낸 종이 가장자리 */
.rc__k { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--c-mute); }
.rc__k i { font: italic 400 16px/1 'Instrument Serif', 'Times New Roman', serif; letter-spacing: 0; color: var(--c-accent-ink); margin-left: 4px; }
.gf .rc h1 { font-size: clamp(28px, 8vw, 40px); line-height: 1.18; margin-top: 12px; }
.rc__nm { color: var(--c-accent); }
.rc dl { margin: 20px 0 0; border-top: 1.5px dashed rgba(16, 16, 18, .3); }
.rc dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed rgba(16, 16, 18, .18); font-size: 15px; }
.rc dt { color: var(--c-mute); flex: none; } .rc dd { margin: 0; font-weight: 700; text-align: right; }
.rc__t { margin-top: 16px; color: var(--c-ink-2); white-space: pre-line; }
.rc__a { margin-top: 18px; text-align: center; }
/* 서명 줄: 신청인 + 손글씨 이름 + (인) 자리에 도장 */
.rc__sg { position: relative; display: flex; align-items: flex-end; gap: 12px; min-height: 92px; margin-top: 18px; padding: 0 92px 6px 0; border-bottom: 1.5px solid var(--c-ink); }
.rc__sgk { flex: none; padding-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--c-mute); }
.rc__sgn { flex: 1 1 auto; min-width: 0; line-height: 0; }
.rc__sgn b { font-size: 26px; line-height: 1.5; font-weight: 800; letter-spacing: -.03em; }
.rc__sgi { display: block; height: 68px; width: auto; max-width: 100%; object-fit: contain; object-position: 0 100%; }
.ink { position: absolute; right: 46px; bottom: 34px; width: 0; height: 0; pointer-events: none; }
.ink i { position: absolute; left: 0; top: 0; border-radius: 50%; background: var(--c-accent); mix-blend-mode: multiply; }
.seal { position: absolute; right: -6px; bottom: -14px; width: 104px; height: 104px; transform: rotate(-12deg); color: var(--c-accent); mix-blend-mode: multiply; pointer-events: none; }
.seal circle { fill: none; stroke: currentColor; stroke-width: 3; } .seal circle + circle { stroke-width: 1.5; }
.seal text { fill: currentColor; font-family: var(--f-sans); text-anchor: middle; }
.seal__r { font-size: 9.2px; font-weight: 800; letter-spacing: 1.45px; text-anchor: start !important; }
.seal__c { font-size: 21px; font-weight: 900; letter-spacing: -.5px; } .seal__s { font-size: 11px; font-weight: 800; letter-spacing: 3px; }
/* 관리 화면: 포인트 색 고르기 */
.sws { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sw-c { width: 36px; height: 36px; border-radius: 50%; background: var(--s); box-shadow: inset 0 0 0 1px rgba(16, 16, 18, .15); transition: transform .2s var(--ease); }
.sw-c:hover { transform: scale(1.08); } .sw-c.on { box-shadow: 0 0 0 2px var(--c-white), 0 0 0 4px var(--c-ink); }
.sw-p { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-left: 6px; cursor: pointer; }
.sw-p input { width: 36px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; }
.sample { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; padding: 18px; border-radius: 14px; background: var(--c-paper); }
.sample b { color: var(--c-accent); font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.sample i { font: italic 400 16px/1 'Instrument Serif', 'Times New Roman', serif; color: var(--c-accent-ink); }
.sample__bar { flex: 1 1 80px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--c-accent) 60%, var(--c-paper-2) 60%); }
@media (prefers-reduced-motion: reduce) { .gname { transition: none; } }

@media (max-width: 640px) {
  .top .btn--hide { display: none; }
  .doc { border-radius: 16px; } .doc__logo, .doc__title, .doc__desc { margin-left: 30px; width: calc(100% - 30px); }
  .blk__side { opacity: 1; } .blk, .adder { grid-template-columns: 30px minmax(0, 1fr); } .locked, .submit-ed, .hint { margin-left: 30px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }

/* ----- 이미지·표지 ----- */
.gcover { width: min(100%, 560px); margin: 0 auto; background: var(--c-paper-2); }
.gcover img { width: 100%; height: auto; display: block; }   /* 표지도 자르지 않음 — 배너 글자가 잘리지 않게 */
.gimg { margin: 0; } .gimg img { display: block; width: 100%; height: auto; border-radius: 14px; }   /* 자르지 않음 — 원본 비율 그대로 */
.cov { margin: 0 0 20px 34px; }
.cov img { display: block; width: 100%; height: auto; border-radius: 14px; }
.cov__bar { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; }
.cov__bar input, .c-img figcaption input { flex: 1 1 auto; min-width: 0; border: 0; border-bottom: 1px solid var(--c-line); background: none; padding: 6px 0; font-size: 13px; }
.cov__bar button, .c-img figcaption button { flex: none; font-size: 13px; font-weight: 700; color: var(--c-ink-2); padding: 6px 8px; border-radius: 8px; } .cov__bar button:hover, .c-img figcaption button:hover { background: var(--c-paper-2); }
.cov__add { font-size: 13px; font-weight: 600; color: var(--c-mute); padding: 6px 10px; margin-left: -10px; border-radius: 8px; } .cov__add:hover { color: var(--c-ink); background: var(--c-paper-2); }
.c-img { margin: 0; } .c-img img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.c-img figcaption { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.c-up { display: grid; gap: 4px; width: 100%; padding: 22px 16px; border: 1.5px dashed rgba(16, 16, 18, .28); border-radius: 12px; text-align: center; color: var(--c-ink-2); }
.c-up:hover { border-color: var(--c-ink); background: var(--c-paper); } .c-up span { font-size: 12.5px; color: var(--c-mute); }
/* ----- 웨딩 전용 탭 문항(칩) ----- */
.gopts--chip { display: flex; flex-wrap: wrap; gap: 8px; }
.gopts--chip .gopt { min-height: 46px; padding: 10px 18px; border-radius: 999px; }
.gopts--chip .gopt i { display: none; }
.gopts--chip .gopt:has(input:checked) { background: var(--c-accent); border-color: var(--c-accent); color: var(--on-accent); }
.mockchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; pointer-events: none; }
.mockchips span { padding: 7px 14px; border: 1.5px solid var(--c-line); border-radius: 999px; font-size: 14px; color: var(--c-ink-2); background: #fff; }
.q-note { margin-top: 8px; font-size: 12.5px; color: var(--c-mute); }
/* ----- 링크별 성과판 ----- */
.lb { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 18px; padding: 18px 18px 8px; margin-bottom: 18px; min-width: 0; }
.lb__hd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 8px; }
.lb__hd h2 { font-size: 17px; letter-spacing: -.02em; } .lb__hd p { flex: 1 1 260px; min-width: 0; font-size: 13px; color: var(--c-mute); }
.lb__r { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) 76px 64px; gap: 12px; align-items: center; width: 100%; padding: 11px 8px; border-top: 1px solid var(--c-line); text-align: left; font-size: 14px; border-radius: 0; }
.lb__r > span { min-width: 0; } .lb__r > span:nth-child(n+3) { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb__r--h { border-top: 0; font-size: 12px; font-weight: 600; color: var(--c-mute); padding-block: 4px; } .lb__r--h > span:nth-child(n+3) { font-weight: 600; }
button.lb__r:hover { background: var(--c-paper); } button.lb__r.on { background: var(--c-accent-2); }
.lb__r b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lb__r > span:first-child i { font-style: normal; font-size: 12px; color: var(--c-mute); }
.lb__bar { display: flex; align-items: center; gap: 8px; } .lb__bar i { display: block; height: 8px; min-width: 2px; border-radius: 8px; background: var(--c-accent); } .lb__bar b { flex: none; overflow: visible; font-variant-numeric: tabular-nums; }
.again { margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--c-info-2); font-size: 13.5px; }
.again ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; } .again li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mkl { display: grid; gap: 10px; } .mkl .btn { justify-self: start; }
.lks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.lks li { padding-top: 14px; border-top: 1px solid var(--c-line); min-width: 0; }
.lks__h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .lks__n { font-size: 13px; color: var(--c-mute); }
.lks .url { margin-top: 8px; } .lks__x { font-size: 13px; color: var(--c-mute); padding: 0 8px; } .lks__x:hover { color: var(--c-ink); }
@media (max-width: 560px) { .lb__r { grid-template-columns: minmax(0, 1fr) 64px 56px; } .lb__r > .lb__bar i { display: none; } .lb__r > span:nth-child(2) { text-align: right; justify-content: flex-end; } .lb__r > span:nth-child(4) { display: none; } .cov { margin-left: 0; } }
td:first-child { max-width: none; overflow: visible; }
@media (max-width: 760px) { .doc .doc__logo { width: auto; } }
