/* tp */
.tp { --tp-r: 18px; }
/* tp-hero */
.tp-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(64px + clamp(48px, 7vw, 96px)) 0 clamp(96px, 10vw, 140px); background: var(--paper) url("/html/ddalkkak/img/tp-hero.webp?v=1") center / cover no-repeat; }
.tp-down { position: absolute; left: 50%; bottom: clamp(20px, 3vw, 36px); display: grid; place-items: center; width: 30px; height: 46px; margin-left: -15px; border: 1.5px solid rgba(10, 10, 10, .35); border-radius: 999px; color: #0a0a0a; animation: tpDown 1.8s ease-in-out infinite; }
.tp-down svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tp-down:hover { border-color: #0a0a0a; }
@keyframes tpDown { 50% { translate: 0 6px; } }
.tp-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 80px; z-index: -1; background: linear-gradient(180deg, rgba(246, 246, 241, 0), var(--paper)); }
.tp-hero__in { position: relative; }
/* PC 첫 화면은 딱 한 화면 — 명함(/template/card)은 「시작하는 방법」 탭 줄이 없어 짧아져 아래 목록이 비쳤다(2026-12-04 사용자) · 태블릿 · 휴대폰은 화면이 길어 채우면 텅 비므로 목록이 살짝 보이게 그대로 */
@media (min-width: 1024px) { .tp-hero { display: flex; flex-direction: column; justify-content: center; min-height: 100svh; } }
.tp-mode { display: inline-flex; gap: 4px; margin-top: clamp(28px, 3.4vw, 40px); padding: 4px; border-radius: 14px; background: rgba(10, 10, 10, .06); }
.tp-mode__tab { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: #5f6058; font: inherit; font-weight: 650; font-size: 14px; line-height: 1; letter-spacing: -.02em; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.tp-mode__tab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tp-mode__tab:hover { color: #0a0a0a; }
.tp-mode__tab.is-on { background: #fff; color: #0a0a0a; box-shadow: 0 2px 8px -2px rgba(10, 10, 10, .15); }
.tp-ask { display: grid; gap: 6px; width: 100%; max-width: 760px; margin-top: 14px; padding: 18px 18px 14px 22px; border: 2px solid #c8f000; border-radius: 22px; background: #0c0e0a; box-shadow: 0 20px 40px -20px rgba(10, 20, 0, .55); text-align: left; }
.tp-ask__hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tp-ask__who { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: #f4f4ee; }
.tp-ask__who svg { width: 16px; height: 16px; fill: #c8f000; }
.tp-ask__who b { font-weight: 800; }
.tp-ask__soon { display: none; padding: 5px 10px; border-radius: 999px; background: rgba(200, 240, 0, .14); font-size: 12px; font-weight: 700; color: #c8f000; }
.tp-ask[data-mode="ai"] .tp-ask__soon, .tp-ask[data-mode="fig"] .tp-ask__soon { display: inline-block; }
.tp-ask textarea { width: 100%; min-height: 64px; scrollbar-width: none; padding: 4px 0; border: 0; outline: 0; resize: none; background: transparent; color: #f4f4ee; font: inherit; font-weight: 500; font-size: 16px; line-height: 1.6; caret-color: #c8f000; }
.tp-ask textarea::placeholder { color: #e3e8da; }
.tp-ask__ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tp-ask__clip { display: none; place-items: center; flex: none; width: 36px; height: 36px; margin-left: -6px; border-radius: 10px; color: #d8ddcf; cursor: pointer; transition: background .2s, color .2s; }
.tp-ask__clip svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tp-ask__clip:hover { background: rgba(255, 255, 255, .08); color: #c8f000; }
.tp-ask__clip:focus-within { outline: 2px solid #c8f000; outline-offset: 2px; }
.tp-ask[data-mode="ai"] .tp-ask__clip { display: grid; }
.tp-ask__ft .tp-ask__note { flex: 1; min-width: 0; }
.tp-ask__files { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-ask__files[hidden] { display: none; }
.tp-ask__file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 6px 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #e3e8da; font-size: 12.5px; }
.tp-ask__file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.tp-ask__file button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #c9d1bd; font: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.tp-ask__file button:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.tp-ask__note { font-size: 12.5px; color: #c9d1bd; }
.tp-ask__go { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: #c8f000; color: #0a0a0a; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.tp-ask__go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tp-ask__go:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -6px rgba(200, 240, 0, .7); }
.tp-ask__go:disabled { background: rgba(255, 255, 255, .1); color: #7e8d70; cursor: not-allowed; transform: none; box-shadow: none; }
.tp-ideas { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 760px; margin-top: 16px; }
.tp-ideas__sw { flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tp-ideas__sw .swiper-wrapper { transition-timing-function: linear; }
.tp-ideas__sw .swiper-slide { width: auto; }
.tp-idea { min-height: 36px; padding: 0 14px; border: 1px solid rgba(10, 10, 10, .1); border-radius: 999px; background: rgba(255, 255, 255, .85); color: #2f302a; font: inherit; font-weight: 600; font-size: 13px; line-height: 1; white-space: nowrap; cursor: pointer; transition: border-color .2s, background .2s; }
.tp-idea:hover { border-color: #0a0a0a; background: #fff; }
.tp-ideas__re { display: grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(10, 10, 10, .12); border-radius: 50%; background: #fff; color: #0a0a0a; cursor: pointer; transition: transform .4s, border-color .2s; }
.tp-ideas__re svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tp-ideas__re:hover { border-color: #0a0a0a; }
.tp-ideas__re.is-spin { transform: rotate(360deg); }
.tp-ideas[data-mode="fig"] { visibility: hidden; }
.tp-miss { display: grid; justify-items: center; gap: 8px; padding: clamp(56px, 8vw, 96px) 16px; text-align: center; }
.tp-miss[hidden] { display: none; }
.tp-miss__ic { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: #ebece3; color: #8a8b82; }
.tp-miss__ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tp-miss__t { font-size: clamp(17px, 1.3vw, 19px); font-weight: 700; letter-spacing: -.02em; color: #0a0a0a; word-break: keep-all; }
.tp-miss__t q { font-weight: 800; }
.tp-miss__t q::before { content: "‘"; }
.tp-miss__t q::after { content: "’"; }
.tp-miss__s { font-size: 14.5px; color: #8a8b82; word-break: keep-all; }
@media (max-width: 767px) { .tp-miss { gap: 4px; padding: 40px 16px; } .tp-miss__ic { width: 44px; height: 44px; margin-bottom: 6px; } .tp-miss__ic svg { width: 20px; height: 20px; } .tp-miss__t { font-size: 15.5px; } .tp-miss__s { font-size: 13px; } }
.tp-cats { position: sticky; top: 64px; z-index: 30; display: flex; align-items: center; gap: 8px; margin-top: clamp(20px, 3vw, 36px); padding-block: 8px; border-image: linear-gradient(var(--paper), var(--paper)) fill 0 / 0 / 0 100vmax; }
.tp-cats::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; border-image: linear-gradient(rgba(10, 10, 10, .13), rgba(10, 10, 10, 0)) fill 0 / 0 / 0 100vmax; opacity: 0; transition: opacity .2s; pointer-events: none; }
.tp-cats.is-stuck::after { opacity: 1; }
.tp-lib .tp-cats .wall__tabs { flex: 1; min-width: 0; justify-content: flex-start; gap: 8px; margin-top: 0; padding: 6px 2px; scroll-behavior: smooth; }
.tp-cats.is-fit .wall__tabs { justify-content: center; }
.tp-cats.is-l .wall__tabs { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
.tp-cats.is-r .wall__tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.tp-cats.is-l.is-r .wall__tabs { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.tp-cats__nav { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(10, 10, 10, .14); border-radius: 50%; background: #fff; color: #0a0a0a; cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.tp-cats__nav[hidden] { display: none; }
.tp-cats__nav:disabled { opacity: .3; cursor: default; }
.tp-cats__nav:not(:disabled):hover { background: #0a0a0a; color: #c8f000; }
.tp-cats__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tp-lib .tp-cats .wall__tabs { box-shadow: inset 0 -1px rgba(10, 10, 10, .12); }
.tp-lib .wall__tab { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #6b6c64; font-size: 15px; font-weight: 650; transition: color .2s; }
.tp-lib .wall__tab::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #0a0a0a; transform: scaleX(0); transition: transform .25s; }
.tp-lib .wall__tab em { font-size: 12.5px; font-style: normal; font-weight: 700; color: #9a9b93; }
.tp-lib .wall__tab:hover { background: transparent; box-shadow: none; color: #0a0a0a; }
.tp-lib .wall__tab:focus-visible { outline: 2px solid #0a0a0a; outline-offset: -2px; }
.tp-lib .wall__tab.is-on { background: transparent; box-shadow: none; color: #0a0a0a; font-weight: 800; }
.tp-lib .wall__tab.is-on::after { transform: scaleX(1); }
.tp-lib .wall__tab.is-on em { color: #487100; }
@media (max-width: 767px) {
  .tp-down { display: none; }
  .tp-hero { padding-bottom: 20px; }
  .tp-cats { margin-top: 0; } .tp-cats__nav { display: none; } .tp-lib .tp-cats .wall__tabs { gap: 0; padding: 0; }
  .tp-lib .wall__tab { gap: 4px; height: 42px; padding: 0 11px; font-size: 14px; }
  .tp-lib .wall__tab::after { left: 11px; right: 11px; }
  .tp-lib .wall__tab em { font-size: 11.5px; }
  .tp-wall { margin-top: 14px; }
}
.tp-wall .wall__it.is-miss { display: none; }
@media (prefers-reduced-motion: reduce) { .tp-down { animation: none; } }
@media (max-width: 1023px) { .tp-hero { background-image: url("/html/ddalkkak/img/tp-hero-m.webp?v=1"); background-position: center top; } }
@media (max-width: 767px) {
  .tp-hero { background-size: 100% 100%; }
  .tp-mode { display: flex; width: 100%; }
  .tp-mode__tab { flex: 1; justify-content: center; gap: 4px; min-height: 38px; padding: 0 2px; font-size: 12.5px; letter-spacing: -.04em; }
  .tp-mode__tab svg { width: 15px; height: 15px; flex: none; }
  .tp-ask { padding: 14px 14px 12px 16px; border-radius: 18px; }
  .tp-ask textarea { font-size: 15px; min-height: 92px; scrollbar-width: none; }
}
/* tp-lib */
.tp-lib { padding: 0 0 clamp(72px, 10vw, 140px); }
.tp-wall { margin-top: clamp(20px, 3vw, 36px); }
.tp-wall.wall__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; overflow: visible; scroll-snap-type: none; padding: 0 var(--s5); }
.tp-wall .wall__it.is-more, .tp-wall .wall__it.is-hide { display: none; }
@media (min-width: 600px) { .tp-wall.wall__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; padding-inline: max(var(--s5), 32px); } }
@media (min-width: 900px) { .tp-wall.wall__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px clamp(14px, 1.4vw, 24px); padding-inline: clamp(32px, 4vw, 80px); } }
@media (min-width: 1280px) { .tp-wall.wall__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 2000px) { .tp-wall.wall__grid { grid-template-columns: repeat(auto-fit, minmax(340px, 380px)); justify-content: center; } }   /* 넓은 화면은 칸 수를 늘려 1920 과 비슷한 크기(2026-11-30 사용자 「큰 화면에서 템플릿 목록이 너무 커진다」) */
.tp-more-wrap { display: flex; justify-content: center; }
.tp-more { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; margin-top: clamp(32px, 4vw, 48px); padding: 0 24px; border: 1px solid #0a0a0a; border-radius: 999px; background: #fff; color: #0a0a0a; font: inherit; font-weight: 700; font-size: 15px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.tp-more[hidden] { display: none; }
.tp-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tp-more:hover { background: #0a0a0a; color: #c8f000; }
.tp--d .tp-lib { padding-top: clamp(56px, 8vw, 104px); }
.tp-wall .wall__it { display: block; color: var(--ink); text-decoration: none; }
.tp-cap { display: flex; align-items: baseline; gap: 6px; padding-top: 10px; line-height: 1.3; min-width: 0; }
.tp-cap b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 800; letter-spacing: -.03em; }
.tp-cap small { flex: none; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.tp-badge { position: absolute; left: 8px; top: 8px; z-index: 3; display: flex; flex-wrap: wrap; gap: 3px; max-width: calc(100% - 16px); pointer-events: none; }
.tp-badge > * { padding: 4px 7px; border-radius: 6px; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 6px -2px rgba(10, 10, 10, .25); font-size: 11px; font-style: normal; font-weight: 700; line-height: 1; color: #2f302a; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tp-badge .is-plan { background: #0a0a0a; color: #c8f000; }
/* 최근 공개 NEW — 그림 왼쪽 아래(오른쪽 아래는 휴대폰 그림 자리) · 고르기는 include/site_template/store.php site_tpl_public_order(2026-12-01) */
.tp-new { position: absolute; left: 10px; bottom: 10px; z-index: 3; padding: 5px 9px; border-radius: 999px; background: #c8f000; box-shadow: 0 4px 10px -4px rgba(10, 10, 10, .35); color: #0a0a0a; font-size: 12px; font-style: normal; font-weight: 800; letter-spacing: .06em; line-height: 1; pointer-events: none; }
@media (max-width: 599px) { .tp-new { left: 7px; bottom: 7px; padding: 4px 7px; } }
/* 지어낸 예시 알림 — 목록 맨 아래 · 미리보기 설명 칸(2026-12-01) */
.tp-fict { font-size: 13px; line-height: 1.6; color: #5d5e55; word-break: keep-all; }
.tp-fict::before { content: "※ "; }
.tp-fict--wall { max-width: 760px; margin: clamp(28px, 3.5vw, 40px) auto 0; text-align: center; }
.tpl-info .tp-fict { padding: 12px 14px; border-radius: 10px; background: #f3f3ee; font-size: 12.5px; }
@media (max-width: 599px) { .tp-fict { font-size: 12px; } .tp-fict--wall { text-align: left; } }
@media (max-width: 599px) { .tp-cap { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 8px; } .tp-cap b { max-width: 100%; font-size: 14px; } .tp-cap small { font-size: 11.5px; } .tp-badge { left: 6px; top: 6px; } .tp-badge > * { padding: 3px 5px; font-size: 10px; } }
.tp-wall .wall__it:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 14px; }
/* tp-btn */
.tp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.tp-btn--main { border: 1px solid #0a0a0a; background: var(--lime); color: #0a0a0a; }
.tp-btn--main:hover { background: #0a0a0a; color: var(--lime); }
.tp-btn--ghost { border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #f4f4ee; }
.tp-btn--ghost:hover { border-color: #f4f4ee; }
/* tp-empty */
.tp-empty { display: grid; justify-items: start; gap: 14px; padding: clamp(32px, 5vw, 64px); border-radius: var(--tp-r); background: var(--white); border: 1px solid var(--rule); }
.tp-empty__t { font-size: 22px; font-weight: 800; color: var(--ink); }
.tp-empty__s { font-size: 16px; color: var(--ink-2); word-break: keep-all; }
/* tpl */
html.tp-locked { overflow: hidden; }
html.tp-locked .cur { display: none; }
html.tp-locked:has(.cur.is-live), html.tp-locked:has(.cur.is-live) * { cursor: auto; }
html.tp-locked:has(.cur.is-live) .tpl :is(a, button) { cursor: pointer; }
.tpl { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; background: #1c1d1a; color: #0a0a0a; font-family: Pretendard, system-ui, sans-serif; }
.tpl[hidden] { display: none; }
.tpl-top { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: calc(8px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); background: #0a0a0a; color: #f4f4ee; }
.tpl-x { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: inherit; cursor: pointer; }
.tpl-x:hover { background: rgba(255, 255, 255, .2); }
.tpl-x svg, .tpl-dev svg, .tpl-info__hd svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tpl-name { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tpl-name span { font-size: 12px; color: #a2a399; }
.tpl-name b { font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-dev { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.tpl-dev button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #b6b7ad; font: inherit; font-weight: 700; font-size: 13px; line-height: 1; cursor: pointer; }
.tpl-dev button.is-on { background: #f4f4ee; color: #0a0a0a; }
.tpl-go { min-height: 42px; border-color: #c8f000; }
.tpl-go:hover { border-color: #c8f000; background: transparent; color: #c8f000; }
.tpl-body { position: relative; flex: 1; min-height: 0; display: flex; }
.tpl-stage { position: relative; flex: 1; min-width: 0; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; }
.tpl.is-framed .tpl-stage { align-items: center; background: radial-gradient(circle at 50% 40%, #33352f, #1c1d1a 70%); }
.tpl-dev-box { position: relative; overflow: hidden; background: #fff; transition: width .3s, height .3s; }
.tpl.is-framed .tpl-dev-box { background: #0a0a0a; border-radius: 22px; box-shadow: 0 0 0 8px #0a0a0a, 0 30px 60px -20px rgba(0, 0, 0, .6); }
/* tpl-dev-box */
.tpl.is-framed.is-pc .tpl-dev-box { border-radius: 8px; box-shadow: 0 0 0 6px #0a0a0a, 0 30px 60px -20px rgba(0, 0, 0, .6); }
.tpl-dev-box iframe { display: block; border: 0; background: #fff; transform-origin: 0 0; }
.tpl.is-framed .tpl-dev-box iframe { background: #0a0a0a; }
.tpl.is-framed .tpl-dev-box::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1.5px #0a0a0a; pointer-events: none; }
.tpl-info { position: relative; flex: none; width: 380px; display: flex; flex-direction: column; background: #fff; border-left: 1px solid #dfe0d6; transition: width .3s; }
.tpl-info:not(.is-open) { position: absolute; top: 0; right: 0; z-index: 3; width: 48px; height: 48px; border-left: 0; border-radius: 0 0 0 14px; box-shadow: -6px 6px 20px -8px rgba(0, 0, 0, .35); overflow: hidden; }
.tpl-info:not(.is-open) .tpl-info__hd { grid-template-columns: 1fr; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; }
.tpl-info:not(.is-open) .tpl-info__hd :is(b, em, .tpl-info__grip), .tpl-info:not(.is-open) .tpl-info__body { display: none; }
.tpl-info:not(.is-open) .tpl-info__hd svg { grid-column: 1; grid-row: 1; }
.tpl-info:not(.is-open) .tpl-info__hd:hover { background: #f6f6f1; }
.tpl-info__hd { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 18px 20px; border: 0; border-bottom: 1px solid #ebece3; background: #fff; text-align: left; cursor: pointer; font: inherit; color: #0a0a0a; }
.tpl-info__hd b { font-size: 15px; font-weight: 800; }
.tpl-info__hd em { grid-column: 1; font-style: normal; font-size: 12.5px; line-height: 1.5; color: #5f6058; word-break: keep-all; }
.tpl-info__hd svg { grid-column: 2; grid-row: 1 / span 2; transform: rotate(-90deg); transition: transform .3s; }
.tpl-info.is-open .tpl-info__hd svg { transform: rotate(90deg); }
.tpl-info__grip { display: none; }
.tpl-bar { display: none; }
.tpl-pc { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 20px; background: rgba(10, 10, 10, .6); }
.tpl-pc[hidden] { display: none; }
.tpl-pc__box { display: grid; gap: 12px; width: 100%; max-width: 360px; padding: 24px 22px 20px; border-radius: 18px; background: #fff; color: #0a0a0a; text-align: center; }
.tpl-pc__box b { font-size: 17px; font-weight: 800; word-break: keep-all; }
.tpl-pc__box p { font-size: 14px; line-height: 1.6; color: #45463e; word-break: keep-all; }
.tpl-pc__url { padding: 10px 12px; border-radius: 10px; background: #f6f6f1; font-size: 13px; font-weight: 700; word-break: break-all; user-select: all; }
.tpl-pc__btns { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 4px; }
.tpl-pc__btns .tpl-bar__more { min-height: 44px; padding: 0 18px; border: 1px solid #0a0a0a; border-radius: 999px; background: #fff; color: #0a0a0a; font: inherit; font-weight: 700; font-size: 14px; line-height: 1; cursor: pointer; }
.tpl-pc__btns .tp-btn { min-height: 44px; font-size: 14px; }
.tpl-info__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 24px calc(28px + env(safe-area-inset-bottom, 0px)); display: grid; align-content: start; gap: 22px; scrollbar-width: thin; }
.tpl-card { display: grid; gap: 14px; }
.tpl-card[hidden] { display: none; }
.tpl-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-card__tags span { padding: 5px 10px; border-radius: 999px; background: #f1f2ea; font-size: 12px; font-weight: 700; color: #45463e; }
.tpl-card__tags .is-plan { background: #0a0a0a; color: #c8f000; }
.tpl-card__t { font-size: 23px; line-height: 1.3; font-weight: 800; letter-spacing: -.03em; word-break: keep-all; }
.tpl-card__s { font-size: 14.5px; line-height: 1.7; color: #45463e; word-break: keep-all; }
.tpl-card__h { font-size: 15px; font-weight: 800; }
.tpd-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; margin: 4px 0 0; border: 1px solid #e6e7de; border-radius: 14px; overflow: hidden; }
/* 칸 수가 몇 개든 — 칸마다 오른쪽 · 아래 선을 긋고 1px 밖으로 내밀어 맨 오른쪽 · 맨 아래 선은 틀 안에서 잘린다(덜 찬 마지막 줄도 칸이 닫힌다 · 12/01) */
.tpd-nums li { display: grid; gap: 2px; padding: 12px 14px; margin: 0 -1px -1px 0; border-right: 1px solid #e6e7de; border-bottom: 1px solid #e6e7de; font-size: 12.5px; color: #6b6c64; }
.tpd-nums b { font-size: 21px; font-weight: 800; color: #0a0a0a; letter-spacing: -.02em; }
.tpd-sec { display: grid; gap: 10px; }
.tpd-sec__h { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; }
.tpd-sec__h small { min-width: 20px; padding: 2px 7px; border-radius: 999px; background: #f1f2ea; font-size: 11.5px; font-weight: 700; color: #6b6c64; text-align: center; }
.tpd-menu { display: grid; border-top: 1px solid #ebece3; }
.tpd-m { border-bottom: 1px solid #ebece3; }
.tpd-m summary, .tpd-m--solo { display: flex; align-items: center; gap: 8px; min-height: 46px; font-size: 14px; }
.tpd-m summary { list-style: none; cursor: pointer; }
.tpd-m summary::-webkit-details-marker { display: none; }
.tpd-m summary::after { content: ""; width: 7px; height: 7px; margin: 0 4px 3px 2px; border: solid #8a8b82; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); transition: transform .2s; }
.tpd-m[open] summary::after { margin-bottom: -3px; transform: rotate(-135deg); }
.tpd-m b { flex: 1; min-width: 0; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpd-m small { font-size: 12px; color: #8a8b82; }
.tpd-m .tpd-chips { padding: 0 0 14px; }
.tpd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tpd-chips span { padding: 6px 10px; border-radius: 8px; background: #f6f6f1; font-size: 12.5px; color: #45463e; }
.tpd-more summary { display: flex; align-items: center; justify-content: center; min-height: 40px; margin-top: 8px; border-radius: 10px; background: #f6f6f1; font-size: 13px; font-weight: 700; color: #45463e; list-style: none; cursor: pointer; }
.tpd-more summary::-webkit-details-marker { display: none; }
.tpd-more[open] summary { display: none; }
.tpl-start { display: grid; gap: 20px; padding: 22px 20px 20px; border-radius: 18px; background: radial-gradient(120% 80% at 100% 0, #23261a, #0a0a0a 60%); color: #f4f4ee; scroll-margin-top: 12px; }
.tpl-start__hd { display: grid; gap: 4px; }
.tpl-start__hd .tpl-card__h { margin: 0; font-size: 17px; color: #f4f4ee; letter-spacing: -.02em; }
.tpl-start__hd p { font-size: 13px; color: #9c9d93; }
.tpl-steps { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; }
.tpl-steps li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
.tpl-steps li:last-child { padding-bottom: 0; }
.tpl-steps li:not(:last-child)::before { content: ""; position: absolute; left: 12.5px; top: 30px; bottom: 4px; width: 1px; background: rgba(200, 240, 0, .3); }
.tpl-steps b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #c8f000; color: #0a0a0a; font-size: 12.5px; font-weight: 800; }
.tpl-steps p { padding-top: 2px; font-size: 13px; line-height: 1.55; color: #a2a399; word-break: keep-all; }
.tpl-steps strong { display: block; margin-bottom: 2px; font-size: 14.5px; font-weight: 750; color: #f4f4ee; }
.tpl-start__btns { display: grid; gap: 8px; }
.tpl-start__btns .tp-btn { width: 100%; min-height: 48px; font-size: 15px; }
.tpl-start__demo.tp-btn--ghost { border-color: rgba(255, 255, 255, .22); color: #e6e7dd; font-weight: 650; }
.tpl-start__demo.tp-btn--ghost:hover { border-color: #c8f000; color: #c8f000; }
@media (max-width: 1023px) {
  .tpl-dev button span { display: none; }
  .tpl-dev button { padding: 0 12px; }
}
@media (max-width: 767px) {
  .tpl-top { gap: 8px; min-height: 48px; padding: calc(6px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 6px max(12px, env(safe-area-inset-left, 0px)); }
  .tpl-x { width: 34px; height: 34px; }
  .tpl-x svg, .tpl-dev svg { width: 16px; height: 16px; }
  .tpl-go { display: none; }
  .tpl-name { gap: 1px; }
  .tpl-name span { font-size: 11px; }
  .tpl-name b { font-size: 14px; }
  .tpl-dev { padding: 2px; }
  .tpl-dev button { min-height: 30px; padding: 0 10px; }
  .tpl-body { flex-direction: column; }
  .tpl-bar { display: flex; gap: 8px; padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); border-top: 1px solid #dfe0d6; background: #fff; }
  .tpl-bar__more { flex: none; min-height: 44px; padding: 0 18px; border: 1px solid #0a0a0a; border-radius: 999px; background: #fff; color: #0a0a0a; font: inherit; font-weight: 700; font-size: 14px; line-height: 1; cursor: pointer; }
  .tpl-bar__go { flex: 1; min-height: 44px; padding: 0 16px; font-size: 14px; }
  .tpl-info.is-open { position: absolute; left: 0; right: 0; bottom: 0; width: auto; max-height: 82%; border: 0; border-radius: 20px 20px 0 0; box-shadow: 0 0 0 100vmax rgba(10, 10, 10, .45); overflow: hidden; }
  .tpl-info__grip { display: block; grid-column: 1 / -1; justify-self: center; width: 34px; height: 4px; border-radius: 4px; background: #c4c5b8; }
  .tpl-info__hd { grid-template-columns: minmax(0, 1fr) auto; justify-items: stretch; gap: 2px 8px; padding: 8px 16px 12px; border-bottom: 1px solid #ebece3; }
  .tpl-info__hd b { font-size: 14px; }
  .tpl-info__hd em { font-size: 11.5px; }
  .tpl-info:not(.is-open) { display: none; }
  .tpl-info__hd svg { grid-column: 2; grid-row: 2 / span 2; width: 18px; height: 18px; transform: rotate(0); }
  .tpl-info.is-open .tpl-info__hd svg { transform: rotate(180deg); }
  .tpl-info__body { padding: 18px 18px calc(20px + env(safe-area-inset-bottom, 0px)); gap: 18px; }
  .tpl-card__t { font-size: 20px; }
  .tpl-card__s { font-size: 14px; }
  .tpd-nums li { padding: 10px 12px; }
  .tpd-nums b { font-size: 19px; }
  .tpd-m summary, .tpd-m--solo { min-height: 48px; }
}
/* tp-mode */
@media (max-width: 374px) { .tp-mode__tab svg { display: none; } }

/* ── 템플릿 종류 · PC 왼쪽 업종 칸 · 명함 목록(2026-12-03 사용자 「PC 는 좌측 카테고리 스티키 · 우측 4개씩 · 3D 아이콘 · 하위 메뉴 웹사이트 / 디지털 명함」) ── */
/* tp-kind — 히어로 맨 위 웹사이트 · 디지털 명함(ft-eye 알약과 같은 결) */
.tp-kind { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: #0a0a0a; font-size: clamp(14px, .7rem + .5vw, 17px); line-height: 1.2; }
.tp-kind a { padding: .35em .95em; border-radius: 999px; color: #d9dccf; font-weight: 800; letter-spacing: -.02em; text-decoration: none; transition: color .2s, background .2s; }
.tp-kind a:hover { color: var(--lime); }
.tp-kind a.is-on { background: var(--lime); color: #0a0a0a; }
.tp-kind a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
/* 업종 아이콘 · 머리 — 태블릿 · 휴대폰 가로 줄에서는 숨긴다(그 꼴 그대로) */
.tp-cat-ic, .tp-cats__hd { display: none; }
.tp-cat-nm { min-width: 0; }
.tpl-dev[hidden] { display: none; }
@media (min-width: 1024px) {
  .tp-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(24px, 2.2vw, 40px); align-items: start; max-width: 1920px; margin-inline: auto; padding: clamp(28px, 3vw, 44px) clamp(32px, 4vw, 80px) 0; }
  .tp-body > .tp-cats { position: sticky; top: 84px; display: block; max-width: none; margin: 0; padding: 0; border-image: none; }
  .tp-body > .tp-cats::after { display: none; }
  .tp-cats__hd { display: block; margin: 0 0 10px; padding-left: 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: #8a8b82; }
  .tp-cats__nav { display: none; }
  .tp-lib .tp-cats .wall__tabs { flex-direction: column; gap: 2px; max-height: calc(100vh - 84px - 48px); max-height: calc(100dvh - 84px - 48px); padding: 4px 6px 10px 4px; margin-left: -4px; overflow: hidden auto; overscroll-behavior: contain; box-shadow: none; -webkit-mask-image: none; mask-image: none; scrollbar-width: thin; scrollbar-color: rgba(10, 10, 10, .2) transparent; }
  .tp-lib .tp-cats .wall__tab { flex: none; justify-content: flex-start; gap: 10px; width: 100%; height: 44px; padding: 0 12px 0 6px; border-radius: 14px; text-align: left; transition: background .2s, color .2s, box-shadow .2s; }
  .tp-lib .tp-cats .wall__tab::after { display: none; }
  .tp-cat-ic { display: block; flex: none; width: 34px; height: 34px; object-fit: contain; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
  .tp-cat-nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tp-lib .tp-cats .wall__tab em { flex: none; min-width: 24px; padding: 3px 7px; border-radius: 999px; background: rgba(10, 10, 10, .05); text-align: center; }
  .tp-lib .tp-cats .wall__tab:hover { background: rgba(10, 10, 10, .045); }
  .tp-lib .tp-cats .wall__tab:hover .tp-cat-ic { transform: scale(1.12) rotate(-4deg); }
  .tp-lib .tp-cats .wall__tab.is-on { background: #fff; box-shadow: 0 1px 0 rgba(10, 10, 10, .04), 0 10px 24px -14px rgba(10, 10, 10, .35); }
  .tp-lib .tp-cats .wall__tab.is-on .tp-cat-ic { transform: scale(1.08); }
  .tp-lib .tp-cats .wall__tab.is-on em { background: #0a0a0a; color: var(--lime); }
  .tp-main { min-width: 0; }
  .tp-main .tp-wall { margin-top: 0; }
  .tp-main .tp-wall.wall__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); justify-content: stretch; gap: 36px clamp(14px, 1.4vw, 24px); padding-inline: 0; }
  .tp-main .shell { max-width: none; padding-inline: 0; }
  .tp-main .tp-wall--card.wall__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 12px; }   /* 명함은 한 줄 5개(2026-12-03 사용자 「디지털 명함은 5개씩」) */
}
/* tpc — 명함 목록 그림(휴대폰 틀 · 안은 실제 명함 iframe · 폭 맞춤은 tpl.js cardFit) */
.tpc-it { position: relative; }
.tpc-win { position: relative; display: block; padding: 7px; border-radius: 26px; background: #0c0d0f; box-shadow: 0 18px 36px -24px rgba(10, 10, 10, .55); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.tpc-scr { position: relative; display: block; aspect-ratio: 9 / 17; overflow: hidden; border-radius: 20px; background: #e9ebef; }
.tpc-scr iframe { position: absolute; left: 0; top: 0; width: 390px; height: 737px; border: 0; transform-origin: 0 0; pointer-events: none; }
.tpc-scr img { position: absolute; left: 0; top: 0; display: block; width: 100%; height: auto; max-width: none; pointer-events: none; }   /* 찍어 둔 긴 명함 그림(폭 300) — 위에서부터 휴대폰 한 화면(9:17)만 보인다 */
.tpc-it:hover .tpc-win { transform: translateY(-6px); box-shadow: 0 28px 44px -24px rgba(10, 10, 10, .6); }
.tpc-it .tp-badge { left: 16px; top: 16px; }
@media (max-width: 599px) { .tpc-win { padding: 5px; border-radius: 20px; } .tpc-scr { border-radius: 15px; } .tpc-it .tp-badge { left: 11px; top: 11px; } }