/* 관리자 콘솔 (ADM) — [UD-3] admin · m-admin · admin-login, [UD-2] 08 스위치.
   공개 사이트와 톤은 같지만 밀도가 높습니다. 분기점은 900px([SD-3] 관리자 §7). */

:root { --admin-bg: #F0EEE8; }   /* 시안의 관리자 배경 — Paper보다 한 톤 낮춰 흰 패널이 뜨게 합니다 */

/* ══════════ ADM-00 로그인 ══════════ */
body.admin-auth { display: grid; place-items: center; min-height: 100vh; padding: 24px;
    background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%); }
.auth-card { width: min(400px, 100%); background: var(--surface); padding: 44px 36px 30px;
    border-radius: var(--radius); box-shadow: 0 24px 60px rgba(13, 22, 38, .35); }
/* 로고 「THE 배움 English」(2026-09-25) — 밝은 카드 위라 PNG 그대로(주조색 남색 — 헤더와 같은 파일) */
.auth-brand { display: block; text-align: center; margin-bottom: 24px; }
.auth-brand img { display: block; margin: 0 auto; height: 48px; width: auto; }
.auth-brand span { display: block; margin-top: 10px; font-size: 10.5px; letter-spacing: .3em; color: var(--text-mute); }
.auth-title { text-align: center; font-size: 19px; margin-bottom: 26px; }
.pw-wrap { position: relative; }
.pw-wrap .field { padding-right: 76px; }
.pw-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 6px 10px;
    background: none; border: none; cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 700;
    color: var(--text-mute); }
.pw-toggle:hover { color: var(--navy-800); }
.auth-submit { width: 100%; margin-top: 6px; }
.auth-note { margin: 18px 0 0; font-size: 12.5px; color: var(--text-mute); text-align: center; }
.auth-back { display: block; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line);
    text-align: center; font-size: 13px; color: var(--text-mute); }

/* ══════════ 콘솔 레이아웃 ══════════ */
body.admin { background: var(--admin-bg); }
body.is-modal-open { overflow: hidden; }
.admin-gate { display: grid; place-items: center; min-height: 100vh; color: var(--text-mute); }
.admin-shell { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }
.admin-top, .admin-tabbar, .mobile-text { display: none; }

/* ── 사이드바 ── */
.admin-side { background: var(--navy-900); color: rgba(255, 255, 255, .75);
    display: flex; flex-direction: column; padding: 28px 0 20px; position: sticky; top: 0; height: 100vh; }
.admin-brand { display: flex; flex-direction: column; gap: 8px; padding: 0 22px 28px; }
/* 남색 위라 로고를 골드 단색으로 — 푸터 로고(site.css .footer-logo)와 같은 색 · 같은 방식(PNG의 알파만 마스크로 빌림).
   2026-09-25 흰색 → 골드(사용자 요청 — 사이드바 로고를 푸터와 똑같이). 모바일 상단 바(.is-compact)도 같은 클래스라 함께 바뀝니다. */
.admin-logo { display: block; width: 122px; height: 40px; background: var(--gold-300);
    -webkit-mask: url(/images/logo.png) left center / contain no-repeat;
            mask: url(/images/logo.png) left center / contain no-repeat; }
.admin-brand span { font-size: 9.5px; letter-spacing: .28em; color: var(--gold-300); }

.admin-nav { flex: 1; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
    background: none; border: none; cursor: pointer; font-family: inherit; font-size: 14.5px;
    color: rgba(255, 255, 255, .72); padding: 12px 22px; border-left: 3px solid transparent; }
