/* =========================================================================
   뷰티루프 테마 — PC 3단 · 모바일 SNS형 반응형
   색·간격은 아래 변수만 바꾸면 전체에 반영된다(고객 시안 적용 시 여기부터).
   그누보드 기본 스킨(회원가입·로그인 등)은 default.css 의 클래스를 쓰므로 맨 아래에서 이 테마 톤으로 덮는다.
   ========================================================================= */
:root {
  --bg: #f8f4f6;
  --card: #fff;
  --ink: #28202b;
  --muted: #6d6269;
  --line: #eae0e5;
  --accent: #a32e5a;
  --accent-ink: #fff;
  --soft: #f8e9ee;
  --dark: #6e203e;
  --plum: #391e40;
  --lime: #e0f66a;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(57, 30, 64, .04);
  --top-h: 70px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-y: scroll; -webkit-text-size-adjust: 100%; }
body.bl { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); word-break: keep-all; overflow-wrap: anywhere; }
body.bl button, body.bl input, body.bl textarea, body.bl select { font: inherit; color: inherit; }
body.bl button { cursor: pointer; }
body.bl a { color: inherit; text-decoration: none; }
body.bl a:hover { color: var(--accent); }
body.bl h1, body.bl h2, body.bl h3, body.bl p { margin: 0; }
body.bl img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sound_only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 8px; }

