/* 2026-10-05 화면 정리 1단계: 공통 틀 (기능은 그대로, 배치·크기만)
   - 폰: 위쪽 영역 줄이기(로고 작게, 매장·모드·태블릿 한 줄, 위 카테고리 탭은 아래 탭바·전체 메뉴와 중복이라 숨김, 하위 메뉴는 가로 칩)
   - 주문 알림 줄이 보이면 같은 기능인 '알림 소리' 버튼 숨김
   - '✏️ 글씨 편집'(최고관리자만)은 편집 중이 아닐 때 오른쪽 작은 동그라미로 */

/* ── 글씨 편집 버튼 ── */
body:not(.pc-site-editing) #pcSiteEdit{left:auto!important;right:12px!important;bottom:calc(84px + env(safe-area-inset-bottom,0px))!important}
body:not(.pc-site-editing) #pcSiteEdit [data-se-toggle]{width:40px;height:40px;min-height:0;padding:0!important;border-radius:50%!important;font-size:0!important;opacity:.72;display:grid;place-items:center}
body:not(.pc-site-editing) #pcSiteEdit [data-se-toggle]::before{content:'✏️';font-size:17px}
body:not(.pc-site-editing) #pcSiteEdit [data-se-toggle]:hover{opacity:1}
@media (min-width:768px){body:not(.pc-site-editing) #pcSiteEdit{bottom:16px!important}}

/* ── 주문 알림 줄이 있으면 겹치는 소리 버튼 숨김 ── */
body:has(#orderAlertBar:not([hidden])) .admin-toolbar [data-action="toggleOrderSound"]{display:none!important}

/* ── 폰 관리자 화면 ── */
@media (max-width:767px){
 body[data-portal="admin"] header.top{min-height:0;padding-top:6px;padding-bottom:6px}
 body[data-portal="admin"] .member-shell #brandHome{width:84px!important;max-width:84px!important;flex:0 0 84px}
 body[data-portal="admin"] .member-shell #brandHome .member-logo{transform:none!important;height:auto!important;width:100%!important}
 body[data-portal="admin"] header.top .header-actions{gap:6px}
 body[data-portal="admin"] header.top .header-actions>:is(button,a.portal-switch,nav){height:32px!important;min-height:32px!important;font-size:12.5px}

 /* 매장 · 마스터 모드 · 태블릿 → 한 줄 */
 body[data-portal="admin"] #memberContent>section.role-strip,
 body[data-portal="admin"] #memberContent>details.mode-panel:not([open]),
 body[data-portal="admin"] #memberContent>button.tablet-entry-button{display:inline-flex!important;vertical-align:middle;margin:8px 6px 0 0!important;width:auto!important}
 body[data-portal="admin"] #memberContent>section.role-strip label{display:inline-flex;align-items:center;gap:6px}
 body[data-portal="admin"] #memberContent>section.role-strip select{height:36px;min-height:36px;padding-top:0;padding-bottom:0}
 body[data-portal="admin"] #memberContent>details.mode-panel:not([open])>summary,
 body[data-portal="admin"] #memberContent>button.tablet-entry-button{height:36px;min-height:36px;padding:0 12px;display:inline-flex;align-items:center;font-size:13px}
 body[data-portal="admin"] #memberContent>details.mode-panel[open]{margin-top:8px}

 /* 위 카테고리 탭은 아래 탭바(홈·게임·주문·회원 QR·전체)와 겹치므로 숨기고, 같은 카테고리 하위 메뉴만 가로 칩으로 */
 body[data-portal="admin"]:has(nav.mobile-nav) .admin-navigation{margin-top:8px;padding:0;border:0;background:none}
 body[data-portal="admin"]:has(nav.mobile-nav) .admin-category-tabs{display:none!important}
 body[data-portal="admin"]:has(nav.mobile-nav) .admin-category-links{display:flex!important;flex-wrap:nowrap;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 0 4px;margin:0}
 body[data-portal="admin"]:has(nav.mobile-nav) .admin-category-links::-webkit-scrollbar{display:none}
 body[data-portal="admin"]:has(nav.mobile-nav) .admin-category-links>button{flex:0 0 auto;width:auto!important;min-height:34px;height:34px;padding:0 14px!important;border-radius:999px!important;font-size:13px;white-space:nowrap;display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:center}
 body[data-portal="admin"]:has(nav.mobile-nav) .admin-category-links>button .nav-desc{display:none!important}
 body[data-portal="admin"] .page-panel{margin-top:10px}
 body[data-portal="admin"] .admin-page-heading{margin-top:4px}
}