.nav-item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav-item.is-on { background: rgba(201, 164, 92, .14); border-left-color: var(--gold-500); color: #fff; font-weight: 600; }
.nav-badge { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 100px;
    background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; text-align: center; }

.admin-me { padding: 18px 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.admin-me-name { margin: 0 0 8px; font-size: 13.5px; color: #fff; font-weight: 600; }
.admin-me .link-btn { display: block; color: rgba(255, 255, 255, .55); padding: 3px 0; }
.admin-me .link-btn:hover { color: var(--gold-300); }

/* ── 본문 공통 ── */
.admin-main { padding: 34px 36px 64px; min-width: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h1 { font-size: 26px; color: var(--navy-800); }
.section-desc { margin: 8px 0 0; font-size: 13.5px; color: var(--text-mute); }
.section-date { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text-mute); }
.btn-sm { gap: 7px; padding: 9px 18px; font-size: 13.5px; }

.link-btn { background: none; border: none; cursor: pointer; padding: 2px 6px;
    font-family: inherit; font-size: 13px; font-weight: 600; color: var(--navy-800); }
.link-btn:hover:not(:disabled) { color: var(--gold-500); text-decoration: underline; }
.link-btn.is-danger { color: var(--danger); }
.link-btn:disabled { color: #B7BBC3; cursor: not-allowed; }

.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0; cursor: pointer;
    background: var(--surface); border: 1px solid rgba(21, 34, 56, .15); border-radius: var(--radius);
    font-family: inherit; font-size: 16px; font-weight: 700; color: var(--navy-800); }
.icon-btn:hover:not(:disabled) { border-color: var(--gold-500); color: var(--gold-700); }
.icon-btn:disabled { color: #C5C8CE; cursor: not-allowed; }

.panel { background: var(--surface); border: 1px solid var(--line); padding: 22px 24px; margin-bottom: 20px; }
.panel.is-flush { padding: 0; }
.panel.is-flush > .skeleton, .panel.is-flush > .empty { margin: 16px; }
.panel.is-list { padding: 4px 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-family: var(--font-sans); font-size: 15px; font-weight: 700; color: var(--navy-800); }
.panel-sub { font-family: var(--font-sans); font-size: 12.5px; font-weight: 500; color: var(--text-mute); }
.panel-hint { margin: 12px 0 0; font-size: 12.5px; color: var(--text-mute); }
.panel-head + .panel-hint { margin: -6px 0 14px; }
.section-head + .panel-hint, .gallery-tools + .panel-hint { margin: 0 0 14px; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; margin-bottom: 20px; }
.panel-grid > .panel { margin-bottom: 0; }
/* 섹션 머리 바로 아래 필터 칩 줄(상담내역 상태 필터) — 아래 패널 테두리에 붙지 않게 띄웁니다. */
.admin-section > .chips { margin-bottom: 16px; }

.panel-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 700; color: var(--navy-800); }
.panel-fold > summary::-webkit-details-marker { display: none; }
.panel-fold > summary::after { content: ''; flex: none; margin-left: auto; width: 16px; height: 16px; background: var(--gold-500);
    -webkit-mask: var(--icon-plus) center / contain no-repeat; mask: var(--icon-plus) center / contain no-repeat; }
.panel-fold[open] > summary { margin-bottom: 12px; }
.panel-fold[open] > summary::after { -webkit-mask-image: var(--icon-minus); mask-image: var(--icon-minus); }

.cell-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--text-mute); }
span.cell-sub { margin: 0; }

/* 건수 배지 — [UD-2] 09 "카운터 배지: 긴급 Error / 일반 Gold" */
.count-badge { font-family: var(--font-sans); font-size: 11px; font-weight: 700; padding: 3px 9px;
    border-radius: 100px; background: rgba(201, 164, 92, .18); color: var(--gold-700); }
.count-badge.is-danger { background: rgba(180, 67, 47, .1); color: var(--danger); }

/* 접수 유형·상태 배지 — [UD-3] admin */
.type-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 100px;
    white-space: nowrap; background: rgba(21, 34, 56, .07); color: var(--navy-800); }
.st-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px; white-space: nowrap; }
.st-received { background: rgba(201, 164, 92, .18); color: var(--gold-700); }
.st-hold { background: rgba(180, 67, 47, .1); color: var(--danger); }
.st-done { background: rgba(21, 34, 56, .06); color: var(--text-mute); }

