/*  2026년 10월 새 디자인 (Core/NewDesign, Controls/V2/*).
    ?design=new 로 켠 브라우저에만 실린다. 모든 규칙은 v2- 로 시작하는
    이름에만 걸어서, 지금 사이트의 style.css 와 부딪치지 않게 한다.        */

:root {
    --v2-primary: #6b3fe0;      /* 차림표의 지금 자리, 제목 막대 */
    --v2-primary-soft: #efe9fd;
    --v2-pink: #e6005c;         /* 로고 색 */
    --v2-navy: #13234a;         /* 바닥 */
    --v2-text: #1f2430;
    --v2-muted: #6b7280;
    --v2-line: #e6e8ef;
    --v2-bg: #f6f7fb;
    --v2-radius: 12px;
    --v2-font: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

.v2-wrap { max-width: 1320px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }

/* 지금 사이트는 화면 전체를 1260px 상자(#container)에 담고 양옆을 무늬로 채운다
   (body.boxed). 새 디자인에서는 띠(차림표, 큰 그림, 바닥)가 화면 끝까지 가고
   내용은 가운데 1320px 에 선다. master 를 건드리지 않으려고, 새 머리가 있는
   화면에서만 걸리게 :has() 로 묶었다 - 이를 모르는 아주 오래된 브라우저는
   지금 상자 그대로 보일 뿐이다. */
body.boxed:has(.v2-header) { background: #fff; }
body:has(.v2-header) #container { max-width: none; width: 100%; box-shadow: none; }
/* 아직 새로 그리지 않은 화면들도 같은 폭에 서게, 지금 사이트의 칸(.container,
   Bootstrap 은 1170px)을 1320px 로 편다. 칸 안의 격자는 비율이라 함께 넓어진다. */
@media (min-width: 1352px) {
    body:has(.v2-header) .container { width: 1320px; }
}

/* ---------- 머리 ---------- */
.v2-header { background: #fff; font-family: var(--v2-font); color: var(--v2-text); position: relative; z-index: 50; }
.v2-header a { color: inherit; text-decoration: none; }
.v2-top { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.v2-logo img { height: 34px; width: auto; display: block; }
.v2-tagline { display: flex; flex-direction: column; line-height: 1.25; border-left: 1px solid var(--v2-line); padding-left: 16px; }
.v2-tagline b { font-size: 13px; font-weight: 700; color: var(--v2-navy); }
.v2-tagline span { font-size: 12px; color: var(--v2-muted); }
.v2-util { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--v2-muted); }
.v2-util a:hover { color: var(--v2-primary); }
.v2-region { display: inline-flex; align-items: center; border: 1px solid var(--v2-line); border-radius: 20px; overflow: hidden; }
.v2-region > * { padding: 5px 12px; }
.v2-region-now { background: var(--v2-primary-soft); color: var(--v2-primary); font-weight: 700; }
.v2-weather { white-space: nowrap; }
.v2-account b { color: var(--v2-text); }
.v2-account-go { display: inline-block; padding: 5px 14px; border: 1px solid var(--v2-line); border-radius: 20px; color: var(--v2-text); font-weight: 700; white-space: nowrap; }
.v2-account-go:hover { border-color: var(--v2-primary); color: var(--v2-primary); }
/* 나의 계정 차림표 (V2Header): 이름을 누르면 열린다 */
.v2-me { position: relative; display: inline-flex; }
.v2-me-go { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border: 1px solid var(--v2-line); border-radius: 22px; background: #fff;
    font: inherit; font-size: 13px; color: var(--v2-muted); cursor: pointer; }
.v2-me-go b { color: var(--v2-text); }
.v2-me-go:hover, .v2-me-go[aria-expanded="true"] { border-color: var(--v2-primary); }
.v2-me-caret { transition: transform .15s; }
.v2-me-go[aria-expanded="true"] .v2-me-caret { transform: rotate(180deg); }
.v2-me-face { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
    background: linear-gradient(135deg, #7c4dff, #e6005c); color: #fff; font-size: 12px; font-weight: 900; }
.v2-me-face.is-big { width: 40px; height: 40px; font-size: 16px; }
.v2-me-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 1000; width: 260px; padding: 8px; border: 1px solid var(--v2-line); border-radius: 16px; background: #fff;
    box-shadow: 0 18px 40px rgba(19, 35, 74, .16); text-align: left; }
.v2-me-menu[hidden] { display: none; }
.v2-me-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--v2-line); }
.v2-me-head > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.v2-me-head b { font-size: 14px; color: var(--v2-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-me-head small { font-size: 12px; color: var(--v2-muted); }
.v2-me-group { padding: 4px 0; border-bottom: 1px solid var(--v2-line); }
.v2-me-group.is-last { border-bottom: 0; }
.v2-me-label { padding: 6px 10px 2px; font-size: 11.5px; font-weight: 700; color: var(--v2-muted); }
.v2-me-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--v2-text) !important; text-decoration: none !important; }
.v2-me-item svg { flex: 0 0 auto; color: var(--v2-muted); }
.v2-me-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-me-item:hover { background: var(--v2-primary-soft); color: var(--v2-primary) !important; }
.v2-me-item:hover svg { color: var(--v2-primary); }
.v2-me-item.is-club { font-size: 13.5px; }
.v2-me-count { min-width: 20px; padding: 1px 7px; border-radius: 10px; background: var(--v2-pink); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 700; text-align: center; }
.v2-me-new { margin-left: auto; padding: 1px 8px; border-radius: 10px; background: var(--v2-primary-soft); color: var(--v2-primary); font-style: normal; font-size: 11px; font-weight: 800; }
.v2-me-tag { padding: 1px 7px; border-radius: 8px; background: var(--v2-primary-soft); color: var(--v2-primary); font-style: normal; font-size: 11px; font-weight: 700; }
.v2-sep { color: #c9ccd6; margin: 0 6px; }

.v2-nav { border-top: 1px solid var(--v2-line); border-bottom: 1px solid var(--v2-line); background: #fff; }
.v2-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.v2-nav ul::-webkit-scrollbar { display: none; }
.v2-nav li { flex: 0 0 auto; }
.v2-nav a { display: block; padding: 13px 16px; font-size: 15px; font-weight: 700; color: var(--v2-text); border-radius: 22px; white-space: nowrap; }
.v2-nav a:hover { color: var(--v2-primary); }
.v2-nav li.is-here a { background: var(--v2-primary); color: #fff; margin: 6px 0; padding: 7px 18px; }
.v2-nav .v2-home-icon { color: var(--v2-primary); vertical-align: -3px; }
.v2-nav li.is-here .v2-home-icon { color: #fff; }
/* AhaCard in the menu: the card's purple, so the new thing is seen */
.v2-nav li.is-aha:not(.is-here) a { color: var(--v2-primary); }
.v2-nav li.is-aha:not(.is-here) a::after { content: 'NEW'; margin-left: 5px; padding: 1px 5px; border-radius: 6px; background: var(--v2-pink); color: #fff; font-size: 9.5px; font-weight: 800; vertical-align: 2px; }
.v2-drawer-menu li.is-aha:not(.is-here) a { color: var(--v2-primary); }

/* ---------- 바닥 ---------- */
/* 내용과 같은 폭에 선다 (1320 - 양옆 16). */
/* 짧은 쪽(나의 게시글 관리 같은)에서도 바닥글이 화면 맨 아래에 붙도록, 틀을 화면 높이만큼 세우고 바닥 틀을 아래로 민다. */
body:has(.v2-header) #container { display: flex; flex-direction: column; min-height: 100vh; }
body:has(.v2-header) #container > .BottomFrame { margin-top: auto; }
.v2-footer { padding: 0 !important; background: var(--v2-navy); color: #c8cfe3; font-family: var(--v2-font); margin: 40px auto 0; width: calc(100% - 32px); max-width: 1288px; border-radius: 16px 16px 0 0; }
.v2-footer .v2-wrap { padding-left: 32px; padding-right: 32px; }
.v2-footer a { color: #fff; text-decoration: none; }
.v2-footer a:hover { text-decoration: underline; }
.v2-footer-in { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 48px; padding-top: 30px; padding-bottom: 26px; }
.v2-footer-logo { font-size: 30px; font-weight: 900; color: #fff; letter-spacing: -1px; line-height: 1; }
.v2-footer-sub { font-size: 12px; margin-top: 6px; }
.v2-footer-links { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; flex: 1 1 360px; }
.v2-footer-contact { font-size: 13px; line-height: 1.9; }
.v2-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; padding-bottom: 18px; font-size: 12px; color: #8e98b8; }

/* ---------- 메뉴 줄의 양 끝: 화면보다 길면 잘린 쪽을 흐리게, › 단추 (V2Header 의 스크립트가 is-scrolls/at-start/at-end 를 단다) ---------- */
.v2-nav-in { position: relative; }
.v2-nav-next { display: none; }
.v2-nav-in.is-scrolls::before, .v2-nav-in.is-scrolls::after { content: ''; position: absolute; top: 0; bottom: 0; width: 44px; pointer-events: none; z-index: 1; transition: opacity .15s; }
.v2-nav-in.is-scrolls::before { left: 0; background: linear-gradient(to right, #fff 20%, rgba(255, 255, 255, 0)); }
.v2-nav-in.is-scrolls::after { right: 0; background: linear-gradient(to left, #fff 35%, rgba(255, 255, 255, 0)); }
.v2-nav-in.at-start::before { opacity: 0; }
.v2-nav-in.at-end::after { opacity: 0; }
.v2-nav-in.is-scrolls .v2-nav-next { display: flex; align-items: center; justify-content: center; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 30px; height: 30px; padding: 0; border: 1px solid var(--v2-line); border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(31, 36, 48, .12);
    font: 700 20px/1 var(--v2-font); color: var(--v2-primary); cursor: pointer; }
.v2-nav-in.is-scrolls.at-end .v2-nav-next { transform: translateY(-50%) rotate(180deg); }

/* ---------- 전체 메뉴 (휴대전화, V2Header) ---------- */
.v2-burger { display: none; }
.v2-drawer { position: fixed; inset: 0; z-index: 9500; background: rgba(17, 20, 40, 0); transition: background .2s; font-family: var(--v2-font); }
.v2-drawer[hidden] { display: none; }
.v2-drawer.is-open { background: rgba(17, 20, 40, .5); }
.v2-drawer-panel { position: absolute; top: 0; left: 0; height: 100vh; height: 100dvh; width: min(300px, 84vw); display: flex; flex-direction: column; background: #fff; overflow-y: auto;
    transform: translateX(-100%); transition: transform .22s ease; box-shadow: 8px 0 30px rgba(17, 20, 40, .2); }
.v2-drawer.is-open .v2-drawer-panel { transform: none; }
body.v2-drawer-on { overflow: hidden; }
/* the language switch and the chatbot float above everything; they step aside while the menu is open */
body.v2-drawer-on #langSwitchBtn, body.v2-drawer-on #aha-chat { display: none !important; }
.v2-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--v2-line); }
.v2-drawer-head .v2-logo img { height: 24px; }
.v2-drawer-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f3f4f8; font-size: 24px; line-height: 1; color: var(--v2-text); cursor: pointer; }
.v2-drawer-account { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--v2-line); font-size: 14px; color: var(--v2-muted); }
.v2-drawer-account b { color: var(--v2-text); }
.v2-drawer-account small { display: block; margin-top: 2px; font-size: 11.5px; }
.v2-drawer-login { flex: 1; display: block; padding: 9px 14px; font-size: 14px; border-radius: 12px; background: var(--v2-primary); color: #fff !important; text-align: center; font-weight: 800; text-decoration: none; }
.v2-drawer-menu { list-style: none; margin: 0; padding: 6px 8px; }
.v2-drawer-menu li a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; font-size: 15px; font-weight: 700; color: var(--v2-text); text-decoration: none; }
.v2-drawer-menu li a:hover { background: var(--v2-primary-soft); color: var(--v2-primary); }
.v2-drawer-menu li.is-here a { background: var(--v2-primary-soft); color: var(--v2-primary); }
.v2-drawer-menu .v2-home-icon { color: var(--v2-primary); }
.v2-drawer-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px 16px; border-top: 1px solid var(--v2-line); font-size: 13px; color: var(--v2-muted); }
.v2-drawer-foot .v2-region a { color: var(--v2-muted); text-decoration: none; }

/* ---------- 좁은 화면: 위는 한 줄 (≡ · 로고 · 로그인), 지역과 날씨는 전체 메뉴 안으로 ---------- */
@media (max-width: 760px) {
    .v2-top { flex-wrap: nowrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; min-height: 56px; }
    .v2-burger { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px; margin-left: -6px; padding: 0;
        border: 0; border-radius: 10px; background: none; color: var(--v2-navy); cursor: pointer; }
    .v2-burger:hover { background: var(--v2-primary-soft); }
    .v2-logo img { height: 26px; }
    .v2-tagline { display: none; }
    .v2-top .v2-region, .v2-top .v2-weather { display: none; }
    .v2-util { margin-left: auto; width: auto; gap: 8px; font-size: 12px; }
    .v2-account-go { padding: 6px 12px; font-size: 12.5px; }
    .v2-me-go b { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
    .v2-nav a { padding: 11px 12px; font-size: 14px; }
    .v2-nav li.is-here a { padding: 6px 14px; }
    /* the language and chatbot buttons float in the bottom corners: room for them inside the footer's
       own colour, so the footer still reaches the bottom of the screen */
    .v2-footer .v2-footer-bottom { padding-bottom: 72px; }
    /* 머리 아래의 알림 줄: 큰 글씨 석 줄이 첫 화면을 먹었다 - 작게, 한두 줄로 */
    body:has(.v2-header) .site-notice-wrap { padding-top: 10px; padding-bottom: 2px; }
    body:has(.v2-header) .site-notice { font-size: 14px !important; line-height: 1.45; }
}

/* 추천업소 사진 칸 (Controls 의 MiddleImageAD, 글 아래와 여러 목록 아래에 선다).
   옛 모습은 회색 테두리 상자에 160x120 칸을 늘어놓고, 마우스를 올리면 옆에서
   흰 상자가 밀려 들어왔다. 새 디자인에서는 카드 한 장 안에 둥근 사진 칸을 넷씩
   놓고, 마우스를 올리면 업소 이름과 전화가 사진 아래쪽에서 올라온다. */
body:has(.v2-header) .MiddleImageADContainer { margin: 20px 0 !important; padding: 20px 22px 22px !important; border: 1px solid var(--v2-line) !important; border-radius: 16px !important;
    background: #fff; box-shadow: 0 4px 18px rgba(31, 36, 48, .04); text-align: left; font-family: var(--v2-font); }
body:has(.v2-header) .MiddleImageADContainer::before { content: '추천 업소'; display: block; margin: 0 0 14px; padding-left: 10px; border-left: 4px solid var(--v2-primary);
    font-size: 17px; font-weight: 900; line-height: 1.3; color: var(--v2-navy); }
body:has(.v2-header) #MiddleImageADWrapper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body:has(.v2-header) .MiddleImageADContainer a { display: block !important; width: auto !important; height: auto !important; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--v2-line); background: var(--v2-bg); box-shadow: 0 2px 8px rgba(31, 36, 48, .05); transition: transform .2s, box-shadow .2s; }
body:has(.v2-header) .MiddleImageADContainer a:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(107, 63, 224, .16); }
body:has(.v2-header) .MiddleImageADContainer a img { width: 100% !important; height: 100% !important; object-fit: cover; }
body:has(.v2-header) .MiddleImageADContainer a div { top: auto !important; right: 0 !important; left: 0; bottom: 0; width: auto !important; height: auto !important; padding: 26px 10px 9px !important;
    border: 0 !important; background: linear-gradient(to top, rgba(19, 35, 74, .92), rgba(19, 35, 74, 0)) !important; color: #fff;
    transform: translateY(100%); transition: transform .25s !important; z-index: 1; }
body:has(.v2-header) .MiddleImageADContainer a:hover div, body:has(.v2-header) .MiddleImageADContainer a:focus div { transform: translateY(0); }
body:has(.v2-header) .MiddleImageADContainer a div .ImageTitle { margin: 0 0 3px !important; padding: 0 !important; background: none !important; font-size: 13px; font-weight: 700; line-height: 1.35 !important;
    display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body:has(.v2-header) .MiddleImageADContainer a div .ImagePhone { padding: 0 !important; font-size: 12px; line-height: 1.4 !important; opacity: .9; }
body:has(.v2-header) .MiddleImageADContainer a div .ImageAddress { display: none !important; }

@media (max-width: 760px) {
    body:has(.v2-header) .MiddleImageADContainer { padding: 16px !important; }
    body:has(.v2-header) #MiddleImageADWrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ---------- 글쓰기 창 (구인구직·렌트·중고·핑퐁 Q&A·YouTV 의 .WriteContainer) ----------
   예전에는 목록 위 250px 자리에 겹쳐 떴다. 새 디자인에서는 화면 가운데 뜨는 창이다.
   열고 닫는 것은 그대로 JS/Board.js 가 붙이는 이름표(WriteContainerDisplay,
   TopWriteContainerDisplay)다. 블로그의 글쓰기(.WriteContainer 만 있고 DefaultTransit 이
   없다)는 짜임이 달라 건드리지 않는다. 에디터의 펼침 차림표(글꼴, 크기)는 body 에
   z-index 10000 으로 붙으므로 창은 그 아래인 9000 에 둔다. */
body:has(.v2-header) .WriteContainer.DefaultTransit { position: fixed !important; inset: 0 !important; z-index: 9000 !important; width: auto; display: flex; justify-content: center; align-items: flex-start;
    padding: 48px 16px; overflow-y: auto; background: rgba(17, 20, 45, .55); opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; }
body:has(.v2-header) .WriteContainer.DefaultTransit.WriteContainerDisplay, body:has(.v2-header) .WriteContainer.DefaultTransit.TopWriteContainerDisplay { opacity: 1; visibility: visible; }
body:has(.v2-header):has(.DefaultTransit.WriteContainerDisplay, .DefaultTransit.TopWriteContainerDisplay) { overflow: hidden; }
/* The window sits inside the page's frame, below the header's layer - so while it is open the header
   steps back, or the window's top (its title, the photo boxes) hides under the header. */
body:has(.DefaultTransit.WriteContainerDisplay, .DefaultTransit.TopWriteContainerDisplay) .v2-header { z-index: auto; position: static; }
body:has(.v2-header) .DefaultTransit .WriteInnerContainer { box-sizing: border-box; width: 100%; max-width: 860px; margin: auto 0; padding: 26px 30px 24px; border: 0; border-radius: 18px !important;
    background: #fff; box-shadow: 0 24px 60px rgba(17, 20, 45, .28); font-family: var(--v2-font); color: var(--v2-text); }
body:has(.v2-header) .DefaultTransit .WriteNotice { margin: 0 0 12px; padding: 12px 14px 12px 40px; border-radius: 12px; background: #f5f2ff; color: #4b3a8f; font-size: 13px; font-weight: 600; line-height: 1.6; text-align: left; position: relative; }
body:has(.v2-header) .DefaultTransit .WriteNotice::before { content: 'i'; position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--v2-primary); color: #fff;
    font: 800 12px/18px Georgia, serif; text-align: center; }
body:has(.v2-header) .DefaultTransit .WriteBodySection { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; align-items: start; }
body:has(.v2-header) .DefaultTransit .WriteBodySection:first-child { display: block; }
body:has(.v2-header) .DefaultTransit .WriteSubject { position: static; width: auto; padding: 16px 0 0; text-align: left; font-size: 13.5px; font-weight: 700; color: #4b5162; white-space: nowrap; }
body:has(.v2-header) .DefaultTransit .WriteContent { margin: 0; padding: 6px 0; min-width: 0; }
body:has(.v2-header) .DefaultTransit .WriteContent:has(> input[type=file]) { font-size: 12.5px; color: var(--v2-muted); }
body:has(.v2-header) .DefaultTransit .WriteContent input[type=text], body:has(.v2-header) .DefaultTransit .WriteContent select { height: 42px; padding: 0 12px; border: 1px solid var(--v2-line); border-radius: 10px;
    background-color: #fff; font-family: var(--v2-font); font-size: 14px; color: var(--v2-text); outline: 0; }
body:has(.v2-header) .DefaultTransit .WriteContent input[type=text]:focus, body:has(.v2-header) .DefaultTransit .WriteContent select:focus { border-color: var(--v2-primary); box-shadow: 0 0 0 3px var(--v2-primary-soft); }
body:has(.v2-header) .DefaultTransit .WriteContent input[type=file] { width: auto; max-width: 100%; margin: 3px 10px 3px 0; padding: 0; border: 0; font-size: 13px; color: var(--v2-muted); }
body:has(.v2-header) .DefaultTransit .WriteContent input[type=file]::file-selector-button { margin-right: 10px; padding: 9px 16px; border: 1px solid #d9cdfa; border-radius: 10px; background: var(--v2-primary-soft);
    color: var(--v2-primary); font-family: var(--v2-font); font-size: 13.5px; font-weight: 700; cursor: pointer; }
body:has(.v2-header) .DefaultTransit .cke_chrome { border: 1px solid var(--v2-line) !important; border-radius: 10px; overflow: hidden; box-shadow: none !important; }
body:has(.v2-header) .DefaultTransit .cke_top { border-bottom: 1px solid var(--v2-line) !important; background: #f8f7fc !important; box-shadow: none !important; }
body:has(.v2-header) .DefaultTransit .cke_bottom { border-top: 1px solid var(--v2-line) !important; background: #f8f7fc !important; box-shadow: none !important; }
body:has(.v2-header) .DefaultTransit .WriteFooter { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--v2-line); font-size: 0; }
body:has(.v2-header) .DefaultTransit .WriteFooter .DefaultButton { min-width: 110px; margin: 0; padding: 11px 22px; border: 1px solid var(--v2-line); border-radius: 12px; background: #fff !important; box-shadow: none;
    color: #4b5162 !important; font-family: var(--v2-font); font-size: 15px; font-weight: 700; text-align: center; }
body:has(.v2-header) .DefaultTransit .WriteFooter #SaveBoardButton { order: 2; border-color: var(--v2-primary); background: var(--v2-primary) !important; color: #fff !important; box-shadow: 0 8px 18px rgba(107, 63, 224, .22); }
body:has(.v2-header) .DefaultTransit .WriteFooter #SaveBoardButton:hover { background: #5a30c8 !important; }
body:has(.v2-header) .DefaultTransit .WriteFooter .DefaultButton:not(#SaveBoardButton):hover { border-color: #c9c3dc; }

@media (max-width: 767px) {
    body:has(.v2-header) .WriteContainer.DefaultTransit { padding: 0; }
    body:has(.v2-header) .DefaultTransit .WriteInnerContainer { min-height: 100%; margin: 0; padding: 18px 16px; border-radius: 0 !important; }
    body:has(.v2-header) .DefaultTransit .WriteBodySection { display: block; }
    body:has(.v2-header) .DefaultTransit .WriteSubject { padding: 10px 0 3px; }
    body:has(.v2-header) .DefaultTransit .WriteContent input[type=text], body:has(.v2-header) .DefaultTransit .WriteContent select { font-size: 16px; }
    body:has(.v2-header) .DefaultTransit .WriteFooter .DefaultButton { flex: 1; }
}

/* ---------- 업소록 오른쪽 칸의 카테고리 (YPCGSelector) ---------- */
body:has(.v2-header) .categories-widget:has(.v2-ypcg) { padding: 16px 14px 10px; border: 1px solid var(--v2-line); border-radius: 16px; background: #fff; font-family: var(--v2-font); }
body:has(.v2-header) .categories-widget:has(.v2-ypcg) .title-section { margin: 0 4px 8px; padding: 0; border: 0; }
body:has(.v2-header) .categories-widget:has(.v2-ypcg) .title-section h1 { margin: 0; padding: 0; border: 0; }
body:has(.v2-header) .categories-widget:has(.v2-ypcg) .title-section h1 span { display: block; padding: 0 0 0 10px; border: 0; border-left: 4px solid var(--v2-primary); font-size: 17px; font-weight: 900; line-height: 1.2; color: var(--v2-navy); }
body:has(.v2-header) .categories-widget:has(.v2-ypcg) .title-section h1 span::after, body:has(.v2-header) .categories-widget:has(.v2-ypcg) .title-section h1::after { display: none; }
body:has(.v2-header) .categories-widget ul.v2-ypcg { margin: 0; padding: 0; list-style: none; }
body:has(.v2-header) .categories-widget ul.v2-ypcg li { margin: 0; padding: 0; border: 0; }
body:has(.v2-header) .categories-widget ul.v2-ypcg li a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: #2f3445; text-decoration: none; }
body:has(.v2-header) .categories-widget ul.v2-ypcg li a:hover { background: var(--v2-bg); color: var(--v2-primary); }
body:has(.v2-header) .categories-widget ul.v2-ypcg li a.is-on { background: var(--v2-primary-soft); color: var(--v2-primary); }
body:has(.v2-header) .categories-widget ul.v2-ypcg li a span.v2-ypcg-icon { float: none; margin: 0; padding: 0; border: 0; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--s); color: var(--c); }
body:has(.v2-header) .categories-widget ul.v2-ypcg li a > span:last-child { width: auto; height: auto; margin-left: auto; float: none; background: none; border: 0; padding: 0; }
body:has(.v2-header) .categories-widget ul.v2-ypcg li a > span:last-child i { display: none; }
body:has(.v2-header) .categories-widget ul.v2-ypcg li a > span:last-child::after { content: '›'; font-size: 16px; color: #b5b9c6; }
body:has(.v2-header) .categories-widget ul.v2-ypcg li a:hover > span:last-child::after, body:has(.v2-header) .categories-widget ul.v2-ypcg li a.is-on > span:last-child::after { color: var(--v2-primary); }
