/* =========================================================
 * 편입N 목업 시안 — P7 (관리자: 사이트 관리 · 보안·권한 · 접속 통계) 전용 스타일
 * 공용(tokens·site·admin.css)에 없는 것만 p7- 접두사로 둔다.
 * 목차: 0 공통  1 메인 화면 구성(site-home)  2 배너·팝업  3 유튜브  4 랜딩 목록
 *       5 랜딩 편집기  6 게시판 관리  7 상담 신청  8 재생 로그  9 관리자 권한  10 접속 통계
 * ========================================================= */

/* ---------- 0. 공통 ---------- */
.p7-lock-note { margin-bottom: 16px; }
.p7-ico-btn { width: 30px; height: 30px; border-radius: var(--radius-sm); display: inline-grid; place-items: center; color: var(--slate-500); border: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.p7-ico-btn:hover { color: var(--navy); border-color: var(--navy); }
.p7-ico-btn[disabled] { opacity: .35; pointer-events: none; }
.p7-ico-btn.is-danger:hover { color: var(--red); border-color: var(--red); }
.p7-rot { transform: rotate(180deg); }
.p7-no { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); color: var(--slate-600); font-size: 12px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.p7-thumb { width: 96px; flex-shrink: 0; }
.p7-thumb .ph { border-radius: var(--radius-sm); }
.p7-thumb .ph::after { display: none; }
.p7-thumb .ph-text { font-size: 10px; padding: 4px; }
.p7-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--slate-500); margin-top: 2px; }
.p7-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.p7-title { font-weight: 700; color: var(--navy); line-height: 1.4; }
.p7-ctrl { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.p7-help { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--slate-500); }
.p7-help span { display: inline-flex; align-items: center; gap: 4px; }
.p7-copy { display: inline-flex; align-items: center; gap: 6px; }
.p7-copy code { font-family: inherit; font-size: 12px; color: var(--slate-600); background: var(--bg); border-radius: 3px; padding: 2px 6px; }
.p7-swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.p7-swatch { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.p7-swatch.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.p7-sw-white { background: #fff; } .p7-sw-gray { background: var(--bg); } .p7-sw-blue { background: var(--blue-soft); }
.p7-sw-navy { background: var(--navy); } .p7-sw-amber { background: var(--amber-soft); }
.p7-dt-click tbody tr { cursor: pointer; }
.p7-stack-sm { display: grid; gap: 8px; }
.p7-sticky { position: sticky; top: calc(var(--adm-top-h) + 16px); }
@media (max-width: 1023px) { .p7-sticky { position: static; } }
.p7-kv-sm { grid-template-columns: 92px minmax(0, 1fr); font-size: 13px; }
.p7-kv-sm dt, .p7-kv-sm dd { padding: 9px 12px; }
.p7-fieldset { display: grid; gap: 14px; }
.p7-fieldset .label { font-size: 13px; }
.p7-fieldset .input, .p7-fieldset .select { height: 40px; font-size: 14px; }
.p7-range { display: flex; align-items: center; gap: 6px; }
.p7-range .input { min-width: 0; }
.panel-head .p7-sub { font-weight: 500; font-size: 12px; color: var(--slate-500); }

/* 정렬 목록 확장 (공용 .sort-list 위에) */
.sort-list.p7-list { grid-template-columns: minmax(0, 1fr); }   /* 공용 .sort-list 는 열 폭이 내용에 밀려 넘침 */
.sort-list.p7-sorting { user-select: none; }
.sort-item .handle { touch-action: none; width: 28px; height: 32px; border-radius: var(--radius-sm); }
.sort-item .handle:hover { background: var(--bg); color: var(--navy); }
.sort-item.is-dragging { box-shadow: var(--shadow-pop); }
.sort-item.p7-flash { animation: p7flash 1.2s var(--ease); }
@keyframes p7flash { 0%, 40% { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); } 100% { box-shadow: none; } }
.sort-item .switch .p7-sw-label { min-width: 34px; font-weight: 600; color: var(--slate-600); }
.sort-item.is-off .p7-title, .sort-item.is-off .p7-thumb { opacity: .55; }

/* ---------- 1. 메인 화면 구성 ---------- */
.p7-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: start; }
@media (max-width: 1279px) { .p7-home { grid-template-columns: minmax(0, 1fr); } }
.p7-area { flex-wrap: nowrap; }
.p7-area .si-main b { display: block; font-size: 14px; }
.p7-area .p7-si-desc { display: block; font-size: 12px; color: var(--slate-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p7-area .p7-hidden-note { display: none; font-size: 12px; color: var(--amber); font-weight: 600; }
.p7-area.is-off .p7-hidden-note { display: inline-flex; align-items: center; gap: 4px; }
.p7-area.is-off .p7-si-desc { display: none; }
.p7-area.is-off .si-main b { color: var(--slate-500); text-decoration: line-through; text-decoration-color: var(--slate-300); }
.p7-fixed { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: var(--radius); font-size: 13px; color: var(--slate-500); background: #fafbfc; }
.p7-fixed .ico { color: var(--slate-400); }
.p7-dirty { font-size: 12px; font-weight: 700; color: var(--amber); display: none; }
.p7-dirty.is-on { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 767px) {
  .p7-area { flex-wrap: wrap; gap: 8px 10px; }
  .p7-area .si-main { flex: 1 1 calc(100% - 90px); }
  .p7-area .p7-ctrl { width: 100%; justify-content: flex-end; padding-top: 8px; border-top: 1px dashed var(--line-soft); }
  .p7-area .p7-ctrl .btn { margin-right: auto; }
}

/* 미리보기 프레임 */
.p7-pv-wrap { background: #e9edf2; border-radius: var(--radius); padding: 16px; display: flex; justify-content: center; max-height: 820px; overflow-y: auto; }
.p7-pv { width: 100%; background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(22,37,74,.12); overflow: hidden; font-size: 10px; line-height: 1.35; transition: width .25s var(--ease); }
.p7-pv.is-mobile { width: 250px; border-radius: 18px; border: 6px solid var(--navy); }
.p7-pv-bar { height: 22px; display: flex; align-items: center; gap: 4px; padding: 0 8px; background: #eef1f5; border-bottom: 1px solid var(--line); }
.p7-pv-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--slate-300); }
.p7-pv-bar span { margin-left: 6px; flex: 1; height: 12px; border-radius: 6px; background: #fff; font-size: 8px; color: var(--slate-500); padding: 0 6px; line-height: 12px; font-style: normal; overflow: hidden; white-space: nowrap; }
.p7-pv.is-mobile .p7-pv-bar { justify-content: center; }
.p7-pv.is-mobile .p7-pv-bar i { display: none; }
.p7-m-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.p7-m-head .logo { flex-shrink: 0; }
.p7-m-head .logo-img { height: 16px; }
.p7-m-gnb { display: flex; gap: 6px; flex: 1; }
.p7-m-gnb i { height: 5px; flex: 1; max-width: 26px; border-radius: 3px; background: var(--slate-300); }
.p7-m-cta { width: 34px; height: 12px; border-radius: 3px; background: var(--red); }
.p7-pv.is-mobile .p7-m-gnb { justify-content: flex-end; }
.p7-pv.is-mobile .p7-m-gnb i { display: none; }
.p7-pv.is-mobile .p7-m-gnb::after { content: "☰"; font-size: 12px; color: var(--navy); }
.p7-pv-blk { position: relative; padding: 10px; border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: background .2s; }
.p7-pv-blk:hover { background: #f7f9fc; }
.p7-pv-blk.p7-flash { animation: p7pvflash 1.2s var(--ease); }
@keyframes p7pvflash { 0%, 40% { background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--blue); } 100% { background: transparent; } }
.p7-pv-tag { position: absolute; right: 6px; top: 6px; z-index: 2; font-size: 9px; font-weight: 700; color: #fff; background: rgba(22,37,74,.72); border-radius: 3px; padding: 1px 5px; pointer-events: none; }
.p7-pv-empty { padding: 40px 10px; text-align: center; color: var(--slate-500); font-size: 12px; }
.p7-m-foot { background: var(--navy); padding: 10px; display: grid; gap: 4px; }
.p7-m-foot i { height: 4px; width: 60%; border-radius: 2px; background: rgba(255,255,255,.25); }
.p7-m-foot i:nth-child(2) { width: 40%; }
.p7-ln { display: block; height: 5px; border-radius: 3px; background: var(--line); margin-top: 4px; width: 80%; }
.p7-ln.w50 { width: 50%; } .p7-ln.w60 { width: 60%; } .p7-ln.w90 { width: 90%; }
.p7-m-h { font-weight: 800; font-size: 10px; color: var(--navy); margin-bottom: 6px; }
.p7-m-cols { display: grid; gap: 6px; }
.p7-m-cols.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p7-m-cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p7-m-cols.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.p7-m-cols.c6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.p7-pv.is-mobile .p7-m-cols.c3 { grid-template-columns: minmax(0, 1fr); }
.p7-pv.is-mobile .p7-m-cols.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p7-pv.is-mobile .p7-m-cols.c6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p7-pv.is-mobile .p7-m-cols.c2 { grid-template-columns: minmax(0, 1fr); }
.p7-pv.is-mobile .p7-m-cols.is-scroll { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70%; overflow: hidden; }
.p7-m-banner { background: linear-gradient(120deg, #0f1b38, var(--navy) 60%, #2d4a8a); color: #fff; border-radius: 4px; padding: 16px 14px; min-height: 92px; position: relative; }
.p7-m-banner small { display: block; font-size: 8px; color: #ffb4ae; font-weight: 700; }
.p7-m-banner b { display: block; font-size: 14px; line-height: 1.25; margin: 2px 0 6px; max-width: 60%; }
.p7-m-banner .p7-m-btn { display: inline-block; width: 46px; height: 12px; border-radius: 3px; background: var(--red); }
.p7-m-dots { position: absolute; left: 14px; bottom: 6px; display: flex; gap: 3px; }
.p7-m-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.4); }
.p7-m-dots i:first-child { width: 12px; border-radius: 3px; background: #fff; }
.p7-pv.is-mobile .p7-m-banner b { max-width: 100%; font-size: 13px; }
.p7-m-tile { border-radius: 4px; padding: 8px; color: #fff; font-weight: 700; font-size: 9px; min-height: 30px; }
.p7-m-tile.t-navy { background: var(--navy); } .p7-m-tile.t-red { background: var(--red); } .p7-m-tile.t-blue { background: var(--blue); }
.p7-m-quick { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 8px; color: var(--slate-600); text-align: center; }
.p7-m-quick i { width: 22px; height: 22px; border-radius: 50%; background: var(--blue-soft); border: 1px solid #d3def0; }
.p7-m-card { border: 1px solid var(--line); border-radius: 4px; padding: 6px; min-width: 0; }
.p7-m-card.top-red { border-top: 3px solid var(--red); } .p7-m-card.top-navy { border-top: 3px solid var(--navy); } .p7-m-card.top-blue { border-top: 3px solid var(--blue); }
.p7-m-card b { font-size: 9px; display: block; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p7-m-card .p7-m-price { color: var(--red); font-weight: 800; font-size: 9px; margin-top: 3px; display: block; }
.p7-m-thumb { display: block; aspect-ratio: 16 / 9; border-radius: 3px; background: linear-gradient(135deg, #3a6cc0, var(--navy)); margin-bottom: 4px; position: relative; }
.p7-m-thumb.is-yt { background: linear-gradient(135deg, #333, #0d0d0d); }
.p7-m-thumb.is-yt::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 10px; margin: -5px 0 0 -7px; background: var(--red); border-radius: 3px; }
.p7-m-person { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 8px; color: var(--slate-600); }
.p7-m-person i { width: 100%; max-width: 34px; aspect-ratio: 1; border-radius: 50%; background: #dfe5ee radial-gradient(circle at 50% 38%, #b7c1d1 0 26%, transparent 27%); }
.p7-m-band { margin-top: 6px; height: 14px; border-radius: 3px; background: var(--blue-soft); }
.p7-m-board b { font-size: 9px; display: block; padding-bottom: 3px; border-bottom: 1px solid var(--navy); margin-bottom: 2px; }
.p7-m-rate { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.p7-m-rate strong { font-size: 18px; color: var(--red); font-weight: 800; line-height: 1; }
.p7-m-rate span { font-size: 8px; color: var(--slate-500); }
.p7-m-campus { border: 1px solid var(--line); border-radius: 4px; padding: 6px; font-size: 9px; font-weight: 700; }
.p7-m-campus span { display: block; color: var(--red); font-weight: 600; font-size: 8px; }

/* ---------- 2. 배너·미니배너·팝업 ---------- */
.p7-banner-item .p7-thumb { width: 220px; }
/* 메인 배너 미리보기: 원사이트 통배너 이미지(5:1) 그대로 */
.p7-m-banner.is-img { padding: 0; min-height: 0; background: #000; overflow: hidden; }
.p7-m-banner.is-img img { display: block; width: 100%; aspect-ratio: 5 / 1; object-fit: contain; }
.p7-m-banner.is-img .p7-m-dots { position: static; justify-content: center; padding: 4px 0; background: #fff; }
.p7-m-banner.is-img .p7-m-dots i { background: var(--slate-300); }
.p7-m-banner.is-img .p7-m-dots i:first-child { background: var(--red); }
.p7-popup-stage .p7-stage-site .p7-m-banner.is-img { min-height: 0; }
.p7-banner-item .badge { vertical-align: middle; }
@media (max-width: 767px) {
  .p7-banner-item { flex-wrap: wrap; }
  .p7-banner-item .p7-thumb { width: calc(100% - 64px); }
  .p7-banner-item .si-main { flex: 1 1 100%; }
  .p7-banner-item .p7-ctrl { width: 100%; justify-content: flex-end; }
}
.p7-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1023px) { .p7-mini-grid { grid-template-columns: minmax(0, 1fr); } }
.p7-mini-slot { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.p7-mini-slot .p7-slot-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 800; }
.p7-mini-slot .p7-slot-body { padding: 14px; display: grid; gap: 10px; }
.p7-mini-prev { border-radius: var(--radius-sm); color: #fff; padding: 16px; min-height: 86px; display: flex; flex-direction: column; justify-content: center; }
.p7-mini-prev b { font-size: 16px; }
.p7-mini-prev span { font-size: 12px; opacity: .85; }
.p7-mini-prev.is-navy { background: var(--navy); } .p7-mini-prev.is-red { background: var(--red); } .p7-mini-prev.is-blue { background: var(--blue); }
.p7-popup-stage { position: relative; background: #e9edf2; border-radius: var(--radius); aspect-ratio: 16 / 10; overflow: hidden; }
.p7-popup-stage .p7-stage-site { position: absolute; inset: 10px; background: #fff; border-radius: 4px; opacity: .65; padding: 10px; }
.p7-popup-stage .p7-stage-site .p7-m-banner { min-height: 70px; }
.p7-popup-box { position: absolute; width: 42%; max-width: 230px; background: #fff; border-radius: 6px; box-shadow: var(--shadow-pop); overflow: hidden; transition: all .25s var(--ease); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.p7-popup-stage[data-pos="lt"] .p7-popup-box { left: 24px; top: 24px; transform: none; }
.p7-popup-stage[data-pos="rb"] .p7-popup-box { left: auto; top: auto; right: 24px; bottom: 24px; transform: none; }
.p7-popup-box .ph { border-radius: 0; aspect-ratio: 4 / 4.2; }
.p7-popup-box .ph-text { font-size: 14px; }
.p7-popup-bar { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 10px; background: var(--navy); color: #fff; font-size: 11px; }
.p7-popup-bar label { display: inline-flex; align-items: center; gap: 4px; }
.p7-popup-bar input { accent-color: var(--red); width: 12px; height: 12px; margin: 0; }
@media (max-width: 767px) { .p7-popup-box { width: 56%; } .p7-popup-box .ph-text { font-size: 11px; } }
.p7-linktype { display: grid; gap: 8px; width: 100%; }

/* ---------- 3. 유튜브 ---------- */
.p7-yt-add { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 1023px) { .p7-yt-add { grid-template-columns: minmax(0, 1fr); } }
.p7-yt-preview { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.p7-yt-preview .ph { border-radius: 0; }
.p7-yt-preview .p7-yt-pbody { padding: 12px 14px; display: grid; gap: 4px; }
.p7-yt-preview.is-empty .ph { filter: grayscale(1); opacity: .5; }
.p7-yt-thumb { position: relative; }
.p7-yt-thumb .yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30px; height: 21px; border-radius: 6px; background: var(--red); color: #fff; display: grid; place-items: center; z-index: 2; }
.p7-yt-thumb .yt-len { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.72); color: #fff; font-size: 10px; font-weight: 600; padding: 0 4px; border-radius: 2px; z-index: 2; }
.p7-yt-item { flex-wrap: nowrap; }
.p7-yt-item .p7-thumb { width: 120px; }
@media (max-width: 767px) {
  .p7-yt-item { flex-wrap: wrap; }
  .p7-yt-item .p7-thumb { width: 104px; }
  .p7-yt-item .si-main { flex: 1 1 calc(100% - 170px); }
  .p7-yt-item .p7-ctrl { width: 100%; justify-content: flex-end; }
}
.p7-yt-loading { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--blue); }

/* ---------- 4. 랜딩 목록 ---------- */
.p7-url { display: flex; align-items: center; gap: 6px; }
.p7-url code { font-family: inherit; font-size: 12px; color: var(--blue); }

/* ---------- 5. 랜딩 편집기 ---------- */
.p7-le-info { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; }
@media (max-width: 1023px) { .p7-le-info { grid-template-columns: minmax(0, 1fr); } }
.p7-le-info .field .input { height: 40px; font-size: 14px; }
.p7-slug { display: flex; align-items: center; border: 1px solid var(--input-line); border-radius: var(--radius); background: #fff; height: 40px; overflow: hidden; }
.p7-slug > span { padding: 0 8px 0 12px; font-size: 13px; color: var(--slate-500); background: var(--bg); height: 100%; display: flex; align-items: center; border-right: 1px solid var(--line); white-space: nowrap; }
.p7-slug input { border: 0; height: 100%; flex: 1; min-width: 0; padding: 0 10px; font-size: 13px; color: var(--blue); font-weight: 600; outline: none; }
.p7-le-status { display: flex; align-items: center; gap: 8px; height: 40px; }
.p7-le { display: grid; grid-template-columns: 210px minmax(0, 1fr) 290px; gap: 16px; align-items: start; margin-top: 16px; }
@media (max-width: 1279px) {
  .p7-le { grid-template-columns: minmax(0, 1fr) 280px; }
  .p7-le-palette { grid-column: 1 / -1; }
  .p7-le-palette .p7-pal-list { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .p7-le { grid-template-columns: minmax(0, 1fr); }
  .p7-le-palette .p7-pal-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) { .p7-le-palette .p7-pal-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.p7-le > .panel, .p7-home > .panel, .p7-consult > .panel { margin-top: 0; }
.p7-step { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.p7-pal-list { display: grid; gap: 8px; }
.p7-pal { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 13px; font-weight: 700; color: var(--navy); text-align: left; transition: border-color .15s, background .15s; }
.p7-pal:hover { border-color: var(--blue); background: var(--blue-soft); }
.p7-pal .p7-pal-plus { flex-shrink: 0; margin-left: auto; color: var(--slate-400); }
@media (max-width: 1279px) {
  .p7-pal { flex-direction: column; justify-content: center; gap: 4px; padding: 10px 6px; font-size: 12px; text-align: center; }
  .p7-pal .p7-pal-plus { display: none; }
}
.p7-canvas { background: #e9edf2; border-radius: var(--radius); padding: 18px; min-height: 480px; }
.p7-page { max-width: 680px; margin: 0 auto; background: #fff; border-radius: 4px; box-shadow: 0 2px 10px rgba(22,37,74,.1); min-height: 420px; }
.p7-page-top { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--slate-500); }
.p7-blk { position: relative; padding: 22px 26px; outline: 1px dashed transparent; outline-offset: -1px; cursor: pointer; transition: outline-color .15s; font-size: 15px; color: var(--navy); }
.p7-blk:hover { outline-color: var(--slate-300); }
.p7-blk.is-selected { outline: 2px solid var(--blue); outline-offset: -2px; z-index: 1; }
.p7-blk-label { position: absolute; left: 0; top: 0; transform: translateY(-100%); background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 3px 3px 0 0; display: none; white-space: nowrap; z-index: 3; }
.p7-blk.is-selected .p7-blk-label { display: block; }
.p7-blk:first-child .p7-blk-label { transform: none; border-radius: 0 0 3px 0; }
.p7-blk-tools { position: absolute; right: 6px; top: 6px; display: none; gap: 4px; z-index: 3; }
.p7-blk.is-selected .p7-blk-tools { display: flex; }
.p7-blk-tools button { width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--navy); color: #fff; display: grid; place-items: center; }
.p7-blk-tools button:hover { background: var(--blue); }
.p7-blk-tools button.is-del:hover { background: var(--red); }
.p7-blk-tools button[disabled] { opacity: .35; pointer-events: none; }
.p7-blk[data-align="left"] { text-align: left; } .p7-blk[data-align="center"] { text-align: center; } .p7-blk[data-align="right"] { text-align: right; }
.p7-blk[data-size="s"] { font-size: 13px; } .p7-blk[data-size="l"] { font-size: 18px; }
.p7-blk[data-bg="gray"] { background: var(--bg); } .p7-blk[data-bg="blue"] { background: var(--blue-soft); } .p7-blk[data-bg="amber"] { background: var(--amber-soft); }
.p7-blk[data-bg="navy"] { background: var(--navy); color: #fff; }
.p7-blk[data-bg="navy"] .p7-b-sub, .p7-blk[data-bg="navy"] .p7-b-text { color: var(--slate-300); }
.p7-blk[data-bg="navy"] .p7-b-title { color: #fff; }
.p7-blk.p7-period-off::after { content: "공개 기간 밖 · 숨김 예정"; position: absolute; right: 8px; bottom: 6px; font-size: 11px; font-weight: 700; color: var(--amber); background: var(--amber-soft); padding: 1px 6px; border-radius: 3px; }
.p7-blk.is-image { padding: 0; }
.p7-blk.is-image .ph { border-radius: 0; }
.p7-blk.is-image .ph-text { font-size: 1.6em; }
.p7-b-title { font-size: 1.45em; font-weight: 800; line-height: 1.35; letter-spacing: -0.5px; }
.p7-b-sub { font-size: .8em; font-weight: 700; color: var(--red); margin-bottom: 4px; }
.p7-b-text { margin-top: 8px; color: var(--slate-600); line-height: 1.7; font-size: .95em; }
.p7-b-yt { position: relative; max-width: 520px; margin: 0 auto; }
.p7-blk[data-align="left"] .p7-b-yt { margin-left: 0; } .p7-blk[data-align="right"] .p7-b-yt { margin-right: 0; }
.p7-b-yt .yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 38px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center; z-index: 2; }
.p7-b-form { max-width: 440px; margin: 10px auto 0; display: grid; gap: 8px; text-align: left; }
.p7-blk[data-align="left"] .p7-b-form { margin-left: 0; } .p7-blk[data-align="right"] .p7-b-form { margin-right: 0; }
.p7-b-form .input, .p7-b-form .select { height: 40px; font-size: 14px; pointer-events: none; }
.p7-b-form .check { font-size: 12px; color: var(--slate-600); pointer-events: none; }
.p7-b-form .btn { pointer-events: none; }
.p7-b-courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; text-align: left; }
.p7-b-courses .p7-b-cc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; color: var(--navy); }
.p7-b-courses .ph { border-radius: 0; }
.p7-b-courses .ph::after { display: none; }
.p7-b-courses .ph-text { font-size: 11px; }
.p7-b-courses .p7-b-cc div { padding: 8px 10px; font-size: 12px; }
.p7-b-courses b { display: block; font-size: 13px; line-height: 1.35; }
.p7-b-courses .price-sale { font-size: 13px; }
@media (max-width: 767px) { .p7-b-courses { grid-template-columns: minmax(0, 1fr); } }
.p7-b-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.p7-blk[data-align="left"] .p7-b-btns { justify-content: flex-start; } .p7-blk[data-align="right"] .p7-b-btns { justify-content: flex-end; }
.p7-b-btns .btn { pointer-events: none; }
.p7-b-cd { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.p7-blk[data-align="left"] .p7-b-cd { justify-content: flex-start; } .p7-blk[data-align="right"] .p7-b-cd { justify-content: flex-end; }
.p7-b-cd span { min-width: 58px; padding: 8px 6px; border-radius: var(--radius); background: var(--navy); color: #fff; text-align: center; font-weight: 800; font-size: 1.4em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.p7-b-cd span small { display: block; font-size: 10px; font-weight: 600; color: var(--slate-300); margin-top: 3px; }
.p7-blk[data-bg="navy"] .p7-b-cd span { background: #fff; color: var(--navy); }
.p7-blk[data-bg="navy"] .p7-b-cd span small { color: var(--slate-500); }
.p7-page-empty { padding: 60px 20px; text-align: center; color: var(--slate-500); font-size: 14px; }
@media (max-width: 767px) {
  .p7-canvas { padding: 10px; }
  .p7-blk { padding: 18px 14px; }
  .p7-b-cd span { min-width: 0; flex: 1; font-size: 1.15em; }
}
.p7-set-empty { padding: 26px 10px; text-align: center; color: var(--slate-500); font-size: 13px; }
.p7-set-type { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--blue-soft); border-radius: var(--radius); font-weight: 800; font-size: 13px; color: var(--blue); }
.p7-set .seg { display: flex; width: 100%; }
.p7-set .seg button { flex: 1; padding: 6px 4px; }
.p7-le-pv { margin: 0 auto; transition: max-width .25s var(--ease); max-width: 680px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.p7-le-pv.is-mobile { max-width: 360px; border: 8px solid var(--navy); border-radius: 22px; }
.p7-le-pv .p7-blk { cursor: default; }
.p7-le-pv .p7-blk:hover { outline-color: transparent; }
.p7-le-pv.is-mobile .p7-b-courses { grid-template-columns: minmax(0, 1fr); }
.p7-le-pv.is-mobile .p7-blk { padding: 18px 14px; }
.p7-le-pv.is-mobile .p7-b-cd span { min-width: 0; flex: 1; font-size: 1.1em; }

/* ---------- 6. 게시판 관리 ---------- */
.p7-board-nav { display: grid; }
.p7-board-nav button { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 14px; font-weight: 600; color: var(--slate-600); text-align: left; border-left: 3px solid transparent; }
.p7-board-nav button + button { border-top: 1px solid var(--line-soft); }
.p7-board-nav button:hover { background: #fafbfd; color: var(--navy); }
.p7-board-nav button.is-active { color: var(--navy); font-weight: 800; background: var(--blue-soft); border-left-color: var(--navy); }
.p7-board-nav .p7-cnt { margin-left: auto; font-size: 12px; color: var(--slate-500); font-weight: 600; }
.p7-board-nav .ico { color: var(--slate-400); }
@media (max-width: 1023px) {
  .p7-board-nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .p7-board-nav::-webkit-scrollbar { display: none; }
  .p7-board-nav button { flex-shrink: 0; border-left: 0; border-bottom: 3px solid transparent; padding: 10px 14px; }
  .p7-board-nav button + button { border-top: 0; }
  .p7-board-nav button.is-active { border-bottom-color: var(--navy); }
  .p7-board-nav .ico { display: none; }
}
.p7-editor { border: 1px solid var(--input-line); border-radius: var(--radius); overflow: hidden; width: 100%; }
.p7-tb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; background: #fafbfc; border-bottom: 1px solid var(--line); }
.p7-tb button { min-width: 30px; height: 30px; padding: 0 6px; border-radius: var(--radius-sm); font-size: 13px; color: var(--slate-600); display: inline-grid; place-items: center; }
.p7-tb button:hover { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.p7-tb .p7-tb-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.p7-tb select { height: 30px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 12px; padding: 0 6px; background: #fff; }
.p7-ed-area { min-height: 260px; padding: 16px 18px; font-size: 14px; line-height: 1.8; outline: none; }
.p7-ed-area p + p { margin-top: 8px; }
.p7-files { display: grid; gap: 6px; width: 100%; }
.p7-files li { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 10px; background: var(--bg); border-radius: var(--radius-sm); }
.p7-files li .muted { margin-left: auto; font-size: 12px; }
.p7-comp-input { width: 100%; min-width: 72px; height: 32px; border: 1px solid var(--input-line); border-radius: var(--radius-sm); padding: 0 8px; font-size: 13px; text-align: right; background: #fff; }
.p7-comp-input.is-text { text-align: left; min-width: 120px; }

/* ---------- 7. 상담 신청 ---------- */
.p7-consult { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
@media (max-width: 1279px) { .p7-consult { grid-template-columns: minmax(0, 1fr); } }
.p7-memo-list { display: grid; gap: 8px; }
.p7-memo-list li { font-size: 13px; padding: 8px 10px; background: var(--bg); border-radius: var(--radius-sm); }
.p7-memo-list time { display: block; font-size: 11px; color: var(--slate-500); }
.p7-tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; margin-left: 4px; }

/* ---------- 8. 재생 로그 ---------- */
.p7-anom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1023px) { .p7-anom { grid-template-columns: minmax(0, 1fr); } }
.p7-anom > .panel { margin-top: 0; }
.p7-anom + .panel { margin-top: 16px; }
.p7-anom-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px; }
.p7-anom-item + .p7-anom-item { border-top: 1px solid var(--line-soft); }
.p7-anom-item .p7-anom-t { flex: 1; min-width: 0; font-size: 13px; }
.p7-anom-item .p7-anom-t b { font-size: 14px; }
.p7-anom-item .p7-anom-t .muted { font-size: 12px; display: block; }
.p7-anom-item .p7-ctrl { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 767px) { .p7-anom-item { flex-wrap: wrap; } .p7-anom-item .p7-ctrl { width: 100%; justify-content: flex-start; } }
.p7-place { display: inline-flex; gap: 2px; vertical-align: middle; margin-right: 4px; }
.p7-place i { width: 8px; height: 8px; border-radius: 2px; background: var(--line); }
.p7-place i.is-on { background: var(--navy); }
.p7-place i.is-over { background: var(--red); }
.p7-policy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.p7-policy > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.p7-policy b { font-size: 20px; font-weight: 800; color: var(--navy); }
.p7-policy span { display: block; font-size: 12px; color: var(--slate-500); }
@media (max-width: 767px) { .p7-policy { grid-template-columns: minmax(0, 1fr); } }
.dt tr.p7-row-red td { background: #fff8f8; }

/* ---------- 9. 관리자 권한 ---------- */
.p7-matrix th, .p7-matrix td { text-align: center; }
.p7-matrix th:first-child, .p7-matrix td:first-child { text-align: left; }
.p7-matrix thead tr:first-child th { border-bottom: 0; }
.p7-matrix thead th.p7-role-h { border-left: 1px solid var(--line); font-size: 13px; color: var(--navy); }
.p7-matrix td.p7-cl { border-left: 1px solid var(--line); }
.p7-matrix input { width: 17px; height: 17px; accent-color: var(--navy); margin: 0; }
.p7-matrix input:disabled { accent-color: var(--slate-400); }
.p7-matrix td .sub { white-space: normal; max-width: 280px; }
.p7-matrix tr.p7-scope td { background: #fafbfc; font-size: 12px; }
.p7-role-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; }
.p7-role-badge.is-super { background: var(--navy); color: #fff; }
.p7-role-badge.is-campus { background: var(--blue-soft); color: var(--blue); }
.p7-role-badge.is-instructor { background: var(--amber-soft); color: var(--amber); }

/* ---------- 10. 접속 통계 ---------- */
.p7-period { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p7-period .p7-range .input { width: 140px; height: 34px; font-size: 13px; }
@media (max-width: 767px) { .p7-period .p7-range { width: 100%; } .p7-period .p7-range .input { flex: 1; width: auto; } }
.p7-hourly .bc-bar::after { display: none; }
.p7-hourly { gap: 3px; }
.p7-hourly .bc-label { font-size: 10px; }
@media (max-width: 767px) { .p7-hourly .bc-col:nth-child(odd) .bc-label { visibility: hidden; } }
.p7-funnel { display: grid; gap: 10px; }
.p7-funnel > div { display: grid; grid-template-columns: 110px minmax(0, 1fr) 70px; gap: 10px; align-items: center; font-size: 13px; }
.p7-funnel .p7-fbar { height: 26px; border-radius: 4px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; padding: 0 8px; white-space: nowrap; overflow: hidden; min-width: 34px; }
.p7-funnel > div:last-child .p7-fbar { background: var(--red); }
.p7-funnel b { text-align: right; }
@media (max-width: 767px) { .p7-funnel > div { grid-template-columns: 80px minmax(0, 1fr) 54px; } }
.p7-device { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.p7-rank { width: 24px; height: 24px; border-radius: 4px; display: inline-grid; place-items: center; background: var(--bg); font-weight: 800; font-size: 12px; }
.p7-rank.is-top { background: var(--navy); color: #fff; }
.p7-kw { display: flex; flex-wrap: wrap; gap: 6px; }
.p7-kw span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: 13px; }
.p7-kw span b { color: var(--slate-500); font-weight: 600; font-size: 12px; }
.ico.p7-ii { display: inline-block; vertical-align: -2px; margin-left: 4px; color: var(--slate-500); }
.p7-page-top .logo { flex-shrink: 0; white-space: nowrap; }
.p7-page-top .logo-img { height: 24px; }
.p7-page-top > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- F2 보정 ---------- */
/* 권한 매트릭스: 잠금표에서 계산한 역할별 조회 가능/제외 메뉴 */
.p7-matrix td .p7-mx-ex { color: var(--slate-600); margin-top: 3px; }
.p7-matrix td .p7-mx-ex b { color: var(--navy); margin-right: 4px; }
.p7-matrix td .p7-mx-ex s { text-decoration: none; color: var(--red); font-weight: 700; }
/* (2026-11-20) 그룹 안에서 따로 정하는 메뉴 행(학습 Q&A 답변·학원 수강료 청구) */
.p7-matrix tr.p7-mx-item td { background: var(--bg); }
.p7-matrix tr.p7-mx-item td:first-child { padding-left: 26px; position: relative; }
.p7-matrix .p7-mx-arrow { position: absolute; left: 10px; color: var(--slate-400); }
/* 390: 첫 열이 좁아 설명이 2~3글자마다 줄바꿈되던 문제 → 첫 열 최소 폭 확보(표는 패널 안에서 가로 스크롤) */
@media (max-width: 767px) {
  .p7-matrix th:first-child, .p7-matrix td:first-child { min-width: 220px; white-space: normal; }
}
/* 재생 제한 정책: 기기 대수 카드를 없애고 '접속 장소 3곳 + 동시 시청 차단' 두 장으로 */
.p7-policy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .p7-policy { grid-template-columns: minmax(0, 1fr); } }

/* ---------- F3 보정 ---------- */
/* 권한 매트릭스 390: 표를 그룹별 카드로 바꿔 세 역할(최고·캠퍼스·강사)의 조회·수정 칸이 모두 한 화면에 보이게.
   위쪽 머리줄(역할 배지 + 조회/수정)은 6칸 격자로 남기고, 각 칸에는 역할·권한 이름을 붙인다. 768px 이상은 표 그대로 */
@media (max-width: 767px) {
  .p7-matrix, .p7-matrix thead, .p7-matrix tbody { display: block; width: 100%; }
  .p7-matrix tr { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .p7-matrix th, .p7-matrix td { display: block; min-width: 0 !important; padding: 8px 2px; }
  .p7-matrix thead tr:first-child th:first-child { display: none; }
  .p7-matrix thead tr:first-child th.p7-role-h { grid-column: span 2; padding: 8px 2px 2px; text-align: center; }
  .p7-matrix thead tr:nth-child(2) th { padding: 2px 2px 8px; border-bottom: 1px solid var(--line); text-align: center; }
  .p7-matrix .p7-role-badge { padding: 0 6px; font-size: 11px; }
  .p7-matrix tbody tr { border-bottom: 1px solid var(--line); }
  .p7-matrix tbody td { border-bottom: 0; }
  .p7-matrix tbody td:first-child { grid-column: 1 / -1; padding: 12px 12px 4px; white-space: normal; }
  .p7-matrix tbody td:not(:first-child) { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px 12px; }
  .p7-matrix tbody td:not(:first-child)::before { font-size: 10.5px; line-height: 1.25; font-weight: 700; color: var(--slate-500); white-space: pre; text-align: center; }
  .p7-matrix tbody tr:not(.p7-scope) td:nth-child(2)::before { content: "최고\A조회"; }
  .p7-matrix tbody tr:not(.p7-scope) td:nth-child(3)::before { content: "최고\A수정"; }
  .p7-matrix tbody tr:not(.p7-scope) td:nth-child(4)::before { content: "캠퍼스\A조회"; color: var(--blue); }
  .p7-matrix tbody tr:not(.p7-scope) td:nth-child(5)::before { content: "캠퍼스\A수정"; color: var(--blue); }
  .p7-matrix tbody tr:not(.p7-scope) td:nth-child(6)::before { content: "강사\A조회"; color: var(--amber); }
  .p7-matrix tbody tr:not(.p7-scope) td:nth-child(7)::before { content: "강사\A수정"; color: var(--amber); }
  .p7-matrix tr.p7-scope td:not(:first-child) { grid-column: span 2; font-size: 12px; text-align: center; padding: 6px 4px 12px; word-break: keep-all; white-space: normal; }
  .p7-matrix tr.p7-scope td:nth-child(2)::before { content: "최고관리자"; }
  .p7-matrix tr.p7-scope td:nth-child(3)::before { content: "캠퍼스관리자"; color: var(--blue); }
  .p7-matrix tr.p7-scope td:nth-child(4)::before { content: "강사"; color: var(--amber); }
  .p7-matrix td.p7-cl, .p7-matrix thead th.p7-role-h { border-left: 0; }
  .p7-matrix tbody td:nth-child(4), .p7-matrix tbody td:nth-child(6) { border-left: 1px solid var(--line-soft) !important; }
  .p7-matrix tr.p7-scope td:nth-child(4) { border-left: 0 !important; }
  .p7-matrix tr.p7-scope td:nth-child(3), .p7-matrix tr.p7-scope td:nth-child(4) { border-left: 1px solid var(--line-soft) !important; }
}

/* 실제 이미지(배너·유튜브 썸네일·교수 사진) — 2026-11-19 실데이터 반영 */
.p7-bn-img { display: block; width: 100%; aspect-ratio: 5 / 1; object-fit: contain; background: #000; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); }
.p7-yt-thumb .p7-yt-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.p7-yt-thumb.p7-has-img .ph-text { display: none; }
.p7-m-thumb.p7-m-img { width: 100%; height: auto; object-fit: cover; background: var(--bg); }
.p7-m-face { width: 100%; max-width: 34px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: top; background: var(--bg); }

/* (EQH 2026-11-20) 좌우 섹션 높이 맞춤 보정 — 공용 규칙은 admin.css 4절 */
/* (EQH5) 게시판 관리: is-top 해제 — 왼쪽 게시판 메뉴 패널이 글 목록 높이까지 늘어난다(세로 메뉴 열) */
@media (min-width: 1280px) {
  /* (EQH5) 상담 신청 관리: 상세·처리 패널(.is-fit)은 목록 높이에 맞추되 최소 560px — 처리 폼이 절반 넘게 가려지지 않게.
     목록 패널은 그 높이까지 늘어남(목록 안 빈 공간 250px 이하). 저장 줄(panel-foot)은 바닥 고정, 위쪽을 흐리게 해 아래에 더 있음을 표시 */
  #p7-cs-detail-panel.is-fit { --fit-h: 560px; }
  /* (FINAL2) 탭마다 상세 길이가 달라 접히는 선이 필드 라벨 바로 밑(셀렉트만 가려짐)에 오지 않게 탭별 높이(p7.js data-cs-tab).
     설명회·랜딩: '담당자 지정' 셀렉트까지 흐림 위로 보이고 '처리 메모'부터 아래로 / 1:1 문의: 답변 칸이 몇 줄 보이게 */
  #p7-cs-detail-panel.is-fit[data-cs-tab="landing"] { --fit-h: 624px; }
  #p7-cs-detail-panel.is-fit[data-cs-tab="inquiry"] { --fit-h: 600px; }
  #p7-cs-detail-panel.is-fit > .panel-body { padding-bottom: 32px; }
  #p7-cs-detail-panel.is-fit > .panel-foot { position: relative; }
  #p7-cs-detail-panel.is-fit > .panel-foot::before { content: ""; position: absolute; left: 0; right: 16px; bottom: 100%; height: 32px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%); pointer-events: none; }
  /* 메인 화면 구성(2열 구간): 미리보기 패널은 왼쪽 영역 목록 높이에 맞추고 회색 미리보기 틀 안에서 스크롤 */
  .adm-main .p7-home > .panel.p7-sticky { contain: size; contain-intrinsic-height: 640px; }
  .adm-main .p7-home > .panel.p7-sticky > .panel-body { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
  .adm-main .p7-home .p7-pv-wrap { flex: 1 1 0; min-height: 0; max-height: none; align-items: flex-start; }
}
/* (EQH5) 상담 신청 관리 1024~1279px: 1열(상세가 목록 아래)이라 높이 맞춤 대상이 아님 → 상세 패널 안쪽 스크롤을 풀고 다 펼침 */
@media (min-width: 1024px) and (max-width: 1279px) {
  .adm-main .p7-consult > #p7-cs-detail-panel.is-fit { contain: none; }
  .adm-main .p7-consult > #p7-cs-detail-panel.is-fit > .panel-body { flex: 0 0 auto; overflow: visible; }
}