.stars { color: var(--gold-500); letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.star-off { color: #D6D9DE; }

/* 노출 스위치 — [UD-2] 08 "스위치 ON Gold / OFF Line 18%". 관리자 전용 */
.switch { position: relative; flex: none; width: 46px; height: 26px; padding: 0; border: none; border-radius: 100px;
    background: rgba(21, 34, 56, .18); cursor: pointer; transition: background .2s; vertical-align: middle; }
.switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(13, 22, 38, .25); transition: left .2s; }
.switch.is-on { background: var(--gold-500); }
.switch.is-on span { left: 23px; }
.switch:disabled { opacity: .5; cursor: progress; }
.switch:focus-visible { outline: 2px solid var(--navy-800); outline-offset: 2px; }
.switch-label { margin-left: 8px; font-size: 12.5px; color: var(--text-mute); vertical-align: middle; }

/* ── 표 ── */
.table td strong { font-size: 14.5px; }
.table .badge { margin-left: 6px; }
.col-action { white-space: nowrap; text-align: right; }
.col-wide { max-width: 360px; }
.col-switch { white-space: nowrap; }

/* ══════════ ADM-01 대시보드 ══════════ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { display: flex; flex-direction: column; gap: 16px; text-align: left; cursor: pointer; font-family: inherit;
    background: var(--surface); border: 1px solid var(--line); padding: 20px 22px; transition: border-color .2s; }
.stat:hover { border-color: var(--gold-500); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.stat-label em { margin-left: 6px; font-style: normal; font-size: 11px; font-weight: 500; color: var(--text-mute); }
.stat-new { font-size: 11px; font-weight: 700; color: var(--danger); background: rgba(180, 67, 47, .1);
    padding: 3px 9px; border-radius: 100px; white-space: nowrap; }
.stat-value { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1; color: var(--navy-800); }
.stat-value small { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--text-mute); }

/* 접수 목록 — 웹은 표처럼, 모바일은 두 줄 카드 */
.inq-list { display: grid; }
.inq-head, .inq-row { display: grid; grid-template-columns: 10px 128px minmax(90px, 1fr) 150px 140px 88px;
    align-items: center; gap: 14px; padding: 13px 6px; }
.inq-head { padding-top: 10px; font-size: 12px; font-weight: 700; color: var(--text-mute); border-bottom: 1px solid var(--line); }
.inq-row { width: 100%; text-align: left; font-family: inherit; font-size: 14px; color: var(--text); cursor: pointer;
    background: none; border: none; border-bottom: 1px solid var(--line); }
.inq-row:last-child { border-bottom: none; }
.inq-row:hover { background: rgba(201, 164, 92, .06); }
.inq-row.is-new { background: rgba(201, 164, 92, .05); }
.inq-meta { display: contents; }
.inq-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inq-phone { font-variant-numeric: tabular-nums; }
.inq-date { font-size: 13px; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.inq-status { justify-self: end; }
.dot-new { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.dot-new.is-read { background: transparent; }

/* 후기 카드 */
.review-cards { display: grid; gap: 12px; }
.review-card { border: 1px solid var(--line); background: var(--bg); padding: 16px 18px; }
.review-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-meta strong { font-size: 14px; }
.review-text { margin: 10px 0 12px; font-size: 14px; line-height: 1.7; white-space: pre-line; }
.review-actions { display: flex; gap: 8px; }

/* 모집현황 −/+ */
.adjust-list { display: grid; }
.adjust-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 76px; align-items: center; gap: 14px;
    padding: 12px 0; border-bottom: 1px solid var(--line); }
.adjust-row:last-child { border-bottom: none; }
.adjust-name { display: grid; gap: 2px; min-width: 0; }
.adjust-name strong { font-size: 14px; }
.adjust-name .cell-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adjust-row .badge { justify-self: end; }
.stepper { display: flex; align-items: center; gap: 8px; }
.step-btn { width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; padding: 0;
    background: var(--surface); border: 1px solid rgba(21, 34, 56, .15); border-radius: var(--radius);
    font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1; color: var(--navy-800); }
.step-btn:hover:not(:disabled) { border-color: var(--gold-500); color: var(--gold-700); }
.step-btn:disabled { color: #C5C8CE; cursor: not-allowed; }
.step-value { min-width: 56px; text-align: center; font-size: 13px; color: var(--text-mute); }
.step-value b { font-size: 16px; color: var(--navy-800); }
.adjust-row.is-detailed { grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name badge" "stepper left" "bar bar"; row-gap: 10px; }
.adjust-row.is-detailed .adjust-name { grid-area: name; }
.adjust-row.is-detailed .badge { grid-area: badge; }
.adjust-row.is-detailed .stepper { grid-area: stepper; }
.adjust-left { grid-area: left; justify-self: end; font-size: 13px; color: var(--text-mute); }
.adjust-left b { color: var(--navy-800); }
.adjust-bar { grid-area: bar; height: 6px; background: rgba(21, 34, 56, .08); border-radius: 100px; overflow: hidden; }
.adjust-bar i { display: block; height: 100%; background: var(--gold-500); }
.adjust-bar.is-almost i { background: var(--danger); }
.adjust-bar.is-closed i { background: #9AA1AD; }

/* ══════════ ADM-02-01 배너 · 팝업 ══════════ */
.banner-list { display: grid; }
.banner-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto auto auto auto; align-items: center;
    gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.banner-row:last-child { border-bottom: none; }
.banner-thumb { position: relative; width: 150px; aspect-ratio: 1920 / 800; overflow: hidden;
    display: grid; place-items: center; background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); }
.banner-thumb span { font-family: var(--font-display); font-size: 12px; color: rgba(255, 255, 255, .45); }
.banner-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 특수 프로그램 강조 문구 — 목록에서 제목 앞에 금색 글자로(홈 카드와 같은 강조색) */
.program-point-tag { color: var(--gold-700); font-weight: 700; }
.banner-row.is-hidden .banner-thumb { opacity: .45; }
.banner-copy { min-width: 0; }
.banner-copy strong { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner-order { font-size: 12.5px; font-weight: 700; color: var(--gold-700); white-space: nowrap; }
.order-btns { display: flex; gap: 6px; }
.row-actions { display: flex; white-space: nowrap; }

/* 팝업 — 미리보기 카드 + 요약표([FS-8] FS-ADM-02-1-4) */
.popup-manage { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.popup-manage.is-compact { grid-template-columns: 1fr; }
.pp-preview { display: flex; align-items: center; justify-content: center; min-height: 280px; padding: 22px;
    background: rgba(13, 22, 38, .55); }       /* 사용자 화면의 딤 배경을 흉내 냅니다 */
.pp-preview.is-bottom { align-items: flex-end; }
.pp-card { width: 100%; max-width: 220px; background: var(--surface); overflow: hidden;
    box-shadow: 0 12px 30px rgba(13, 22, 38, .3); }
.pp-card img { width: 100%; height: 110px; object-fit: cover; display: block; }
.pp-body { padding: 16px 16px 12px; }
.pp-label { margin: 0 0 6px; font-size: 9px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-500); }
.pp-title { margin: 0 0 6px; font-family: var(--font-serif); font-size: 14px; font-weight: 600; color: var(--navy-800); }
.pp-text { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--text-mute); white-space: pre-line;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pp-link { margin: 8px 0 0; font-size: 11px; font-weight: 700; color: var(--navy-800); }
.pp-actions { display: flex; border-top: 1px solid var(--line); font-size: 10.5px; }
.pp-actions span { flex: 1; text-align: center; padding: 9px 4px; color: var(--text-mute); }
.pp-actions span + span { border-left: 1px solid var(--line); font-weight: 700; color: var(--navy-800); }
.pp-info dl { margin: 0; }
.pp-info dl > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center;
    padding: 12px 0; border-bottom: 1px solid var(--line); }
.pp-info dl > div:last-child { border-bottom: none; }
.pp-info dt { font-size: 13px; color: var(--text-mute); }
.pp-info dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-size: 14px; word-break: break-all; }
.pp-info-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--navy-800); }
.pp-state { font-size: 14px; }
.pp-state.is-on { color: var(--gold-700); }
.pp-state.is-off { color: #9AA1AD; }
.pp-state.is-warn { color: var(--danger); }

.popup-archive:not(:empty) { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.archive-title { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--text-mute); }
.archive-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.archive-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.archive-name { font-weight: 600; }
.archive-list .link-btn { margin-left: auto; }

/* ══════════ ADM-02-02 사진 ══════════ */
.gallery-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex-wrap: wrap; margin-bottom: 12px; }
.gallery-actions { display: flex; gap: 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.photo-card { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--line); cursor: grab; }
.photo-card.is-dragging { opacity: .4; }
.photo-card.is-hidden img { opacity: .45; }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-card figcaption { display: flex; align-items: center; gap: 6px; padding: 9px 8px 9px 10px; }
.photo-handle { margin-right: auto; font-size: 12px; font-weight: 700; color: var(--navy-800); }
.photo-remove { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; display: grid; place-items: center;
    padding: 0; cursor: pointer; background: rgba(13, 22, 38, .6); border: none; border-radius: var(--radius);
    color: #fff; font-size: 16px; }
.photo-remove:hover { background: var(--danger); }

/* ══════════ ADM-03-01 게시물 ══════════ */
.posts-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.posts-bar .chips { flex: 1; }
.post-count { font-size: 13px; font-weight: 700; color: var(--text-mute); }
.admin-section .pagination { margin-top: 24px; }

/* ══════════ ADM-03-02 후기 ══════════ */
.published-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; align-items: center; gap: 16px;
    padding: 12px 0; border-bottom: 1px solid var(--line); }
.published-row:last-child { border-bottom: none; }
.published-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.published-meta strong { font-size: 13.5px; }
.published-text { margin: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.published-row.is-blind .published-text, .published-row.is-blind .published-meta { opacity: .5; }
.published-actions { display: flex; align-items: center; gap: 10px; }

/* ══════════ ADM-04-01 모집현황 ══════════ */
.num-input { width: 76px; height: 36px; padding: 8px 10px; text-align: center; font-size: 14px; background: var(--surface); }
.table tr.is-dirty { background: rgba(201, 164, 92, .09); }
.table tr.is-dirty [data-left] { font-size: 12.5px; color: var(--text-mute); }
.class-save { display: flex; justify-content: flex-end; margin-top: 16px; }
.class-mobile { display: none; }

/* ══════════ 사이트 · 게시물 (모바일 현장용) ══════════ */
.site-banners { list-style: none; margin: 0; padding: 0; display: grid; }
.site-banners li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.site-banners li:last-child { border-bottom: none; }
.site-banners strong { font-size: 14px; }
/* 순번은 본문 서체로 — Cormorant의 숫자 1은 로마자 I처럼 보여 순서를 잘못 읽힙니다. */
.site-no { flex: none; width: 26px; height: 26px; display: grid; place-items: center;
    background: var(--navy-800); color: #fff; font-size: 12.5px; font-weight: 700; }
.site-post { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--line); }
.site-post:last-child { border-bottom: none; }
.site-post-title { margin: 0; font-size: 14px; font-weight: 600; }
/* 계정 줄의 「비밀번호 변경」 — 좁은 폭에서 버튼 글자가 두 줄로 꺾이지 않게 */
.site-post > .btn { flex: none; white-space: nowrap; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 6px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chip { flex: none; }
.pc-only { background: rgba(21, 34, 56, .03); border-style: dashed; }
.pc-only-title { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--navy-800); }
.pc-only p { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: var(--text-mute); }

/* ══════════ 모달 보조 ══════════ */
.modal.is-wide { width: min(780px, 100%); }
.modal-error { margin: 0 26px 12px; }
/* 체크박스 라벨 — 상자는 tokens.css 공통(18px). 위 정렬 + 상자의 위 여백으로 글자 첫 줄 가운데에 맞춥니다.
   .form-row > .check로도 겁니다 — 폼 줄 라벨 규칙(.form-row > label: block · 굵게 · 아래 여백)이 우선순위가 높아 상자와 글자가 붙어 있었습니다. */
.check, .form-row > .check { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.upload-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.upload-state { margin: 0; font-size: 12.5px; color: var(--text-mute); word-break: break-all; }
.upload-drop { display: grid; gap: 8px; padding: 18px; background: var(--bg); border: 1px dashed rgba(21, 34, 56, .25); }

/* 첨부파일(게시물) — 형식 · 이름 · 크기 · 빼기. 고르는 즉시 업로드되고 저장할 때 붙습니다(admin.js). */
.attach-box { display: grid; gap: 10px; }
.attach-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.attach-list:empty { display: none; }
.attach-item { display: flex; align-items: center; gap: 12px; padding: 7px 7px 7px 10px;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.attach-ext { flex: none; min-width: 46px; padding: 3px 6px; text-align: center; font-size: 11px; font-weight: 700;
    letter-spacing: .04em; color: #fff; background: var(--navy-800); border-radius: var(--radius); }
.attach-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.attach-meta { flex: none; font-size: 12.5px; color: var(--text-mute); }
.attach-item .icon-btn { width: 28px; height: 28px; font-size: 14px; }
.attach-box .upload-row { margin-top: 0; }

/* 행사 사진(슬라이드) — 썸네일 격자. 번호는 보이는 순서(= 슬라이드 순서)입니다(admin.js photos). */
.photo-box { display: grid; gap: 10px; }
.photo-list { list-style: none; margin: 0; padding: 0; counter-reset: photo;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-list:empty { display: none; }
.photo-item { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.photo-item::before { counter-increment: photo; content: counter(photo); position: absolute; left: 6px; top: 6px; z-index: 1;
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: 100px; display: grid; place-items: center;
    background: var(--navy-800); color: #fff; font-size: 11.5px; font-weight: 700; }
.photo-item img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #E9ECF0; }
.photo-tools { display: flex; justify-content: flex-end; gap: 4px; padding: 5px; border-top: 1px solid var(--line); }
.photo-tools .icon-btn { width: 28px; height: 28px; font-size: 14px; }
.photo-item:first-child [data-photo-move="-1"],
.photo-item:last-child [data-photo-move="1"] { visibility: hidden; }
.photo-box .upload-row { margin-top: 0; }

/* 특수 프로그램(HOME-01-07) — 배너 목록과 같은 줄 모양에서 썸네일 칸만 뺍니다 */
.panel-head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.program-section-copy { margin: 0 0 14px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--radius); }
.program-section-copy strong { display: block; font-size: 14.5px; }
.program-section-copy p { margin: 4px 0 0; }
.program-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; align-items: center; gap: 14px;
    padding: 12px 0; border-bottom: 1px solid var(--line); }
.program-row:last-child { border-bottom: none; }
.program-row.is-hidden .program-copy { opacity: .5; }
.program-copy { min-width: 0; }
.program-copy strong { display: block; font-size: 14.5px; }
.program-copy .cell-sub { margin: 4px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
    .program-row { grid-template-columns: auto auto minmax(0, 1fr) auto; row-gap: 8px; }
    .program-copy { grid-column: 1 / -1; }
}

/* ADM-02-03 원장·강사진(2026-09-26) — 특수 프로그램 줄 모양 + 앞에 세로 사진(원장·부원장 칸과 같은 3:4) */
.instructor-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px;
    padding: 12px 0; border-bottom: 1px solid var(--line); }
.instructor-row:last-child { border-bottom: none; }
.instructor-thumb { position: relative; width: 48px; aspect-ratio: 3 / 4; overflow: hidden; display: grid; place-items: center;
    background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); color: var(--gold-300);
    font-family: var(--font-serif); font-size: 18px; }
.instructor-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.instructor-row.is-hidden .instructor-thumb, .instructor-row.is-hidden .instructor-copy { opacity: .5; }
.instructor-copy { min-width: 0; }
.instructor-copy strong { display: block; font-size: 14.5px; }
.instructor-copy .badge { margin-right: 4px; vertical-align: 1px; }
.instructor-copy .cell-sub { margin: 4px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
    .instructor-row { grid-template-columns: 48px auto minmax(0, 1fr) auto; row-gap: 8px; }
    .instructor-thumb { grid-row: span 2; }
    .instructor-copy { grid-column: 2 / -1; }
}
.info-value { font-size: 14.5px; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.seg { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 8px;
    font-size: 13.5px; font-weight: 700; text-align: center; color: var(--navy-800); background: var(--surface);
    border: 1px solid rgba(21, 34, 56, .15); border-radius: var(--radius); }
.seg input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 2px; }

/* 블로그형 에디터 — SmartEditor 2(static/vendor/se2).
   툴바·팝업은 스킨 iframe 안이라 css/se2-theme.css 가 주입으로 맡습니다(admin.js applySkinTheme).
   여기서는 iframe을 감싸는 틀을 [UD-3] 글쓰기 모달과 한 벌로 맞춥니다 — 테두리는 이 상자가 그리고
   (안쪽 편집기는 border:0), 「이미지 넣기」 줄은 툴바의 첫 줄처럼 보이도록 이어 붙입니다. */
.se2-box { border: 1px solid var(--line); background: var(--surface); }
.se2-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 7px 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
.se2-tools .upload-state { margin-left: auto; }
.se2-box iframe { display: block; width: 100%; border: 0; }
/* 소스 textarea — 자리에 편집기가 대신 뜹니다. 저장 직전 syncEditors()가 값을 옮깁니다. */
.se2-source { display: none; }
.se2-loading { margin: 0; padding: 48px 0; text-align: center; font-size: 13px; color: var(--text-mute);
    background: var(--bg); }

/* 접수 상세 */
.inq-detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.inq-detail-head strong { font-family: var(--font-serif); font-size: 19px; color: var(--navy-800); }
.detail-list { display: grid; gap: 10px; margin: 0; }
.detail-list > div { display: grid; grid-template-columns: 90px 1fr; gap: 14px;
    padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.detail-list dt { font-size: 13px; color: var(--text-mute); }
.detail-list dd { margin: 0; font-size: 14.5px; white-space: pre-line; font-variant-numeric: tabular-nums; }
.detail-label { margin: 18px 0 6px; font-size: 13px; font-weight: 700; color: var(--text-mute); }
.detail-content { margin: 0; padding: 14px 16px; background: var(--bg); font-size: 14.5px; line-height: 1.7; white-space: pre-line; }
.log-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.log-list li { position: relative; padding-left: 14px; font-size: 13px; }
.log-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px;
    border-radius: 50%; background: var(--gold-500); }
.log-list time { margin-right: 6px; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.log-list .log-empty { padding-left: 0; color: var(--text-mute); }
.log-list .log-empty::before { display: none; }

/* ══════════ 모바일 (≤ 900px) — 현장용 라이트 버전 ([SD-3] 관리자 §7 · [UD-3] m-admin) ══════════ */
.admin-top { align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px;
    background: var(--navy-900); color: rgba(255, 255, 255, .75); position: sticky; top: 0; z-index: 80; }
.admin-brand.is-compact { flex-direction: row; align-items: center; gap: 8px; padding: 0; }
.admin-brand.is-compact .admin-logo { width: 98px; height: 32px; }
.admin-top-me { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.admin-top-me .link-btn { color: rgba(255, 255, 255, .6); font-size: 12.5px; }

.admin-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; height: 62px;
    background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, .1); }
.admin-tabbar > button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 11.5px;
    font-weight: 600; color: rgba(255, 255, 255, .5); }
.admin-tabbar > button.is-on { color: var(--gold-300); }
.tab-icon { position: relative; display: grid; place-items: center; font-size: 20px; }
.tab-badge { position: absolute; top: -7px; right: -13px; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 100px; background: var(--danger); color: #fff; font-size: 10px; font-style: normal;
    font-weight: 700; line-height: 16px; text-align: center; }

@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { display: none; }
    .admin-top, .admin-tabbar { display: flex; }
    .admin-main { padding: 20px 16px 90px; }
    .desktop-text { display: none; }
    span.mobile-text { display: inline; }
    p.mobile-text, div.mobile-text { display: block; }

    .section-head { flex-wrap: wrap; align-items: flex-start; margin-bottom: 18px; }
    .section-head h1 { font-size: 22px; }
    .section-date { font-size: 15px; }
    .panel { padding: 18px 16px; margin-bottom: 16px; }
    .panel-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }

    .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
    .stat { padding: 14px 12px; gap: 10px; }
    .stat-top { flex-direction: column; align-items: flex-start; gap: 6px; }
    .stat-label { font-size: 12.5px; }
    .stat-label em { display: none; }
    .stat-value { font-size: 30px; }

    .inq-head { display: none; }
    .inq-row { grid-template-columns: 10px minmax(0, auto) minmax(0, 1fr) auto;
        grid-template-areas: "dot name type status" "dot meta meta status"; row-gap: 4px; padding: 13px 2px; }
    .dot-new { grid-area: dot; }
    .inq-name { grid-area: name; }
    .inq-type { grid-area: type; }
    .inq-meta { grid-area: meta; display: flex; gap: 6px; font-size: 12.5px; color: var(--text-mute); }
    .inq-date::before { content: '· '; }
    .inq-status { grid-area: status; }

    .banner-row { grid-template-columns: 96px minmax(0, 1fr) auto; row-gap: 8px; }
    .banner-thumb { width: 96px; }
    .banner-order, .banner-row > .badge { grid-column: 2; justify-self: start; }
    .order-btns, .row-actions { grid-column: 3; justify-self: end; }
    .popup-manage { grid-template-columns: 1fr; }
    .posts-bar .chips { flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .posts-bar .chip { flex: none; }

    .published-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "meta actions" "text text"; row-gap: 6px; }
    .published-meta { grid-area: meta; }
    .published-actions { grid-area: actions; }
    .published-text { grid-area: text; white-space: normal; }

    .class-desktop { display: none; }
    .class-mobile { display: block; }
    .step-btn { width: 40px; height: 40px; font-size: 19px; }     /* 현장 조작 — 터치 영역 확보 */

    .switch { width: 52px; height: 30px; }
    .switch span { width: 24px; height: 24px; }
    .switch.is-on span { left: 25px; }

    /* 등록·수정·삭제는 데스크톱 전용입니다. 숨기지 않고 흐리게 두어
       기능이 없는 것이 아니라 여기서 못 한다는 것을 보여줍니다. */
    .desktop-only, [data-desktop-only] { opacity: .45; }
    .photo-card { cursor: default; }

    /* 접수 상세 등 모달은 바텀시트로 올라옵니다([SD-3] 관리자 §7). */
    .modal-backdrop { align-items: flex-end; padding: 0; }
    .modal { width: 100%; max-height: 90vh; box-shadow: 0 -12px 40px rgba(13, 22, 38, .3); }
    .modal.is-wide { width: 100%; }
    .modal-head { padding: 18px 20px; }
    .modal-body { padding: 18px 20px; }
    .modal-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }
    .modal-foot .btn { flex: 1; padding: 14px; }
    .modal-error { margin: 0 20px 12px; }
}