/* ---- 상단 ---- */
.top { background: #fff; border-bottom: 1px solid var(--line); border-top: 4px solid var(--plum); position: sticky; top: 0; z-index: 10; }
.top-inner { max-width: 1370px; margin: auto; min-height: var(--top-h); display: grid; grid-template-columns: minmax(180px, 228px) minmax(0, 1fr) auto; gap: 26px; align-items: center; padding: 0 26px; }
.brand { font-family: Georgia, "Times New Roman", serif; font-size: 31px; line-height: 1; font-weight: 700; letter-spacing: -.075em; white-space: nowrap; color: var(--ink) !important; }
.brand span, .brand b { color: var(--accent); }
.brand b { font: 16px/1 system-ui; vertical-align: top; margin-left: 5px; }
.search-box { position: relative; max-width: 420px; width: 100%; }
.search-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
body.bl .top .search-box input { width: 100%; border: 1px solid transparent; border-radius: 30px; background: var(--bg); padding: 10px 16px 10px 40px; height: auto; }
body.bl .top .search-box input:focus { border-color: #e2b9c8; background: #fff; outline: none; box-shadow: 0 0 0 3px var(--soft); }
.top-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 19px; color: var(--ink); }
.icon-btn:hover { background: var(--soft); }
.search-mobile { display: none !important; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font: 700 11px/1 var(--font); }
.icon-btn .badge { position: absolute; top: 2px; right: 0; }
.top-profile { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 4px 10px 4px 4px; border-radius: 22px; }
.top-profile:hover { background: var(--soft); }
.btn-ghost { padding: 8px 12px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.btn-ghost:hover { background: var(--soft); }
.btn-join { font-size: 14px; }

/* ---- 3단 레이아웃 ---- */
.shell { max-width: 1370px; margin: auto; display: grid; grid-template-columns: minmax(180px, 228px) minmax(0, 1fr) minmax(220px, 300px); gap: 26px; padding: 28px 26px 56px; }
.sidebar, .rail { min-width: 0; }
.sidebar { position: sticky; top: calc(var(--top-h) + 24px); align-self: start; }
.nav { display: grid; gap: 3px; }
.nav a { display: flex; align-items: center; gap: 13px; padding: 10px 12px; border-radius: 12px; font-weight: 700; }
.nav a i { width: 22px; text-align: center; font-size: 19px; color: var(--accent); }
.nav a .badge { margin-left: auto; }
.nav a:hover, .nav a[aria-current] { background: var(--soft); color: var(--dark); }
#bl-main { min-width: 0; outline: none; }
.rail { display: grid; gap: 16px; align-content: start; }

/* ---- 버튼 ---- */
.primary, a.primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: var(--accent-ink) !important; border: 0; border-radius: 12px; padding: 10px 16px; font-weight: 750; line-height: 1.3; }
.primary:hover { background: var(--dark); }
.primary:disabled { opacity: .55; cursor: wait; }
.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #fff; color: var(--dark); border: 1px solid #e2b9c8; border-radius: 12px; padding: 9px 15px; font-weight: 700; }
.secondary:hover { background: var(--soft); }
.danger { color: #8c1c41 !important; }
.compose { width: 100%; margin-top: 18px; }
.mobile-compose { display: none; }
.sidebar-foot { margin-top: 22px; padding: 0 12px; font-size: 12px; color: var(--muted); }
.sidebar-foot p { margin-top: 6px; }
.pill, .chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill:hover, .pill[aria-pressed=true], .pill[aria-current], .chip[aria-current] { border-color: #e2b9c8; background: var(--soft); color: var(--dark); }
.chip { font-weight: 600; padding: 5px 11px; font-size: 12.5px; }

/* ---- 제목·컨트롤 ---- */
.feed-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--plum); }
.feed-heading h1 { font-size: clamp(23px, 3vw, 32px); letter-spacing: -.06em; line-height: 1.2; }
.feed-heading .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.feed-controls { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.feed-controls.chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 16px; }
.feed-controls.chips::-webkit-scrollbar { display: none; }
.notice-strip { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 13px; margin-bottom: 12px; font-size: 14px; }
.notice-strip b { color: #fff; background: var(--plum); border-radius: 6px; padding: 1px 7px; font-size: 12px; }
.notice-strip i { margin-left: auto; color: var(--muted); }

/* ---- 카드 ---- */
.feed { display: grid; gap: 16px; align-content: start; }
.post, .rail-box, .view-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px; box-shadow: var(--shadow); }
.post { scroll-margin-top: 90px; }
.post-head, .person { display: flex; align-items: center; gap: 10px; }
.post-head { margin-bottom: 10px; }
.post-head .who, .person .who { min-width: 0; }
.post-head strong, .person strong { display: block; font-size: 14.5px; }
.post-head small, .person small { display: block; color: var(--muted); font-size: 11.5px; }
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: #f4dce5; color: #6c2543; font-weight: 800; object-fit: cover; overflow: hidden; }
.category { margin-left: auto; flex: none; color: var(--accent); background: var(--soft); padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 750; }
.post-title { font-size: 19px; letter-spacing: -.035em; line-height: 1.35; }
.badge-accepted { display: inline-block; vertical-align: 2px; font-size: 11px; color: #fff; background: #3c7a4b; border-radius: 6px; padding: 1px 7px; letter-spacing: 0; }
.post-body { margin: 6px 0 11px; color: #51454d; }
.post-body .more { color: var(--muted); font-weight: 700; }
.hashtag { color: var(--accent) !important; font-weight: 600; }
.media-wrap { position: relative; margin-bottom: 4px; }
.media { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 13px; background: #f3e7eb; scrollbar-width: none; }
.media::-webkit-scrollbar { display: none; }
.media img { width: 100%; max-height: 520px; height: auto; aspect-ratio: auto; object-fit: cover; flex: 0 0 100%; scroll-snap-align: start; display: block; }
.media-count { position: absolute; top: 10px; right: 10px; background: rgba(40, 32, 43, .7); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 12px; }
.media-dots { display: flex; justify-content: center; gap: 5px; padding: 8px 0 0; }
.media-dots i { width: 6px; height: 6px; border-radius: 50%; background: #e2cbd4; }
.media-dots i.on { background: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-top: 8px; margin-top: 9px; border-top: 1px solid var(--line); }
.actions button, .actions a { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; border-radius: 8px; padding: 6px 9px; color: var(--muted); font-size: 13px; font-weight: 600; }
.actions button:hover, .actions a:hover { background: var(--soft); color: var(--accent); }
.actions [aria-pressed=true] { color: var(--accent); }
.actions .spacer { flex: 1; }
.actions .subtle { font-size: 12px; font-weight: 500; }
.comment-preview { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13.5px; display: grid; gap: 3px; }
.comment-preview li.reply { padding-left: 14px; }
.comment-preview strong { margin-right: 3px; }
.feed-more { text-align: center; margin-top: 16px; }
.feed-more .loading { color: var(--muted); font-size: 13px; }
.empty { border: 1px dashed #dbccd2; border-radius: 14px; padding: 22px; color: var(--muted); text-align: center; background: rgba(255, 255, 255, .5); }
.empty a { color: var(--accent); font-weight: 700; }

/* ---- 투표 ---- */
.poll { display: grid; gap: 6px; margin: 10px 0 4px; padding: 13px; border-radius: 14px; background: #fbf5f8; border: 1px solid var(--line); }
.poll-q { font-weight: 750; font-size: 14.5px; }
.poll-q i { color: var(--accent); }
.poll-opt { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; border: 1px solid #e2cbd4; border-radius: 10px; background: #fff; padding: 9px 12px; overflow: hidden; font-weight: 600; isolation: isolate; }
.poll-opt::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pct, 0%); background: var(--soft); z-index: -1; transition: width .4s ease; }
.poll-opt[aria-pressed=true] { border-color: var(--accent); }
.poll-opt[aria-pressed=true]::before { background: #f3d3df; }
.poll-opt:hover:not(:disabled) { border-color: var(--accent); }
.poll-opt:disabled { cursor: default; }
.poll-pct { color: var(--dark); font-size: 13px; }
.poll-meta { font-size: 12px; color: var(--muted); }

/* ---- 오른쪽 사이드 ---- */
.rail-box h2 { font-size: 15.5px; margin-bottom: 10px; letter-spacing: -.035em; }
.rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.rail-list li { display: flex; justify-content: space-between; gap: 8px; }
.rail-list small { color: var(--muted); flex: none; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud a { background: #fbf2f5; border-radius: 20px; padding: 5px 10px; color: var(--dark); font-size: 12.5px; }
.tag-cloud a:hover { background: var(--soft); }
.person + .person { margin-top: 12px; }
.person .follow-btn { margin-left: auto; flex: none; }
.challenge { display: grid; gap: 6px; padding: 19px; border-radius: var(--radius); background: var(--ch, var(--plum)); color: #fff; border-left: 5px solid var(--lime); }
.challenge > span { font-size: 10px; letter-spacing: .13em; color: var(--lime); }
.challenge h2 { font-size: 19px; }
.challenge p, .challenge small { font-size: 13px; color: #f7e6ef; }
.challenge a { justify-self: start; margin-top: 6px; border-radius: 20px; background: var(--lime); color: var(--plum) !important; padding: 5px 11px; font-size: 12.5px; font-weight: 700; }
.meter { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--lime); border-radius: 4px; }
.view-box .meter { background: var(--soft); }
.view-box .meter i { background: var(--accent); }
.banner { position: relative; display: flex; align-items: flex-end; min-height: 120px; border-radius: var(--radius); overflow: hidden; background: var(--bn-bg, var(--dark)); color: #fff !important; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner span { position: relative; display: grid; gap: 2px; width: 100%; padding: 14px 16px; background: linear-gradient(transparent, rgba(30, 14, 30, .72)); }
.banner strong { font-size: 16px; }
.banner small { font-size: 12.5px; opacity: .9; }
.banner-wide { min-height: 110px; margin-bottom: 14px; }
.rail-foot { font-size: 11.5px; color: var(--muted); padding: 0 4px; }

/* ---- 일반 상자·폼 ---- */
.view-box { margin-bottom: 14px; }
.view-box h2 { font-size: 18px; margin-bottom: 8px; letter-spacing: -.03em; }
.view-box p + p { margin-top: 8px; }
.bl-form label { display: grid; gap: 5px; margin: 10px 0; font-weight: 650; font-size: 14px; }
.bl-form .hint, .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
body.bl input[type=text], body.bl input[type=search], body.bl input[type=password], body.bl input[type=email], body.bl input[type=date], body.bl input[type=url], body.bl input[type=number], body.bl input[type=tel], body.bl textarea, body.bl select { background: #fff; border: 1px solid #dfd2d7; border-radius: 10px; padding: 9px 11px; max-width: 100%; height: auto; box-shadow: none; }
body.bl input:focus, body.bl textarea:focus, body.bl select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--soft); }
body.bl textarea { width: 100%; resize: vertical; line-height: 1.55; }
.form-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form-error { color: #8c1c41; margin: 7px 0; font-size: 13.5px; }
.radio-list { display: grid; gap: 4px; border: 0; padding: 0; margin: 10px 0; }
.radio-list label { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 0; }

/* ---- 대화상자 ---- */
dialog { width: min(520px, calc(100% - 26px)); max-height: 88vh; border: 1px solid var(--line); border-radius: var(--radius); padding: 19px; color: var(--ink); background: #fff; overscroll-behavior: contain; }
dialog::backdrop { background: rgba(37, 23, 34, .5); }
.dialog-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dialog-title h2 { font-size: 20px; }
.dialog-title button { font-size: 26px; background: none; border: 0; line-height: 1; padding: 0 4px; }
dialog form label { display: grid; gap: 5px; margin: 9px 0; font-weight: 650; }
.compose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.compose-grid a { display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.compose-grid a:hover { border-color: #e2b9c8; background: var(--soft); color: var(--ink); }
.compose-grid i { font-size: 20px; color: var(--accent); }
.compose-grid small { color: var(--muted); font-size: 12px; }
.toast { position: fixed; bottom: 22px; right: 22px; z-index: 50; max-width: calc(100% - 36px); background: #3e2635; color: #fff; padding: 11px 15px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }

/* ---- 프로필 ---- */
.profile-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.profile-card .avatar { width: 96px !important; height: 96px !important; font-size: 38px !important; }
.profile-card h1 { font-size: 24px; letter-spacing: -.04em; }
.profile-card .bio { color: #51454d; margin-top: 4px; white-space: pre-line; }
.stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0; font-size: 14px; }
.stats a, .stats span { color: var(--muted); }
.stats b { color: var(--ink); margin-right: 3px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 4px 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a[aria-current] { color: var(--dark); border-color: var(--accent); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.grid-3 a { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f3e7eb; }
.grid-3 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid-3 .txt { display: grid; place-items: center; height: 100%; padding: 10px; font-size: 13px; text-align: center; color: var(--dark); font-weight: 700; }
.grid-3 .stat { position: absolute; left: 6px; bottom: 6px; color: #fff; font-size: 11.5px; background: rgba(40, 32, 43, .55); padding: 1px 7px; border-radius: 10px; }
.people-list .person { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }

/* ---- 알림 ---- */
.noti-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.noti-list li { border-bottom: 1px solid var(--line); }
.noti-list li:last-child { border-bottom: 0; }
.noti-list a { display: flex; gap: 12px; align-items: center; padding: 13px 16px; }
.noti-list li.unread a { background: #fdf3f7; }
.noti-list .noti-text { flex: 1; min-width: 0; }
.noti-list .noti-text small { display: block; color: var(--muted); font-size: 12px; }
.noti-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--accent); }

/* ---- 기록·챌린지 ---- */
.journal-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.journal-item h3 { font-size: 15px; }
.journal-item img { width: 110px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.journal-item .memo { white-space: pre-line; color: #51454d; margin-top: 4px; }
.ch-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--soft); border-radius: 10px; padding: 1px 8px; margin-left: 5px; }
.compare { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 4/3; background: #f3e7eb; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); transform: translateX(-1px); pointer-events: none; }
.compare .lb { position: absolute; top: 10px; background: rgba(40, 32, 43, .65); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.compare .lb.l { left: 10px; } .compare .lb.r { right: 10px; }
.compare input[type=range] { position: absolute; inset: auto 0 10px; width: 80%; margin: auto; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; font-size: 12px; }
.cal b { color: var(--muted); font-weight: 600; padding: 3px 0; }
.cal span { padding: 7px 0; border-radius: 8px; background: #fbf5f8; }
.cal span.on { background: var(--accent); color: #fff; font-weight: 700; }
.cal span.today { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal span.blank { background: transparent; }
.ch-list { display: grid; gap: 12px; }

/* ---- 검색 ---- */
.search-big { display: flex; gap: 8px; margin-bottom: 16px; }
.search-big input { flex: 1; }
.section-title { font-size: 16px; margin: 18px 0 10px; letter-spacing: -.03em; }

/* ---- 둘러보기 ---- */
.board-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.board-tiles a { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.board-tiles a:hover { border-color: #e2b9c8; background: var(--soft); color: var(--ink); }
.board-tiles i { font-size: 20px; color: var(--accent); }
.board-tiles small { color: var(--muted); font-size: 12px; }


/* ---- 글 보기·댓글 ---- */
.back-link { margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.post-view .view-title { font-size: clamp(20px, 2.6vw, 25px); margin: 2px 0 10px; }
.post-view .post-head .follow-btn { margin-left: 8px; }
.view-body { font-size: 15.5px; line-height: 1.75; color: #3d3239; margin: 12px 0; }
.view-body a { color: var(--accent); }
.view-tags { margin: 6px 0 4px; }
.prev-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.prev-next a { display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; font-weight: 600; font-size: 14px; }
.prev-next small { color: var(--muted); font-weight: 500; font-size: 12px; }
.comments-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 17px 12px; margin-top: 14px; }
.comments-box .section-title { margin: 12px 0 8px; }
.comment { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.comment.reply { margin-left: 26px; }
.comment.depth-2 { margin-left: 46px; }
.comment.depth-3 { margin-left: 62px; }
.comment.is-accepted { background: #f2f8f3; border-radius: 12px; padding-inline: 10px; }
.comment header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; }
.comment header time { color: var(--muted); font-size: 12px; }
.c-author { font-size: 11px; color: var(--accent); border: 1px solid #e2b9c8; border-radius: 8px; padding: 0 6px; }
.cmt_contents p { margin-top: 3px; white-space: normal; color: #3d3239; }
.c-actions { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 4px; }
.c-actions a, .c-actions button { border: 0; background: none; color: var(--muted); font-size: 12.5px; padding: 3px 6px; border-radius: 6px; }
.c-actions a:hover, .c-actions button:hover { background: var(--soft); color: var(--accent); }
.c-actions .accept-btn { color: #3c7a4b; font-weight: 700; border: 1px solid #b9d9c0; }
.accepted-box { background: #f2f8f3; border: 1px solid #cfe5d4; border-radius: 12px; padding: 10px 12px; margin: 4px 0 10px; font-size: 14px; }
.accepted-box p { margin-top: 4px; }
.comment-write { margin-top: 12px; }
.bo_vc_w { display: block; }
.comment-write textarea, .comment .bo_vc_w textarea { min-height: 72px; }
.comment-write-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.secret-chk { font-size: 13px; color: var(--muted); display: inline-flex; gap: 5px; align-items: center; }

/* ---- 글쓰기 ---- */
.write-box { padding: 18px 20px; }
.photo-field, .poll-field { border: 1px dashed #dbccd2; border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.photo-field legend, .poll-field legend { font-weight: 700; padding: 0 4px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 10px; }
.photo-grid:empty { display: none; }
.photo-grid figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f3e7eb; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid figure.removed img { opacity: .3; }
.thumb-del { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(40, 32, 43, .75); color: #fff; line-height: 1; }
.del-chk { position: absolute; left: 4px; bottom: 4px; margin: 0 !important; display: flex !important; gap: 4px; align-items: center; background: rgba(255, 255, 255, .9); border-radius: 8px; padding: 1px 6px; font-size: 12px !important; }
.photo-add { cursor: pointer; }
.switch { display: inline-flex !important; grid-auto-flow: column; align-items: center; gap: 7px; margin: 4px 0 !important; cursor: pointer; }
.poll-options { display: grid; gap: 6px; margin-bottom: 6px; }
.write-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.captcha-row { margin: 10px 0; }

/* ---- 모바일 아래 탭 ---- */
.tabbar { display: none; }

/* =========================================================================
   반응형
   ========================================================================= */
@media (max-width: 1100px) {
  .shell, .top-inner { grid-template-columns: 170px minmax(0, 1fr) 230px; gap: 16px; padding-inline: 16px; }
  .rail-box { padding: 13px; }
}
@media (max-width: 880px) {
  .shell { grid-template-columns: 160px minmax(0, 1fr); }
  .rail { display: none; }
  .top-inner { grid-template-columns: 160px minmax(0, 1fr) auto; }
  .top-name { display: none; }
}
@media (max-width: 640px) {
  :root { --top-h: 56px; }
  body.bl { font-size: 15px; }
  .top { border-top-width: 3px; }
  .top-inner { display: flex; gap: 6px; min-height: var(--top-h); justify-content: space-between; padding-inline: 12px; }
  .brand { font-size: 25px; }
  .search-box { display: none; }
  .search-mobile { display: inline-grid !important; }
  .top-profile { display: none; }
  .btn-ghost, .btn-join { padding: 7px 10px; font-size: 13px; }
  .shell { display: block; padding: 14px 10px calc(84px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .mobile-compose { display: inline-flex; font-size: 12.5px; padding: 7px 11px; }
  .feed-heading { margin-bottom: 12px; }
  .post, .view-box { padding: 13px; border-radius: 15px; }
  .feed { gap: 12px; }
  .media { margin-inline: -13px; border-radius: 0; }
  .media img { max-height: 70vh; }
  .actions .label { display: none; }
  .actions button, .actions a { padding: 7px 10px; font-size: 14px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding: 5px 4px max(6px, env(safe-area-inset-bottom)); backdrop-filter: blur(8px); }
  .tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 5px 0; border: 0; background: none; color: var(--muted); font-size: 10.5px; font-weight: 700; }
  .tabbar i { font-size: 21px; }
  .tabbar [aria-current] { color: var(--accent); }
  .tabbar .tab-compose { justify-self: center; width: 46px; height: 46px; border-radius: 15px; background: var(--accent); color: #fff; place-items: center; }
  .tabbar .tab-compose i { font-size: 18px; }
  .tabbar .badge { position: absolute; top: 0; left: 50%; margin-left: 4px; }
  .toast { left: 14px; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: none; }
  dialog { padding: 16px; }
  dialog.sheet { margin: auto 0 0; width: 100%; max-width: none; border-radius: 20px 20px 0 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .compose-grid { grid-template-columns: 1fr; }
  .profile-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .profile-card .avatar { width: 80px !important; height: 80px !important; }
  .stats, .profile-actions { justify-content: center; }
  .journal-item img { width: 84px; }
}

/* =========================================================================
   그누보드 기본 화면(로그인·회원가입·게시판 공통 요소) 톤 맞춤
   ========================================================================= */
body.bl .btn_submit, body.bl button.btn_submit, body.bl a.btn_submit { background: var(--accent); color: #fff; border: 0; border-radius: 12px; font-weight: 750; height: auto; padding: 11px 18px; }
body.bl .btn_submit:hover { background: var(--dark); }
body.bl .btn_b01, body.bl .btn_b02, body.bl .btn_close, body.bl .btn_cancel { border-radius: 10px; }
body.bl .btn_b02 { background: var(--accent); }
body.bl .frm_input { height: auto; border-radius: 10px; }
body.bl .mbskin, body.bl #register_form, body.bl .register { max-width: 560px; margin: 0 auto; }
body.bl #mb_login { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
body.bl .register_form_inner, body.bl .form_01 { border-radius: var(--radius); }
body.bl .pg_wrap { clear: both; display: block; padding: 18px 0; text-align: center; }
body.bl .pg_current { background: var(--accent); border-color: var(--accent); }
body.bl .sound_only { position: absolute !important; }
body.bl #container_title { display: none; }
body.bl .win_desc { color: var(--muted); }

/* 로그인 화면(그누보드 로그인은 사이트 머리 없이 상자만 그린다) — 로고와 한 줄 소개 */
body.bl #mb_login { margin: 48px auto; padding: 0; border: 0; background: none; }
body.bl .login-brand { text-align: center; margin-bottom: 18px; }
body.bl .login-brand small { display: block; color: var(--muted); margin-top: 6px; font-size: 13px; }
body.bl #mb_login .mbskin_box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* 그누보드 팝업레이어(관리자 › 팝업레이어관리) 상자 — 기본 폭 1200px 가 휴대폰에서 가로 넘침을 만들어 화면 폭에 맞춘다 */
body.bl #hd_pop { width: auto !important; max-width: 100%; }
@media (max-width: 640px) { body.bl .hd_pops { max-width: calc(100vw - 20px); left: 10px !important; } body.bl .hd_pops_con { max-width: 100%; height: auto !important; } }
