/* 사이트 팝업 */
.tm-pop { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .22s ease; }
.tm-pop[hidden] { display: none; }
.tm-pop.is-open { opacity: 1; }
.tm-pop__dim { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); }
.tm-pop__card { position: relative; width: min(420px, 100%); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(15, 23, 42, .35); transform: translateY(14px) scale(.98); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.tm-pop.is-open .tm-pop__card { transform: none; }
.tm-pop__viewport { position: relative; overflow: hidden; background: #0F172A; }
.tm-pop__track { display: flex; margin: 0; padding: 0; list-style: none; transition: transform .35s ease; }
.tm-pop__slide { flex: 0 0 100%; min-width: 100%; }
.tm-pop__slide[hidden] { display: none; }
.tm-pop__slide a, .tm-pop__slide img { display: block; width: 100%; }
.tm-pop__slide img { height: auto; max-height: calc(100vh - 140px); object-fit: contain; }
.tm-pop__nav { position: absolute; top: 50%; z-index: 2; display: none; align-items: center; justify-content: center; width: 38px; height: 38px; margin-top: -19px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #0F172A; cursor: pointer; box-shadow: 0 6px 16px rgba(15, 23, 42, .2); }
.tm-pop__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tm-pop__nav.is-prev { left: 10px; }
.tm-pop__nav.is-next { right: 10px; }
.tm-pop__dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: none; justify-content: center; gap: 6px; }
.tm-pop__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .2s, background .2s; }
.tm-pop__dots button.is-on { width: 22px; background: #fff; }
.tm-pop.is-multi .tm-pop__nav { display: inline-flex; }
.tm-pop.is-multi .tm-pop__dots { display: flex; }
.tm-pop__bar { display: flex; border-top: 1px solid #E2E8F0; }
.tm-pop__bar button { flex: 1; height: 50px; border: 0; background: #fff; color: #475569; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tm-pop__bar button + button { border-left: 1px solid #E2E8F0; color: #0F172A; font-weight: 800; }
.tm-pop__bar button:hover { background: #F8FAFC; }
@media (max-width: 600px) {
    .tm-pop { align-items: flex-end; padding: 0; }
    .tm-pop__card { width: 100%; border-radius: 18px 18px 0 0; transform: translateY(40px); }
    .tm-pop__slide img { max-height: calc(100vh - 110px); }
}

/* 관리자 */
.tm-popb-open { position: fixed; left: 20px; bottom: 20px; z-index: 8990; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px 0 13px; border: 1px solid #E2E8F0; border-radius: 999px; background: #fff; color: #0F172A; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 22px rgba(15, 23, 42, .14); }
.tm-popb-open svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tm-popb-open:hover { border-color: #059669; color: #059669; }
.tm-popb { position: fixed; inset: 0; z-index: 9100; visibility: hidden; }
.tm-popb.is-open { visibility: visible; }
.tm-popb__dim { position: absolute; inset: 0; background: rgba(15, 23, 42, .4); opacity: 0; transition: opacity .2s; }
.tm-popb.is-open .tm-popb__dim { opacity: 1; }
.tm-popb__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(440px, 100%); background: #F8FAFC; box-shadow: -20px 0 50px rgba(15, 23, 42, .18); transform: translateX(100%); transition: transform .25s ease; }
.tm-popb.is-open .tm-popb__panel { transform: none; }
.tm-popb__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #E2E8F0; background: #fff; }
.tm-popb__head h2 { margin: 0; color: #0F172A; font-size: 18px; font-weight: 800; }
.tm-popb__x { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #F1F5F9; cursor: pointer; }
.tm-popb__x svg { width: 18px; height: 18px; fill: none; stroke: #0F172A; stroke-width: 2; stroke-linecap: round; }
.tm-popb__body { flex: 1; overflow: auto; padding: 16px 20px 24px; }
.tm-popb__add { width: 100%; height: 44px; margin-bottom: 12px; border: 1px dashed #94A3B8; border-radius: 12px; background: #fff; color: #0F172A; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.tm-popb__add:hover { border-color: #059669; color: #059669; }
.tm-popb__empty { margin: 30px 0; color: #64748B; font-size: 14px; text-align: center; }
.tm-popb__item { margin-bottom: 10px; border: 1px solid #E2E8F0; border-radius: 14px; background: #fff; }
.tm-popb__item summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.tm-popb__item summary::-webkit-details-marker { display: none; }
.tm-popb__thumb { flex: 0 0 44px; width: 44px; height: 54px; border-radius: 8px; overflow: hidden; background: #E2E8F0; }
.tm-popb__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tm-popb__name { flex: 1; min-width: 0; color: #0F172A; font-size: 14px; font-weight: 700; line-height: 1.35; }
.tm-popb__name small { display: block; color: #64748B; font-size: 12px; font-weight: 500; }
.tm-popb__st { flex: none; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.tm-popb__st.is-on { background: #ECFDF5; color: #047857; }
.tm-popb__st.is-soon { background: #EFF6FF; color: #1D4ED8; }
.tm-popb__st.is-off { background: #F1F5F9; color: #64748B; }
.tm-popb__fields { display: grid; gap: 10px; padding: 4px 14px 14px; border-top: 1px solid #F1F5F9; }
.tm-popb__fields label { display: grid; gap: 5px; color: #475569; font-size: 12px; font-weight: 700; }
.tm-popb__fields input[type="text"], .tm-popb__fields input[type="date"], .tm-popb__fields select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #CBD5E1; border-radius: 9px; background: #fff; color: #0F172A; font: inherit; font-size: 13px; box-sizing: border-box; }
.tm-popb__fields .tm-popb__check { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: #0F172A; font-size: 13px; }
.tm-popb__img { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.tm-popb__up { position: relative; display: inline-flex !important; align-items: center; height: 38px; padding: 0 12px; border: 1px solid #0F172A; border-radius: 9px; background: #0F172A; color: #fff !important; font-size: 12px; white-space: nowrap; cursor: pointer; }
.tm-popb__up input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tm-popb__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tm-popb__ops { display: flex; gap: 6px; }
.tm-popb__ops button { height: 32px; padding: 0 12px; border: 1px solid #CBD5E1; border-radius: 8px; background: #fff; color: #334155; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.tm-popb__ops .is-del { margin-left: auto; border-color: #FECACA; color: #DC2626; }
.tm-popb__foot { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid #E2E8F0; background: #fff; }
.tm-popb__msg { flex: 1; margin: 0; color: #047857; font-size: 12px; font-weight: 600; line-height: 1.4; }
.tm-popb__msg.is-bad { color: #DC2626; }
.tm-popb__ghost, .tm-popb__save { height: 42px; padding: 0 18px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.tm-popb__ghost { border: 1px solid #CBD5E1; background: #fff; color: #0F172A; }
.tm-popb__save { border: 0; background: #059669; color: #fff; }
.tm-popb__save:hover { background: #047857; }
