/* ===================================================
   고양특례시 호남향우회 연합회 - 통합 스타일시트
   기본 컬러: 초록(#5BBB2F), 포인트: 빨강(#E8333A), 골드(#F5A623)
   어르신 친화적 UI - 큰 글씨(21px 기준), 넓은 터치 영역
   PC + 모바일 완전 반응형
=================================================== */

/* ── 기본 리셋 & 폰트 ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ★ 다크모드 완전 차단 — 폰 시스템 설정에 관계없이 항상 라이트 테마로 표시 */
:root { color-scheme: light only; }

html {
  font-size: 21px;  /* ★ 어르신 가독성: 19→21px */
  scroll-behavior: smooth;
  color-scheme: light only;
}

/* ═══════════════════════════════════════════════════════════
   내 고향 소식 통합관
   ═══════════════════════════════════════════════════════════ */
.hometown-home-section {
  margin: 0 0 10px;
}

.hometown-home-card {
  overflow: hidden;
  border: 1px solid rgba(21, 94, 75, .18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 0, rgba(229, 185, 67, .22), transparent 34%),
    linear-gradient(145deg, #f8fcf8, #eef7f2);
  box-shadow: 0 12px 28px rgba(12, 61, 48, .1);
}

.hometown-home-loading,
.hometown-home-retry {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #4f665d;
}

.hometown-home-retry {
  width: 100%;
  padding: 22px;
  border: 0;
  background: transparent;
  text-align: left;
}

.hometown-home-retry > i:first-child {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #166448;
  color: #fff;
  font-size: 21px;
}

.hometown-home-retry span { flex: 1; display: grid; gap: 3px; }
.hometown-home-retry strong { color: #173b31; font-size: 17px; }
.hometown-home-retry small { color: #6b7d76; }

.hometown-home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 8px;
  color: #173b31;
}

.hometown-home-head span {
  display: none;
}

.hometown-home-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

.hometown-home-head h3 i { color: #c28c18; margin-right: 3px; }

.hometown-home-head button {
  flex: none;
  border: 0;
  background: transparent;
  color: #176647;
  font-size: 12px;
  font-weight: 800;
}

.hometown-home-grid {
  display: grid;
  grid-template-columns: minmax(116px, .72fr) minmax(0, 1.55fr);
  gap: 8px;
  padding: 0 10px 10px;
}

.hometown-home-grid > div {
  min-width: 0;
}

.hometown-home-weather {
  height: 100%;
  min-height: 88px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 8px 7px;
  border-radius: 15px;
  background: linear-gradient(155deg, #135c46, #0d433b);
  color: #fff;
  text-align: center;
}

.hometown-home-weather-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  color: #ffd66c;
  font-size: 15px;
}

.hometown-home-weather > div:nth-child(2) { display: flex; align-items: baseline; gap: 5px; }
.hometown-home-weather strong { font-size: 23px; line-height: 1; }
.hometown-home-weather span { font-size: 11px; font-weight: 700; }
.hometown-home-weather small { color: rgba(255,255,255,.72); font-size: 10px; }

.hometown-home-story {
  width: 100%;
  height: 100%;
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid rgba(19, 91, 70, .12);
  border-radius: 15px;
  background: rgba(255,255,255,.86);
  color: inherit;
  text-align: left;
}

.hometown-home-story img,
.hometown-home-story-icon {
  width: 58px;
  height: 68px;
  flex: none;
  border-radius: 12px;
  object-fit: cover;
}

.hometown-home-story-icon {
  display: grid;
  place-items: center;
  background: #e8f4ed;
  color: #176647;
  font-size: 23px;
}

.hometown-home-story-text { min-width: 0; flex: 1; display: grid; gap: 3px; }
.hometown-home-story-text small { color: #b17d0d; font-size: 10px; font-weight: 800; }
.hometown-home-story-text strong { overflow: hidden; color: #19372f; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hometown-home-story-text em { overflow: hidden; color: #718078; font-size: 11px; line-height: 1.35; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.hometown-home-story > i { color: #a4b2ac; font-size: 11px; }

.hometown-home-empty,
.hometown-weather-unavailable {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px;
  border-radius: 17px;
  background: rgba(255,255,255,.75);
  color: #73847c;
  text-align: center;
  font-size: 12px;
}

.hometown-home-empty { flex-direction: column; }
.hometown-home-empty i,
.hometown-weather-unavailable i { color: #2f8768; font-size: 22px; }
.hometown-home-skeleton { min-height: 88px; border-radius: 15px; background: linear-gradient(90deg,#e6efea,#f6faf7,#e6efea); background-size: 200% 100%; animation: hometownShimmer 1.4s infinite; }

@keyframes hometownShimmer { to { background-position: -200% 0; } }

.hometown-page-header {
  background: linear-gradient(135deg, #0f493c, #17694c);
  color: #fff;
}

.hometown-page-header .page-back-btn,
.hometown-page-header .page-title { color: #fff; }

.hometown-page {
  min-height: calc(100vh - 62px);
  padding: 16px 14px 40px;
  background: #f1f6f3;
}

.hometown-region-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  padding: 15px;
  border: 1px solid #dce8e1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(22, 82, 62, .06);
}

.hometown-region-selector div { min-width: 0; }
.hometown-region-selector span { display: block; margin-bottom: 3px; color: #b17d0d; font-size: 11px; font-weight: 800; }
.hometown-region-selector strong { color: #566860; font-size: 12px; line-height: 1.35; }
.hometown-region-selector select { width: min(46%, 190px); min-height: 43px; padding: 0 34px 0 12px; border: 1px solid #a9c8ba; border-radius: 13px; background: #f7fbf8; color: #184b3b; font-size: 13px; font-weight: 800; }

.hometown-weather-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(140deg, #0e493d 0%, #176949 70%, #287d5a 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(14, 72, 56, .18);
}

.hometown-weather-card::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  top: -110px;
  right: -55px;
  border-radius: 50%;
  background: rgba(255, 213, 102, .18);
}

.hometown-weather-now { position: relative; }
.hometown-weather-place span { display: block; color: #f2d98e; font-size: 11px; font-weight: 800; }
.hometown-weather-place strong { display: block; margin-top: 3px; font-size: 20px; }
.hometown-weather-main { display: flex; align-items: center; gap: 12px; margin: 16px 0 8px; }
.hometown-weather-main i { color: #ffdc74; font-size: 38px; }
.hometown-weather-main strong { font-size: 42px; line-height: 1; }
.hometown-weather-now p { margin: 0; color: rgba(255,255,255,.76); font-size: 12px; }

.hometown-weather-forecast {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 18px;
}

.hometown-weather-forecast > div { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 13px; background: rgba(255,255,255,.11); }
.hometown-weather-forecast span { font-size: 10px; font-weight: 700; }
.hometown-weather-forecast i { color: #f6d878; }
.hometown-weather-forecast strong { font-size: 12px; }
.hometown-weather-forecast strong em { color: #bde2ff; font-style: normal; }
.hometown-weather-forecast small { color: rgba(255,255,255,.68); font-size: 9px; }
.hometown-weather-card > a { position: relative; display: block; margin-top: 10px; color: rgba(255,255,255,.55); font-size: 9px; text-align: right; }

.hometown-feed {
  overflow: hidden;
  border: 1px solid #dce8e1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(22, 82, 62, .07);
}

.hometown-feed-head { display: flex; align-items: end; justify-content: space-between; gap: 8px; padding: 18px 17px 12px; }
.hometown-feed-head span { color: #b17d0d; font-size: 10px; font-weight: 800; }
.hometown-feed-head h2 { margin: 2px 0 0; color: #173b31; font-size: 20px; }
.hometown-feed-head > small { color: #87968f; font-size: 9px; text-align: right; }

.hometown-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 0 15px 13px; scrollbar-width: none; }
.hometown-tabs::-webkit-scrollbar { display: none; }
.hometown-tabs button { flex: none; min-height: 35px; padding: 0 12px; border: 1px solid #dbe7e1; border-radius: 18px; background: #f7faf8; color: #697a72; font-size: 11px; font-weight: 800; }
.hometown-tabs button i { margin-right: 5px; }
.hometown-tabs button.is-active { border-color: #176849; background: #176849; color: #fff; box-shadow: 0 5px 12px rgba(23, 104, 73, .18); }

.hometown-content-list { display: grid; gap: 1px; border-top: 1px solid #edf2ef; background: #edf2ef; }
.hometown-content-card { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 0; background: #fff; color: inherit; text-align: left; }
.hometown-content-card:active { background: #f4f9f6; }
.hometown-fallback-notice { display: flex; align-items: flex-start; gap: 8px; padding: 10px 13px; border-bottom: 1px solid #dce9e2; background: #f2f8f5; color: #456b5c; font-size: 11px; line-height: 1.45; }
.hometown-fallback-notice i { margin-top: 2px; color: #1c7454; }
.hometown-content-image { width: 82px; height: 82px; flex: none; overflow: hidden; border-radius: 14px; background: #e7f2ec; }
.hometown-content-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hometown-content-image.is-placeholder { display: grid; place-items: center; color: #288063; font-size: 25px; }
.hometown-content-copy { min-width: 0; flex: 1; display: grid; gap: 4px; }
.hometown-content-copy > small { display: flex; align-items: center; gap: 5px; color: #7b8a83; font-size: 9px; }
.hometown-content-copy small b { color: #a97309; }
.hometown-content-copy small em { padding: 2px 5px; border-radius: 8px; background: #fff1bf; color: #8d650d; font-style: normal; }
.hometown-content-copy strong { overflow: hidden; color: #19382f; font-size: 14px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.hometown-content-copy p { overflow: hidden; margin: 0; color: #6f7f78; font-size: 11px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hometown-content-copy time { color: #9aa69f; font-size: 9px; }

.hometown-panel-loading { min-height: 170px; display: grid; place-items: center; }
.hometown-list-empty { min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 30px 18px; background: #fff; color: #718078; text-align: center; }
.hometown-list-empty i { color: #5d9b82; font-size: 30px; }
.hometown-list-empty strong { color: #345347; }
.hometown-list-empty span { font-size: 11px; }
.hometown-list-empty button { margin-top: 7px; padding: 9px 14px; border: 1px solid #1c7454; border-radius: 10px; background: #fff; color: #1c7454; font-weight: 800; }
.hometown-list-empty.is-error i { color: #d06a58; }

.hometown-detail-overlay {
  position: fixed;
  z-index: 10080;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 12px 0;
  background: rgba(6, 27, 22, .66);
}

.hometown-detail-modal {
  width: min(100%, 560px);
  max-height: 91vh;
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -18px 45px rgba(0,0,0,.25);
}

.hometown-detail-modal > header { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px; border-bottom: 1px solid #e8efeb; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
.hometown-detail-modal header span { color: #aa780d; font-size: 10px; font-weight: 800; }
.hometown-detail-modal header h2 { margin: 4px 0 0; color: #19382f; font-size: 20px; line-height: 1.35; }
.hometown-detail-modal header button { width: 38px; height: 38px; flex: none; border: 0; border-radius: 12px; background: #eef4f0; color: #4a6258; font-size: 16px; }
.hometown-detail-image { width: 100%; max-height: 290px; display: block; object-fit: cover; background: #e9f0ec; }
.hometown-detail-body { padding: 18px 18px 32px; }
.hometown-detail-info { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; color: #536960; font-size: 12px; }
.hometown-detail-info i { width: 15px; margin-top: 2px; color: #288063; text-align: center; }
.hometown-detail-summary { margin: 16px 0; padding: 14px; border-left: 4px solid #c79b37; border-radius: 0 12px 12px 0; background: #fcf8ec; color: #4c584f; font-size: 13px; line-height: 1.65; }
.hometown-detail-content { min-height: 80px; color: #34473f; font-size: 14px; line-height: 1.8; }
.hometown-detail-stay-btn { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; border: 1px solid #c7dfd3; border-radius: 13px; background: #edf7f2; color: #176849; font-size: 13px; font-weight: 900; }
.hometown-detail-stay-btn:active { background: #dfeee7; }
.hometown-detail-source { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 14px; border-top: 1px solid #e8efeb; color: #89968f; font-size: 10px; }
.hometown-detail-source a { flex: none; padding: 9px 11px; border-radius: 10px; background: #176849; color: #fff; font-weight: 800; }

@media (max-width: 390px) {
  .hometown-home-grid { grid-template-columns: 102px minmax(0, 1fr); gap: 7px; padding-inline: 8px; }
  .hometown-home-story img, .hometown-home-story-icon { width: 50px; }
  .hometown-region-selector { align-items: flex-start; flex-direction: column; }
  .hometown-region-selector select { width: 100%; }
  .hometown-weather-card { padding: 17px 15px; }
  .hometown-content-image { width: 72px; height: 76px; }
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;  /* 더 진한 기본 텍스트 색 */
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  font-weight: 500;  /* 기본 폰트 굵기 medium */
  line-height: 1.6;  /* 줄간격 넓게 */
  color-scheme: light only;  /* 다크모드 차단 */
}

/* ── 색상 변수 ── */
:root {
  --green-main:   #5BBB2F;
  --green-dark:   #3d8a1e;
  --green-light:  #e8f5e0;
  --green-mid:    #7dcf4a;
  --red-point:    #E8333A;
  --gold:         #F5A623;
  --gold-dark:    #c8861a;
  --white:        #ffffff;
  --gray-light:   #f0f0f0;
  --gray-mid:     #cccccc;
  --gray-dark:    #666666;
  --text-main:    #1a1a1a;
  --shadow:       0 4px 20px rgba(0,0,0,0.12);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --radius:       16px;
  --radius-sm:    10px;
  --app-max-width: 520px;
}

/* ════════════════════════════════════
   반응형 폰트 크기
════════════════════════════════════ */
@media (max-width: 360px) { html { font-size: 18px; } }  /* 소형폰도 최소 18px */
@media (max-width: 480px) { html { font-size: 19px; } }
@media (min-width: 768px) { html { font-size: 21px; } }
@media (min-width: 1024px){ html { font-size: 21px; } }

/* ════════════════════════════════════
   ★ 다크모드 전면 차단
   안드로이드/iOS 시스템 다크모드가
   앱 색상을 바꾸지 못하도록 강제 설정
════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  html, body, #mainApp, #loginScreen,
  .login-form-box, .modal-box, .modal-overlay,
  .page-card, .home-card, .home-section,
  .app-header, .app-nav,
  input, textarea, select, button {
    color-scheme: light !important;
  }
  html,
  body,
  #app,
  .app-container {
    background: #e8edf1 !important;
    color: #152536 !important;
  }
  #mainApp,
  .app-main-card,
  .page-overlay {
    background: #eef2f4 !important;
    color: #152536 !important;
  }
  body.login-page,
  .login-page,
  #loginScreen,
  .login-screen {
    background:
      radial-gradient(circle at 82% 12%, rgba(214,178,94,0.2), transparent 28%),
      radial-gradient(circle at 12% 78%, rgba(39,103,73,0.34), transparent 32%),
      linear-gradient(145deg, #071a2f 0%, #102a43 52%, #174b36 100%) !important;
    color: #ffffff !important;
  }
  .login-form-box,
  .modal-box,
  .menu-card,
  .menu-card-wide,
  .upcoming-item,
  .notice-item {
    background: #ffffff !important;
    color: #152536 !important;
  }
  input, textarea, select {
    background-color: #ffffff !important;
    color: #102030 !important;
    -webkit-text-fill-color: #102030 !important;
    border-color: #aebbc7 !important;
  }
  input::placeholder,
  textarea::placeholder {
    color: #718096 !important;
    -webkit-text-fill-color: #718096 !important;
    opacity: 1 !important;
  }
  input:focus,
  textarea:focus,
  select:focus {
    border-color: var(--green-main) !important;
    box-shadow: 0 0 0 4px rgba(39,103,73,0.16) !important;
  }
  .login-title,
  .login-hanja,
  .login-footer,
  .header-title,
  .user-greeting {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
  .login-slogan {
    color: #f8e6ad !important;
    -webkit-text-fill-color: #f8e6ad !important;
  }
  .header-sub {
    color: #f4d98e !important;
    -webkit-text-fill-color: #f4d98e !important;
  }
  .welcome-slogan {
    color: #f7e2a8 !important;
    -webkit-text-fill-color: #f7e2a8 !important;
  }
  .login-subtitle {
    color: var(--navy) !important;
    -webkit-text-fill-color: var(--navy) !important;
    background: linear-gradient(135deg, #f7e6b1, var(--gold)) !important;
  }
  .app-header {
    background: linear-gradient(135deg, #071a2f, #102a43 58%, #174b36) !important;
    color: #ffffff !important;
  }
  .page-header {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy)) !important;
    color: #ffffff !important;
  }
  .welcome-card {
    background: linear-gradient(135deg, #102a43 0%, #163d4e 48%, #174b36 100%) !important;
    color: #ffffff !important;
  }
  .btn-login {
    background: linear-gradient(135deg, var(--navy), var(--green-dark)) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
  .btn-login:hover {
    background: linear-gradient(135deg, var(--navy-deep), var(--green-main)) !important;
    box-shadow: 0 9px 24px rgba(7,26,47,0.35) !important;
  }
  .page-header-btn,
  .btn-primary {
    background: linear-gradient(135deg, var(--green-main), var(--green-dark)) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
  .page-header-btn:hover {
    background: rgba(255,255,255,0.35) !important;
  }
}

/* ════════════════════════════════════
   전체 레이아웃
════════════════════════════════════ */
#mainApp {
  min-height: 100vh;
  background: #eef2ee;
}

@media (min-width: 768px) {
  body {
    background: linear-gradient(160deg, #1e5c08 0%, #2d7a0e 45%, #3d8a1e 100%);
    min-height: 100vh;
  }
  #mainApp {
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 0 60px rgba(0,0,0,0.4);
    min-height: 100vh;
    background: #f0f4f0;
    position: relative;
  }
  body.login-page {
    background: linear-gradient(145deg, #1a5c06 0%, #2d7a0e 35%, #4aaa20 70%, #6dcf3a 100%);
  }
}
@media (min-width: 1200px) {
  #mainApp { max-width: 580px; }
}

/* ════════════════════════════════════
   로그인 화면
════════════════════════════════════ */
.login-page {
  background: linear-gradient(145deg, #2d7a0e 0%, #4aaa20 40%, #6dcf3a 70%, #8de555 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-screen {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 24px 20px;
}

/* 배경 장식 원 */
.bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  background: white;
  pointer-events: none;
}
.bg-circle-1 { width: 420px; height: 420px; top: -120px; right: -100px; }
.bg-circle-2 { width: 280px; height: 280px; bottom: -80px; left: -70px; }
.bg-circle-3 { width: 180px; height: 180px; top: 45%; left: 5%; }

/* 로그인 컨테이너 */
.login-container {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  position: relative;
  z-index: 1;
}

/* 로고 영역 */
.login-logo {
  text-align: center;
  color: white;
}
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
}

.login-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: white;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  letter-spacing: -0.5px;
}
.login-subtitle {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-top: 6px;
  background: rgba(255,255,255,0.22);
  display: inline-block;
  padding: 3px 22px;
  border-radius: 20px;
  letter-spacing: 5px;
}
.login-hanja {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
  letter-spacing: 1.5px;
}

/* 로그인 폼 박스 */
.login-form-box {
  width: 100%;
  background: white;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.22);
}
.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 26px;
  text-align: center;
}
.form-title i { margin-right: 8px; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 8px;
}
.form-group label i { margin-right: 6px; color: var(--green-main); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px 18px;
  font-size: 1.15rem;
  font-family: 'Noto Sans KR', sans-serif;
  border: 2px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-main);
  background-color: #ffffff !important;  /* 다크모드 자동 변환 차단 */
  color-scheme: light;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(91,187,47,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #bbb; }

/* 에러 메시지 */
.login-error {
  background: #fff0f0;
  border: 1.5px solid #ffaaaa;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.93rem;
  color: var(--red-point);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

/* 로그인 버튼 */
.btn-login {
  width: 100%;
  padding: 17px;
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(91,187,47,0.4);
  letter-spacing: 1px;
}
.btn-login:hover {
  background: linear-gradient(135deg, var(--green-dark), #2a6010);
  box-shadow: 0 6px 22px rgba(91,187,47,0.5);
  transform: translateY(-2px);
}
.btn-login:active { transform: translateY(0); }
.btn-login i { margin-right: 8px; }

.btn-guest-browse {
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 2px solid #d6e6cc;
  border-radius: var(--radius-sm);
  background: #f8fff4;
  color: var(--green-dark);
  font-size: 1.05rem;
  font-weight: 800;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-guest-browse:hover {
  background: var(--green-light);
  border-color: var(--green-main);
  transform: translateY(-1px);
}
.btn-guest-browse:active { transform: translateY(0); }
.btn-guest-browse i { margin-right: 8px; }

/* 안내 문구 */
.login-notice {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--green-dark);
  line-height: 1.9;
  text-align: center;
}
.login-notice i { margin-right: 4px; }
.login-notice strong { color: var(--red-point); }

.guest-browse-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 80% 12%, rgba(245,166,35,0.24), transparent 28%),
    radial-gradient(circle at 12% 82%, rgba(91,187,47,0.28), transparent 30%),
    linear-gradient(145deg, #123825 0%, #1f6b35 52%, #5BBB2F 100%);
}

.guest-browse-screen {
  width: 100%;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

.guest-browse-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  color: var(--text-main);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.24);
}

.guest-back-btn {
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid #d9e4d4;
  border-radius: 10px;
  background: #f7fbf5;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 800;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
}

.guest-logo-wrap {
  display: flex;
  justify-content: center;
  margin: 20px 0 12px;
}
.guest-logo-wrap img {
  border-radius: 20px;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.18));
}
.guest-eyebrow {
  text-align: center;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 800;
}
.guest-browse-card h1 {
  margin: 8px 0 18px;
  text-align: center;
  color: #14351f;
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 900;
}
.guest-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.guest-values span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 800;
}
.guest-info-panel {
  padding: 15px 0;
  border-top: 1px solid #e7eee3;
}
.guest-info-panel h2 {
  font-size: 1.02rem;
  color: #1f4f2d;
  margin-bottom: 4px;
}
.guest-info-panel p {
  font-size: 0.92rem;
  color: #4d5d52;
  line-height: 1.7;
}
.guest-contact {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff7e5;
  color: #8a5a00;
  font-size: 0.98rem;
  font-weight: 900;
  text-align: center;
}
.guest-contact i { margin-right: 6px; }

/* 하단 정보 */
.login-footer {
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  line-height: 1.9;
}

/* 소형 모바일 */
@media (max-width: 360px) {
  .login-form-box { padding: 24px 18px; }
  .login-title    { font-size: 1.8rem; }
  .bg-circle-1    { width: 220px; height: 220px; }
}
@media (max-width: 480px) {
  .login-form-box { padding: 28px 22px; }
  .login-title    { font-size: 1.8rem; }
}
@media (min-width: 768px) {
  .login-form-box { padding: 42px 40px; }
  .login-title    { font-size: 2.4rem; }
  .bg-circle-1    { width: 500px; height: 500px; top: -150px; right: -120px; }
  .bg-circle-2    { width: 350px; height: 350px; }
}

/* ════════════════════════════════════
   상단 헤더
════════════════════════════════════ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #3d8a1e, #5BBB2F);
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-title-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.header-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.3px;
  word-break: keep-all;   /* 단어 단위 줄바꿈 */
  white-space: normal;
}
.header-sub {
  font-size: 1.05rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.3px;
}
/* ── 오른쪽 영역: 원형 버튼 위 / 사용자 이름 아래 ── */
.header-user,
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-right {
  flex-direction: column;
  justify-content: flex-start;
  gap: 3px;
  transform: translate(4px, -3px);
}
.header-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-greeting {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.95);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.btn-logout {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.btn-logout:hover { background: rgba(255,255,255,0.35); }

/* ── 모바일(≤540px): 아이콘과 이름을 더 촘촘하게 유지 ── */
@media (max-width: 540px) {
  .header-inner {
    align-items: flex-start;
    padding: 10px 12px;
  }
  .header-logo {
    padding-top: 3px;
    min-width: 0;
    flex: 1;
    gap: 8px;
  }
  /* 단체명: 3줄 자연 줄바꿈 — 모바일에서 충분히 크게 */
  .header-title-wrap { gap: 0; }
  .header-title {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    white-space: normal;
    word-break: keep-all;
    line-height: 1.3;
  }
  .header-sub {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    line-height: 1.3;
  }
  .header-right {
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    transform: translate(3px, -2px);
  }
  .header-icons { gap: 5px; }
  .btn-logout   { width: 36px; height: 36px; font-size: 0.9rem; }
  /* 이름 pill: 크게, 선명하게 */
  .user-greeting {
    display: inline-block;
    max-width: 140px;
    text-align: center;
    font-size: clamp(13px, 3.4vw, 16px);
    font-weight: 700;
    color: #fff;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.38);
    border-radius: 999px;
    padding: 4px 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 360px) {
  .header-title { font-size: clamp(0.82rem, 3.6vw, 0.96rem); }
  .header-sub   { font-size: clamp(0.82rem, 3.6vw, 0.96rem); }
  .user-greeting {
    font-size: clamp(12px, 3.1vw, 14px);
    max-width: 110px;
    padding: 3px 9px;
  }
  .btn-logout   { width: 32px; height: 32px; font-size: 0.82rem; }
  .header-icons { gap: 4px; }
  .header-logo  { gap: 6px; }
}
@media (min-width: 768px) {
  .header-inner  { padding: 14px 20px; }
  .header-title  { font-size: 1.15rem; white-space: nowrap; }
  .header-sub    { font-size: 1.15rem; }
  .user-greeting { font-size: 1rem; max-width: 180px; }
}

/* ════════════════════════════════════
   메인 영역
════════════════════════════════════ */
.app-main-card { background: #f0f4f0; }
.app-main {
  padding: 0 14px;
  max-width: 560px;
  margin: 0 auto;
}

/* 공지 배너 */
.notice-banner {
  background: linear-gradient(135deg, #fff8e6, #fff3cc);
  border-left: 4px solid #F5A623;
  border-radius: 0 0 12px 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.notice-slider-wrap {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  gap: 10px;
}
.notice-icon { color: #F5A623; font-size: 1rem; flex-shrink: 0; }
.notice-ticker { flex: 1; overflow: hidden; white-space: nowrap; }
.notice-ticker span {
  font-size: 0.95rem;
  color: #8a6200;
  font-weight: 600;
  display: inline-block;
  animation: ticker 15s linear infinite;
}
@keyframes ticker {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ════════════════════════════════════
   인사말 카드
════════════════════════════════════ */
.welcome-card {
  background: linear-gradient(135deg, #4aaa20, #6DC82A);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(91,187,47,0.3);
}
.welcome-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.welcome-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
}
.welcome-msg {
  font-size: 1rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.6;
}
.welcome-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.emblem-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}
.emblem-year  { font-size: 0.72rem; font-weight: 600; opacity: 0.9; line-height: 1.3; }
.emblem-num   { font-size: 1rem;    font-weight: 900; line-height: 1.1; }
.emblem-sub   {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ════════════════════════════════════
   메뉴 섹션
════════════════════════════════════ */
.menu-section { margin-bottom: 12px; }
.menu-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu-section-title i { color: var(--green-main); }

/* 기본: 3열 그리드 (모바일 최적화) */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 9px;
}

/* ── 카드: aspect-ratio로 정사각형 균일화 ── */
.menu-card {
  background: white;
  border: none;
  border-radius: 14px;
  padding: 0;                       /* padding 제거 → 내부 flex로 여백 처리 */
  aspect-ratio: 1 / 1;             /* 정사각형 고정 */
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.2s;
  position: relative;
  font-family: 'Noto Sans KR', sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.menu-card:hover  { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.13); }
.menu-card:active { transform: scale(0.97); }

/* 아이콘: 모든 카드에서 동일 크기 */
.menu-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  flex-shrink: 0;
}

/* 아이콘 색상 */
.bg-green   { background: linear-gradient(135deg,#5BBB2F,#3d8a1e); }
.bg-gold    { background: linear-gradient(135deg,#F5A623,#c8861a); }
.bg-blue    { background: linear-gradient(135deg,#4A90D9,#2c6aa0); }
.bg-purple  { background: linear-gradient(135deg,#9B59B6,#6c3483); }
.bg-red     { background: linear-gradient(135deg,#E8333A,#a91e24); }
.bg-teal    { background: linear-gradient(135deg,#1ABC9C,#0e8a71); }
.bg-emerald { background: linear-gradient(135deg,#2ECC71,#1a7a44); }
.bg-orange  { background: linear-gradient(135deg,#E67E22,#b85c0a); }
.bg-gray    { background: linear-gradient(135deg,#7F8C8D,#4a5456); }

.menu-label {
  font-size: clamp(0.72rem, 2.8vw, 0.86rem);
  font-weight: 700;
  color: #333;
  text-align: center;
  line-height: 1.25;
  word-break: keep-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* 카드 폭 기준으로 최대 폭 제한 */
  max-width: calc(100% - 10px);
  padding: 0 4px;
}

.menu-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: #E8333A;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 8px;
  animation: badgePop 0.4s ease;
  z-index: 2;
}
.menu-badge--wide {
  position: absolute;
  top: 50%;
  right: 44px;
  transform: translateY(-50%);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 10px;
}
.internal-new-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d92d38;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 3px 9px rgba(140,20,28,.28);
}
@keyframes badgePop {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* 큰 버튼 */
.menu-card-wide {
  width: 100%;
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.2s;
  margin-bottom: 7px;
  font-family: 'Noto Sans KR', sans-serif;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.menu-card-wide:hover  { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); border-color: #E67E22; }
.menu-card-wide:active { transform: scale(0.98); }
.menu-card-wide .menu-icon { flex-shrink: 0; width: 50px; height: 50px; font-size: 1.35rem; }
.menu-wide-text { flex: 1; display: flex; flex-direction: column; text-align: left; min-width: 0; }
.menu-wide-title { font-size: 1rem; font-weight: 800; color: #222; }
.menu-wide-sub   { font-size: 0.84rem; color: #888; margin-top: 2px; }
.menu-wide-arrow { color: #ccc; font-size: 1rem; flex-shrink: 0; }

/* 관리자 메뉴 wide 버튼 — 구분 강조 */
.menu-card-wide--admin {
  border-color: rgba(127,140,141,0.4);
  background: #f9fafb;
}
.menu-card-wide--admin:hover { border-color: #7F8C8D; }

/* 반응형: 소형 스마트폰 (≤360px) */
@media (max-width: 360px) {
  .menu-grid  { gap: 7px; }
  .menu-icon  { width: 40px; height: 40px; font-size: 1.05rem; border-radius: 11px; }
  .menu-label { font-size: clamp(0.66rem, 2.5vw, 0.76rem); }
  .menu-card  { gap: 6px; border-radius: 12px; }
  .menu-card-wide .menu-icon { width: 44px; height: 44px; font-size: 1.1rem; }
  .menu-wide-title { font-size: 0.9rem; }
  .menu-wide-sub   { font-size: 0.76rem; }
}

/* 반응형: PC/태블릿 (≥768px) — 4열로 확장, aspect-ratio 해제 후 min-height 사용 */
@media (min-width: 768px) {
  .menu-grid  { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .menu-card  {
    aspect-ratio: auto;            /* PC에서는 자유 높이 */
    min-height: 120px;
    padding: 18px 10px 16px;
    border-radius: 18px;
    gap: 10px;
  }
  .menu-icon  { width: 54px; height: 54px; font-size: 1.4rem; border-radius: 14px; }
  .menu-label { font-size: 0.9rem; white-space: normal; }
  .menu-card-wide .menu-icon { width: 54px; height: 54px; font-size: 1.4rem; }
  .menu-wide-title { font-size: 1.05rem; }
}

/* 더보기 버튼 */
.btn-more {
  background: none;
  border: none;
  color: var(--green-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}
.btn-more:hover { color: var(--green-dark); }

/* ════════════════════════════════════
   다가오는 행사
════════════════════════════════════ */
.upcoming-section { margin-bottom: 12px; }
.upcoming-list    { display: flex; flex-direction: column; gap: 8px; }
.upcoming-item {
  background: white;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-left: 4px solid var(--green-main);
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.upcoming-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.upcoming-date {
  flex-shrink: 0;
  background: var(--green-light);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  min-width: 54px;
}
.upcoming-month { font-size: 0.72rem; color: var(--green-dark); font-weight: 600; }
.upcoming-day   { font-size: 1.45rem; font-weight: 900; color: var(--green-dark); line-height: 1; }
.upcoming-info  { flex: 1; min-width: 0; }
.upcoming-scope { color:var(--green-dark);font-weight:900;white-space:nowrap; }
.upcoming-title {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upcoming-loc {
  font-size: 0.82rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}
.upcoming-loc i { color: var(--green-main); font-size: 0.78rem; }
.upcoming-dday {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-main);
  background: var(--green-light);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ════════════════════════════════════
   최근 공지
════════════════════════════════════ */
.recent-notice-section { margin-bottom: 12px; }
.recent-notice-list    { display: flex; flex-direction: column; gap: 7px; }
.notice-item {
  background: white;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.notice-item:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.notice-item-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #fff0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: #E8333A;
}
.notice-item-icon.important { background: #fff8e6; color: var(--gold-dark); }
.notice-item-text   { flex: 1; min-width: 0; }
.notice-item-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice-item-date { font-size: 0.78rem; color: #aaa; margin-top: 3px; }
.notice-important-badge {
  background: #E8333A;
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ════════════════════════════════════
   페이지 오버레이 (서브페이지)
════════════════════════════════════ */
.page-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  background: #f0f4f0;
  z-index: 200;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

button,
a,
[role="button"] {
  touch-action: manipulation;
}

@media (prefers-reduced-motion: no-preference) {
  .page-overlay > .page-content {
    animation: app-page-content-enter 160ms ease-out both;
  }
}

@keyframes app-page-content-enter {
  from { opacity: 0.72; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 4차-A: 회장 인사말 — compact 1행 카드 */
.president-greeting-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px 14px;        /* 얇게 줄임 */
  background: #fff;
  border: 1px solid rgba(214,178,94,.65);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.president-greeting-icon {
  width: 38px; height: 38px;   /* 작게 */
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-light); color: var(--gold-dark);
  font-size: 1.05rem; flex-shrink: 0;
}
.president-greeting-summary {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 0;
}
.president-greeting-summary strong {
  color: var(--navy); font-size: 0.95rem; white-space: nowrap;
}
/* 본문 미리보기: 메인화면에서 숨김 */
.president-greeting-summary span {
  display: none;
}
.president-greeting-card-actions {
  display: flex; gap: 6px; flex-shrink: 0;
}
.president-greeting-card button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 9px;
  padding: 7px 13px;         /* 버튼도 얇게 */
  background: var(--navy); color: #fff; font-weight: 800; cursor: pointer;
  font-size: 0.88rem;
}
.president-greeting-card button.edit { background: var(--green-dark); }

/* ── 팝업 모달 (기존 그대로) ── */
.president-greeting-overlay { position:fixed;inset:0;z-index:10000;background:rgba(7,26,47,.72);display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box; }
.president-greeting-modal { width:100%;max-width:480px;background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.35); }
.president-greeting-header { display:flex;align-items:center;gap:12px;padding:19px 20px;background:linear-gradient(135deg,var(--navy-deep),var(--green-dark));color:#fff;border-bottom:3px solid var(--gold); }
.president-greeting-header i { color:var(--gold);font-size:1.5rem; }
.president-greeting-header small { opacity:.82;font-weight:700; }
.president-greeting-header h2 { margin:2px 0 0;font-size:1.25rem; }
.president-greeting-body { padding:20px;max-height:55vh;overflow:auto;color:var(--text-main);font-size:1rem;line-height:1.8; }
.president-greeting-body p { margin:0 0 13px; }
.president-greeting-text { white-space:pre-wrap;word-break:break-word; }
.president-greeting-sign { text-align:right;font-weight:800;color:var(--green-dark); }
.president-greeting-actions { display:flex;gap:9px;padding:0 20px 20px; }
.president-greeting-actions button { flex:1;padding:13px;border-radius:11px;font-weight:800;cursor:pointer; }
.president-greeting-actions .secondary { background:#f3f5f6;border:1px solid #d6dce0;color:var(--gray-dark); }
.president-greeting-actions .primary { border:0;background:var(--green-dark);color:#fff; }
.president-greeting-editor { max-width:560px; }
.president-greeting-edit-body { padding:18px 20px;max-height:65vh;overflow:auto; }
.president-greeting-edit-body textarea { width:100%;resize:vertical;min-height:220px;line-height:1.65; }
.president-greeting-edit-body small { display:block;margin-top:5px;color:#6c7880;font-size:.8rem; }
.president-greeting-edit-error { margin:10px 0 0;padding:10px 12px;border-radius:10px;background:#fff0f0;color:#a22;font-weight:700; }

/* 4차-A: 로그인 후 하단 고정 메뉴 */
#mainApp { padding-bottom:calc(82px + env(safe-area-inset-bottom, 0px)); }
.app-bottom-nav {
  position:fixed;left:0;right:0;bottom:0;z-index:500;display:grid;grid-template-columns:repeat(5,1fr);
  min-height:72px;padding:6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  background:#fff;border-top:1px solid #d7dee3;box-shadow:0 -5px 20px rgba(7,26,47,.12);
}
.app-bottom-nav button { min-width:0;border:0;background:transparent;color:#657585;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-family:'Noto Sans KR',sans-serif;font-size:.76rem;font-weight:800;cursor:pointer; }
.app-bottom-nav button i { font-size:1.18rem; }
.app-bottom-nav button.active { color:var(--green-dark); }
@media (min-width:768px) { .app-bottom-nav { left:50%;right:auto;transform:translateX(-50%);width:560px;box-sizing:border-box; } }
@media (min-width:1200px) { .app-bottom-nav { width:580px; } }

.my-profile-card { background:#fff;border-radius:16px;padding:18px;box-shadow:var(--shadow-sm); }
.my-profile-head { display:flex;align-items:center;gap:14px;margin-bottom:18px; }
.my-profile-head h2 { margin:0;color:var(--navy);font-size:1.35rem; }
.my-profile-head p { margin:4px 0 0;color:var(--green-dark);font-weight:800; }
.my-profile-photo,.my-profile-avatar { width:72px;height:72px;border-radius:50%;object-fit:cover;flex-shrink:0; }
.my-profile-avatar { display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--navy),var(--green-dark));color:#fff;font-size:1.7rem;font-weight:900; }
.my-profile-photo-editor { margin-top:16px;padding-top:16px;border-top:1px solid #edf1e8; }
.my-profile-photo-title { display:flex;align-items:center;gap:7px;margin-bottom:10px;color:var(--navy);font-weight:900; }
.my-profile-photo-save { width:100%;margin-top:10px; }
@media (min-width: 768px) {
  .page-overlay {
    left: 50%;
    transform: translateX(-50%);
    width: min(760px, 94vw);   /* PC에서 더 넓게 (관리자 테이블 가독성) */
    right: auto;
  }
  .gallery-lightbox,
  .gallery-upload-modal {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
  }
}
@media (min-width: 1200px) {
  .page-overlay { width: min(860px, 90vw); }
}

.page-header {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, #3d8a1e, #5BBB2F);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  min-height: 58px;
}
.page-back-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.page-back-btn:hover { background: rgba(255,255,255,0.35); }
.page-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  flex: 1;
}
.page-header-btn {
  background: rgba(255,255,255,0.2);
  border: none; color: white;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.page-header-btn:hover { background: rgba(255,255,255,0.35); }
#branchTabContent .page-header-btn[data-branch-action="add-item"]:hover {
  background: var(--green-dark) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
#branchTabContent .page-header-btn[data-branch-action="add-item"]:focus-visible {
  background: var(--green-main) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  outline: 3px solid rgba(61,138,30,0.35);
  outline-offset: 2px;
}
#branchTabContent .page-header-btn[data-branch-action="add-item"]:active {
  background: var(--green-dark) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  filter: brightness(0.86);
}
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 14px;
}

/* ════════════════════════════════════
   공통 유틸리티
════════════════════════════════════ */
.hidden { display: none !important; }

.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title i { color: var(--green-main); }

/* 뱃지 */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-red   { background: #fff0f0;            color: var(--red-point); }
.badge-gold  { background: #fff8e6;            color: var(--gold-dark); }

/* 로딩 스피너 */
.spinner {
  width: 40px; height: 40px;
  border: 4px solid var(--green-light);
  border-top-color: var(--green-main);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 빈 상태 */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--gray-dark);
}
.empty-state i {
  font-size: 3rem;
  color: var(--gray-mid);
  display: block;
  margin-bottom: 14px;
}
.empty-state p { font-size: 1rem; }

/* 버튼 공통 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Noto Sans KR', sans-serif;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-green   { background: var(--green-main); color: white; }
.btn-green:hover { background: var(--green-dark); }
.btn-red     { background: var(--red-point); color: white; }
.btn-red:hover   { background: #c0272d; }
.btn-gold    { background: var(--gold); color: white; }
.btn-gold:hover  { background: var(--gold-dark); }
.btn-outline { background: white; color: var(--green-main); border: 2px solid var(--green-main); }
.btn-outline:hover { background: var(--green-light); }

.btn-load-more {
  background: white;
  border: 2px solid var(--green-main);
  color: var(--green-main);
  padding: 10px 28px;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-load-more:hover { background: var(--green-main); color: white; }

/* ════════════════════════════════════
   모달
════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 700;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* 4차-C-9: 메인 현황 및 후원 안내 */
.member-count-banner {
  margin:0 0 10px;
}
.member-count-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:9px;
}
.member-count-card {
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:11px 8px;
  border:1px solid rgba(61,138,30,.25);
  border-radius:14px;
  background:linear-gradient(135deg,#f7fbf4,#edf7e8);
  color:var(--green-dark);
  font-size:.82rem;
  font-weight:700;
  text-align:center;
}
.member-count-card.associate {
  border-color:rgba(54,108,180,.23);
  background:linear-gradient(135deg,#f5f9ff,#eaf2fc);
  color:#285b91;
}
.member-count-card i { color:var(--gold-dark);flex:0 0 auto; }
.member-count-card.associate i { color:#3977b8; }
.member-count-copy {
  min-width:0;
  display:inline-flex;
  align-items:baseline;
  justify-content:center;
  gap:4px;
  white-space:nowrap;
  word-break:keep-all;
}
.member-count-label,
.member-count-value { white-space:nowrap;word-break:keep-all; }
.member-count-value { display:inline-flex;align-items:baseline;justify-content:center; }
.member-count-card strong { color:var(--navy);font-size:1.06rem; }
.member-count-card--stacked .member-count-copy {
  flex-direction:column;
  align-items:center;
  gap:3px;
  line-height:1.15;
}
@media (max-width:480px) {
  .member-count-card { padding:10px 6px; }
  .member-count-copy {
    flex-direction:column;
    align-items:center;
    gap:3px;
    line-height:1.15;
  }
}
.bg-donation { background:linear-gradient(135deg,#fff0e7,#ffe0d5);color:#c65d35; }
.menu-card-sub { max-width:100%;color:#7a6260;font-size:.68rem;line-height:1.25;text-align:center;word-break:keep-all; }
.donation-modal { max-width:480px; }
.donation-modal .modal-header h3 i { color:#c65d35;margin-right:6px; }
.donation-message { margin:0 0 16px;line-height:1.7;color:#4d5961;white-space:pre-wrap;word-break:break-word; }
.donation-qr-image { display:block;width:min(220px,75%);height:auto;margin:4px auto 18px;border:1px solid #e0e4e7;border-radius:14px;background:#fff; }
.donation-details { margin:0;display:grid;gap:9px; }
.donation-details div { display:grid;grid-template-columns:92px 1fr;gap:10px;padding:11px 12px;border-radius:11px;background:#f7f8f9; }
.donation-details dt { font-weight:800;color:var(--navy); }
.donation-details dd { margin:0;color:#46525a;word-break:break-word; }
.donation-editor { max-width:560px; }
.donation-editor-body { max-height:68vh;overflow-y:auto; }

/* 모바일(≤640px): DOM 순서대로 3열 그리드 (행1:알림/일정/갤러리 행2:명부/임원/소통방 행3:지회/길/후원)
   PC(≥641px): 4열로 확장 — order로 재배치 */
@media (min-width:641px) {
  .menu-order-notice     { order:1; }
  .menu-order-schedule   { order:2; }
  .menu-order-gallery    { order:3; }
  .menu-order-members    { order:4; }
  .menu-order-officers   { order:5; }
  .menu-order-exec       { order:6; }
  .menu-order-branches   { order:7; }
  .menu-order-directions { order:8; }
  .menu-order-donation   { order:9; }
}

/* 모바일 편집 동작 버튼을 하단 고정 메뉴보다 위에 유지 */
@media (max-width:767px) {
  .page-content { padding-bottom:calc(100px + env(safe-area-inset-bottom, 0px)) !important; }
  .modal-box { padding-bottom:0; }
  .modal-body { padding-bottom:24px; }
}
@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
  .modal-box { border-radius: 20px !important; }
}
.modal-box {
  background: white;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #222;
}
.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #999;
  cursor: pointer;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.modal-body { padding: 18px 20px; }
.modal-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px 20px;
  border-top: 1px solid #eee;
}
.btn-primary {
  flex: 2; padding: 13px;
  background: linear-gradient(135deg, #3d8a1e, #5BBB2F);
  border: none; border-radius: 14px;
  font-size: 1rem; font-weight: 800; color: white;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(61,138,30,0.3);
  font-family: 'Noto Sans KR', sans-serif;
}
.btn-cancel {
  flex: 1; padding: 13px; background: #f0f0f0;
  border: none; border-radius: 14px;
  font-size: 1rem; font-weight: 700; color: #555;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
}
.btn-danger {
  flex: 1; padding: 13px; background: #fff0f0;
  border: 1.5px solid #fca5a5; border-radius: 14px;
  font-size: 0.95rem; font-weight: 700; color: #e53e3e;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
}

/* ════════════════════════════════════
   공지 카드
════════════════════════════════════ */
.notice-card {
  background: white;
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  margin-bottom: 10px;
}
.notice-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.11); }
.notice-card.important { border-color: #E8333A; }
.nc-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.nc-badge-important { background: #fff0f0; color: #E8333A; }
.nc-badge-notice    { background: var(--green-light); color: var(--green-dark); }
.nc-badge-event     { background: #fff8e6; color: var(--gold-dark); }
.nc-title  { font-size: 1.15rem; font-weight: 800; color: #1a1a1a; line-height: 1.4; margin-bottom: 10px; }
.nc-meta   { font-size: 0.82rem; color: #aaa; display: flex; align-items: center; gap: 12px; }

/* 공지 상세 */
.nd-title   { font-size: 1.4rem; font-weight: 900; color: #1a1a1a; line-height: 1.4; margin-bottom: 14px; }
.nd-event-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 11px 14px;
  border: 1px solid #d8e8df;
  border-radius: 12px;
  background: #f1f8f4;
  color: #1f5f46;
  font-size: 1rem;
  font-weight: 800;
}
.nd-content { font-size: 1.1rem; line-height: 1.85; color: #333; }
.nc-img-wrap { width: 100%; border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.nc-img-wrap img { width: 100%; height: 200px; object-fit: cover; display: block; }

/* ════════════════════════════════════
   갤러리
════════════════════════════════════ */
.gallery-page-wrap { padding: 0; }
.gallery-filter-bar {
  background: white;
  padding: 10px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 58px;
  z-index: 9;
}
.gallery-filter-scroll {
  display: flex;
  gap: 6px;
  padding: 0 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-filter-scroll::-webkit-scrollbar { display: none; }
.gallery-filter-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid #ddd;
  background: white;
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.18s;
}
.gallery-filter-btn.active {
  background: var(--green-main);
  border-color: var(--green-main);
  color: white;
}
.gallery-filter-info {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #666;
}
.gallery-filter-info i { color: var(--green-main); }
.gallery-count { color: var(--green-main); font-weight: 700; margin-left: 4px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 0;
  background: #d8d8d8;
}
.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: #eee;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.2s;
  display: flex; align-items: flex-end;
}
.gallery-item:hover .gallery-item-overlay { background: rgba(0,0,0,0.25); }
.gallery-item-title {
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  width: 100%;
  display: none;
}
.gallery-item:hover .gallery-item-title { display: block; }

@media (min-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 라이트박스 */
.gallery-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 50px;
}
.lightbox-close {
  position: absolute;
  top: -50px; right: 16px;
  background: rgba(255,255,255,0.15);
  border: none; color: white;
  width: 42px; height: 42px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none; color: white;
  width: 42px; height: 42px; border-radius: 50%;
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-prev { left: 4px; }
.lightbox-next { right: 4px; }
.lightbox-img-wrap { flex: 1; }
.lightbox-img-wrap img {
  width: 100%; max-height: 70vh;
  object-fit: contain; border-radius: 8px; display: block;
}
.lightbox-info { color: white; padding: 10px 4px; }
.lightbox-description { margin-top: 4px; font-size: 0.9rem; white-space: pre-wrap; opacity: 0.92; }
.lightbox-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.lightbox-meta  { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.lightbox-delete {
  position: absolute;
  bottom: 20px; right: 20px;
  background: rgba(232,51,58,0.85);
  border: none; color: white;
  padding: 8px 16px; border-radius: 20px;
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  display: flex; align-items: center; gap: 6px;
}

/* 업로드 모달 */
.gallery-upload-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 800;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.upload-modal-inner {
  background: white;
  border-radius: 24px 24px 0 0;
  width: 100%; max-width: 540px;
  max-height: 92vh; overflow-y: auto;
}
.upload-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #eee;
  position: sticky; top: 0; background: white; z-index: 2;
}
.upload-modal-header h3 { font-size: 1.1rem; font-weight: 800; color: #222; }
.upload-modal-header button { background: none; border: none; font-size: 1.3rem; color: #999; cursor: pointer; }
.upload-modal-body { padding: 16px 20px; }
.upload-preview-area {
  width: 100%; min-height: 160px;
  border: 2.5px dashed #ccc; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; margin-bottom: 14px; background: #fafafa;
  transition: border-color 0.2s;
}
.upload-preview-area:hover { border-color: var(--green-main); }
.upload-preview-placeholder { text-align: center; color: #aaa; }
.upload-preview-placeholder i { font-size: 2.5rem; display: block; margin-bottom: 8px; }
.upload-preview-placeholder p { font-size: 1rem; font-weight: 600; }
.upload-preview-placeholder span { font-size: 0.82rem; }
.upload-or { display: block; text-align: center; color: #aaa; font-size: 0.9rem; margin: 6px 0; }
.upload-url-row { margin-bottom: 12px; }
.upload-url-input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #ddd; border-radius: var(--radius-sm);
  font-size: 0.95rem; outline: none; font-family: 'Noto Sans KR', sans-serif;
}
.upload-url-input:focus { border-color: var(--green-main); }
.upload-field { margin-bottom: 14px; }
.upload-field label { display: block; font-size: 0.95rem; font-weight: 600; color: #555; margin-bottom: 6px; }
.required { color: var(--red-point); }
.upload-input, .upload-select, .upload-textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #ddd; border-radius: var(--radius-sm);
  font-size: 1rem; font-family: 'Noto Sans KR', sans-serif; outline: none;
}
.upload-input:focus, .upload-select:focus, .upload-textarea:focus { border-color: var(--green-main); }
.upload-textarea { resize: vertical; min-height: 80px; }
.upload-modal-footer {
  display: flex; gap: 10px;
  padding: 14px 20px 24px;
  border-top: 1px solid #eee;
}
.btn-upload-cancel {
  flex: 1; padding: 13px;
  background: #f0f0f0; border: none; border-radius: 14px;
  font-size: 0.95rem; font-weight: 700; color: #555;
  cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
}
.btn-upload-submit {
  flex: 2; padding: 13px;
  background: linear-gradient(135deg, #3d8a1e, #5BBB2F);
  border: none; border-radius: 14px;
  font-size: 0.95rem; font-weight: 800; color: white;
  cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
}

/* ════════════════════════════════════
   임원진 소개
════════════════════════════════════ */
.officer-hero {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, #1a5c0e 0%, #2d8c1c 50%, #5BBB2F 100%);
  border-radius: 18px; padding: 22px 20px;
  margin: 14px 16px 18px; color: white;
}
.officer-hero-text h2 { font-size: 1.1rem; font-weight: 800; margin: 0 0 4px; line-height: 1.35; }
.officer-hero-text p  { font-size: 0.92rem; opacity: 0.85; margin: 0; }

.officer-group-title {
  font-size: 1rem; font-weight: 800; color: var(--green-dark);
  background: var(--green-light);
  padding: 8px 16px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 12px;
}

/* 2열 그리드 */
.officer-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.officer-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: relative;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.officer-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }

/* 원형 사진 */
.officer-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50% !important;
  background: #f5f5f5;
  margin: 14px auto 0;
  width: 88px; height: 88px;
}
.officer-photo {
  width: 100%; height: 100%;
  object-fit: cover;
}
.officer-avatar {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #3d8a1e, #5BBB2F);
  color: white;
  font-size: 2.2rem;
  font-weight: 900;
}
.officer-card-info {
  padding: 10px 12px 14px;
  text-align: center;
}
.officer-card-name { font-size: 1.1rem; font-weight: 800; color: #222; margin-bottom: 3px; }
.officer-card-pos  { font-size: 0.88rem; font-weight: 700; color: var(--green-main); }
.officer-card-branch { font-size: 0.78rem; color: #888; margin-top: 2px; }

/* 임원 상세 모달 */
.officer-detail-photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  display: block; margin: 0 auto 14px;
  border: 3px solid var(--green-light);
}
.officer-detail-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  background: linear-gradient(135deg, #3d8a1e, #5BBB2F);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 3rem; font-weight: 900;
  margin: 0 auto 14px;
}
.officer-detail-name { font-size: 1.4rem; font-weight: 900; text-align: center; margin-bottom: 4px; }
.officer-detail-pos  { font-size: 1rem; font-weight: 700; color: var(--green-main); text-align: center; margin-bottom: 14px; }
.officer-info-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}
.officer-info-row i { color: var(--green-main); width: 18px; flex-shrink: 0; }
.officer-bio { padding: 14px; background: var(--green-light); border-radius: 10px; font-size: 0.95rem; line-height: 1.7; color: #333; margin-top: 10px; }

/* 4차-B: 임원구성방 및 관리 도구 */
.officer-group-page { overflow-x:hidden; }
.officer-room-section { margin-bottom:20px; }
.officer-room-section h3 { color:var(--navy);font-size:1.08rem;margin:0 0 12px;display:flex;align-items:center;gap:7px; }
.officer-room-guide { margin:-4px 0 12px;padding:10px 12px;border-radius:10px;background:var(--gold-light);color:#6f5721;font-size:.84rem;line-height:1.55; }
.officer-room-guide.warning { background:#fff0f0;color:#8d2f2f; }
.officer-room-section.featured { background:linear-gradient(135deg,var(--gold-light),#fff);border:1px solid rgba(214,178,94,.65);border-radius:18px;padding:16px;margin-top:-4px; }
.officer-room-heading { display:flex;flex-direction:column;gap:3px;margin:20px 0 12px; }
.officer-room-heading strong { color:var(--navy);font-size:1.22rem;font-weight:900;letter-spacing:-.02em; }
.officer-room-heading span { color:#66757f;font-size:.9rem;line-height:1.45; }
.officer-room-tabs { display:grid;grid-template-columns:1fr;gap:12px;padding:2px 0 22px; }
.officer-room-tab {
  --room-bg:#f4f7fa;--room-border:#d8e1e8;--room-accent:#315b78;
  position:relative;display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:13px;
  width:100%;min-height:88px;padding:14px 15px;border:1.5px solid var(--room-border);border-radius:18px;
  background:linear-gradient(135deg,#fff 0%,var(--room-bg) 100%);color:var(--navy);text-align:left;cursor:pointer;
  box-shadow:0 5px 16px rgba(17,45,68,.08);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
  -webkit-tap-highlight-color:transparent;
}
.officer-room-tab:hover { transform:translateY(-2px);box-shadow:0 9px 22px rgba(17,45,68,.13);border-color:var(--room-accent); }
.officer-room-tab:active { transform:translateY(1px) scale(.99);box-shadow:0 3px 9px rgba(17,45,68,.1); }
.officer-room-tab.active { border-color:var(--room-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--room-accent) 18%,transparent),0 8px 20px rgba(17,45,68,.13); }
.officer-room-tab.active::after { content:'';position:absolute;inset:7px auto 7px 0;width:4px;border-radius:0 6px 6px 0;background:var(--room-accent); }
.officer-room-icon { display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:15px;background:rgba(255,255,255,.78);font-size:1.85rem;line-height:1;box-shadow:inset 0 0 0 1px rgba(255,255,255,.8),0 3px 9px rgba(17,45,68,.08); }
.officer-room-copy { display:flex;min-width:0;flex-direction:column;gap:4px; }
.officer-room-copy strong { color:var(--navy);font-size:1.2rem;font-weight:900;line-height:1.25;word-break:keep-all;overflow-wrap:anywhere;letter-spacing:-.02em; }
.officer-room-copy small { color:#596b77;font-size:.85rem;font-weight:600;line-height:1.38;word-break:keep-all; }
.officer-room-count { display:inline-flex;align-items:baseline;justify-content:center;gap:2px;min-width:48px;padding:7px 9px;border-radius:999px;background:var(--room-accent);color:#fff;font-size:1.05rem;font-weight:900;box-shadow:0 3px 9px color-mix(in srgb,var(--room-accent) 25%,transparent); }
.officer-room-count em { font-size:.7rem;font-style:normal;font-weight:800;opacity:.88; }
.officer-room-tab[data-group="secretariat"] { --room-bg:#e9f0f7;--room-border:#b9ccdf;--room-accent:#294f73; }
.officer-room-tab[data-group="advisors"] { --room-bg:#f7f0e2;--room-border:#ddc89f;--room-accent:#8a6738; }
.officer-room-tab[data-group="auditors"] { --room-bg:#f0edf8;--room-border:#c9c0df;--room-accent:#65518d; }
.officer-room-tab[data-group="directors"] { --room-bg:#eaf3fb;--room-border:#bdd5e9;--room-accent:#326b99; }
.officer-room-tab[data-group="women_committee"] { --room-bg:#fbf0f3;--room-border:#e5c2cb;--room-accent:#a45168; }
.officer-room-tab[data-group="advisory_committee"] { --room-bg:#fbf6df;--room-border:#e4d491;--room-accent:#8a711c; }
.officer-room-tab[data-group="external_cooperation_committee"] { --room-bg:#e8f6f3;--room-border:#addbd1;--room-accent:#277b70; }
.officer-room-tab[data-group="operations_committee"] { --room-bg:#edf2f5;--room-border:#c5d1d9;--room-accent:#546e7a; }
.officer-room-tab[data-group="guidance_committee"] { --room-bg:#edf7ed;--room-border:#bfdbbe;--room-accent:#477a48; }
.officer-room-tab[data-group="youth_committee"] { --room-bg:#e9f7fc;--room-border:#b8ddea;--room-accent:#347f9b; }
.officer-room-tab[data-group="branch_presidents"] { --room-bg:#e9eff7;--room-border:#b8c9df;--room-accent:#254f82; }
.officer-room-tab[data-group="vice_presidents"] { --room-bg:#fbf1df;--room-border:#e4c58e;--room-accent:#9b681d; }
.officer-room-tab[data-group="branch_secretaries"] { --room-bg:#e8f7f0;--room-border:#addbc7;--room-accent:#2f7b5e; }
.officer-room-tab[data-group="constitution_committee"] { --room-bg:#f8f0ea;--room-border:#dfc3b3;--room-accent:#7a4f38; }
.officer-room-tab.warning { --room-bg:#fff0e9;--room-border:#edb5a2;--room-accent:#a94d31; }
@media (min-width:540px) { .officer-room-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:380px) {
  .officer-room-tab { grid-template-columns:48px minmax(0,1fr) auto;gap:10px;min-height:82px;padding:12px; }
  .officer-room-icon { width:46px;height:46px;font-size:1.55rem; }
  .officer-room-copy strong { font-size:1.12rem; }
  .officer-room-copy small { font-size:.8rem; }
  .officer-room-count { min-width:43px;padding:6px 8px; }
}
.officer-room-detail {
  --room-bg:#f4f7fa;--room-border:#d8e1e8;--room-accent:#315b78;
  min-height:100%;animation:officerDetailIn .2s ease-out;
}
.officer-room-back { display:inline-flex;align-items:center;gap:8px;min-height:46px;margin:2px 0 14px;padding:10px 15px;border:1px solid #cbd6dd;border-radius:13px;background:#fff;color:var(--navy);font-size:.98rem;font-weight:900;cursor:pointer;box-shadow:0 3px 10px rgba(17,45,68,.07); }
.officer-room-back:active { transform:translateY(1px); }
.officer-room-detail-head { display:grid;grid-template-columns:66px minmax(0,1fr) auto;align-items:center;gap:15px;min-height:112px;padding:18px;border:1.5px solid var(--room-border);border-radius:21px;background:linear-gradient(135deg,#fff,var(--room-bg));box-shadow:0 7px 22px rgba(17,45,68,.1); }
.officer-room-detail-icon { display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:18px;background:rgba(255,255,255,.82);font-size:2.25rem;box-shadow:inset 0 0 0 1px rgba(255,255,255,.9),0 4px 12px rgba(17,45,68,.09); }
.officer-room-detail-copy { min-width:0; }
.officer-room-detail-copy h2 { margin:0 0 5px;color:var(--navy);font-size:1.55rem;font-weight:900;line-height:1.2;letter-spacing:-.03em;word-break:keep-all; }
.officer-room-detail-copy p { margin:0;color:#596b77;font-size:.94rem;font-weight:600;line-height:1.5;word-break:keep-all; }
.officer-room-detail-count { display:inline-flex;align-items:baseline;gap:3px;min-width:58px;justify-content:center;padding:9px 11px;border-radius:999px;background:var(--room-accent);color:#fff;font-size:1.28rem;font-weight:900; }
.officer-room-detail-count em { font-size:.75rem;font-style:normal;opacity:.88; }
.officer-room-detail-members { margin-top:18px; }
.officer-room-detail[data-group="secretariat"] { --room-bg:#e9f0f7;--room-border:#b9ccdf;--room-accent:#294f73; }
.officer-room-detail[data-group="advisors"] { --room-bg:#f7f0e2;--room-border:#ddc89f;--room-accent:#8a6738; }
.officer-room-detail[data-group="auditors"] { --room-bg:#f0edf8;--room-border:#c9c0df;--room-accent:#65518d; }
.officer-room-detail[data-group="directors"] { --room-bg:#eaf3fb;--room-border:#bdd5e9;--room-accent:#326b99; }
.officer-room-detail[data-group="women_committee"] { --room-bg:#fbf0f3;--room-border:#e5c2cb;--room-accent:#a45168; }
.officer-room-detail[data-group="advisory_committee"] { --room-bg:#fbf6df;--room-border:#e4d491;--room-accent:#8a711c; }
.officer-room-detail[data-group="external_cooperation_committee"] { --room-bg:#e8f6f3;--room-border:#addbd1;--room-accent:#277b70; }
.officer-room-detail[data-group="operations_committee"] { --room-bg:#edf2f5;--room-border:#c5d1d9;--room-accent:#546e7a; }
.officer-room-detail[data-group="guidance_committee"] { --room-bg:#edf7ed;--room-border:#bfdbbe;--room-accent:#477a48; }
.officer-room-detail[data-group="youth_committee"] { --room-bg:#e9f7fc;--room-border:#b8ddea;--room-accent:#347f9b; }
.officer-room-detail[data-group="branch_presidents"] { --room-bg:#e9eff7;--room-border:#b8c9df;--room-accent:#254f82; }
.officer-room-detail[data-group="vice_presidents"] { --room-bg:#fbf1df;--room-border:#e4c58e;--room-accent:#9b681d; }
.officer-room-detail[data-group="branch_secretaries"] { --room-bg:#e8f7f0;--room-border:#addbc7;--room-accent:#2f7b5e; }
.officer-room-detail[data-group="constitution_committee"] { --room-bg:#f8f0ea;--room-border:#dfc3b3;--room-accent:#7a4f38; }
.officer-room-detail.warning { --room-bg:#fff0e9;--room-border:#edb5a2;--room-accent:#a94d31; }
@keyframes officerDetailIn { from { opacity:0;transform:translateX(8px); } to { opacity:1;transform:none; } }
@media (max-width:420px) {
  .officer-room-detail-head { grid-template-columns:54px minmax(0,1fr) auto;gap:11px;min-height:98px;padding:14px; }
  .officer-room-detail-icon { width:52px;height:52px;border-radius:15px;font-size:1.85rem; }
  .officer-room-detail-copy h2 { font-size:1.32rem; }
  .officer-room-detail-copy p { font-size:.84rem; }
  .officer-room-detail-count { min-width:49px;padding:7px 9px;font-size:1.1rem; }
}
.officer-card-featured { border:1px solid rgba(214,178,94,.75); }
.officer-admin-actions { display:flex;gap:6px;padding:0 10px 10px; }
.officer-admin-actions button { flex:1;border:0;border-radius:8px;padding:7px;background:#edf2f4;color:var(--navy);font-weight:800;cursor:pointer; }
.officer-admin-actions button:last-child { background:#fff0f0;color:#a22; }
.officer-hidden-badge { display:inline-block;margin-top:5px;padding:2px 7px;border-radius:8px;background:#eee;color:#777;font-size:.72rem;font-weight:800; }
.off-member-results { display:grid;gap:6px;max-height:180px;overflow:auto;margin:-8px 0 12px; }
.off-member-results button { display:flex;justify-content:space-between;gap:8px;text-align:left;border:1px solid #dce3e7;background:#fff;padding:10px;border-radius:10px;cursor:pointer; }
.off-member-results button span,.off-selected-member span { color:#687783;font-size:.8rem; }
.off-selected-member { display:flex;flex-direction:column;gap:3px;padding:11px;background:var(--green-light);border-radius:10px;margin-bottom:14px; }
.off-member-empty { padding:10px;color:#8a969f;font-size:.86rem;text-align:center; }
.bulk-management-grid { display:grid;grid-template-columns:1fr;gap:10px; }
.bulk-management-grid button { display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:15px;border:1px solid #d7e0e5;border-radius:14px;background:#fff;color:var(--navy);box-shadow:var(--shadow-sm);cursor:pointer;text-align:left; }
.bulk-management-grid button i { color:var(--green-dark);font-size:1.25rem; }
.bulk-management-grid button span { color:#75838e;font-size:.82rem; }
.bulk-modal { max-width:760px; }
.bulk-guide { background:var(--gold-light);color:#6f5721;padding:11px;border-radius:10px;font-size:.86rem;line-height:1.6;margin-bottom:12px; }
.bulk-toolbar { display:flex;gap:8px;margin-bottom:14px; }
.bulk-toolbar button { border:0;border-radius:10px;background:var(--navy);color:#fff;padding:10px 13px;font-weight:800;cursor:pointer; }
.bulk-summary { padding:10px;background:#f1f5f7;border-radius:10px;margin-bottom:8px;font-size:.88rem; }
.bulk-summary strong { color:#a33;margin-left:8px; }
.bulk-result-summary { margin:0 0 10px;padding:11px;border-radius:10px;background:#eef8f1;color:#205c3b;font-weight:800;font-size:.88rem; }
.bulk-table-wrap { max-height:45vh;overflow:auto;border:1px solid #dde4e8;border-radius:10px; }
.bulk-table-wrap table { min-width:620px;width:100%;border-collapse:collapse; }
.bulk-table-wrap th { position:sticky;top:0;background:#eef5f1;color:var(--green-dark);padding:9px;text-align:left; }
.bulk-table-wrap td { padding:8px;border-bottom:1px solid #edf0f2;font-size:.82rem; }
.bulk-table-wrap tr.error { background:#fff0f0;color:#a22; }
.bulk-row-notice { margin-top:4px;color:#785f25;font-size:.76rem;line-height:1.45; }
@media (min-width:768px) { .bulk-management-grid { grid-template-columns:repeat(3,1fr); } }

/* ════════════════════════════════════
   회원 명부
════════════════════════════════════ */
.mb-search-bar {
  display: flex; gap: 8px;
  padding: 14px 14px 10px;
}
.mb-search-input {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid #ddd; border-radius: var(--radius-sm);
  font-size: 1rem; font-family: 'Noto Sans KR', sans-serif; outline: none;
}
.mb-search-input:focus { border-color: var(--green-main); }

.mb-filter-bar {
  display: flex; gap: 6px; padding: 0 14px 10px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mb-filter-bar::-webkit-scrollbar { display: none; }
.mb-filter-btn {
  flex-shrink: 0; padding: 6px 14px;
  border-radius: 20px; border: 1.5px solid #ddd;
  background: white; font-size: 0.85rem; font-weight: 600;
  color: #666; cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
  white-space: nowrap; transition: all 0.18s;
}
.mb-filter-btn.active { background: var(--green-main); border-color: var(--green-main); color: white; }

.mb-list { display: flex; flex-direction: column; gap: 1px; background: #eee; }
.mb-card {
  background: white;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: background 0.15s;
}
.mb-card:hover { background: #f9fdf5; }
.mb-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem; font-weight: 900;
  flex-shrink: 0;
}
.mb-avatar-img {
  width:46px;height:46px;border-radius:50%;object-fit:cover;flex-shrink:0;border:2px solid #e4efd8;background:#f4f7ef;
}
.mb-info { flex: 1; min-width: 0; }
.mb-card-name { font-size: 1.05rem; font-weight: 800; color: #222; }
.mb-card-pos  { font-size: 0.85rem; color: var(--green-main); font-weight: 600; margin-top: 2px; }
.mb-card-branch { font-size: 0.82rem; color: #888; }
.mb-phone { font-size: 0.88rem; color: #888; flex-shrink: 0; }
.mb-phone-icon {
  width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:#eef8e8;color:var(--green-dark);text-decoration:none;flex-shrink:0;
}

.mb-card-role-admin  { color: var(--red-point); font-size: 0.72rem; font-weight: 700; }
.mb-card-role-officer { color: var(--green-dark); font-size: 0.72rem; font-weight: 700; }
.member-detail-profile { text-align:center;margin-bottom:18px; }
.member-detail-photo,.member-detail-avatar {
  width:112px;height:112px;border-radius:50%;object-fit:cover;margin:0 auto 12px;
  border:3px solid #e5f2db;box-shadow:0 8px 20px rgba(38,80,34,.13);
}
.member-detail-avatar {
  display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--green-main),var(--green-dark));
  color:#fff;font-size:2.3rem;font-weight:900;
}
.member-detail-name { font-size:1.45rem;font-weight:900;color:var(--navy); }
.member-detail-position { margin-top:4px;color:var(--green-dark);font-weight:800; }
.member-detail-info { display:flex;flex-direction:column;gap:8px; }
.member-detail-call {
  display:flex;align-items:center;justify-content:center;gap:8px;margin-top:8px;padding:12px 14px;border-radius:12px;
  background:var(--green-main);color:#fff;text-decoration:none;font-weight:900;
}

/* ════════════════════════════════════
   채팅 UI (카카오톡 스타일)
════════════════════════════════════ */
/* 지회방 */
.br-chat-wrap {
  display: flex; flex-direction: column;
  height: calc(100vh - 120px);
  background: #ece5dd;
}
.br-chat-messages {
  flex: 1; overflow-y: auto;
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 10px;
  -webkit-overflow-scrolling: touch;
}
.br-chat-row { display: flex; gap: 8px; }
.br-chat-row--mine { flex-direction: row-reverse; }

.br-chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.85rem; font-weight: 900;
  flex-shrink: 0; align-self: flex-start; margin-top: 2px;
}
.br-chat-content { display: flex; flex-direction: column; max-width: 72%; }
.br-chat-row--mine .br-chat-content { align-items: flex-end; }
.br-chat-name { font-size: 0.78rem; font-weight: 700; color: #555; margin-bottom: 3px; }
.br-chat-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.br-chat-bubble p { font-size: 1rem; line-height: 1.6; margin: 0; }
.br-chat-bubble--mine  { background: linear-gradient(135deg, #3d8a1e, #5BBB2F); color: white; border-bottom-right-radius: 4px; }
.br-chat-bubble--other { background: white; color: #222; border-bottom-left-radius: 4px; }
.br-chat-time { font-size: 0.7rem; color: #aaa; margin-top: 3px; }
.br-chat-img { max-width: 200px; border-radius: 12px; cursor: pointer; display: block; }

.br-chat-input-wrap {
  display: flex; gap: 8px;
  padding: 10px 12px;
  background: white;
  border-top: 1px solid #ddd;
  align-items: flex-end;
}
.br-chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #ddd; border-radius: 22px;
  font-size: 1rem; font-family: 'Noto Sans KR', sans-serif;
  resize: none; max-height: 100px; outline: none;
  line-height: 1.5;
}
.br-chat-input:focus { border-color: var(--green-main); }
.br-chat-send {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green-main);
  border: none; color: white; font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s;
}
.br-chat-send:hover { background: var(--green-dark); }
.br-chat-img-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gray-light);
  border: none; color: #666; font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* 임원진 소통방 */
.ec-chat-wrap {
  display: flex; flex-direction: column;
  height: calc(100vh - 58px);
  background: #ece5dd;
}
.ec-messages {
  flex: 1; overflow-y: auto;
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 10px;
  -webkit-overflow-scrolling: touch;
}
.ec-row { display: flex; gap: 8px; }
.ec-row--mine { flex-direction: row-reverse; }
.ec-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.9rem; font-weight: 900;
  flex-shrink: 0; align-self: flex-start; margin-top: 2px;
}
.ec-content { display: flex; flex-direction: column; max-width: 72%; }
.ec-row--mine .ec-content { align-items: flex-end; }
.ec-name { font-size: 0.75rem; font-weight: 700; color: #555; margin-bottom: 3px; }
.ec-pos  { font-size: 0.7rem; color: var(--green-dark); }
.ec-bubble {
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 1rem;
  line-height: 1.55;
}
.ec-bubble--mine  { background: linear-gradient(135deg, #3d8a1e, #5BBB2F); color: white; border-bottom-right-radius: 4px; }
.ec-bubble--other { background: white; color: #333; border-bottom-left-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.ec-time { font-size: 0.68rem; color: #aaa; margin-top: 3px; }
.ec-img  { max-width: 200px; border-radius: 12px; cursor: pointer; display: block; }

.ec-input-wrap {
  display: flex; gap: 8px;
  padding: 10px 12px;
  background: white; border-top: 1px solid #ddd;
  align-items: flex-end;
}
.ec-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #ddd; border-radius: 22px;
  font-size: 1rem; font-family: 'Noto Sans KR', sans-serif;
  resize: none; max-height: 100px; outline: none; line-height: 1.5;
}
.ec-input:focus { border-color: var(--green-main); }
.ec-send {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green-main);
  border: none; color: white; font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ec-send:hover { background: var(--green-dark); }
.ec-img-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gray-light); border: none; color: #666;
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ec-access-denied {
  text-align: center; padding: 40px 20px; color: #888;
}
.ec-access-denied i { font-size: 3rem; color: #ddd; display: block; margin-bottom: 14px; }

/* ════════════════════════════════════
   지회 목록
════════════════════════════════════ */
.branch-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.branch-card {
  background: white; border-radius: 16px;
  padding: 16px 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  cursor: pointer;
  border-left: 4px solid var(--green-main);
  display: flex; align-items: center; gap: 12px;
  transition: transform 0.18s, box-shadow 0.18s;
  position: relative;
}
.branch-card.has-new .branch-card-arrow { margin-right: 25px; }
.branch-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.branch-emoji {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 42px; text-align: center;
}
.branch-card-info { flex: 1; min-width: 0; }
.branch-card-name { font-size: 1.1rem; font-weight: 800; color: #222; }
.branch-card-leader { font-size: 0.85rem; color: #888; margin-top: 3px; }
.branch-card-arrow { color: #ccc; font-size: 0.9rem; }
.branch-card--locked { opacity:.58;filter:grayscale(.5);cursor:not-allowed;border-left-color:#c5cbd0; }
.branch-card--locked:hover { transform:none;box-shadow:0 2px 10px rgba(0,0,0,.07); }
.branch-card--locked .branch-emoji { opacity:.72; }
.branch-card--locked .branch-card-arrow { color:#7d8790; }

.join-review-entry {
  width:100%;display:grid;grid-template-columns:46px minmax(0,1fr) auto 16px;align-items:center;gap:12px;
  margin:0 0 14px;padding:14px;border:0;border-left:5px solid var(--green-main);border-radius:16px;
  background:linear-gradient(135deg,#fff,#eef8e8);box-shadow:0 4px 14px rgba(35,86,36,.12);
  color:inherit;text-align:left;cursor:pointer;font-family:'Noto Sans KR',sans-serif;
}
.join-review-entry-icon { width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:var(--green-main);color:#fff;font-size:1.1rem; }
.join-review-entry-copy { min-width:0;display:flex;flex-direction:column;gap:3px; }
.join-review-entry-copy strong { color:var(--navy);font-size:1.02rem;font-weight:900; }
.join-review-entry-copy small { color:#5c6d5d;font-size:.84rem;font-weight:700;line-height:1.3; }
.join-review-entry-badge { padding:6px 9px;border-radius:999px;background:#fff;color:var(--green-dark);font-size:.78rem;font-weight:900;white-space:nowrap;border:1px solid #cfe7c3; }
.join-review-entry-arrow { color:#9eb69b;font-size:.9rem; }
.join-review-summary {
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding:15px 16px;
  border-radius:16px;background:linear-gradient(135deg,var(--navy),#315b78);color:#fff;box-shadow:0 5px 16px rgba(17,45,68,.16);
}
.join-review-summary strong { display:block;font-size:1.25rem;font-weight:900; }
.join-review-summary span { display:block;margin-top:3px;font-size:.86rem;opacity:.85;font-weight:700; }
.join-review-summary i { font-size:1.7rem;opacity:.86; }
.join-review-filter { display:grid;grid-template-columns:92px minmax(0,1fr) 42px;gap:8px;margin-bottom:13px; }
.join-review-filter select,.join-review-filter input,.join-review-filter button {
  min-height:42px;border:1px solid #dce7d8;border-radius:12px;background:#fff;color:#263238;font-family:'Noto Sans KR',sans-serif;font-weight:700;
}
.join-review-filter select,.join-review-filter input { padding:0 11px;font-size:.9rem; }
.join-review-filter button { color:var(--green-dark);cursor:pointer; }
.join-review-count { margin:0 0 9px;color:#60756a;font-size:.85rem;font-weight:800; }
.join-review-list { display:flex;flex-direction:column;gap:10px; }
.join-review-card {
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border:1px solid #e3eadf;border-radius:15px;
  background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.06);font-family:'Noto Sans KR',sans-serif;text-align:left;cursor:pointer;
}
.join-review-card.is-pending { border-color:#cfe7c3;box-shadow:0 3px 12px rgba(61,138,30,.14); }
.join-review-card-main { min-width:0;display:flex;flex-direction:column;gap:4px; }
.join-review-card-main strong { color:#1f2d35;font-size:1.02rem;font-weight:900; }
.join-review-card-main small { color:#6b7780;font-size:.82rem;font-weight:700;line-height:1.35;word-break:keep-all; }
.join-review-card-side { display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0; }
.join-review-card-side em { color:#8a969d;font-size:.72rem;font-style:normal;font-weight:700;white-space:nowrap; }
.jr-status { display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border-radius:999px;font-size:.76rem;font-weight:900;white-space:nowrap; }
.jr-status-pending { background:#fff3cd;color:#8a5a00; }
.jr-status-approved { background:#d9f7e8;color:#166534; }
.jr-status-rejected { background:#ffe1e1;color:#a91d2b; }
.jr-status-cancelled { background:#e8edf2;color:#52606d; }
.jr-status-neutral { background:#eef2f5;color:#52606d; }
.join-review-loading { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:140px;color:#60756a;font-weight:800; }
.join-review-modal .modal-body { max-height:62vh;overflow:auto; }
.join-review-detail-head { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #edf1e8; }
.join-review-detail-head strong { color:var(--navy);font-size:1.28rem;font-weight:900; }
.join-review-detail-grid { display:grid;grid-template-columns:1fr 1fr;gap:10px; }
.join-review-detail-grid div { padding:11px 12px;border-radius:12px;background:#f8fbf6;border:1px solid #edf3e9; }
.join-review-detail-grid div.wide { grid-column:1 / -1; }
.join-review-detail-grid span { display:block;color:#6c7a70;font-size:.76rem;font-weight:900;margin-bottom:4px; }
.join-review-detail-grid p { margin:0;color:#263238;font-size:.92rem;font-weight:700;line-height:1.5;word-break:break-word; }
.join-review-detail-grid .preline { white-space:pre-line; }
.join-review-notice { margin:13px 0 0;padding:10px 12px;border-radius:12px;background:#fff8e5;color:#7d5a00;font-size:.84rem;font-weight:800; }
.join-review-call { text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px; }
.join-review-approve-btn { display:inline-flex;align-items:center;justify-content:center;gap:7px; }
.join-review-approve-modal .modal-body { padding-top:16px; }
.join-review-approve-guide { display:flex;align-items:flex-start;gap:10px;margin-bottom:16px;padding:12px;background:#edf8e9;border:1px solid #cfe7c3;border-radius:12px;color:#315f2d; }
.join-review-approve-guide i { margin-top:3px;color:var(--green-dark); }
.join-review-approve-guide p { margin:0;font-size:.86rem;font-weight:800;line-height:1.55;word-break:keep-all; }
.join-review-pin-help { margin:2px 0 0;color:#60756a;font-size:.8rem;font-weight:700; }
.join-review-approve-actions { padding:0;margin-top:16px; }
.join-review-approve-actions button:disabled { cursor:wait;opacity:.65; }
@media (max-width:380px) {
  .join-review-entry { grid-template-columns:42px minmax(0,1fr) 14px; }
  .join-review-entry-badge { display:none; }
  .join-review-filter { grid-template-columns:86px minmax(0,1fr) 40px;gap:6px; }
  .join-review-card { align-items:flex-start;flex-direction:column; }
  .join-review-card-side { align-items:flex-start;flex-direction:row;justify-content:space-between;width:100%; }
  .join-review-detail-grid { grid-template-columns:1fr; }
  .join-review-modal .modal-footer { flex-wrap:wrap; }
  .join-review-modal .modal-footer > * { min-width:calc(50% - 6px); }
}

/* 지회 탭 */
.branch-detail-tabs {
  display: flex;
  border-bottom: 2px solid #eee;
  background: white;
  position: sticky; top: 58px; z-index: 5;
}
.branch-tab-btn {
  position: relative;
  flex: 1; padding: 14px;
  background: none; border: none;
  font-size: 1rem; font-weight: 700; color: #888;
  cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
  border-bottom: 3px solid transparent;
  transition: all 0.2s; margin-bottom: -2px;
}
.branch-tab-btn.active { color: var(--green-main); border-bottom-color: var(--green-main); }

/* ════════════════════════════════════
   향우업체 소개
════════════════════════════════════ */
.biz-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin: 14px 14px 2px;
}
.biz-search-wrap > i {
  position: absolute;
  left: 15px;
  z-index: 1;
  color: #64737d;
  pointer-events: none;
}
.biz-search-wrap input {
  width: 100%;
  min-height: 50px;
  padding: 11px 48px 11px 44px;
  border: 1.5px solid #cfd9de;
  border-radius: 15px;
  background: #fff;
  color: #172b3a;
  font: 600 1rem 'Noto Sans KR', sans-serif;
  outline: none;
  box-shadow: 0 3px 12px rgba(17,45,68,.06);
}
.biz-search-wrap input:focus { border-color:var(--green-main);box-shadow:0 0 0 3px rgba(91,187,47,.14); }
.biz-search-wrap button {
  position: absolute;
  right: 8px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #edf2f4;
  color: #52636e;
  cursor: pointer;
}
.biz-searching { margin:10px 0 0;color:#6b7982;font-size:.9rem;font-weight:700; }
.biz-filter-bar {
  display: flex; gap: 6px; padding: 12px 14px 8px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.biz-filter-bar::-webkit-scrollbar { display: none; }
.biz-filter-btn {
  flex-shrink: 0; padding: 6px 14px; border-radius: 20px;
  border: 1.5px solid #ddd; background: white;
  font-size: 0.85rem; font-weight: 600; color: #666;
  cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.18s;
}
.biz-filter-btn.active { background: var(--green-main); border-color: var(--green-main); color: white; }

/* 2열 카드 그리드 */
.biz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 14px;
}
.biz-card {
  background: white; border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  cursor: pointer;
  border: 1px solid #f0f0f0;
  display: flex; flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.biz-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.14); transform: translateY(-2px); }
.biz-card-photo {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; display: block; background: #f5f5f5;
}
.biz-card-photo-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--green-light), #c8e8a8);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--green-dark);
}
.biz-card-body { padding: 10px 12px 12px; flex: 1; }
.biz-card-cat  { font-size: 0.72rem; font-weight: 700; color: var(--green-main); margin-bottom: 4px; }
.biz-card-name { font-size: 1rem; font-weight: 800; color: #222; line-height: 1.3; }
.biz-card-owner { font-size: 0.82rem; color: #888; margin-top: 4px; }

/* 업체 상세 */
.biz-detail-photo-wrap {
  width: 100%; aspect-ratio: 16/9;
  overflow: hidden; border-radius: 0;
}
.biz-detail-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz-detail-photo-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--green-light), #c8e8a8);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--green-dark);
}
.biz-detail-name { font-size: 1.4rem; font-weight: 900; color: #1a1a1a; }
.biz-detail-cat  { font-size: 0.88rem; font-weight: 700; color: var(--green-main); }
.biz-info-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}
.biz-info-row i { color: var(--green-main); width: 18px; flex-shrink: 0; }
.biz-desc { padding: 14px; background: var(--green-light); border-radius: 10px; font-size: 0.95rem; line-height: 1.7; color: #333; margin-top: 10px; }

/* ════════════════════════════════════
   찾아오는 길
════════════════════════════════════ */
.dir-title-card {
  background: linear-gradient(135deg, #3d8a1e, #5BBB2F);
  padding: 22px 20px 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 4px 16px rgba(61,138,30,0.25);
  margin-bottom: 16px;
  border-radius: 18px;
}
.dir-title-text h2 { font-size: 1.3rem; font-weight: 900; color: white; letter-spacing: -0.3px; line-height: 1.3; }
.dir-title-text p  { font-size: 1.05rem; font-weight: 700; color: white; opacity: 0.9; margin-top: 3px; letter-spacing: 3px; }

.dir-map-wrap {
  width: 100%; border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1); margin-bottom: 16px;
}
.dir-map-wrap iframe { width: 100%; height: 280px; border: none; display: block; }

.dir-info-card {
  background: white; border-radius: 16px;
  padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  margin-bottom: 12px;
}
.dir-info-title { font-size: 1rem; font-weight: 800; color: #222; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.dir-info-title i { color: var(--green-main); }
.dir-info-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
}
.dir-info-row:last-child { border-bottom: none; }
.dir-info-row i { color: var(--green-main); width: 18px; flex-shrink: 0; margin-top: 2px; }
.dir-info-label { font-weight: 700; color: #555; flex-shrink: 0; min-width: 50px; }
.dir-info-val   { color: #333; flex: 1; line-height: 1.6; }
.dir-call-btn {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, #3d8a1e, #5BBB2F);
  border: none; border-radius: var(--radius-sm);
  color: white; font-size: 1.1rem; font-weight: 700;
  cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px;
}

/* ════════════════════════════════════
   관리자 페이지
════════════════════════════════════ */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 20px;
}
.stat-card {
  background: white; border-radius: 14px;
  padding: 14px 10px; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.stat-num  { font-size: 1.6rem; font-weight: 900; color: var(--green-dark); }
.stat-label { font-size: 0.78rem; color: #888; margin-top: 3px; }

.admin-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.admin-menu-card {
  background: white; border-radius: 14px;
  padding: 18px 14px; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  cursor: pointer; transition: all 0.2s;
  border: 2px solid transparent;
  font-family: 'Noto Sans KR', sans-serif;
}
.admin-menu-card:hover { border-color: var(--green-main); transform: translateY(-2px); }
.admin-menu-card i { font-size: 1.8rem; color: var(--green-main); display: block; margin-bottom: 8px; }
.admin-menu-card span { font-size: 0.95rem; font-weight: 700; color: #333; }

/* 관리 테이블 */
.admin-table-wrap { overflow-x: auto; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th {
  background: var(--green-light); color: var(--green-dark);
  padding: 11px 14px; font-weight: 700; text-align: left;
  white-space: nowrap; font-size: 0.86rem;
}
td { padding: 10px 14px; border-bottom: 1px solid #eee; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f9fdf5; }
.table-action-btn {
  background: none; border: 1.5px solid #ddd; border-radius: 6px;
  padding: 5px 12px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif; white-space: nowrap;
}
.table-action-btn.edit   { border-color: var(--green-main); color: var(--green-dark); }
.table-action-btn.delete { border-color: var(--red-point);  color: var(--red-point); }

/* 관리자 모바일: 테이블 가로스크롤 보장 */
@media (max-width: 767px) {
  .admin-table-wrap { -webkit-overflow-scrolling: touch; }
  table { font-size: 0.82rem; }
  th, td { padding: 8px 10px; }
  .table-action-btn { padding: 4px 8px; font-size: 0.76rem; }
}

/* ════════════════════════════════════
   일정 달력
════════════════════════════════════ */
.cal-wrap { padding: 18px; margin-bottom: 14px; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-title  { font-size: 1.25rem; font-weight: 800; color: #222; }
.cal-nav-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--green-light); color: var(--green-dark); font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.cal-nav-btn:hover { background: var(--green-main); color: white; }
.cal-weekdays {
  display: grid; grid-template-columns: repeat(7,1fr);
  text-align: center; margin-bottom: 4px;
}
.cal-weekdays span { font-size: 0.82rem; font-weight: 700; color: #888; padding: 4px 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal-day {
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 2px; border-radius: 8px; cursor: pointer;
  min-height: 48px; transition: background 0.15s; position: relative;
}
.cal-day:hover:not(.cal-empty) { background: var(--green-light); }
.cal-empty { cursor: default; }
.cal-num {
  font-size: 0.9rem; font-weight: 500; color: #333;
  width: 26px; height: 26px; display: flex;
  align-items: center; justify-content: center; border-radius: 50%;
}
.cal-day.cal-today .cal-num    { background: var(--green-main); color: white; font-weight: 800; }
.cal-day.cal-selected          { background: var(--green-light); outline: 2px solid var(--green-main); }
.cal-day.cal-has-event .cal-num { font-weight: 800; color: var(--green-dark); }
.cal-day.cal-sun .cal-num      { color: #E8333A; }
.cal-day.cal-sat .cal-num      { color: #4A90D9; }
.cal-day.cal-today.cal-sun .cal-num,
.cal-day.cal-today.cal-sat .cal-num { color: white; }
.cal-dots { display: flex; gap: 2px; justify-content: center; margin-top: 2px; }
.cal-dot  { width: 5px; height: 5px; border-radius: 50%; background: var(--green-main); }
.cal-selected-bar {
  background: var(--green-light); border-radius: 10px; padding: 10px 14px;
  display: flex; align-items: center; gap: 8px; font-size: 0.95rem;
  color: var(--green-dark); font-weight: 600; margin-bottom: 12px;
}

/* 일정 상세 */
.sch-card {
  background: white; border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08); margin-bottom: 10px;
  cursor: pointer;
}
.sch-card-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green-main));
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
}
.sch-date-box {
  background: rgba(255,255,255,0.2); border-radius: 10px; padding: 8px 12px;
  text-align: center; min-width: 54px;
}
.sch-month { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.sch-day   { font-size: 1.5rem; font-weight: 900; color: white; line-height: 1; }
.sch-info  { flex: 1; }
.sch-title { font-size: 1.05rem; font-weight: 800; color: white; }
.sch-dday  { font-size: 0.8rem; color: rgba(255,255,255,0.85); }
.sch-body  { padding: 12px 16px; }
.schedule-detail-modal-box {
  display:flex;
  flex-direction:column;
  width:min(94vw,560px);
  max-height:90vh;
  min-height:0;
  overflow:hidden;
}
.schedule-detail-modal-box > .modal-header,
.schedule-detail-modal-box > .modal-footer {
  flex:0 0 auto;
}
/* schedule-detail-body: 일정 내용 + 참석신청 모두 이 스크롤 박스 안에 포함 */
.schedule-detail-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  /* 모바일 flex 레이아웃에서 flex:1 1 auto 로 지정된 .modal-body와 동일하게 동작 */
  flex: 1 1 auto;
  min-height: 0;
}
.schedule-detail-type { display:inline-flex;margin-bottom:10px;padding:5px 10px;border-radius:999px;background:var(--green-light);color:var(--green-dark);font-size:.82rem;font-weight:900; }
.schedule-detail-body h2 { margin:0 0 16px;color:var(--navy);font-size:1.45rem;line-height:1.35;word-break:keep-all; }
.schedule-detail-image { display:block;width:100%;max-height:280px;margin:16px 0 0;border-radius:14px;object-fit:cover;background:#eef1f3; }
.schedule-detail-list { display:grid;gap:0;margin:0;border-top:1px solid #e7ecef; }
.schedule-detail-list > div { display:grid;grid-template-columns:105px minmax(0,1fr);gap:12px;padding:12px 2px;border-bottom:1px solid #e7ecef; }
.schedule-detail-list dt { color:#53636f;font-weight:800; }
.schedule-detail-list dt i { width:20px;color:var(--green-dark); }
.schedule-detail-list dd { margin:0;color:#202b33;font-weight:650;word-break:break-word; }
.schedule-detail-description { margin-top:18px;padding:16px;border-radius:14px;background:#f5f8f6; }
.schedule-detail-description h4 { margin:0 0 9px;color:var(--green-dark);font-size:1rem; }
.schedule-detail-description p { margin:0;color:#28343b;line-height:1.75;white-space:pre-wrap;word-break:break-word; }
.schedule-detail-footer { flex-wrap:wrap;align-items:stretch; }
.schedule-detail-footer > .btn-primary {
  min-width:150px;
  white-space:nowrap;
}
.schedule-detail-actions { display:flex;gap:8px;margin-left:auto; }
.schedule-detail-actions button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:96px;
  min-height:42px;
  padding:12px 15px;
  white-space:nowrap;
  line-height:1.2;
}
.schedule-detail-actions .btn-cancel {
  background:#edf8f2;
  border:1.5px solid #86c6a4;
  color:#1f6b49;
}
.schedule-detail-actions .btn-cancel:hover,
.schedule-detail-actions .btn-cancel:focus-visible {
  background:#dff2e8;
  border-color:#5eae82;
  color:#15583b;
}
@media (max-width:420px) {
  .schedule-detail-list > div { grid-template-columns:88px minmax(0,1fr);font-size:.9rem; }
  .schedule-detail-footer > .btn-primary { width:100%; }
  .schedule-detail-actions { width:100%;margin-left:0; }
  .schedule-detail-actions button { flex:1;min-width:0; }
}
.sch-detail-row { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: #555; margin-bottom: 6px; }
.sch-detail-row i { color: var(--green-main); width: 16px; }

/* ════════════════════════════════════
   토스트 메시지
════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: rgba(30,30,30,0.92);
  color: white; padding: 12px 24px;
  border-radius: 30px; font-size: 0.95rem; font-weight: 600;
  z-index: 9999; transition: transform 0.3s ease;
  white-space: nowrap; max-width: 90vw;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ════════════════════════════════════
   업로드 입력 공통
════════════════════════════════════ */
input[type="text"],
input[type="tel"],
input[type="date"],
input[type="time"],
textarea,
select {
  font-family: 'Noto Sans KR', sans-serif;
}

/* 반응형 추가 */
@media (max-width: 480px) {
  .admin-stats        { grid-template-columns: repeat(2, 1fr); }
  .officer-cards      { grid-template-columns: 1fr; }
  .biz-grid           { grid-template-columns: 1fr; }
  .branch-list        { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════
   임원진 소통방 — 15개 구성 목록
════════════════════════════════════ */
.ec-access-banner {
  margin: 14px 0; padding: 12px 16px; border-radius: 12px;
  font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.ec-access-banner--ok   { background: #e8f5e0; color: #3d8a1e; }
.ec-access-banner--warn { background: #fff8e1; color: #c8861a; }

.ec-rooms-wrap { padding: 0 0 80px; }

.ec-room-card {
  display: flex; align-items: center; gap: 12px;
  background: white; border-radius: 16px;
  padding: 14px 16px; margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  border-left: 4px solid var(--room-color, #5BBB2F);
  cursor: pointer; transition: all 0.2s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.ec-room-card:hover,
.ec-room-card:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.ec-room-card.has-new .ec-room-right { padding-top:20px; }
.ec-room-card--locked {
  opacity: 0.58; cursor: not-allowed;
  filter: grayscale(0.5);
  border-left-color: #ccc !important;
}
.ec-room-card--locked:hover,
.ec-room-card--locked:active { transform:none;box-shadow:0 2px 10px rgba(0,0,0,.07); }
.ec-room-tag--locked { background:#eef0f2;color:#68727a; }

.ec-room-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.ec-room-info { flex: 1; min-width: 0; }
.ec-room-name { font-size: 1rem; font-weight: 800; color: #222; margin-bottom: 2px; }
.ec-room-desc { font-size: 0.78rem; color: #999; margin-bottom: 4px; }
.ec-room-last {
  font-size: 0.82rem; color: #555;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ec-room-right {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 6px; flex-shrink: 0;
}
.ec-room-time { font-size: 0.72rem; color: #bbb; }
.ec-room-tag {
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 9px; border-radius: 10px;
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.ec-room-tag--write { background: #e8f5e0; color: #3d8a1e; }
.ec-room-tag--read  { background: #e8f4fd; color: #1a65a0; }
.ec-room-tag--lock  { background: #f5f5f5; color: #aaa; }

/* 읽기전용 배너 */
.ec-readonly-banner {
  background: #fff8e1; color: #c8861a;
  padding: 10px 16px; font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.ec-readonly-footer {
  padding: 14px 16px; text-align: center;
  font-size: 0.88rem; color: #999; font-weight: 600;
  background: #f5f5f5; border-top: 1px solid #eee;
}

/* ════════════════════════════════════
   채팅 연결 상태 바
════════════════════════════════════ */
.chat-status-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 5px 12px;
  font-size: 0.75rem; font-weight: 600;
  transition: background 0.3s, color 0.3s;
}
.chat-status-bar.connected  { background: #e8f5e0; color: #3d8a1e; }
.chat-status-bar.connecting { background: #fff8e1; color: #c8861a; }
.chat-status-bar.polling    { background: #e8f4fd; color: #1a65a0; }

/* ════════════════════════════════════
   채팅 날짜 구분선
════════════════════════════════════ */
.chat-date-sep {
  text-align: center; margin: 16px 0 10px;
  font-size: 0.78rem; color: #888; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.chat-date-sep::before,
.chat-date-sep::after {
  content: ''; flex: 1; height: 1px; background: rgba(0,0,0,0.1);
}

/* ════════════════════════════════════
   지도 래퍼 개선
════════════════════════════════════ */
.dir-map-wrap {
  width: 100%; height: 260px;
  border-radius: 14px; overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.dir-map-wrap iframe {
  width: 100%; height: 100%; border: none; border-radius: 14px;
}

/* ════════════════════════════════════
   지회방 채팅 아바타 컬러 개선
════════════════════════════════════ */
.br-chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 800; flex-shrink: 0;
  align-self: flex-end;
}


/* ════════════════════════════════════
   연결 상태 점 (status-dot)
════════════════════════════════════ */
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.chat-status-bar.connected  .status-dot { background: #3d8a1e; animation: dot-pulse 2s infinite; }
.chat-status-bar.connecting .status-dot { background: #c8861a; animation: dot-blink 0.8s infinite; }
.chat-status-bar.polling    .status-dot { background: #1a65a0; animation: dot-pulse 1.5s infinite; }

@keyframes dot-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}
@keyframes dot-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

/* ════════════════════════════════════
   지도 높이 업데이트
════════════════════════════════════ */
.dir-map-wrap { height: 280px !important; }
.dir-map-wrap iframe { height: 100% !important; }
#kakaoMap { height: 280px !important; }

/* ════════════════════════════════════
   임원방 채팅 래퍼
════════════════════════════════════ */
.ec-chat-wrap {
  display: flex; flex-direction: column;
  height: calc(100vh - 56px);
}
.ec-messages {
  flex: 1; overflow-y: auto; padding: 12px 10px 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.ec-input-wrap {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 12px; background: #f8f8f8;
  border-top: 1px solid #eee;
}
.ec-img-btn {
  background: none; border: none; color: #999; font-size: 1.2rem;
  cursor: pointer; padding: 6px; border-radius: 8px;
  transition: color 0.2s;
}
.ec-img-btn:hover { color: #5BBB2F; }
.ec-input {
  flex: 1; border: 1.5px solid #ddd; border-radius: 18px;
  padding: 9px 14px; font-size: 0.92rem; font-family: 'Noto Sans KR', sans-serif;
  resize: none; max-height: 100px; outline: none;
  transition: border-color 0.2s;
}
.ec-input:focus { border-color: #5BBB2F; }
.ec-send {
  border: none; border-radius: 50%; width: 40px; height: 40px;
  color: white; cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 0.95rem; flex-shrink: 0;
  transition: transform 0.15s, opacity 0.15s;
}
.ec-send:hover { transform: scale(1.08); opacity: 0.9; }
.ec-row { display: flex; align-items: flex-end; gap: 8px; }
.ec-row--mine  { flex-direction: row-reverse; }
.ec-row--other { flex-direction: row; }
.ec-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 800;
}
.ec-content { display: flex; flex-direction: column; max-width: 72%; }
.ec-row--mine .ec-content { align-items: flex-end; }
.ec-name { font-size: 0.74rem; color: #888; margin-bottom: 2px; }
.ec-pos  { font-size: 0.68rem; color: #aaa; background: #f0f0f0; padding: 1px 5px; border-radius: 6px; }
.ec-bubble {
  padding: 9px 14px; border-radius: 16px;
  font-size: 0.92rem; line-height: 1.5; word-break: break-word;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.ec-bubble--mine  { border-radius: 16px 4px 16px 16px; }
.ec-bubble--other { background: white; color: #222; border-radius: 4px 16px 16px 16px; }
.ec-time { font-size: 0.68rem; color: #bbb; margin-top: 3px; }
.ec-img  { max-width: 220px; border-radius: 12px; cursor: zoom-in; }
.ec-access-denied {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; text-align: center; color: #bbb;
}
.ec-access-denied i { font-size: 3rem; margin-bottom: 16px; color: #ddd; }

/* ═══════════════════════════════════════════════════════
   ★ 어르신 가독성 강화 — 폰트 크기 일괄 상향 + 굵게
   기준: html=21px, 모든 sub-0.9rem → 최소 0.92rem 보장
   color도 더 진하게 (#888→#666, #aaa→#888, #999→#777)
═══════════════════════════════════════════════════════ */

/* 전체 기본 굵기 강화 */
body, input, textarea, select, button {
  font-weight: 500 !important; /* normal → medium */
}

/* ── 본문 텍스트 강화 ── */
p, li, span, div, td, th, label {
  line-height: 1.65;
}

/* ── 작은 글씨 일괄 업사이즈 ── */
/* 0.6~0.75rem → 0.82rem */
.cal-num,
.menu-badge,
.emblem-year,
.br-chat-time,
.ec-time,
.ec-pos,
.notice-item-date,
.ec-room-time,
.biz-card-cat,
.mb-card-role-admin,
.mb-card-role-officer,
.chat-date-sep,
.chat-status-bar {
  font-size: 0.82rem !important;
}

/* 0.75~0.85rem → 0.9rem */
.upcoming-month,
.upcoming-loc,
.upcoming-dday,
.branch-card-leader,
.ec-room-desc,
.ec-name,
.br-chat-name,
.sch-month,
.sch-dday,
.stat-label,
.cal-weekdays span,
.biz-card-owner,
.ec-room-tag,
.nc-meta {
  font-size: 0.9rem !important;
}

/* 0.85~0.92rem → 0.96rem */
.menu-wide-sub,
.officer-card-branch,
.mb-card-branch,
.mb-phone,
.officer-bio,
.biz-desc,
.sch-detail-row,
.admin-menu-card span,
.form-group label,
.form-group input,
.form-group textarea,
.form-group select,
table,
.notice-item-title,
.upcoming-title,
.branch-card-name,
.biz-card-name {
  font-size: 0.96rem !important;
}

/* ── 색상 진하게 (회색 계열) ── */
.upcoming-loc   { color: #555 !important; }
.upcoming-dday  { color: #444 !important; font-weight: 700 !important; }
.notice-item-date { color: #777 !important; }
.br-chat-name   { color: #333 !important; font-weight: 700 !important; }
.ec-name        { color: #333 !important; font-weight: 700 !important; }
.br-chat-time   { color: #888 !important; }
.ec-time        { color: #888 !important; }
.stat-label     { color: #555 !important; font-weight: 600 !important; }
.biz-card-owner { color: #555 !important; }
.branch-card-leader { color: #555 !important; }
.ec-room-desc   { color: #666 !important; }
.ec-room-last   { color: #444 !important; font-weight: 600 !important; }
.officer-card-branch { color: #666 !important; }
.mb-card-branch { color: #666 !important; }

/* ── 주요 카드/행 폰트 굵기 강화 ── */
.upcoming-title,
.notice-item-title,
.branch-card-name,
.biz-card-name,
.officer-card-name,
.mb-card-name,
.ec-room-name,
.nc-title,
.sch-title {
  font-weight: 800 !important;
}

/* ── 버튼 크기 ── */
.btn-primary, .btn-cancel,
.page-header-btn, .page-back-btn,
.br-chat-send, .ec-send {
  font-size: 1rem !important;
  font-weight: 700 !important;
}

/* ── 메뉴 라벨 ── */
.menu-label {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #222 !important;
}

/* ── 공지 배지 ── */
.nc-badge, .notice-important-badge {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
}

/* ── 채팅 말풍선 ── */
.br-chat-bubble p,
.ec-bubble {
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

/* ── 페이지 헤더 타이틀 ── */
.page-title {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
}

/* ── 섹션 타이틀 ── */
.section-title {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
}

/* ── 일정 카드 ── */
.sch-title {
  font-size: 0.98rem !important;
}
.sch-day {
  font-size: 1.6rem !important;
  font-weight: 900 !important;
}

/* ── 임원 카드 ── */
.officer-card-pos {
  font-size: 0.92rem !important;
  font-weight: 800 !important;
}

/* ── 연결 상태바 ── */
.chat-status-bar {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
}

/* ── 모달 ── */
.modal-header h3 {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
}

/* ── 공지사항 상세 ── */
.notice-detail-content,
.notice-content {
  font-size: 1rem !important;
  line-height: 1.8 !important;
  color: #1a1a1a !important;
}

/* ── 안내 텍스트 ── */
.empty-state p {
  font-size: 0.96rem !important;
  color: #666 !important;
  font-weight: 600 !important;
}


/* ════════════════════════════════════
   중요공지 팝업 애니메이션
════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* 팝업 내부 스크롤바 스타일 */
#impNoticeOverlay div::-webkit-scrollbar { width: 4px; }
#impNoticeOverlay div::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 2px; }
#impNoticeOverlay div::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

/* ════════════════════════════════════
   공통 이미지 업로드 UI (makeImgField)
════════════════════════════════════ */
.img-upload-wrap {
  width: 100%;
}
.img-tab-btns {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.img-tab {
  flex: 1;
  padding: 9px 0;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  background: #f7f7f7;
  color: #888;
  font-size: 0.82rem;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.img-tab.active {
  background: #E8333A;
  border-color: #E8333A;
  color: #fff;
  font-weight: 700;
}
.img-tab:not(.active):hover {
  background: #fff0f0;
  border-color: #E8333A;
  color: #E8333A;
}
.img-drop-zone {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  color: #aaa;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}
.img-drop-zone:hover {
  border-color: #E8333A;
  background: #fff5f5;
  color: #E8333A;
}
.img-drop-zone i {
  font-size: 1.6rem;
  margin-bottom: 2px;
}
.img-drop-zone.has-file {
  border-color: #5BBB2F;
  background: #f6fff2;
  color: #5BBB2F;
}
.img-upload-preview {
  margin-top: 10px;
  text-align: center;
}
.img-upload-preview img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 10px;
  border: 1.5px solid #eee;
  object-fit: cover;
}
.img-upload-url-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: 'Noto Sans KR', sans-serif;
  box-sizing: border-box;
  transition: border-color 0.18s;
}
.img-upload-url-input:focus {
  outline: none;
  border-color: #E8333A;
}

/* ════════════════════════════════════
   2차 디자인 개선: 남색 · 짙은 초록 · 금색
   기능 선택자와 화면 동작은 유지하고 시각 체계만 정돈
════════════════════════════════════ */
:root {
  color-scheme: light;
  --navy:         #102a43;
  --navy-deep:    #071a2f;
  --navy-soft:    #24445f;
  --green-main:   #276749;
  --green-dark:   #174b36;
  --green-light:  #e8f2ed;
  --green-mid:    #4f8a6d;
  --gold:         #d6b25e;
  --gold-dark:    #9b7428;
  --gold-light:   #fbf4df;
  --gray-light:   #edf1f4;
  --gray-mid:     #b8c2cc;
  --gray-dark:    #4b5967;
  --text-main:    #152536;
  --shadow:       0 10px 30px rgba(7, 26, 47, 0.14);
  --shadow-sm:    0 4px 14px rgba(7, 26, 47, 0.09);
}

html,
body,
#app,
#mainApp,
.app-container {
  color-scheme: light;
  background: #e8edf1;
  color: #152536;
}

body {
  background: #e8edf1;
  color: var(--text-main);
}

#mainApp,
.app-main-card,
.page-overlay {
  background: #eef2f4;
}

/* 로그인 */
.login-page,
body.login-page,
#loginScreen,
.login-screen {
  color-scheme: light;
  background:
    radial-gradient(circle at 82% 12%, rgba(214,178,94,0.2), transparent 28%),
    radial-gradient(circle at 12% 78%, rgba(39,103,73,0.34), transparent 32%),
    linear-gradient(145deg, #071a2f 0%, #102a43 52%, #174b36 100%);
  color: #ffffff;
}

.login-screen {
  padding: 32px 20px;
}

.bg-circle {
  opacity: 0.1;
  background: linear-gradient(135deg, #ffffff, var(--gold));
  border: 1px solid rgba(214,178,94,0.36);
}

.login-container { gap: 20px; }

.login-logo {
  width: 100%;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.38);
}

.logo-icon {
  margin-bottom: 16px;
  padding: 7px;
  border-radius: 28px;
  background: rgba(255,255,255,0.96);
  border: 2px solid rgba(214,178,94,0.88);
  box-shadow: 0 14px 36px rgba(0,0,0,0.34);
  filter: none;
  transform: translateX(-4px);
}

.login-title {
  color: #fff;
  font-size: 2.15rem;
  line-height: 1.18;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 14px rgba(0,0,0,0.58);
}

.login-subtitle {
  margin-top: 9px;
  padding: 5px 24px 6px 29px;
  color: #102a43;
  background: linear-gradient(135deg, #f7e6b1, #d6b25e);
  border: 1px solid #f9e9b6;
  box-shadow: 0 5px 14px rgba(0,0,0,0.2);
  font-size: 1.22rem;
  font-weight: 900;
}

.login-hanja {
  margin-top: 10px;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.65);
}

.login-slogan {
  margin-top: 9px;
  color: #f8e6ad;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.login-form-box {
  border: 1px solid rgba(214,178,94,0.7);
  border-radius: 22px;
  box-shadow: 0 20px 55px rgba(0,0,0,0.34);
}

.form-title { color: var(--navy); font-weight: 900; }
.form-title i,
.form-group label i { color: var(--green-main); }

.form-group label {
  color: #2a3b4c;
  font-weight: 800;
}

.form-group input,
.form-group textarea,
.form-group select {
  min-height: 54px;
  border-color: #aebbc7;
  color: #102030;
  font-weight: 600;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green-main);
  box-shadow: 0 0 0 4px rgba(39,103,73,0.16);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #718096; opacity: 1; }

.btn-login {
  min-height: 56px;
  background: linear-gradient(135deg, var(--navy), var(--green-dark));
  border: 1px solid rgba(214,178,94,0.72);
  box-shadow: 0 7px 18px rgba(7,26,47,0.28);
  font-size: 1.12rem;
  font-weight: 900;
}

.btn-login:hover {
  background: linear-gradient(135deg, var(--navy-deep), var(--green-main));
  box-shadow: 0 9px 24px rgba(7,26,47,0.35);
}

.login-notice {
  color: #173a2c;
  background: #eef6f1;
  border: 1px solid #bdd3c6;
  font-weight: 600;
}
.login-notice strong { color: #7e5b14; }

.login-footer {
  width: 100%;
  padding: 13px 16px;
  color: #ffffff;
  background: rgba(7,26,47,0.48);
  border: 1px solid rgba(214,178,94,0.38);
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.75;
  text-shadow: 0 1px 5px rgba(0,0,0,0.6);
}

/* 홈 헤더와 배경 */
.app-header {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 58%, var(--green-dark));
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 5px 18px rgba(7,26,47,0.27);
}

.header-inner { min-height: 64px; }
.header-title,
.header-sub { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.header-sub { color: #f4d98e; }
.user-greeting { color: #fff; font-weight: 800; }
.btn-logout {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(214,178,94,0.72);
  background: rgba(255,255,255,0.12);
}
@media (max-width: 540px) {
  .header-inner { min-height: auto; }
  .btn-logout { border-color: rgba(214,178,94,0.6); }
  /* pill 배경/테두리만 4차 테마 색상으로 오버라이드 */
  .user-greeting {
    background: rgba(255,255,255,0.16);
    border-color: rgba(214,178,94,0.5);
    color: #fff8e7;
    /* font-size/padding은 기본 @media(max-width:540px)에서 이미 clamp 설정됨 */
  }
}

.app-main { padding: 0 16px 34px; }

.notice-banner {
  margin: 0 -2px 10px;
  background: linear-gradient(135deg, #fffaf0, var(--gold-light));
  border: 1px solid #ead49c;
  border-top: none;
  border-left: 5px solid var(--gold-dark);
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow-sm);
}
.notice-slider-wrap { min-height: 48px; padding: 11px 14px; }
.notice-icon { color: var(--gold-dark); font-size: 1.05rem; }
.notice-ticker span { color: #604713; font-size: 0.94rem; font-weight: 800; }

/* 홈 환영 카드와 가치 */
.welcome-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background: linear-gradient(135deg, var(--navy) 0%, #163d4e 48%, var(--green-dark) 100%);
  border: 1px solid rgba(214,178,94,0.75);
  box-shadow: 0 12px 28px rgba(7,26,47,0.22);
}
.welcome-card::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -90px;
  top: -100px;
  border: 30px solid rgba(214,178,94,0.08);
  pointer-events: none;
}
.welcome-inner,
.welcome-motto { position: relative; z-index: 1; }
.welcome-name { font-size: 1.25rem; color: #fff; }
.welcome-msg { color: #edf6f1; font-weight: 600; }
.emblem-circle {
  width: 84px;
  height: 84px;
  color: #fff8df;
  background: rgba(7,26,47,0.3);
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.06);
}
.emblem-sub { color: #f3dfaa; }
.welcome-motto {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.welcome-slogan {
  color: #f7e2a8;
  font-size: 1.02rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.025em;
}
.welcome-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 11px;
}
.welcome-values span {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(214,178,94,0.42);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}
.welcome-values i { color: #f4d98e; }

/* 메뉴와 정보 카드 */
.menu-section-title,
.section-title { color: var(--navy) !important; }
.menu-section-title i,
.section-title i { color: var(--green-main); }
.menu-grid { gap: 9px; }
.menu-card,
.menu-card-wide,
.upcoming-item,
.notice-item {
  border: 1px solid #d8e0e6;
  box-shadow: var(--shadow-sm);
}
.menu-card {
  /* 모바일: aspect-ratio 1/1 고정이므로 min-height/padding 제거 */
  min-height: unset;
  padding: 0;
}
.menu-card:hover,
.menu-card-wide:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 22px rgba(7,26,47,0.15);
}
.menu-icon {
  width: 46px;
  height: 46px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 0 4px 10px rgba(7,26,47,0.16);
}
/* PC에서만 min-height·padding 복원 */
@media (min-width: 768px) {
  .menu-card {
    min-height: 120px;
    padding: 18px 10px 16px;
  }
  .menu-icon {
    width: 54px;
    height: 54px;
  }
}
.bg-green,
.bg-blue,
.bg-purple,
.bg-gray { background: linear-gradient(135deg, var(--navy-soft), var(--navy)); }
.bg-gold,
.bg-orange { background: linear-gradient(135deg, #d6b25e, #9b7428); }
.bg-red { background: linear-gradient(135deg, #b24745, #7d2d2c); }
.bg-teal,
.bg-emerald { background: linear-gradient(135deg, var(--green-main), var(--green-dark)); }
.menu-label {
  color: #172c3e;
  font-size: 0.86rem;
  font-weight: 800;
}
.menu-card-wide {
  min-height: 82px;
  padding: 15px 18px;
  border-color: #d3dde3;
}
.menu-wide-title { color: var(--navy); font-weight: 900; }
.menu-wide-sub { color: #526170; font-size: 0.9rem; font-weight: 600; }
.menu-wide-arrow { color: var(--gold-dark); }
.btn-more {
  min-height: 44px;
  padding: 7px 8px;
  color: var(--green-dark);
  font-weight: 800;
}
.upcoming-section,
.recent-notice-section {
  padding: 14px 12px;
  background: rgba(255,255,255,0.68);
  border: 1px solid #dbe2e7;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(7,26,47,0.06);
}
.upcoming-item { border-left: 5px solid var(--green-main); }
.upcoming-date { background: var(--green-light); }
.upcoming-month,
.upcoming-day { color: var(--green-dark); }
.upcoming-title,
.notice-item-title { color: #152536; font-weight: 800; }
.upcoming-loc,
.notice-item-date { color: #5d6975 !important; }
.upcoming-dday {
  color: var(--green-dark);
  background: var(--green-light);
}
.notice-item-icon { color: var(--gold-dark); background: var(--gold-light); }
.notice-important-badge { background: var(--gold-dark); }

/* 서브 화면도 같은 색상 체계 유지 */
.page-header { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); }
.page-header-btn,
.btn-primary { background: linear-gradient(135deg, var(--green-main), var(--green-dark)); }
.page-back-btn,
.modal-close-btn { min-width: 44px; min-height: 44px; }

/* 고령 회원을 위한 모바일 터치·가독성 */
@media (max-width: 480px) {
  .login-screen { padding: 24px 16px; }
  .login-container { gap: 17px; }
  .login-title { font-size: 1.9rem; }
  .login-subtitle { font-size: 1.1rem; }
  .login-hanja { font-size: 0.9rem; }
  .login-form-box { padding: 28px 22px; }
  .login-footer { font-size: 0.82rem; }
  .app-main { padding: 0 12px 28px; }
  .welcome-card { padding: 19px 16px; }
  .welcome-msg { font-size: 0.94rem; }
  /* menu-grid: aspect-ratio 유지, gap만 보정 */
  .menu-grid { gap: 7px; }
  /* aspect-ratio 카드: min-height/padding 개입 금지 */
  .menu-card { min-height: unset; padding: 0; }
  .menu-icon { width: 46px; height: 46px; font-size: 1.25rem; }
  .menu-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5em;
    padding: 0 2px;
    font-size: clamp(0.72rem, 2.8vw, 0.86rem);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .menu-card-wide { min-height: 78px; padding: 12px 16px; }
  .upcoming-section,
  .recent-notice-section { padding: 13px 10px; }
  .notice-item,
  .upcoming-item { min-height: 68px; }
}

@media (max-width: 360px) {
  .menu-grid { gap: 7px; }
  .menu-card { min-height: unset; padding: 0; }
  .menu-label { font-size: clamp(0.64rem, 2.5vw, 0.74rem); }
  .welcome-values span { font-size: 0.8rem; gap: 4px; }
}

/* 4차-C-9B: 모바일 모달은 본문만 스크롤하고 동작 버튼은 항상 노출 */
@media (max-width:767px) {
  .modal-overlay,
  .gallery-upload-modal {
    top:0;
    right:0;
    left:0;
    bottom:calc(72px + env(safe-area-inset-bottom, 0px));
    height:auto;
    box-sizing:border-box;
    padding-top:max(8px, env(safe-area-inset-top, 0px));
    align-items:flex-end;
  }
  .modal-box,
  .upload-modal-inner {
    display:flex;
    flex-direction:column;
    max-height:100%;
    min-height:0;
    overflow:hidden;
  }
  .modal-header,
  .upload-modal-header {
    flex:0 0 auto;
  }
  .modal-body,
  .upload-modal-body {
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
  }
  .modal-footer,
  .upload-modal-footer {
    position:relative;
    bottom:auto;
    flex:0 0 auto;
    z-index:6;
    background:#fff;
    padding:12px 16px 14px;
    box-shadow:0 -5px 14px rgba(7,26,47,.08);
  }
  #presidentGreetingEditor {
    top:0;
    right:0;
    left:0;
    bottom:calc(72px + env(safe-area-inset-bottom, 0px));
    height:auto;
    box-sizing:border-box;
    padding:8px 12px 0;
    align-items:flex-end;
  }
  #presidentGreetingEditor .president-greeting-modal {
    display:flex;
    flex-direction:column;
    max-height:100%;
    min-height:0;
  }
  #presidentGreetingEditor .president-greeting-header,
  #presidentGreetingEditor .president-greeting-actions {
    flex:0 0 auto;
  }
  #presidentGreetingEditor .president-greeting-edit-body {
    flex:1 1 auto;
    min-height:0;
    max-height:none;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  #presidentGreetingEditor .president-greeting-actions {
    padding:12px 16px 14px;
    background:#fff;
    border-top:1px solid #eee;
    box-shadow:0 -5px 14px rgba(7,26,47,.08);
  }
}

/* ════════════════════════════════════════════════════
   향우나눔장터 (marketplace)
════════════════════════════════════════════════════ */

/* 메뉴 아이콘 색상 */
.bg-market   { background: linear-gradient(135deg, #e67e22, #b85c0a); }
.bg-support  { background: linear-gradient(135deg, #4f46e5, #2563eb); }

/* 향우생활마당 */
.living-yard-page {
  background: #f7f8f6;
}
.living-yard-intro {
  margin-bottom: 14px;
  padding: 18px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(91,187,47,0.18);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.living-yard-intro h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 900;
  color: #24301f;
}
.living-yard-intro p {
  margin: 0;
  color: #5d6657;
  font-size: 0.9rem;
  line-height: 1.55;
}
.living-yard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.living-yard-card {
  min-height: 146px;
  padding: 14px 12px 13px;
  border: 1px solid #ecefe8;
  border-radius: 14px;
  background: #fff;
  color: #2d342a;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  font-family: 'Noto Sans KR', sans-serif;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.living-yard-card:active {
  transform: scale(0.98);
}
.living-yard-card--wide {
  grid-column: 1 / -1;
  min-height: 112px;
}
.living-yard-status {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5ed;
  color: #5c6855;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}
.living-yard-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.living-yard-icon--green { background: linear-gradient(135deg,#5BBB2F,#3d8a1e); }
.living-yard-icon--orange { background: linear-gradient(135deg,#E67E22,#b85c0a); }
.living-yard-icon--blue { background: linear-gradient(135deg,#4A90D9,#2c6aa0); }
.living-yard-icon--teal { background: linear-gradient(135deg,#1ABC9C,#0e8a71); }
.living-yard-icon--purple { background: linear-gradient(135deg,#9B59B6,#6c3483); }
.living-yard-icon--gold { background: linear-gradient(135deg,#F5A623,#c8861a); }
.living-yard-icon--emerald { background: linear-gradient(135deg,#2ECC71,#1a7a44); }
.living-yard-icon--red { background: linear-gradient(135deg,#E8333A,#a91e24); }
.living-yard-card-title {
  font-size: 0.98rem;
  font-weight: 900;
  color: #252b22;
  line-height: 1.25;
  word-break: keep-all;
}
.living-yard-card-sub {
  color: #697162;
  font-size: 0.8rem;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.living-yard-ready-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 68px);
  background: #f7f8f6;
}
.living-yard-ready-card {
  width: 100%;
  max-width: 360px;
  padding: 26px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #ecefe8;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  text-align: center;
}
.living-yard-ready-card .living-yard-icon {
  margin: 0 auto 14px;
  width: 54px;
  height: 54px;
  font-size: 1.35rem;
}
.living-yard-ready-card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #252b22;
}
.living-yard-ready-card p {
  margin: 0 0 18px;
  color: #626b5d;
  font-size: 0.9rem;
  line-height: 1.65;
}
@media (max-width: 360px) {
  .living-yard-grid { gap: 8px; }
  .living-yard-card { min-height: 138px; padding: 12px 10px; }
  .living-yard-card--wide { min-height: 104px; }
  .living-yard-icon { width: 38px; height: 38px; font-size: 1rem; }
  .living-yard-card-title { font-size: 0.92rem; }
  .living-yard-card-sub { font-size: 0.76rem; }
}

/* 향우업체 상위 화면 */
.business-hub-page {
  background: #f7f8f6;
}
.business-hub-intro {
  margin: 0 auto 14px;
  max-width: 520px;
  padding: 18px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(46,204,113,0.18);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.business-hub-intro h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 900;
  color: #223228;
}
.business-hub-intro p {
  margin: 0;
  color: #5d6657;
  font-size: 0.9rem;
  line-height: 1.55;
}
.business-hub-grid {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.business-hub-card {
  position: relative;
  min-height: 156px;
  padding: 14px 12px 13px;
  border: 1px solid #ecefe8;
  border-radius: 14px;
  background: #fff;
  color: #2d342a;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  font-family: 'Noto Sans KR', sans-serif;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.business-hub-card--intro,
.business-hub-card--wide {
  grid-column: 1 / -1;
  min-height: 112px;
}
.business-hub-card:active {
  transform: scale(0.98);
}

.notice-room-filter {
  position: relative;
  padding-right: 34px;
}
.notice-room-filter .internal-new-badge,
.branch-tab-btn .internal-new-badge {
  top: 50%;
  right: 7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: .66rem;
  transform: translateY(-50%);
}
.business-hub-status {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5ed;
  color: #5c6855;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}
.business-hub-status--open {
  background: #e8f5e0;
  color: #2d7a0e;
}
.business-hub-status--soon {
  background: #eef2f7;
  color: #52606d;
}
.business-hub-card-title {
  font-size: 0.98rem;
  font-weight: 900;
  color: #252b22;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.business-hub-card-sub {
  color: #697162;
  font-size: 0.8rem;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
@media (max-width: 360px) {
  .business-hub-grid { gap: 8px; }
  .business-hub-card { min-height: 144px; padding: 12px 9px; }
  .business-hub-card--intro,
  .business-hub-card--wide { min-height: 104px; }
  .business-hub-card-title { font-size: 0.92rem; }
  .business-hub-card-sub { font-size: 0.76rem; }
}

.jobs-page {
  background: #f7f8f6;
}
.jobs-hero {
  background: #fff;
  border: 1px solid #ecefe8;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(53, 63, 43, 0.06);
}
.jobs-hero h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: #263321;
}
.jobs-hero p {
  margin: 0;
  color: #66705d;
  line-height: 1.55;
}
.jobs-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.jobs-tab {
  min-height: 64px;
  border: 2px solid #dce4d6;
  border-radius: 14px;
  background: #fff;
  color: #4d5a45;
  font-weight: 900;
  font-size: clamp(17px, 4.6vw, 21px);
  line-height: 1.18;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  cursor: pointer;
  padding: 12px 8px;
  box-shadow: 0 3px 12px rgba(53, 63, 43, 0.06);
}
.jobs-tab input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.jobs-tab.active {
  border-color: #5f9631;
  background: linear-gradient(180deg, #f2faed 0%, #e1f2d7 100%);
  color: #214f0e;
  box-shadow: 0 6px 18px rgba(74, 124, 35, 0.18);
}
.jobs-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  gap: 8px;
  margin-bottom: 10px;
}
.jobs-actions,
.jobs-form-actions,
.jobs-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}
.jobs-actions button,
.jobs-form-actions button,
.jobs-detail-actions button,
.jobs-detail-actions a {
  min-height: 44px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.job-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  background: #fff;
  border: 1px solid #ecefe8;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 4px 14px rgba(53, 63, 43, 0.05);
  cursor: pointer;
}
.job-card-thumb,
.job-detail-images img,
.job-detail-empty {
  background: #eef2f7;
  border-radius: 12px;
  overflow: hidden;
}
.job-card-thumb {
  width: 86px;
  height: 86px;
}
.job-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.job-card-thumb-empty,
.job-detail-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78906a;
  font-size: 1.35rem;
}
.job-card-body {
  min-width: 0;
}
.job-card-body strong {
  display: block;
  color: #222;
  font-size: 0.98rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  margin: 4px 0;
}
.job-card-body p,
.job-card-body small {
  display: block;
  margin: 0;
  color: #697162;
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.job-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.job-type,
.job-status {
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 0.68rem;
  font-weight: 900;
}
.job-type-hiring { background: #e8f1ff; color: #245ca8; }
.job-type-seeking { background: #e2f7f2; color: #0b7661; }
.job-type-referral { background: #fff0e0; color: #b45c00; }
.job-status-pending { background: #fff7d6; color: #8a6500; }
.job-status-approved { background: #e8f5e0; color: #2d7a0e; }
.job-status-rejected,
.job-status-hidden { background: #ffe4e6; color: #b42332; }
.job-status-closed { background: #eeeeee; color: #666; }
.job-detail-card,
.job-form {
  background: #fff;
  border: 1px solid #ecefe8;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(53, 63, 43, 0.06);
}
.job-detail-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.job-detail-images img,
.job-detail-empty {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.job-detail-card h2 {
  font-size: 1.12rem;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.job-detail-desc {
  line-height: 1.65;
  color: #333;
  overflow-wrap: anywhere;
}
.jobs-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.job-form textarea {
  min-height: 130px;
  resize: vertical;
}
.job-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px;
  background: #f6f8f4;
  border-radius: 10px;
  margin: 8px 0;
  color: #4d5a45;
  font-size: 0.86rem;
  line-height: 1.45;
}
.job-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.job-image-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e4e8df;
}
.job-image-preview span {
  background: #eef2f7;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.75rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}
@media (max-width: 430px) {
  .jobs-filter,
  .jobs-form-grid {
    grid-template-columns: 1fr;
  }
  .jobs-tab {
    min-height: 58px;
    padding: 10px 6px;
    font-size: clamp(16px, 4.6vw, 19px);
    letter-spacing: 0;
  }
  .job-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }
  .job-card-thumb {
    width: 74px;
    height: 74px;
  }
}

.group-buy-page,
.group-buy-detail-page,
.group-buy-create-page {
  background: #f7f8f6;
  padding-bottom: 34px;
}
.group-buy-hero,
.gb-create-notice {
  margin-bottom: 14px;
  padding: 18px 16px;
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.group-buy-hero h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 900;
  color: #2f2818;
}
.group-buy-hero p,
.gb-create-notice span {
  margin: 0;
  color: #635f55;
  font-size: 0.9rem;
  line-height: 1.55;
}
.gb-create-notice {
  display: grid;
  gap: 5px;
}
.gb-create-notice strong {
  color: #7c520d;
}
.group-buy-filter-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.group-buy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.group-buy-card {
  width: 100%;
  padding: 0;
  border: 1px solid #ece6d8;
  border-radius: 14px;
  background: #fff;
  color: #2d2a24;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  font-family: 'Noto Sans KR', sans-serif;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
}
.gb-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f5f1e9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a97313;
}
.gb-card-image img,
.gb-detail-images img,
.gb-image-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gb-card-placeholder,
.gb-detail-image-empty {
  width: 100%;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #bf8a2d;
}
.gb-card-body {
  padding: 13px 14px 15px;
  display: grid;
  gap: 7px;
}
.gb-card-body strong {
  color: #24211b;
  font-size: 1rem;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.gb-card-body small,
.gb-detail-meta {
  color: #6d675d;
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.gb-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.gb-card-badges span,
.gb-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff3dc;
  color: #8c5d10;
  font-size: 0.74rem;
  font-weight: 800;
}
.gb-card-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}
.gb-card-price span,
.gb-detail-price span {
  color: #8d887d;
  text-decoration: line-through;
  font-size: 0.84rem;
}
.gb-card-price em,
.gb-detail-price strong {
  color: #b05f00;
  font-style: normal;
  font-weight: 900;
  font-size: 1.08rem;
}
.gb-progress {
  display: grid;
  gap: 7px;
}
.gb-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #4d463b;
  font-size: 0.84rem;
  line-height: 1.35;
}
.gb-progress-head strong {
  color: #6f4a0a;
  font-size: 0.9rem;
}
.gb-progress-head span {
  text-align: right;
  overflow-wrap: anywhere;
}
.gb-progress-bar {
  height: 9px;
  border-radius: 999px;
  background: #f0e4cf;
  overflow: hidden;
}
.gb-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d58a25, #2f9b62);
}
.gb-progress--compact {
  margin-top: 4px;
}
.gb-progress--compact .gb-progress-head {
  font-size: 0.78rem;
}
.gb-progress--compact .gb-progress-bar {
  height: 7px;
}
.group-buy-more {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border: 1px solid #e5d7bf;
  border-radius: 12px;
  background: #fff;
  color: #7c520d;
  font-weight: 800;
}
.gb-contact-box {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #e9dfca;
  border-radius: 14px;
  background: #fff;
}
.gb-owner-head {
  display: grid;
  gap: 11px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid #e9dfca;
  border-radius: 14px;
  background: #fff;
}
.gb-owner-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.gb-owner-head h3 {
  margin: 0;
  font-size: 1rem;
}
.gb-owner-head p {
  margin: 0;
  color: #6d675d;
  font-size: 0.82rem;
  line-height: 1.45;
}
.gb-owner-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.gb-owner-action-btn {
  width: 100%;
  min-height: 46px;
  padding: 0 10px;
  border: 1px solid #dccfb7;
  border-radius: 12px;
  background: #fffaf0;
  color: #6f4a0a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(95, 71, 30, 0.07);
}
.gb-owner-action-btn i {
  width: 1em;
  font-size: 0.92rem;
  text-align: center;
  flex: 0 0 auto;
}
.gb-owner-action-btn span {
  min-width: 0;
}
.gb-owner-action-btn--primary {
  border-color: #c58a2f;
  background: #b06b16;
  color: #fff;
  box-shadow: 0 6px 14px rgba(176, 107, 22, 0.18);
}
.gb-owner-action-btn:focus-visible {
  outline: 3px solid rgba(176, 107, 22, 0.2);
  outline-offset: 2px;
}
.gb-owner-list {
  display: grid;
  gap: 9px;
}
.gb-owner-empty {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px dashed #e4d5bc;
  border-radius: 14px;
  background: #fffaf3;
  color: #7c684a;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}
.gb-owner-empty i {
  color: #b06b16;
  font-size: 1rem;
}
.gb-owner-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 11px;
  padding: 12px;
  border: 1px solid #ece6d8;
  border-radius: 14px;
  background: #fff;
}
.gb-owner-thumb {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  background: #f5f1e9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a97313;
}
.gb-owner-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gb-owner-title-row {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  justify-content: space-between;
}
.gb-owner-title-row strong {
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.gb-owner-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #6d675d;
  font-size: 0.8rem;
}
.gb-owner-card-actions {
  margin-top: 10px;
}
.gb-mini-action {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #e0c9a1;
  border-radius: 10px;
  background: #fffaf0;
  color: #7c520d;
  font-weight: 900;
  font-size: 0.8rem;
}
.gb-comments-section {
  display: grid;
  gap: 12px;
}
.gb-comments-guide {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}
.gb-comments-list {
  display: grid;
  gap: 10px;
}
.gb-comment-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.gb-comment-card.is-hidden {
  background: #f8fafc;
  color: #64748b;
}
.gb-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.gb-comment-head strong {
  color: #0f172a;
}
.gb-comment-head span {
  color: #64748b;
}
.gb-comment-card p {
  margin: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.gb-comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.gb-comment-form {
  display: grid;
  gap: 8px;
}
.gb-comment-form label {
  font-weight: 800;
  color: #1f2937;
}
.gb-comment-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 1px solid #d7dde5;
  border-radius: 12px;
  font: inherit;
  resize: vertical;
}
.gb-comment-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.gb-status-pending { background: #fff3dc; color: #8c5d10; }
.gb-status-approved { background: #e7f7df; color: #28710a; }
.gb-status-rejected { background: #ffe8e8; color: #b42318; }
.gb-status-hidden { background: #eceff3; color: #475467; }
.gb-detail-images {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(82%, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.gb-detail-images img,
.gb-detail-image-empty {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: #f5f1e9;
  scroll-snap-align: start;
}
.gb-detail-main,
.gb-detail-info,
.gb-detail-section {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #ece6d8;
  border-radius: 14px;
  background: #fff;
}
.gb-detail-main h2 {
  margin: 10px 0 8px;
  font-size: 1.22rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.gb-business-link {
  border: 0;
  background: transparent;
  color: #7c520d;
  font-weight: 800;
  padding: 0;
  text-align: left;
}
.gb-detail-price {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.gb-detail-info {
  display: grid;
  gap: 9px;
}
.gb-detail-info div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
}
.gb-detail-info span,
.gb-contact-box span {
  color: #7a7368;
  font-size: 0.82rem;
}
.gb-detail-info strong,
.gb-contact-box strong {
  color: #2b271f;
  overflow-wrap: anywhere;
}
.gb-detail-section h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.gb-detail-section p {
  margin: 0;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.gb-participation-section {
  display: grid;
  gap: 12px;
}
.gb-participation-guide,
.gb-participation-message,
.gb-participation-loading,
.gb-participation-current {
  margin: 0;
  color: #6d675d;
  font-size: 0.86rem;
  line-height: 1.5;
}
.gb-participation-message,
.gb-participation-loading {
  padding: 12px;
  border-radius: 12px;
  background: #f8f3ea;
}
.gb-participation-message.error {
  background: #fff0f0;
  color: #b42318;
}
.gb-participation-form {
  display: grid;
  gap: 9px;
}
.gb-participation-form label {
  color: #4d463b;
  font-weight: 900;
  font-size: 0.9rem;
}
.gb-participation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
  gap: 8px;
}
.gb-participation-row input {
  min-width: 0;
  height: 44px;
  border: 1px solid #e1d3bd;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 1rem;
}
.gb-participation-cancel {
  min-height: 42px;
  border: 1px solid #ffd1d1;
  border-radius: 12px;
  background: #fff6f6;
  color: #b42318;
  font-weight: 900;
}
.gb-participants-list {
  display: grid;
  gap: 10px;
}
.gb-participant-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #ece6d8;
  border-radius: 14px;
  background: #fff;
}
.gb-participant-card.is-cancelled {
  opacity: 0.72;
}
.gb-participant-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.gb-participant-card span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #e7f7df;
  color: #28710a;
  font-size: 0.74rem;
  font-weight: 900;
}
.gb-participant-card.is-cancelled span {
  background: #eceff3;
  color: #475467;
}
.gb-participant-card p,
.gb-participant-card small {
  margin: 0;
  color: #6d675d;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}
.gb-contact-box {
  margin: 0;
}
.gb-create-form {
  display: grid;
  gap: 12px;
}
.gb-file-picker {
  min-height: 50px;
  border: 1px dashed #d0b887;
  border-radius: 12px;
  background: #fffaf0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.gb-file-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.gb-file-picker span {
  color: #7c520d;
  font-weight: 900;
}
.gb-image-preview-list {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.gb-image-empty {
  grid-column: 1 / -1;
  padding: 12px;
  border-radius: 12px;
  background: #f7f3eb;
  color: #756f64;
  text-align: center;
  font-size: 0.85rem;
}
.gb-image-preview-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f1ede5;
}
.gb-image-preview-card span {
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0,0,0,0.58);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}
.gb-image-preview-card button {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.62);
  color: #fff;
}
.gb-create-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 360px) {
  .gb-owner-head,
  .gb-contact-box {
    align-items: stretch;
    flex-direction: column;
  }
  .gb-owner-actions,
  .gb-contact-box .btn-primary {
    width: 100%;
  }
  .gb-owner-actions > *,
  .gb-contact-box .btn-primary {
    justify-content: center;
  }
  .gb-detail-info div {
    grid-template-columns: 76px 1fr;
  }
  .gb-participation-row {
    grid-template-columns: 1fr;
  }
  .gb-progress-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .gb-progress-head span {
    text-align: left;
  }
}

.business-product-page {
  background: #f7f8f6;
}
.business-product-hero {
  margin-bottom: 12px;
  padding: 18px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(245,166,35,0.22);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.business-product-hero h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 900;
}
.business-product-hero p {
  margin: 0 0 12px;
  color: #626b5d;
  font-size: 0.9rem;
}
.bp-filter-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.bp-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bp-chip-row::-webkit-scrollbar { display: none; }
.bp-chip {
  flex: 0 0 auto;
  border: 1px solid #e5e8df;
  background: #fff;
  color: #5c6558;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
}
.bp-chip.active {
  border-color: #e67e22;
  background: #fff3e8;
  color: #b85c0a;
}
.business-product-owner-panel {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ecefe8;
}
.business-product-owner-panel h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.bp-owner-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.bp-owner-panel-head h3 {
  margin-bottom: 4px;
}
.bp-owner-panel-head p {
  margin: 0;
  color: #6c7468;
  font-size: 0.82rem;
  line-height: 1.45;
}
.bp-owner-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bp-owner-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0 0;
  border-top: 1px solid #f0f1ec;
}
.bp-owner-thumb {
  width: 72px;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4ef;
  color: #9ca598;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bp-owner-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bp-owner-main {
  min-width: 0;
}
.bp-owner-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.bp-owner-title-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bp-status-pill {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef1ea;
  color: #596254;
  font-size: 0.72rem;
  font-weight: 900;
}
.bp-status-approved { background: #e8f6ec; color: #23643a; }
.bp-status-pending { background: #fff4dc; color: #936009; }
.bp-status-rejected { background: #fff0f0; color: #b02a2a; }
.bp-status-hidden { background: #eef0f3; color: #59606a; }
.bp-owner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 6px 0;
  color: #747d70;
  font-size: 0.78rem;
}
.bp-rejection-note {
  margin: 8px 0;
  padding: 8px;
  border-radius: 10px;
  background: #fff8e8;
  color: #65480c;
  font-size: 0.8rem;
  line-height: 1.45;
}
.bp-rejection-note strong {
  display: block;
  margin-bottom: 3px;
}
.bp-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.bp-owner-btn,
.bp-sale-select {
  min-height: 36px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.8rem;
}
.bp-owner-btn {
  border: 0;
  background: #2f6f3e;
  color: #fff;
  padding: 8px 10px;
}
.bp-owner-btn-secondary {
  background: #eef2ed;
  color: #37423a;
}
.bp-sale-select {
  min-width: 104px;
  border: 1px solid #dfe5dc;
  background: #fff;
  padding: 0 8px;
}
.bp-owner-note {
  display: block;
  width: 100%;
  color: #7b6750;
  font-size: 0.8rem;
  line-height: 1.45;
}
.bp-owner-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px solid #f0f1ec;
}
.bp-owner-row small {
  color: #747d70;
}
.business-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .business-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.business-product-card {
  border: 1px solid #ecefe8;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  text-align: left;
  font-family: 'Noto Sans KR', sans-serif;
}
.bp-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f3f4ef;
  overflow: hidden;
}
.bp-card-image img,
.bp-detail-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bp-card-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5a7;
  font-size: 2rem;
}
.bp-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
}
.bp-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bp-card-badges span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff3e8;
  color: #b85c0a;
  font-size: 0.72rem;
  font-weight: 800;
}
.bp-card-price {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.bp-regular {
  color: #8a9184;
  text-decoration: line-through;
  font-size: 0.82rem;
}
.bp-member {
  color: #d35400;
}
.business-product-detail .bp-detail-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.business-product-detail .bp-detail-images img {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}
.bp-detail-business {
  color: #5f6759;
  font-weight: 800;
}
.join-required-mini {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f7f8f6;
  color: #596254;
  line-height: 1.55;
}
.bp-method-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.product-purchase-method {
  position: relative;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid #d7dde5;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  color: #2f352e;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.product-purchase-method:last-child {
  grid-column: 1 / -1;
}
.product-purchase-method input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.product-purchase-method__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-purchase-method__check {
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 999px;
  background: #2f6f3e;
  color: #fff;
  font-size: 0.78rem;
  line-height: 1;
}
.product-purchase-method.is-selected,
.product-purchase-method:has(input:checked) {
  border-color: #2f6f3e;
  background: #eef8ef;
  box-shadow: 0 0 0 1px rgba(47, 111, 62, 0.08);
}
.product-purchase-method.is-selected .product-purchase-method__check,
.product-purchase-method:has(input:checked) .product-purchase-method__check {
  display: inline-flex;
}
.product-purchase-method:focus-within {
  outline: 3px solid rgba(47, 111, 62, 0.2);
  outline-offset: 2px;
}
.bp-method-checks.has-error .product-purchase-method {
  border-color: #e05252;
  background: #fff8f8;
}
.bp-method-error-text {
  display: none;
  margin: 7px 0 0;
  color: #c92a2a;
  font-size: 0.82rem;
  font-weight: 700;
}
.bp-method-checks.has-error + .bp-method-error-text {
  display: block;
}
.bp-submit-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #333;
}
.bp-reapproval-alert,
.bp-readonly-business {
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.bp-reapproval-alert {
  background: #fff7e8;
  border: 1px solid #f2d49b;
  color: #725017;
}
.bp-readonly-business {
  background: #f7f8f6;
  border: 1px solid #e6eae2;
}
.bp-readonly-business span {
  display: block;
  color: #6d7669;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 3px;
}
.bp-readonly-business strong {
  display: block;
  color: #273226;
}
.bp-image-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bp-image-help {
  margin: 0 0 8px;
  color: #6d7669;
  font-size: 0.8rem;
  line-height: 1.45;
}
.bp-edit-image-slot {
  padding: 10px;
  border: 1px solid #e7ebe4;
  border-radius: 12px;
  background: #fff;
}
.bp-image-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.bp-image-actions button {
  min-height: 34px;
  border: 1px solid #dfe5dc;
  border-radius: 9px;
  background: #f8faf7;
  color: #364238;
  font-size: 0.78rem;
  font-weight: 800;
}
.bp-image-actions button:disabled {
  opacity: 0.45;
}
@media (max-width: 360px) {
  .bp-owner-card {
    grid-template-columns: 60px minmax(0, 1fr);
  }
  .bp-owner-thumb {
    width: 60px;
  }
  .bp-owner-actions {
    align-items: stretch;
  }
  .bp-owner-btn,
  .bp-sale-select {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* ── 필터 바 ── */
.mkt-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 0;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 58px;
  z-index: 9;
}
.mkt-search-wrap {
  position: relative;
}
.mkt-search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 0.85rem;
}
.mkt-search-input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 0.85rem;
  background: #f8f8f8;
  outline: none;
  box-sizing: border-box;
}
.mkt-search-input:focus { border-color: #e67e22; background: #fff; }

.mkt-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.mkt-tabs::-webkit-scrollbar { display: none; }
.mkt-tab {
  flex: 0 0 auto;
  min-width: 74px;
  padding: 7px 4px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  background: #f5f5f5;
  color: #666;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all .15s;
}
.mkt-tab.active {
  border-color: #e67e22;
  background: #e67e22;
  color: #fff;
}
.mkt-my-btn,
.mkt-member-guide {
  width: 100%;
  margin: 8px 0 12px;
}
.mkt-my-btn {
  min-height: 46px;
  border: 1px solid #d7e6cf;
  border-radius: 12px;
  background: #fff;
  color: #33512a;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.mkt-member-guide {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid #e4ecdc;
  background: #f8faf5;
  color: #5f6b58;
  font-size: 0.84rem;
  line-height: 1.45;
}
.mkt-room-fixed {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: #f4f8ef;
  border: 1px solid #dfead5;
}
.mkt-room-fixed i {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #5BBB2F;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mkt-room-fixed strong { font-weight: 900; color: #30442a; }
.mkt-room-fixed span { color: #66705d; font-size: 0.8rem; }
.mkt-type-row--wrap { flex-wrap: wrap; }
.mkt-type-row--wrap .mkt-type-card {
  flex: 1 1 30%;
  min-width: 92px;
}

.mkt-status-row {
  display: flex;
  gap: 5px;
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mkt-status-row::-webkit-scrollbar { display: none; }
.mkt-status-btn {
  white-space: nowrap;
  padding: 4px 12px;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  background: #fff;
  color: #666;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.mkt-status-btn.active {
  border-color: #e67e22;
  background: #fff5eb;
  color: #c05800;
}

/* ── 등록 버튼 ── */
.mkt-add-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  width: calc(100% - 32px);
  margin: 12px 16px 4px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #e67e22, #c05800);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(230,126,34,.3);
}
.mkt-add-btn i { font-size: 1rem; }

/* ── 카드 그리드 ── */
.mkt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px 16px;
}
@media (min-width: 480px) {
  .mkt-grid { grid-template-columns: repeat(2, 1fr); }
}

.mkt-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
}
.mkt-card:active { transform: scale(.97); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

.mkt-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #f3f3f3;
  display: block;
}
.mkt-card-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg,#f3f3f3,#e8e8e8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 2rem;
}

.mkt-card-body {
  padding: 9px 10px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mkt-card-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

/* 유형 배지 */
.mkt-badge-type {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}
.mkt-badge-giveaway { background: #e8f5e0; color: #2d7a0e; }
.mkt-badge-sale     { background: #fff0e0; color: #c05800; }
.mkt-badge-wanted   { background: #e8f1ff; color: #245ca8; }
.mkt-badge-lending  { background: #e2f7f2; color: #0b7661; }
.mkt-badge-talent   { background: #f1e8fb; color: #6d3190; }
.mkt-badge-warm_review { background: #ffe8ec; color: #b42332; }

/* 상태 배지 */
.mkt-badge-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}
.mkt-badge-available  { background: #e3f2fd; color: #1565c0; }
.mkt-badge-reserved   { background: #fff9c4; color: #8a6500; }
.mkt-badge-completed  { background: #eeeeee; color: #757575; }

.mkt-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
.mkt-card-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: #c05800;
}
.mkt-card-price.free { color: #2d7a0e; }
.mkt-card-meta {
  font-size: 0.72rem;
  color: #888;
  margin-top: auto;
}

/* 완료 카드 흐리게 */
.mkt-card.completed { opacity: .65; }

/* ── 상세 모달 ── */
.mkt-detail-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
  display: block;
}
.mkt-detail-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg,#f3f3f3,#e8e8e8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 3rem;
  margin-bottom: 14px;
}
.mkt-detail-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.mkt-detail-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.mkt-detail-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #c05800;
  margin-bottom: 12px;
}
.mkt-detail-price.free { color: #2d7a0e; }

.mkt-info-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.85rem;
}
.mkt-info-row:last-child { border-bottom: none; }
.mkt-info-label {
  color: #888;
  min-width: 54px;
  flex-shrink: 0;
  font-size: 0.78rem;
  padding-top: 1px;
}
.mkt-info-value {
  color: #1a1a1a;
  flex: 1;
  word-break: break-all;
  white-space: pre-wrap;
}
.mkt-info-value a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}
.mkt-detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.mkt-status-change-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.mkt-status-select {
  flex: 1;
  min-width: 120px;
  padding: 8px 10px;
  border: 1.5px solid #ddd;
  border-radius: 9px;
  font-size: 0.85rem;
  background: #f8f8f8;
}

/* ── 등록/수정 폼 ── */
.mkt-notice {
  background: #fff8f0;
  border: 1px solid #f5c07a;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.75rem;
  color: #7a5c20;
  line-height: 1.6;
  margin-top: 10px;
}

/* ── 빈 상태 ── */
.mkt-empty {
  text-align: center;
  padding: 48px 16px;
  color: #aaa;
}
.mkt-empty i { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.mkt-empty p { font-size: 0.9rem; }

/* ── 더보기 ── */
.mkt-more-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 4px 16px 20px;
  padding: 11px;
  border: 1.5px solid #e67e22;
  border-radius: 10px;
  background: #fff;
  color: #c05800;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

/* 다크모드 차단 유지 */
@media (prefers-color-scheme: dark) {
  .mkt-card, .mkt-filter-bar,
  .mkt-tab, .mkt-status-btn,
  .mkt-search-input, .mkt-status-select {
    color-scheme: light !important;
  }
}

/* ── 거래유형 카드형 선택 UI ── */
.mkt-type-row {
  display: flex;
  gap: 10px;
}

/* 실제 radio input 숨기기 (접근성 유지) */
.mkt-type-row input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* 카드형 label */
.mkt-type-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: #f8f8f8;
  color: #666;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
  -webkit-user-select: none;
  min-height: 44px;
  box-sizing: border-box;
  line-height: 1.2;
}

/* 카드 앞 원형 인디케이터 */
.mkt-type-card::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  border: 2px solid #bbb;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s;
}

/* 선택 시 나눔 카드 강조 */
.mkt-type-row input[value="giveaway"]:checked + .mkt-type-card {
  border-color: #2d7a0e;
  background: #f0fae8;
  color: #2d7a0e;
}
.mkt-type-row input[value="giveaway"]:checked + .mkt-type-card::before {
  border-color: #2d7a0e;
  background: #2d7a0e;
  box-shadow: inset 0 0 0 3px #fff;
}

/* 선택 시 중고거래 카드 강조 */
.mkt-type-row input[value="sale"]:checked + .mkt-type-card {
  border-color: #c05800;
  background: #fff5ec;
  color: #c05800;
}
.mkt-type-row input[value="sale"]:checked + .mkt-type-card::before {
  border-color: #c05800;
  background: #c05800;
  box-shadow: inset 0 0 0 3px #fff;
}

/* 포커스 접근성 */
.mkt-type-row input[type="radio"]:focus-visible + .mkt-type-card {
  outline: 2px solid #e67e22;
  outline-offset: 2px;
}

/* ════════════════════════════════════════════════════
   관리자 운영 대시보드
════════════════════════════════════════════════════ */

/* 요약 카드 그리드 — stat-card 기존 클래스 확장 */
.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.dash-stat-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 14px 8px 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  border: 1.5px solid transparent;
}
.dash-stat-card.today   { border-color: #ffe082; background: #fffde7; }
.dash-stat-card.warning { border-color: #ffb3b3; background: #fff5f5; }
.dash-stat-card.active  { border-color: #b2dfdb; background: #f0faf8; }
.dash-stat-card.associate { border-color: #bdd7f2; background: #f1f7fd; }
.dash-stat-card.event { border-color: #f3c4ab; background: #fff7f1; }
.dash-stat-icon {
  display:block;
  margin-bottom:6px;
  color:#91a09a;
  font-size:.92rem;
}
.dash-stat-num {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--green-dark);
  line-height: 1.1;
}
.dash-stat-card.today   .dash-stat-num { color: #b8860b; }
.dash-stat-card.warning .dash-stat-num { color: #c0392b; }
.dash-stat-card.active  .dash-stat-num { color: #1b6b4f; }
.dash-stat-card.associate .dash-stat-num { color: #2d6fac; }
.dash-stat-card.event .dash-stat-num { color: #c86632; }
.dash-stat-label {
  font-size: 0.75rem;
  color: #888;
  margin-top: 4px;
  line-height: 1.3;
}

/* 빠른 이동 그리드: PC 4열 기본, 모바일 3열 */
.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.dash-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  background: #fff;
  border: 2px solid #eee;
  border-radius: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #444;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.dash-quick-btn i {
  font-size: 1.35rem;
  color: var(--green-main);
}
.dash-quick-btn:hover,
.dash-quick-btn:active {
  border-color: var(--green-main);
  background: var(--green-light);
  transform: translateY(-2px);
}

/* 최근 등록 리스트 */
.dash-recent-section {
  margin-bottom: 16px;
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #efefef;
  overflow: hidden;
}
.dash-recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  background: #f7f9f7;
  border-bottom: 1px solid #efefef;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-dark);
}
.dash-recent-header i { margin-right: 6px; }
.dash-recent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid #f4f4f4;
  font-size: 0.84rem;
  color: #333;
}
.dash-recent-row:last-child { border-bottom: none; }
.dash-recent-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.dash-recent-meta {
  font-size: 0.76rem;
  color: #aaa;
  white-space: nowrap;
  flex-shrink: 0;
}
.dash-recent-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.dash-badge-active   { background: #e3f5e9; color: #1a7a40; }
.dash-badge-inactive { background: #ffeaea; color: #b02020; }
.dash-badge-important { background: #fff0d0; color: #b06000; }
.dash-badge-giveaway  { background: #e8f5e0; color: #2d7a0e; }
.dash-badge-sale      { background: #fff0e0; color: #c05800; }
.dash-badge-wanted    { background: #e8f0ff; color: #315f9b; }
.dash-badge-lending   { background: #f0e9ff; color: #6b46a3; }
.dash-badge-talent    { background: #e6f7f4; color: #167565; }
.dash-badge-review    { background: #fff1f4; color: #ae4e68; }
.dash-badge-neutral   { background: #f0f1f2; color: #626970; }
.dash-badge-event     { background: #fff0e7; color: #bd5e2e; }
.dash-badge-avail     { background: #e3f2fd; color: #1565c0; }
.dash-badge-reserved  { background: #fff9c4; color: #8a6500; }
.dash-badge-done      { background: #eee;    color: #777; }
.dash-empty-row {
  padding: 14px;
  text-align: center;
  font-size: 0.84rem;
  color: #bbb;
}

/* 후원정보 상태 배지 */
.dash-donation-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}
.dash-donation-on  { background: #e3f5e9; color: #1a7a40; }
.dash-donation-off { background: #ffeaea; color: #b02020; }

/* 관리자 반응형: 모바일 3열 (3×3×3×...×마지막) */
@media (max-width: 767px) {
  .dash-quick-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .dash-quick-btn  { font-size: 0.78rem; padding: 13px 5px; }
  .dash-quick-btn i { font-size: 1.25rem; }
  /* 마지막 버튼이 3n+1 위치(새 행 시작)이면 단독 wide 표시 */
  .dash-quick-btn:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
  }
}
@media (max-width: 400px) {
  .dash-stat-grid  { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .dash-quick-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .dash-quick-btn  { font-size: 0.72rem; padding: 11px 4px; }
  .dash-quick-btn i { font-size: 1.1rem; }
}

/* ══════════════════════════════════════
   활동기록 페이지
══════════════════════════════════════ */
.actlog-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  align-items: center;
}
.actlog-filter-bar input,
.actlog-filter-bar select {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  outline: none;
}
.actlog-filter-bar input:focus,
.actlog-filter-bar select:focus {
  border-color: var(--green-dark);
}
.actlog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 600px;
}
.actlog-table th {
  background: #f9fafb;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
}
.actlog-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.actlog-table tr:hover td { background: #f9fafb; }
.actlog-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.actlog-badge.create        { background: #d1fae5; color: #065f46; }
.actlog-badge.update        { background: #dbeafe; color: #1e40af; }
.actlog-badge.delete        { background: #fee2e2; color: #991b1b; }
.actlog-badge.deactivate    { background: #fef3c7; color: #92400e; }
.actlog-badge.role_change   { background: #ede9fe; color: #5b21b6; }
.actlog-badge.pin_reset     { background: #fce7f3; color: #9d174d; }
.actlog-badge.status_change { background: #e0f2fe; color: #075985; }
.actlog-pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}
.actlog-pagination-btn {
  padding: 4px 11px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
  font-size: 13px;
  color: #374151;
  transition: background 0.15s;
}
.actlog-pagination-btn:hover { background: #f3f4f6; }
.actlog-pagination-btn.active {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}

/* ══════════════════════════════════════
   자료 다운로드 페이지
══════════════════════════════════════ */
.dl-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #1e40af;
  margin-bottom: 18px;
  line-height: 1.5;
}
.dl-notice i { font-size: 1.1rem; margin-top: 1px; flex-shrink: 0; }
.dl-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dl-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.15s;
}
.dl-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.dl-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-light, #e8f5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--green-dark);
}
.dl-card-body { flex: 1; min-width: 0; }
.dl-card-label {
  font-weight: 700;
  font-size: 14px;
  color: #111827;
  margin-bottom: 2px;
}
.dl-card-desc {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 2px;
}
.dl-card-filename {
  font-size: 11px;
  color: #9ca3af;
  font-family: monospace;
}
.dl-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.dl-btn:hover   { background: #1b5e20; }
.dl-btn:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 480px) {
  .dl-card { flex-wrap: wrap; }
  .dl-btn  { width: 100%; text-align: center; }
  .actlog-filter-bar input,
  .actlog-filter-bar select { font-size: 12px; padding: 5px 8px; }
}

/* ══════════════════════════════════════
   행사 참석 신청 (attendance)
══════════════════════════════════════ */
/* attendance-section은 modal-body 안에 포함되어 일반 흐름(normal flow)으로 배치됨.
   position: fixed/absolute/sticky 사용 금지. z-index 부여 금지. */
.attendance-section {
  border-top: 2px solid #e5e7eb;
  margin-top: 20px;
  padding: 0;
  /* flex/grid 맥락에서도 자체 높이가 정확히 반영되도록 명시 */
  display: block;
  width: 100%;
  box-sizing: border-box;
}
.att-section-inner {
  padding: 16px 0 4px;
  background: transparent;
  border-radius: 0;
}
.att-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #374151;
  margin: 0 0 12px 0;
}
.att-section-title i { margin-right: 6px; color: var(--green-dark); }

/* 버튼 3개 */
.att-btn-group {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.att-btn {
  flex: 1;
  padding: 9px 4px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #374151;
}
.att-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.10); }
.att-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* 개별 색상 */
.att-btn-attending     { border-color: #10b981; color: #065f46; }
.att-btn-not-attending { border-color: #ef4444; color: #991b1b; }
.att-btn-maybe         { border-color: #f59e0b; color: #92400e; }

/* 선택된(활성) 상태 */
.att-btn-attending.att-active     { background: #d1fae5; border-width: 2.5px; }
.att-btn-not-attending.att-active { background: #fee2e2; border-width: 2.5px; }
.att-btn-maybe.att-active         { background: #fef3c7; border-width: 2.5px; }

/* 내 선택 텍스트 */
.att-status-row { margin-bottom: 10px; }
.att-my-status {
  font-size: 13px;
  color: #374151;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.att-my-status strong { color: var(--green-dark); }
.att-my-status.att-none { color: #9ca3af; font-style: italic; }

/* 집계 (권한자용) */
.att-counts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-top: 6px;
}
.att-count {
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.att-count.attending     { color: #065f46; }
.att-count.not-attending { color: #991b1b; }
.att-count.maybe         { color: #92400e; }

.att-list-btn {
  margin-left: auto;
  padding: 5px 13px;
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s;
}
.att-list-btn:hover { background: #1b5e20; }

/* 명단 모달 집계 바 */
.att-list-counts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

/* 명단 그룹 헤더 */
.att-group-header td { padding: 8px 10px; background: #f3f4f6; }
.att-group-td { font-weight: 700; }

@media (max-width: 480px) {
  .att-btn-group { gap: 5px; }
  .att-btn { font-size: 12px; padding: 8px 2px; }
  .att-counts { gap: 7px; }
  .att-list-btn { margin-left: 0; width: 100%; justify-content: center; margin-top: 4px; }
}

/* ══════════════════════════════════════════════════
   후원업체 배너 광고
══════════════════════════════════════════════════ */
@keyframes adShimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes adGoldPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.18), 0 2px 10px rgba(0,0,0,0.07); }
  50%     { box-shadow: 0 0 0 3px rgba(212,175,55,0.13), 0 4px 16px rgba(212,175,55,0.15); }
}

.ad-banner-wrap {
  padding: 10px 14px 2px;
}

.ad-banner-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #d4af37;
  border-radius: 13px;
  padding: 10px 13px;
  overflow: hidden;
  animation: adGoldPulse 3s ease-in-out infinite;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* 텍스트 영역 링크 — a(link_url 있음) 또는 div(없음) */
.ad-banner-body-link {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.ad-banner-body-link:hover .ad-banner-title { color: #b8860b; }
div.ad-banner-body-link { cursor: default; }  /* link_url 없을 때 */

/* 상단 shimmer 라인 */
.ad-banner-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212,175,55,0.5) 40%,
    rgba(255,220,100,0.9) 50%,
    rgba(212,175,55,0.5) 60%,
    transparent 100%
  );
  background-size: 400px 2px;
  animation: adShimmer 2.6s linear infinite;
}

/* 전체 오버레이 shimmer */
.ad-banner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,245,190,0.18) 50%,
    transparent 70%
  );
  background-size: 400px 100%;
  animation: adShimmer 3.5s linear infinite;
  pointer-events: none;
  border-radius: 13px;
}

/* .ad-banner-body — 하위 호환 유지 */
.ad-banner-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.ad-banner-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #b8860b;
  background: linear-gradient(135deg, #fef9e7, #fdf3c0);
  border: 1px solid rgba(212,175,55,0.45);
  border-radius: 5px;
  padding: 1px 6px;
  letter-spacing: 0.03em;
  align-self: flex-start;
  white-space: nowrap;
}

/* link_url 있을 때 — CTA 버튼 스타일 */
.ad-banner-label--cta {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: linear-gradient(135deg, #d4af37, #f0c040);
  border: 1.5px solid #b8960c;
  color: #3d2800;
  box-shadow: 0 1px 4px rgba(180,140,0,0.18);
  cursor: pointer;
  transition: filter 0.15s, transform 0.12s;
  min-height: 28px;
  letter-spacing: 0.01em;
}
a.ad-banner-body-link:hover .ad-banner-label--cta,
a.ad-banner-body-link:focus .ad-banner-label--cta {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
a.ad-banner-body-link:active .ad-banner-label--cta {
  filter: brightness(0.96);
  transform: translateY(0);
}
.ad-banner-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}
.ad-banner-desc {
  font-size: 0.78rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
/* .ad-banner-visit 제거됨 — CTA 기능이 .ad-banner-label--cta로 통합됨 */

/* 이미지 영역 (오른쪽) — 이미지 있을 때만 렌더링됨, 클릭 시 확대 */
.ad-banner-img-wrap {
  flex-shrink: 0;
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(212,175,55,0.35);
  background: linear-gradient(135deg, #fef9e7, #fdf3c8);
  cursor: zoom-in;
}
.ad-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: transform 0.2s ease;
}
.ad-banner-img-wrap:hover .ad-banner-img { transform: scale(1.06); }

/* 이미지 위 확대 힌트 배지 */
.ad-banner-zoom-hint {
  position: absolute;
  bottom: 4px; right: 4px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.65rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}
.ad-banner-img-wrap:hover .ad-banner-zoom-hint { opacity: 1; }

/* 광고 이미지 확대 모달 */
.ad-img-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ad-img-zoom-box {
  position: relative;
  max-width: min(90vw, 640px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-img-zoom-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.ad-img-zoom-close {
  position: absolute;
  top: -44px; right: 0;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.ad-img-zoom-close:hover { background: rgba(255,255,255,0.28); }

/* 광고 관리 페이지 */
.adm-ad-card {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 13px;
  padding: 14px;
  margin-bottom: 12px;
}
.adm-ad-card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.adm-ad-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #eee;
}
.adm-ad-thumb-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  font-size: 1.3rem;
}
.adm-ad-info { flex: 1; min-width: 0; }
.adm-ad-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a1a;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-ad-meta {
  font-size: 0.78rem;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.adm-ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
}
.adm-ad-badge.active   { background: #d1fae5; color: #065f46; }
.adm-ad-badge.inactive { background: #f3f4f6; color: #9ca3af; }
.adm-ad-badge.clicks   { background: #eff6ff; color: #1d4ed8; }
.adm-ad-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: flex-end;
}
.adm-ad-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid;
  transition: background 0.15s;
}
.adm-ad-btn.edit   { background: #f0fdf4; border-color: #86efac; color: #166534; }
.adm-ad-btn.del    { background: #fff0f0; border-color: #fca5a5; color: #b91c1c; }
.adm-ad-btn:hover  { opacity: 0.85; }

@media (max-width: 480px) {
  .ad-banner-card { gap: 10px; padding: 9px 11px; }
  .ad-banner-img-wrap { width: 64px; height: 64px; }
  .ad-banner-title { font-size: 0.85rem; }
  .ad-banner-desc  { font-size: 0.74rem; }
}

/* ═══════════════════════════════════════════════
   4차-C-16: 회비 기준 관리 (payment-rates)
   ═══════════════════════════════════════════════ */

.pr-info-box {
  background: #f0f7f0;
  border: 1.5px solid #b2dfb2;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #2d5a2d;
  margin-bottom: 16px;
  line-height: 1.6;
}
.pr-add-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pr-add-btn:hover { opacity: 0.88; }

.pr-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1.5px solid #e0e0e0;
  margin-bottom: 8px;
}
.pr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.pr-table thead tr {
  background: #f4f8f4;
}
.pr-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  color: #444;
  border-bottom: 1.5px solid #e0e0e0;
  white-space: nowrap;
}
.pr-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.pr-table tbody tr:last-child td { border-bottom: none; }
.pr-table tbody tr:hover { background: #fafff8; }
.pr-row-unset { opacity: 0.75; }
.pr-row-unset:hover { background: #fffbf0 !important; }

.pr-td-pos   { min-width: 130px; }
.pr-td-amount { text-align: right; white-space: nowrap; }
.pr-td-status { text-align: center; white-space: nowrap; }
.pr-td-actions { text-align: right; white-space: nowrap; }
.pr-td-empty { text-align: center; color: #aaa; padding: 20px; }

.pr-pos-name    { font-weight: 600; color: #222; }
.pr-group-tag   {
  display: inline-block; margin-left: 6px;
  padding: 2px 7px; border-radius: 20px;
  background: #e8f5e9; color: #2d6a4f;
  font-size: 0.75rem; font-weight: 600;
}
.pr-general-tag {
  display: inline-block; margin-left: 6px;
  padding: 2px 7px; border-radius: 20px;
  background: #fff3cd; color: #856404;
  font-size: 0.75rem; font-weight: 700;
}
.pr-unset-label { color: #bbb; font-style: italic; }

.pr-amount-num  { font-weight: 700; font-size: 1rem; color: #1a5a3a; }
.pr-status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 700;
}
.pr-active   { background: #d1fae5; color: #065f46; }
.pr-inactive { background: #f3f4f6; color: #9ca3af; }

.pr-btn-edit, .pr-btn-del, .pr-btn-add {
  padding: 5px 10px; border-radius: 7px; font-size: 0.82rem;
  font-weight: 700; cursor: pointer; border: 1.5px solid;
  transition: opacity 0.15s;
}
.pr-btn-edit { background: #f0fdf4; border-color: #86efac; color: #166534; }
.pr-btn-del  { background: #fff0f0; border-color: #fca5a5; color: #b91c1c; margin-left: 4px; }
.pr-btn-add  { background: #f0f7ff; border-color: #93c5fd; color: #1d4ed8; }
.pr-btn-edit:hover, .pr-btn-del:hover, .pr-btn-add:hover { opacity: 0.8; }

.pr-amount-preview {
  font-size: 0.9rem; color: #2d6a4f; font-weight: 700;
  margin-top: 4px; letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════
   4차-C-16: 회비 관리 (payments)
   ═══════════════════════════════════════════════ */

/* 요약 카드 그리드 */
.py-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 600px) {
  .py-summary-grid { grid-template-columns: repeat(2, 1fr); }
}
.py-sum-card {
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}
.py-sum-card--expected { border-color: #b2dfb2; background: #f0f7f0; }
.py-sum-card--unpaid   { border-color: #fca5a5; background: #fff5f5; }
.py-sum-card--over     { border-color: #fde68a; background: #fffbeb; }
.py-sum-num {
  font-size: 1.1rem; font-weight: 800; color: #1a5a3a;
  line-height: 1.2;
}
.py-sum-unit { font-size: 0.75rem; font-weight: 600; margin-left: 2px; }
.py-sum-label { font-size: 0.78rem; color: #888; margin-top: 4px; font-weight: 600; }

.py-status-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 14px;
}
.py-status-chip {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 700;
}

/* 납부 상태 공통 배지 */
.py-status-badge   { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; }
.py-status-paid    { background: #d1fae5; color: #065f46; }
.py-status-partial { background: #fff3cd; color: #856404; }
.py-status-unpaid  { background: #fee2e2; color: #b91c1c; }
.py-status-overpaid{ background: #ede9fe; color: #5b21b6; }

.py-status-badge-lg {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 4px 0 10px;
}

/* 검색 필터 패널 */
.py-filter-panel {
  background: #f8faf8;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.py-filter-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 6px; align-items: center;
}
.py-filter-row:last-child { margin-bottom: 0; }
.py-filter-input {
  flex: 1; min-width: 80px;
  padding: 8px 10px;
  border: 1.5px solid #ddd;
  border-radius: 9px;
  font-size: 0.88rem;
}
.py-filter-select {
  flex: 1; min-width: 100px;
  padding: 8px 8px;
  border: 1.5px solid #ddd;
  border-radius: 9px;
  font-size: 0.88rem;
  background: #fff;
}
.py-filter-btn {
  padding: 8px 14px;
  background: #2d6a4f; color: #fff;
  border: none; border-radius: 9px;
  font-size: 0.88rem; font-weight: 700; cursor: pointer;
}
.py-filter-reset {
  padding: 8px 10px;
  background: #f3f4f6; color: #666;
  border: 1.5px solid #ddd; border-radius: 9px;
  font-size: 0.88rem; cursor: pointer;
}
.py-filter-tilde { color: #aaa; font-weight: 700; flex-shrink: 0; }

.py-total-count { font-size: 0.9rem; color: #666; font-weight: 700; }

/* 납부 기록 카드 */
.py-record-card {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
  position: relative;
}
.py-record-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.08); border-color: #b2dfb2; }
.py-record-top {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-bottom: 5px;
}
.py-record-name    { font-weight: 800; font-size: 1rem; color: #222; }
.py-record-type-badge {
  display: inline-block; padding: 2px 8px; border-radius: 12px;
  background: #f0f7ff; color: #1d4ed8;
  font-size: 0.75rem; font-weight: 700;
}
.py-record-info {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 0.82rem; color: #888; margin-bottom: 5px;
}
.py-record-meta  { color: #888; }
.py-record-date  { color: #aaa; }
.py-record-amounts {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 5px;
}
.py-amount-paid     { font-weight: 800; font-size: 1.02rem; color: #1a5a3a; }
.py-amount-expected { font-size: 0.82rem; color: #aaa; }
.py-amount-balance  { font-size: 0.82rem; font-weight: 700; padding: 2px 7px; border-radius: 8px; }
.py-balance-neg { background: #fee2e2; color: #b91c1c; }
.py-balance-pos { background: #ede9fe; color: #5b21b6; }

.py-record-actions {
  display: flex; gap: 6px; justify-content: flex-end;
  margin-top: 6px;
}
.py-btn-edit, .py-btn-del {
  padding: 5px 11px; border-radius: 8px;
  font-size: 0.82rem; font-weight: 700; cursor: pointer; border: 1.5px solid;
}
.py-btn-edit { background: #f0fdf4; border-color: #86efac; color: #166534; }
.py-btn-del  { background: #fff0f0; border-color: #fca5a5; color: #b91c1c; }
.py-btn-edit:hover, .py-btn-del:hover { opacity: 0.8; }

/* 납부 모달 내부 */
.py-section-title {
  font-size: 0.9rem; font-weight: 800; color: #2d6a4f;
  margin: 14px 0 8px; padding-bottom: 5px;
  border-bottom: 1.5px solid #e8f5e9;
  display: flex; align-items: center; gap: 6px;
}
.py-member-search-wrap { margin-top: 4px; }
.py-linked-member {
  font-size: 0.85rem; color: #2d6a4f; font-weight: 700;
  padding: 5px 10px; background: #e8f5e9; border-radius: 8px;
  margin-top: 6px;
}
.py-member-result-item {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 7px 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid #e8e8e8; margin-bottom: 4px;
  background: #fafff8; font-size: 0.85rem;
  transition: background 0.12s;
}
.py-member-result-item:hover { background: #d1fae5; }
.py-mr-name   { font-weight: 700; color: #222; }
.py-mr-branch { color: #888; }
.py-mr-pos    { color: #2d6a4f; font-weight: 600; }

.py-status-preview-wrap { margin-bottom: 8px; }
.py-roles-hint {
  font-size: 0.82rem; color: #666;
  background: #f0f7f0; border-radius: 8px;
  padding: 5px 10px; margin-top: 5px;
}

@media (max-width: 480px) {
  .py-record-card    { padding: 10px 11px; }
  .py-record-name    { font-size: 0.95rem; }
  .py-amount-paid    { font-size: 0.95rem; }
  .py-filter-input,
  .py-filter-select  { font-size: 0.82rem; padding: 7px 8px; }
  .pr-table th,
  .pr-table td       { padding: 8px 8px; font-size: 0.82rem; }
  .py-sum-num        { font-size: 0.95rem; }
}

/* ═══════════════════════════════════════════════════════════
   문의·신고센터 (stk-*)
   ═══════════════════════════════════════════════════════════ */

/* 페이지 최상단 툴바 */
.stk-toolbar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.stk-toolbar-right {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto; flex-shrink: 0;
}
.stk-btn-write {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  background: linear-gradient(135deg,#4f46e5,#2563eb); color: #fff;
  font-size: 0.88rem; font-weight: 700; cursor: pointer; border: none;
  box-shadow: 0 2px 8px rgba(79,70,229,0.18);
  transition: opacity 0.15s;
}
.stk-btn-write:hover { opacity: 0.88; }

/* 필터 바 */
.stk-filter-bar {
  display: flex; gap: 7px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.stk-filter-select,
.stk-filter-input {
  padding: 8px 11px; border-radius: 9px;
  border: 1.5px solid #d1fae5; background: #fff;
  font-size: 0.875rem; color: #222;
  outline: none;
}
.stk-filter-select:focus,
.stk-filter-input:focus { border-color: #4f46e5; }
.stk-filter-input { flex: 1; min-width: 110px; }
.stk-filter-btn {
  padding: 8px 14px; border-radius: 9px;
  background: #4f46e5; color: #fff;
  font-size: 0.875rem; font-weight: 700;
  border: none; cursor: pointer;
}

/* 탭 (내 문의 / 전체) */
.stk-tabs {
  display: flex; gap: 0; margin-bottom: 14px;
  border-bottom: 2px solid #e5e7eb;
}
.stk-tab {
  padding: 8px 18px; font-size: 0.9rem; font-weight: 700;
  color: #888; background: none; border: none; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.stk-tab.active { color: #4f46e5; border-bottom-color: #4f46e5; }

/* 카드 목록 */
.stk-list { display: flex; flex-direction: column; gap: 10px; }

.stk-card {
  background: #fff; border-radius: 14px;
  border: 1.5px solid #e5e7eb;
  padding: 14px 16px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.stk-card:hover { box-shadow: 0 4px 16px rgba(79,70,229,0.10); border-color: #c7d2fe; }

.stk-card-header {
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 6px;
}
.stk-card-title {
  flex: 1; font-size: 0.97rem; font-weight: 700;
  color: #222; line-height: 1.35;
}
.stk-card-meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 0.8rem; color: #888; margin-top: 4px;
  align-items: center;
}
.stk-card-meta .stk-cat {
  color: #4f46e5; font-weight: 600;
}
.stk-card-meta .stk-member {
  color: #2d6a4f; font-weight: 600;
}

/* 상태 배지 */
.stk-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
}
.stk-badge-received  { background: #e0e7ff; color: #3730a3; }
.stk-badge-reviewing { background: #fef9c3; color: #713f12; }
.stk-badge-resolved  { background: #dcfce7; color: #14532d; }
.stk-badge-rejected  { background: #fee2e2; color: #7f1d1d; }

/* 답변 있음 표시 */
.stk-has-reply {
  font-size: 0.78rem; font-weight: 700;
  color: #16a34a;
  display: inline-flex; align-items: center; gap: 3px;
}

/* 빈 목록 */
.stk-empty {
  text-align: center; padding: 40px 20px;
  color: #aaa;
}
.stk-empty i { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.stk-empty p { font-size: 0.92rem; }

/* ── 등록 모달 (stk-modal) ── */
.stk-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 1200; display: flex; align-items: flex-end;
  justify-content: center;
}
@media (min-width: 768px) {
  .stk-modal-overlay { align-items: center; }
}
.stk-modal-box {
  background: #fff; width: 100%; max-width: 560px;
  border-radius: 20px 20px 0 0; padding: 0;
  max-height: 92dvh;
  display: flex; flex-direction: column; overflow: hidden;
}
@media (min-width: 768px) {
  .stk-modal-box { border-radius: 18px; max-height: 85dvh; }
}
.stk-modal-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px 12px; border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.stk-modal-title {
  font-size: 1.05rem; font-weight: 800; color: #222; flex: 1;
}
.stk-modal-close {
  background: none; border: none; font-size: 1.3rem;
  color: #888; cursor: pointer; line-height: 1; padding: 4px;
}
.stk-modal-body {
  flex: 1 1 auto; overflow-y: auto; padding: 16px 18px;
}
.stk-modal-footer {
  padding: 12px 18px; border-top: 1px solid #e5e7eb;
  display: flex; gap: 8px; flex-shrink: 0;
}
.stk-modal-footer .stk-btn-cancel {
  flex: 1; padding: 11px; border-radius: 10px;
  background: #f1f5f9; color: #555;
  font-size: 0.95rem; font-weight: 700;
  border: none; cursor: pointer;
}
.stk-modal-footer .stk-btn-save {
  flex: 2; padding: 11px; border-radius: 10px;
  background: linear-gradient(135deg,#4f46e5,#2563eb); color: #fff;
  font-size: 0.95rem; font-weight: 700;
  border: none; cursor: pointer;
}

/* 폼 필드 */
.stk-field { margin-bottom: 14px; }
.stk-label {
  display: block; font-size: 0.85rem; font-weight: 700;
  color: #333; margin-bottom: 5px;
}
.stk-label .req { color: #e53e3e; margin-left: 2px; }
.stk-input,
.stk-select,
.stk-textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid #d1d5db; font-size: 0.92rem;
  background: #fff; color: #222;
  outline: none; box-sizing: border-box;
  transition: border-color 0.15s;
}
.stk-input:focus,
.stk-select:focus,
.stk-textarea:focus { border-color: #4f46e5; }
.stk-textarea { resize: vertical; min-height: 100px; }

/* 공개 여부 토글 */
.stk-toggle-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: #f8f9ff; border-radius: 10px;
  border: 1px solid #e0e7ff;
}
.stk-toggle-label { font-size: 0.88rem; color: #444; flex: 1; }
.stk-toggle-desc  { font-size: 0.78rem; color: #999; }

/* ── 상세 모달 ── */
.stk-detail-section {
  padding: 14px 0; border-bottom: 1px solid #f0f0f0;
}
.stk-detail-section:last-child { border-bottom: none; }
.stk-detail-label {
  font-size: 0.8rem; font-weight: 700; color: #999;
  text-transform: uppercase; letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.stk-detail-value {
  font-size: 0.95rem; color: #222; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
}
.stk-detail-image {
  max-width: 100%; border-radius: 10px; margin-top: 8px;
  border: 1px solid #e5e7eb;
}

/* 답변 영역 */
.stk-reply-box {
  background: #f0f7ff; border-radius: 12px;
  padding: 14px 16px; margin-top: 6px;
  border-left: 4px solid #2563eb;
}
.stk-reply-box .stk-reply-title {
  font-size: 0.85rem; font-weight: 800; color: #2563eb;
  margin-bottom: 6px;
}
.stk-reply-box .stk-reply-content {
  font-size: 0.92rem; color: #1e40af;
  line-height: 1.6; white-space: pre-wrap; word-break: break-word;
}
.stk-no-reply {
  font-size: 0.88rem; color: #aaa;
  background: #f9f9f9; border-radius: 10px;
  padding: 12px 14px; text-align: center; margin-top: 6px;
}

/* admin 처리 폼 */
.stk-admin-section {
  background: #fafafa; border-radius: 12px;
  border: 1.5px solid #e5e7eb; padding: 14px 16px;
  margin-top: 16px;
}
.stk-admin-section-title {
  font-size: 0.9rem; font-weight: 800; color: #4f46e5;
  margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.stk-btn-process {
  width: 100%; padding: 11px; border-radius: 10px;
  background: linear-gradient(135deg,#4f46e5,#2563eb); color: #fff;
  font-size: 0.95rem; font-weight: 700; border: none; cursor: pointer;
  margin-top: 10px;
}
.stk-btn-del-admin {
  width: 100%; padding: 10px; border-radius: 10px;
  background: #fff0f0; color: #b91c1c;
  font-size: 0.88rem; font-weight: 700;
  border: 1.5px solid #fca5a5; cursor: pointer;
  margin-top: 6px;
}
.stk-btn-del-admin:hover { opacity: 0.8; }

/* 통계 요약 바 (admin 상단) */
.stk-summary-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.stk-sum-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 700;
  background: #f1f5f9; color: #555;
}
.stk-sum-chip .stk-sum-num { font-size: 1rem; }
.stk-sum-chip.received  { background: #e0e7ff; color: #3730a3; }
.stk-sum-chip.reviewing { background: #fef9c3; color: #713f12; }
.stk-sum-chip.resolved  { background: #dcfce7; color: #14532d; }
.stk-sum-chip.rejected  { background: #fee2e2; color: #7f1d1d; }

/* 모바일 반응형 */
@media (max-width: 480px) {
  .stk-card          { padding: 11px 12px; }
  .stk-card-title    { font-size: 0.9rem; }
  .stk-filter-bar    { gap: 5px; }
  .stk-filter-select,
  .stk-filter-input  { font-size: 0.82rem; padding: 7px 8px; }
  .stk-modal-body    { padding: 12px 14px; }
  .stk-modal-footer  { padding: 10px 14px; }
  .stk-textarea      { min-height: 80px; }
}

/* ═══════════════════════════════════════════════════════════
   정책문서 (pol-*)
   ═══════════════════════════════════════════════════════════ */

/* 로그인 화면 하단 정책 링크 */
.login-policy-links {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; margin-top: 10px; flex-wrap: wrap;
}
.login-policy-btn {
  background: none; border: none; padding: 3px 6px;
  font-size: 0.78rem; color: #aaa; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
  transition: color 0.15s;
}
.login-policy-btn:hover { color: #2d6a4f; }
.login-policy-sep { font-size: 0.78rem; color: #ccc; }

/* ── 정책문서 보기 모달 (회원용) ── */
.pol-view-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 2100; display: flex; align-items: flex-end;
  justify-content: center;
}
@media (min-width: 768px) {
  .pol-view-overlay { align-items: center; }
}
.pol-view-box {
  background: #fff; width: 100%; max-width: 640px;
  border-radius: 20px 20px 0 0;
  max-height: 88dvh;
  display: flex; flex-direction: column; overflow: hidden;
}
@media (min-width: 768px) {
  .pol-view-box { border-radius: 18px; max-height: 82dvh; }
}
.pol-view-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px 12px; border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.pol-view-title {
  flex: 1; font-size: 1.05rem; font-weight: 800; color: #1a1a2e;
}
.pol-view-close {
  background: none; border: none; font-size: 1.3rem;
  color: #888; cursor: pointer; line-height: 1; padding: 4px;
}
.pol-view-body {
  flex: 1 1 auto; overflow-y: auto;
  padding: 18px 20px;
}
.pol-view-meta {
  font-size: 0.78rem; color: #aaa; margin-bottom: 14px;
}
.pol-view-content {
  font-size: 0.93rem; color: #333; line-height: 1.8;
  white-space: pre-wrap; word-break: break-word;
}
.pol-view-footer {
  padding: 12px 18px; border-top: 1px solid #e5e7eb;
  flex-shrink: 0; display: flex; gap: 8px;
}
.pol-view-agree-btn {
  flex: 1; padding: 12px; border-radius: 12px;
  background: linear-gradient(135deg,#2d6a4f,#1a4731); color: #fff;
  font-size: 0.95rem; font-weight: 700; border: none; cursor: pointer;
}
.pol-view-close-btn {
  flex: 1; padding: 12px; border-radius: 12px;
  background: #f1f5f9; color: #555;
  font-size: 0.95rem; font-weight: 700; border: none; cursor: pointer;
}

/* ── 로그인 후 동의 화면 ── */
.pol-agree-screen {
  position: fixed; inset: 0; background: #fff;
  z-index: 2000; display: flex; flex-direction: column;
  overflow: hidden;
}
.pol-agree-header {
  padding: 20px 20px 12px;
  border-bottom: 1px solid #e5e7eb; flex-shrink: 0;
  text-align: center;
}
.pol-agree-header h2 {
  font-size: 1.15rem; font-weight: 900; color: #1a1a2e;
  margin: 0 0 4px;
}
.pol-agree-header p {
  font-size: 0.85rem; color: #888; margin: 0;
}
.pol-agree-body {
  flex: 1 1 auto; overflow-y: auto; padding: 16px 18px;
}
.pol-agree-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  border: 2px solid #e5e7eb; margin-bottom: 10px;
  background: #fafafa;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.pol-agree-item.agreed {
  border-color: #86efac; background: #f0fdf4;
}
.pol-agree-item-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg,#2d6a4f,#1a4731);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; flex-shrink: 0;
}
.pol-agree-item-text { flex: 1; }
.pol-agree-item-title {
  font-size: 0.97rem; font-weight: 700; color: #222;
  margin-bottom: 2px;
}
.pol-agree-item-sub {
  font-size: 0.8rem; color: #888;
}
.pol-agree-item-check {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #d1d5db;
  display: flex; align-items: center; justify-content: center;
  color: transparent; font-size: 0.85rem; flex-shrink: 0;
  transition: all 0.15s;
}
.pol-agree-item.agreed .pol-agree-item-check {
  background: #16a34a; border-color: #16a34a; color: #fff;
}
.pol-agree-item-view-btn {
  font-size: 0.78rem; color: #2d6a4f; font-weight: 700;
  background: none; border: none; cursor: pointer;
  padding: 2px 6px; text-decoration: underline;
  white-space: nowrap;
}
.pol-agree-footer {
  padding: 14px 18px; border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.pol-agree-submit-btn {
  width: 100%; padding: 14px; border-radius: 14px;
  background: linear-gradient(135deg,#2d6a4f,#1a4731); color: #fff;
  font-size: 1rem; font-weight: 900; border: none; cursor: pointer;
  transition: opacity 0.15s;
}
.pol-agree-submit-btn:disabled {
  opacity: 0.4; cursor: not-allowed;
}
.pol-agree-skip {
  text-align: center; margin-top: 10px;
  font-size: 0.82rem; color: #aaa;
}
.pol-agree-skip button {
  background: none; border: none; color: #aaa;
  cursor: pointer; font-size: 0.82rem;
  text-decoration: underline;
}

/* ── 관리 화면 (pol-mgmt-*) ── */
.pol-mgmt-list { display: flex; flex-direction: column; gap: 10px; }
.pol-mgmt-card {
  background: #fff; border-radius: 14px;
  border: 1.5px solid #e5e7eb; padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
}
.pol-mgmt-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg,#2d6a4f,#1a4731);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; flex-shrink: 0;
}
.pol-mgmt-info { flex: 1; min-width: 0; }
.pol-mgmt-title {
  font-size: 0.97rem; font-weight: 700; color: #222;
  margin-bottom: 3px;
}
.pol-mgmt-meta { font-size: 0.78rem; color: #aaa; }
.pol-mgmt-edit-btn {
  padding: 7px 14px; border-radius: 10px;
  background: #f0fdf4; border: 1.5px solid #86efac; color: #166534;
  font-size: 0.85rem; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.pol-mgmt-edit-btn:hover { background: #dcfce7; }

/* ── 편집 모달 (admin) ── */
.pol-edit-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 1500; display: flex; align-items: flex-end;
  justify-content: center;
}
@media (min-width: 768px) {
  .pol-edit-overlay { align-items: center; }
}
.pol-edit-box {
  background: #fff; width: 100%; max-width: 680px;
  border-radius: 20px 20px 0 0;
  max-height: 92dvh;
  display: flex; flex-direction: column; overflow: hidden;
}
@media (min-width: 768px) {
  .pol-edit-box { border-radius: 18px; max-height: 88dvh; }
}
.pol-edit-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px 12px; border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.pol-edit-title {
  flex: 1; font-size: 1rem; font-weight: 800; color: #222;
}
.pol-edit-close {
  background: none; border: none; font-size: 1.3rem;
  color: #888; cursor: pointer; padding: 4px; line-height: 1;
}
.pol-edit-body {
  flex: 1 1 auto; overflow-y: auto; padding: 16px 18px;
}
.pol-edit-field { margin-bottom: 14px; }
.pol-edit-label {
  display: block; font-size: 0.85rem; font-weight: 700;
  color: #333; margin-bottom: 5px;
}
.pol-edit-label .pol-req { color: #e53e3e; margin-left: 2px; }
.pol-edit-input,
.pol-edit-textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid #d1d5db; font-size: 0.92rem;
  color: #222; background: #fff; outline: none;
  box-sizing: border-box; transition: border-color 0.15s;
}
.pol-edit-input:focus,
.pol-edit-textarea:focus { border-color: #2d6a4f; }
.pol-edit-textarea {
  resize: vertical; min-height: 260px;
  font-family: inherit; line-height: 1.7;
}
.pol-edit-hint {
  font-size: 0.78rem; color: #aaa; margin-top: 4px;
}
.pol-edit-footer {
  padding: 12px 18px; border-top: 1px solid #e5e7eb;
  display: flex; gap: 8px; flex-shrink: 0;
}
.pol-edit-cancel-btn {
  flex: 1; padding: 12px; border-radius: 12px;
  background: #f1f5f9; color: #555;
  font-size: 0.95rem; font-weight: 700; border: none; cursor: pointer;
}
.pol-edit-save-btn {
  flex: 2; padding: 12px; border-radius: 12px;
  background: linear-gradient(135deg,#2d6a4f,#1a4731); color: #fff;
  font-size: 0.95rem; font-weight: 700; border: none; cursor: pointer;
}

/* 프로필 화면 정책 링크 */
.pol-profile-links {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 14px 16px; margin-top: 8px;
  background: #f8f9fa; border-radius: 12px;
}
.pol-profile-link-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 20px;
  background: #fff; border: 1.5px solid #d1fae5;
  color: #2d6a4f; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: background 0.12s;
}
.pol-profile-link-btn:hover { background: #d1fae5; }
.my-profile-pin-btn {
  flex: 1 0 100%;
  justify-content: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  border-color: #E8333A;
  background: #E8333A;
  color: #fff;
}
.my-profile-pin-btn > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #E8333A;
  flex: 0 0 auto;
}
.my-profile-pin-btn > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.my-profile-pin-btn strong { font-size: .9rem; }
.my-profile-pin-btn small {
  color: rgba(255,255,255,.9);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}
.my-profile-pin-btn:hover {
  border-color: #c9252d;
  background: #c9252d;
}
.my-profile-photo-editor .img-tab.active {
  border-color: rgba(214,178,94,0.72);
  background: linear-gradient(135deg,#fffdf7,#fff1c5);
  color: var(--navy);
}
.my-profile-photo-editor .img-tab:not(.active):hover {
  border-color: rgba(214,178,94,0.72);
  background: #fff8df;
  color: var(--navy);
}

@media (max-width: 480px) {
  .pol-view-body  { padding: 14px 16px; }
  .pol-edit-body  { padding: 12px 14px; }
  .pol-agree-body { padding: 12px 14px; }
  .pol-edit-textarea { min-height: 200px; }
}
/* 다중 콘텐츠 이미지 첨부 */
.multi-img-upload-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.multi-img-upload-head {
  font-size: 0.82rem;
  color: #777;
  line-height: 1.4;
}

.multi-img-slot {
  padding: 10px;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  background: #fafafa;
}

.multi-img-slot-title {
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  color: #333;
}

.notice-detail-images,
.schedule-detail-images,
.content-detail-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.notice-detail-images img,
.schedule-detail-images img,
.content-detail-images img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 14px;
  background: #f2f2f2;
  cursor: zoom-in;
}
/* 준회원 메인 앱 기반 */
.app-user-extra-menus {
  display: grid;
  gap: 10px;
}

.app-user-mode .welcome-card {
  border-color: rgba(39, 123, 112, 0.22);
}

.app-user-home-note,
.app-user-preview-page {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.app-user-home-note {
  min-height: 108px;
  flex-direction: column;
  gap: 9px;
  color: #4b5563;
}

.app-user-home-note i {
  color: #277b70;
  font-size: 1.35rem;
}

.app-user-preview-page {
  min-height: calc(100vh - 72px);
  flex-direction: column;
  padding: 36px 24px 96px;
}

.app-user-preview-icon,
.join-required-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #e8f4f1;
  color: #277b70;
  font-size: 1.65rem;
  margin: 0 auto 16px;
}

.app-user-preview-page h2,
.join-required-modal h3 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.app-user-preview-page p,
.join-required-modal p {
  max-width: 420px;
  margin: 0;
  color: #4b5563;
  line-height: 1.75;
  word-break: keep-all;
}

.app-user-preview-page > span {
  margin-top: 18px;
  padding: 7px 11px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
}

.join-required-modal {
  width: min(92vw, 460px);
  padding-top: 24px;
}

.join-required-modal .modal-body {
  text-align: center;
  padding-top: 0;
}

.join-required-modal .modal-footer {
  gap: 10px;
}

.join-required-modal .modal-footer button {
  flex: 1;
}

@media (max-width: 420px) {
  .join-required-modal .modal-footer {
    flex-direction: column-reverse;
  }

  .join-required-modal .modal-footer button {
    width: 100%;
  }
}

/* App user join application */
.app-user-join-page {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 36px;
}
.app-user-join-page > h2,
.app-user-join-page > p {
  text-align: center;
}
.app-user-join-form {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #e5eadf;
  border-radius: 14px;
  background: #fff;
}
.app-user-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
  color: #374151;
  font-size: .92rem;
  line-height: 1.5;
}
.app-user-consent-row input {
  margin-top: 3px;
  flex: 0 0 auto;
}
.app-user-join-status {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #dce8cf;
  border-radius: 12px;
  background: #f8fbf4;
  color: #334155;
}
.app-user-join-status strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green-dark);
}
.app-user-join-status span,
.app-user-join-status small {
  display: block;
  line-height: 1.45;
}
.app-user-join-status.approved {
  border-color: #b7e4c7;
  background: #f0fff4;
}
.app-user-join-status.rejected {
  border-color: #fecaca;
  background: #fff7f7;
}
.app-user-join-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #4b5563;
  font-weight: 700;
  text-align: center;
}
.app-user-join-form .btn-primary {
  width: 100%;
  margin-top: 10px;
}

.association-intro-page {
  padding: 24px 18px 96px;
  background: #f8faf9;
}

.association-intro-hero {
  text-align: center;
  padding: 28px 8px 18px;
}

.association-intro-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e8f4f1;
  color: #277b70;
  font-size: 1.8rem;
}

.association-intro-hero h2 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 1.35rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.association-intro-hero p,
.association-intro-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.75;
  word-break: keep-all;
}

.association-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.association-value-card {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 86px;
  border: 1px solid #e5ebe8;
  border-radius: 8px;
  background: #fff;
  color: #277b70;
  font-weight: 800;
}

.association-value-card:nth-child(2) { color: #b18735; }
.association-value-card:nth-child(3) { color: #b84a62; }

.association-value-card i {
  font-size: 1.25rem;
}

.association-intro-card {
  padding: 18px;
  border: 1px solid #e5ebe8;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.association-intro-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.association-intro-actions button {
  width: 100%;
}

.app-user-notice-page {
  padding: 18px 16px 96px;
  background: #f8faf9;
}

.app-user-notice-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid #e5ebe8;
  border-radius: 8px;
  background: #fff;
}

.app-user-notice-tab {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.app-user-notice-tab.active {
  background: #277b70;
  color: #fff;
}

.app-user-notice-panel {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  border: 1px solid #e5ebe8;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.app-user-notice-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #e8f4f1;
  color: #277b70;
  font-size: 1.55rem;
}

.app-user-notice-panel.is-locked .app-user-notice-icon {
  background: #fff7e6;
  color: #b18735;
}

.app-user-notice-panel h2 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: 1.18rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.app-user-notice-panel p {
  max-width: 440px;
  margin: 0;
  color: #4b5563;
  line-height: 1.75;
  word-break: keep-all;
}

.app-user-notice-actions {
  width: 100%;
  max-width: 280px;
  margin-top: 22px;
}

.app-user-notice-actions button {
  width: 100%;
}

.app-user-public-event-list {
  display: grid;
  width: 100%;
  gap: 12px;
  margin-top: 20px;
}

.app-user-public-event-card {
  overflow: hidden;
  border: 1px solid #e5ebe8;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.app-user-public-event-image {
  aspect-ratio: 16 / 9;
  background: #eef3f0;
}

.app-user-public-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-user-public-event-body {
  padding: 14px;
}

.app-user-public-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
}

.app-user-public-event-body h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.app-user-public-event-location {
  margin-bottom: 8px;
  color: #277b70;
  font-size: 0.88rem;
  font-weight: 800;
}

.app-user-public-event-body p {
  margin: 0;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.65;
  word-break: keep-all;
}

.app-user-public-event-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 140px;
  color: #6b7280;
  text-align: center;
}

.app-user-public-event-empty i {
  color: #b18735;
  font-size: 1.45rem;
}

.app-user-public-event-empty p {
  margin: 0;
  line-height: 1.7;
}
.app-user-schedule-lock-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 72px);
  padding: 30px 18px 96px;
  background: #f8faf9;
}

.app-user-schedule-lock-card {
  width: 100%;
  max-width: 460px;
  padding: 30px 20px;
  border: 1px solid #e5ebe8;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.app-user-schedule-lock-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff7e6;
  color: #b18735;
  font-size: 1.55rem;
}

.app-user-schedule-lock-card h2 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.app-user-schedule-lock-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.75;
  word-break: keep-all;
}

.app-user-schedule-lock-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.app-user-schedule-lock-actions button {
  width: 100%;
}
.app-user-branches-page {
  padding: 18px 14px 96px;
  background: #f8faf9;
}

.app-user-branches-intro {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #e5ebe8;
  border-radius: 8px;
  background: #fff;
}

.app-user-branches-intro h2 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 1.16rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.app-user-branches-intro p {
  margin: 0;
  color: #4b5563;
  line-height: 1.7;
  word-break: keep-all;
}

.app-user-branch-card {
  background: #fff;
}

.app-user-branch-card .branch-card-leader {
  color: #6b7280;
}

.app-user-officers-page {
  padding: 18px 14px 96px;
}

.app-user-officers-intro {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(17, 45, 68, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(17, 45, 68, 0.06);
}

.app-user-officers-intro h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 900;
}

.app-user-officers-intro p {
  margin: 0;
  color: #596b77;
  font-size: 0.9rem;
  line-height: 1.65;
}

.app-user-officer-tab .officer-room-count {
  min-width: 44px;
  align-items: center;
}

.app-user-business-page {
  padding: 18px 0 96px;
}

.app-user-business-intro {
  margin: 0 14px 14px;
  padding: 16px;
  border: 1px solid rgba(17, 45, 68, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(17, 45, 68, 0.06);
}

.app-user-business-intro h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 900;
}

.app-user-business-intro p {
  margin: 0;
  color: #596b77;
  font-size: 0.9rem;
  line-height: 1.65;
}

.app-user-business-card .biz-card-owner {
  color: #64737d;
}

.app-user-business-summary {
  margin-top: 8px;
  color: #4b5d67;
  font-size: 0.82rem;
  line-height: 1.5;
}

.app-user-business-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.donation-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.donation-qr-card {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  text-align: center;
}

.donation-qr-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary, #475569);
}

.donation-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 16px 0 8px;
}

.donation-link-btn {
  min-width: 150px;
}

.donation-transfer-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted, #64748b);
  text-align: center;
}

/* 제품판매 상품 문의 */
.bp-inquiry-section{margin-top:18px;padding-top:16px;border-top:1px solid #e5e7eb;display:flex;flex-direction:column;gap:12px;min-width:0}.bp-inquiry-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.bp-inquiry-head h3{margin:0;font-size:17px;color:#1f2937}.bp-inquiry-head span{min-width:28px;height:28px;border-radius:999px;background:#eef2ff;color:#3730a3;display:inline-flex;align-items:center;justify-content:center;font-weight:800}.bp-inquiry-composer{display:flex;flex-direction:column;gap:8px}.bp-inquiry-label{font-weight:800;color:#374151}.bp-inquiry-textarea{width:100%;box-sizing:border-box;border:1px solid #d1d5db;border-radius:10px;padding:11px 12px;font-size:15px;line-height:1.45;resize:vertical;background:#fff;color:#111827}.bp-inquiry-textarea:focus{outline:3px solid rgba(37,99,235,.18);border-color:#2563eb}.bp-inquiry-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.bp-inquiry-actions small{color:#6b7280}.bp-inquiry-list{display:flex;flex-direction:column;gap:10px}.bp-inquiry-card,.bp-answer-card{border:1px solid #e5e7eb;border-radius:12px;background:#fff;padding:12px;min-width:0;overflow-wrap:anywhere;word-break:break-word}.bp-inquiry-card-head,.bp-inquiry-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;color:#6b7280;font-size:12px}.bp-inquiry-card-head span,.bp-answer-badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;background:#f3f4f6;color:#374151;font-weight:800;font-size:12px}.bp-inquiry-card p,.bp-answer-card p{margin:9px 0 0;color:#1f2937;line-height:1.55;white-space:normal}.bp-inquiry-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.bp-inquiry-card-actions button,.bp-inquiry-more{border:1px solid #d1d5db;border-radius:999px;background:#fff;color:#374151;padding:8px 11px;font-weight:800;min-height:36px}.bp-answer-card{margin-top:10px;background:#f8fafc;border-color:#cbd5e1}.bp-answer-badge{background:#dbeafe;color:#1d4ed8}.bp-inline-editor{margin-top:10px;display:flex;flex-direction:column;gap:8px}.bp-inquiry-empty{border:1px dashed #d1d5db;border-radius:12px;padding:18px;text-align:center;color:#6b7280;background:#f9fafb}.bp-inquiry-more{align-self:center;padding-inline:16px}.bp-inquiry-section .btn-primary,.bp-inquiry-section .btn-secondary{min-height:40px;white-space:nowrap}
@media(max-width:360px){.bp-inquiry-card,.bp-answer-card{padding:10px}.bp-inquiry-card-actions button,.bp-inquiry-more{width:100%;justify-content:center}.bp-inquiry-actions .btn-primary{width:100%}}

/* FAQ/브리핑 독 */
.fb-page{display:flex;flex-direction:column;gap:16px}.fb-section{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px;box-shadow:0 8px 24px rgba(15,23,42,.06)}.fb-section-head h2{margin:0;color:#1a1a2e;font-size:1.08rem;font-weight:900}.fb-section-head p{margin:4px 0 14px;color:#64748b;font-size:.88rem}.fb-faq-list,.fb-briefing-list{display:flex;flex-direction:column;gap:10px}.fb-faq-item{border:1px solid #e2e8f0;border-radius:14px;overflow:hidden;background:#f8fafc}.fb-faq-question{width:100%;min-height:52px;border:0;background:#fff;color:#1f2937;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;font-size:.96rem;font-weight:800;text-align:left;cursor:pointer}.fb-faq-question span{min-width:0;overflow-wrap:anywhere}.fb-faq-question i{transition:transform .15s;flex:0 0 auto}.fb-faq-question.is-open i{transform:rotate(180deg)}.fb-faq-answer{padding:14px;color:#334155;font-size:.92rem;line-height:1.75;overflow-wrap:anywhere;white-space:normal}.fb-briefing-card{width:100%;border:1px solid #dbeafe;border-radius:14px;background:#f8fbff;color:#1e293b;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;cursor:pointer}.fb-briefing-card strong{font-size:.97rem;font-weight:900;overflow-wrap:anywhere}.fb-briefing-card span{color:#64748b;font-size:.8rem;font-weight:700;white-space:nowrap}.fb-loading{text-align:center;padding:38px;color:#64748b}@media(max-width:430px){.fb-section{padding:14px;border-radius:14px}.fb-briefing-card{align-items:flex-start;flex-direction:column}.fb-briefing-card span{white-space:normal}}
.upcoming-event-featured {
  border: 1px solid rgba(232, 51, 58, 0.22);
  background: linear-gradient(135deg, #fff 0%, #fff8f4 100%);
  box-shadow: 0 8px 22px rgba(153, 45, 31, 0.1);
}

.upcoming-feature-badges,
.app-user-public-event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.upcoming-feature-badges span,
.app-user-public-event-badges span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff0ea;
  color: #b53b25;
  font-size: 0.72rem;
  font-weight: 700;
}

.event-engagement-section {
  margin-top: 18px;
}

.event-engagement-hero {
  padding: 18px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #bd3c27, #e87832);
  box-shadow: 0 10px 24px rgba(169, 61, 36, 0.2);
}

.event-engagement-hero h4,
.event-engagement-title h4 {
  margin: 0;
}

.event-engagement-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.event-engagement-badges span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
}

.event-engagement-block,
.event-supporter-wall {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #f0e5df;
  border-radius: 18px;
  background: #fff;
}

.event-engagement-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.event-engagement-title span {
  color: #7d716b;
  font-size: 0.75rem;
  text-align: right;
}

.event-volunteer-list,
.event-sponsor-needs {
  display: grid;
  gap: 10px;
}

.event-volunteer-card,
.event-sponsor-need {
  padding: 14px;
  border: 1px solid #efe8e3;
  border-radius: 14px;
  background: #fffdfb;
}

.event-volunteer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.event-volunteer-card p,
.event-sponsor-need p {
  margin: 5px 0;
  color: #6b625d;
  font-size: 0.82rem;
}

.event-volunteer-card span {
  color: #9a6559;
  font-size: 0.76rem;
}

.event-engagement-action {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #c7482e;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.event-my-application {
  display: grid;
  justify-items: end;
  gap: 5px;
  color: #236947;
  font-size: 0.8rem;
}

.event-my-application button,
.event-my-sponsorships button {
  border: 0;
  color: #9a4b3d;
  background: transparent;
  font-family: inherit;
  font-size: 0.74rem;
  text-decoration: underline;
}

.event-sponsor-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #fff4ea;
}

.event-sponsor-summary strong {
  color: #ad3925;
}

.event-sponsor-summary span {
  color: #80695d;
  font-size: 0.76rem;
}

.event-sponsor-need-head,
.event-sponsor-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.event-sponsor-need-head span {
  padding: 2px 7px;
  border-radius: 999px;
  color: #a43c2a;
  background: #fff0e8;
  font-size: 0.7rem;
  font-weight: 700;
}

.event-sponsor-progress {
  height: 7px;
  margin: 10px 0 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee8e4;
}

.event-sponsor-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e26937, #c2392d);
}

.event-sponsor-progress-label {
  margin-bottom: 10px;
  color: #716761;
  font-size: 0.72rem;
}

.event-my-sponsorships {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #f7faf8;
}

.event-my-sponsorships h5 {
  margin: 0 0 8px;
}

.event-my-sponsorships > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.78rem;
}

.event-my-sponsorships > div span {
  flex: 1;
}

.event-supporter-wall {
  background: linear-gradient(180deg, #fffaf6, #fff);
}

.event-supporter-card {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid #f1e9e4;
}

.event-supporter-card:last-child {
  border-bottom: 0;
}

.event-supporter-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #c34b30;
  background: #fff0e8;
}

.event-supporter-card p {
  margin: 2px 0;
  color: #6f625c;
  font-size: 0.8rem;
}

.event-supporter-card small {
  color: #9b7165;
}

.event-engagement-empty,
.event-engagement-error {
  padding: 16px;
  color: #81736c;
  text-align: center;
  font-size: 0.82rem;
}

.event-action-modal-box {
  width: min(94%, 520px);
}

.event-action-intro {
  padding: 12px;
  border-radius: 12px;
  background: #fff5ee;
}

.event-action-note {
  color: #7d706a;
  font-size: 0.76rem;
  line-height: 1.5;
}

.app-user-public-event-more {
  margin-top: 10px;
  color: #b13e2a;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.app-home-featured-event {
  display: grid;
  grid-template-columns: 112px 1fr;
  overflow: hidden;
  border: 1px solid rgba(203, 72, 45, 0.2);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(128, 52, 35, 0.12);
  cursor: pointer;
}

.app-home-featured-event > img,
.app-home-featured-event-icon {
  width: 112px;
  height: 100%;
  min-height: 145px;
  object-fit: cover;
}

.app-home-featured-event-icon {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #d2492d, #ef8a42);
  font-size: 2rem;
}

.app-home-featured-event-content {
  padding: 13px;
}

.app-home-featured-event-scope {
  color: #b9462d;
  font-size: 0.72rem;
  font-weight: 800;
}

.app-home-featured-event-content h3 {
  margin: 5px 0 8px;
  font-size: 1rem;
}

.app-home-featured-event-content p {
  margin: 0;
  color: #70645e;
  font-size: 0.77rem;
}

.app-home-featured-event-content > strong {
  display: block;
  margin-top: 10px;
  color: #b73f29;
  font-size: 0.78rem;
  text-align: right;
}

.event-public-detail-box {
  width: min(94%, 680px);
  max-height: 92vh;
}

.event-public-images {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.event-public-images img {
  width: 100%;
  max-height: 300px;
  flex: 0 0 100%;
  border-radius: 14px;
  object-fit: cover;
}

.event-public-scope {
  margin-top: 14px;
  color: #ba442d;
  font-size: 0.75rem;
  font-weight: 800;
}

.event-public-meta {
  display: grid;
  gap: 5px;
  color: #6f635d;
  font-size: 0.82rem;
}

.event-public-description {
  line-height: 1.7;
}

.event-public-join-guide {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 15px;
  border-radius: 14px;
  background: #f7f3f0;
  text-align: center;
}

@media (max-width: 480px) {
  .event-engagement-title,
  .event-sponsor-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-engagement-title span {
    text-align: left;
  }

  .app-home-featured-event {
    grid-template-columns: 92px 1fr;
  }

  .app-home-featured-event > img,
  .app-home-featured-event-icon {
    width: 92px;
  }
}
/* 모바일 QR 출석 */
.attendance-checkin-section{margin:14px 0}
.attendance-checkin-card{padding:16px;border:1px solid #d8e8df;border-radius:18px;background:linear-gradient(145deg,#f9fffb,#eef8f2);box-shadow:0 8px 22px rgba(25,91,61,.08)}
.attendance-checkin-card-head{display:flex;gap:12px;align-items:center}.attendance-checkin-icon{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:14px;background:#1f694b;color:#fff;font-size:20px}
.attendance-checkin-card h4{margin:0 0 4px;color:#174d37;font-size:16px}.attendance-checkin-card p{margin:0;color:#687970;font-size:12px;line-height:1.5}
.attendance-checkin-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}.attendance-checkin-actions .primary:first-child:last-child{grid-column:1/-1}
.attendance-checkin-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:10px 13px;border:0;border-radius:12px;font-weight:800;font-size:13px;cursor:pointer}
.attendance-checkin-btn.primary{background:#1f694b;color:#fff}.attendance-checkin-btn.scan{background:#155b84;color:#fff}.attendance-checkin-btn.outline{border:1px solid #bfd2c7;background:#fff;color:#315e4b}.attendance-checkin-btn.wide{width:100%}.attendance-checkin-btn.small{min-height:36px;padding:7px 11px}
.attendance-checkin-guide{grid-column:1/-1;padding:10px 12px;border-radius:11px;background:#fff7df;color:#825f19;font-size:12px}
.attendance-checkin-note,.attendance-checkin-loading{padding:12px;text-align:center;color:#6c7b74;font-size:12px}.attendance-checkin-loading .spinner{display:inline-block;width:18px;height:18px;margin:0 7px -4px 0}
.attendance-checkin-overlay{display:flex!important;z-index:4200}.attendance-checkin-modal{width:min(94vw,520px);max-height:min(88vh,780px);overflow:hidden;border-radius:22px}.attendance-checkin-modal .modal-body{overflow:auto;overscroll-behavior:contain}
.attendance-qr-ticket{text-align:center}.attendance-qr-ticket-brand{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:999px;background:#e5f6eb;color:#18714a;font-weight:800;font-size:12px}
.attendance-qr-ticket h4{margin:14px 0 5px;font-size:20px;color:#183e30}.attendance-qr-ticket>p{margin:0;color:#6d7973;font-size:13px}
.attendance-qr-code{width:min(72vw,280px);margin:18px auto;padding:14px;border:1px solid #dfe7e2;border-radius:20px;background:#fff;box-shadow:0 12px 30px rgba(22,59,43,.1)}.attendance-qr-code svg{display:block;width:100%;height:auto}
.attendance-qr-member{padding:12px 14px;border-radius:13px;background:#f2f7f4}.attendance-qr-member strong,.attendance-qr-member span{display:block}.attendance-qr-member strong{font-size:18px;color:#183e30}.attendance-qr-member span{margin-top:3px;color:#68766f;font-size:12px}
.attendance-qr-security{margin:13px 0!important;padding:10px;border-radius:11px;background:#f7f4ea;color:#76662e!important;text-align:left;font-size:11px!important}
.attendance-scanner{text-align:center}.attendance-scanner-frame{position:relative;overflow:hidden;aspect-ratio:1/1;border-radius:20px;background:#111}.attendance-scanner-frame video{width:100%;height:100%;object-fit:cover}.attendance-scanner-frame>span{position:absolute;inset:12%;border:3px solid #62e6a1;border-radius:20px;box-shadow:0 0 0 999px rgba(0,0,0,.28)}
.attendance-scanner>p{margin:12px 0;color:#64736c;font-size:12px}.attendance-scan-result{display:flex;gap:10px;align-items:center;margin:12px 0;padding:12px;text-align:left;border-radius:13px}.attendance-scan-result>i{font-size:24px}.attendance-scan-result strong,.attendance-scan-result span{display:block}.attendance-scan-result span{margin-top:3px;font-size:12px}
.attendance-scan-result.success{background:#e4f7eb;color:#176940}.attendance-scan-result.duplicate{background:#fff4d8;color:#805d0d}.attendance-scan-result.error{background:#fde7e7;color:#a33131}
.attendance-roster-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:12px}.attendance-roster-summary span{display:grid;gap:2px;padding:10px 5px;border-radius:11px;background:#eef3f0;text-align:center;font-size:10px;color:#65746d}.attendance-roster-summary b{font-size:19px;color:#24483a}.attendance-roster-summary .checked{background:#e3f5e9}.attendance-roster-summary .waiting{background:#fff3dc}
.attendance-roster-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.attendance-roster-list{display:grid;gap:8px}
.attendance-roster-card{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px;border:1px solid #e0e7e3;border-radius:14px;background:#fff}.attendance-roster-card.checked{border-color:#bee0cd;background:#f5fff8}
.attendance-roster-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#dcebe3;color:#275d45;font-weight:900}.attendance-roster-info strong,.attendance-roster-info span,.attendance-roster-info small{display:block}.attendance-roster-info span{margin-top:2px;color:#4f5f58;font-size:12px}.attendance-roster-info small{margin-top:2px;color:#829088;font-size:11px}
.attendance-roster-state{text-align:right}.attendance-roster-state b,.attendance-roster-state small{display:block}.attendance-roster-state b{color:#188052;font-size:12px}.attendance-roster-state b.waiting{color:#ad7718}.attendance-roster-state small{margin-top:3px;color:#7b8781;font-size:9px}
.attendance-manual-mobile>p{margin:0 0 12px;color:#68766f;font-size:13px}.attendance-manual-search{display:grid;grid-template-columns:1fr auto;gap:7px}.attendance-manual-search input{min-width:0;padding:11px;border:1px solid #cfdcd5;border-radius:11px}
.attendance-member-result{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;padding:11px;border:1px solid #dfe7e2;border-radius:12px}.attendance-member-result strong,.attendance-member-result span{display:block}.attendance-member-result span{margin-top:3px;color:#728078;font-size:11px}
.attendance-checkin-editor-option{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;padding:12px;border:1px solid #dbe7e0;border-radius:12px;background:#f5faf7}.attendance-checkin-editor-option input{margin-top:3px}.attendance-checkin-editor-option strong,.attendance-checkin-editor-option small{display:block}.attendance-checkin-editor-option small{margin-top:3px;color:#718078;line-height:1.4}
@media(max-width:420px){.attendance-checkin-actions{grid-template-columns:1fr}.attendance-checkin-actions>*{grid-column:1!important}.attendance-roster-card{grid-template-columns:36px minmax(0,1fr)}.attendance-roster-state{grid-column:2;text-align:left}}

/* 광고 배너·팝업·상세 */
.app-ad-mount{width:100%;margin:10px 0}.app-ad-mount.is-bottom{margin-top:12px}
.app-ad-surface-pad>.app-ad-mount{box-sizing:border-box;padding-right:14px;padding-left:14px}
.app-ad-surface-pad>.app-ad-mount{box-sizing:border-box;padding-right:14px;padding-left:14px}
.app-ad-banner{outline:none}.app-ad-banner[role=button]{cursor:pointer}
.app-ad-banner:focus-visible .app-ad-banner-card{outline:3px solid rgba(31,105,75,.28);outline-offset:2px}
.app-ad-banner-card{display:grid;grid-template-columns:minmax(132px,42%) minmax(0,1fr);overflow:hidden;width:100%;min-height:124px;border:1px solid #dce8e1;border-radius:17px;background:linear-gradient(145deg,#fff,#f5faf7);box-shadow:0 8px 22px rgba(22,70,50,.08)}
.app-ad-banner-card:not(.has-image){grid-template-columns:1fr}.app-ad-banner-image{display:flex;align-items:center;justify-content:center;min-width:0;min-height:124px;padding:6px;background:#f4f7f5}.app-ad-banner-image img{display:block;width:100%;height:100%;max-height:148px;object-fit:contain;object-position:center}
.app-ad-banner-copy{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:15px 18px}.app-ad-banner-copy em,.app-ad-detail-body>em,.app-ad-popup-copy>em{align-self:flex-start;padding:4px 8px;border-radius:999px;background:#fff1cf;color:#865d17;font-size:10px;font-style:normal;font-weight:900;letter-spacing:.04em}
.app-ad-banner-copy strong{display:-webkit-box;overflow:hidden;margin-top:7px;color:#193f30;font-size:18px;line-height:1.35;-webkit-line-clamp:2;-webkit-box-orient:vertical}.app-ad-banner-copy p{display:-webkit-box;overflow:hidden;margin:5px 0 8px;color:#5f7168;font-size:13px;line-height:1.5;-webkit-line-clamp:2;-webkit-box-orient:vertical}.app-ad-banner-copy span{color:#1f694b;font-size:12px;font-weight:900}
.app-ad-banner-card.copy-short .app-ad-banner-copy{justify-content:space-evenly;padding:13px 20px}.app-ad-banner-card.copy-short .app-ad-banner-copy strong{font-size:23px;line-height:1.3}.app-ad-banner-card.copy-short .app-ad-banner-copy p{font-size:15px;line-height:1.5;-webkit-line-clamp:3}.app-ad-banner-card.copy-short .app-ad-banner-copy span{font-size:13px}
.app-ad-banner-card.copy-medium .app-ad-banner-copy strong{font-size:20px}.app-ad-banner-card.copy-medium .app-ad-banner-copy p{font-size:13.5px;-webkit-line-clamp:3}
.app-ad-banner-card.copy-long .app-ad-banner-copy strong{font-size:17px}.app-ad-banner-card.copy-long .app-ad-banner-copy p{font-size:12px;line-height:1.45;-webkit-line-clamp:3}
.app-ad-detail-overlay,.app-ad-popup-overlay{position:fixed;inset:0;z-index:7000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(12,28,22,.66);backdrop-filter:blur(5px)}
.app-ad-detail{display:flex;flex-direction:column;overflow:hidden;width:min(94vw,560px);max-height:min(90vh,820px);border-radius:24px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.3)}
.app-ad-detail-head{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-bottom:1px solid #e3e9e6;background:#f8fbf9;color:#244b3c;font-weight:900}.app-ad-detail-head button,.app-ad-popup-close{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;background:#e9f0ec;color:#40584e;font-size:16px}
.app-ad-detail-image{flex:0 0 auto;max-height:300px;background:#edf2ef}.app-ad-detail-image img{display:block;width:100%;max-height:300px;object-fit:cover}
.app-ad-detail-body{overflow:auto;padding:22px;overscroll-behavior:contain}.app-ad-detail-body h2{margin:9px 0 4px;color:#183d2f;font-size:23px;line-height:1.35}.app-ad-detail-advertiser{margin:0;color:#3f6656;font-size:13px;font-weight:800}
.app-ad-detail-description{margin:18px 0;padding:16px;border-radius:14px;background:#f5f8f6;color:#43564e;font-size:14px;line-height:1.75}.app-ad-detail-contact{display:grid;gap:4px;padding:14px;border:1px solid #dce7e1;border-radius:13px}.app-ad-detail-contact strong{color:#264c3d}.app-ad-detail-contact span,.app-ad-detail-contact a{color:#607169;font-size:13px}.app-ad-detail-contact a{color:#1c704e;font-weight:900}
.app-ad-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:18px}.app-ad-detail-actions button{min-height:45px;border:1px solid #bfd0c7;border-radius:12px;background:#fff;color:#37584b;font-weight:900}.app-ad-detail-actions button.primary{border-color:#1f694b;background:#1f694b;color:#fff}
.app-ad-popup{position:relative;overflow:hidden;width:min(92vw,420px);max-height:88vh;border-radius:24px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.34)}.app-ad-popup-close{position:absolute;top:12px;right:12px;z-index:2;background:rgba(22,38,32,.76);color:#fff}
.app-ad-popup-image{max-height:360px;background:#edf2ef}.app-ad-popup-image img{display:block;width:100%;max-height:360px;object-fit:cover}.app-ad-popup-copy{padding:20px}.app-ad-popup-copy h2{margin:9px 0 5px;color:#193f30;font-size:22px}.app-ad-popup-copy p{display:-webkit-box;overflow:hidden;margin:0 0 15px;color:#66756e;font-size:13px;line-height:1.6;-webkit-line-clamp:4;-webkit-box-orient:vertical}
.app-ad-popup-cta,.app-ad-popup-today{width:100%;min-height:45px;border:0;border-radius:12px;font-weight:900}.app-ad-popup-cta{background:#1f694b;color:#fff}.app-ad-popup-today{margin-top:7px;background:#f0f3f1;color:#64736c;font-size:12px}
@media(max-width:420px){.app-ad-banner-card{grid-template-columns:minmax(120px,40%) minmax(0,1fr);min-height:116px}.app-ad-banner-image{min-height:116px;padding:5px}.app-ad-banner-image img{max-height:138px}.app-ad-banner-copy{padding:12px 14px}.app-ad-banner-card.copy-short .app-ad-banner-copy{padding:11px 15px}.app-ad-banner-card.copy-short .app-ad-banner-copy strong{font-size:21px}.app-ad-banner-card.copy-short .app-ad-banner-copy p{font-size:14px}.app-ad-banner-card.copy-medium .app-ad-banner-copy strong{font-size:18px}.app-ad-banner-card.copy-medium .app-ad-banner-copy p{font-size:12.5px}.app-ad-banner-card.copy-long .app-ad-banner-copy strong{font-size:16px}.app-ad-banner-card.copy-long .app-ad-banner-copy p{font-size:11.5px}.app-ad-detail-overlay,.app-ad-popup-overlay{padding:10px}.app-ad-detail{width:100%;max-height:94vh}.app-ad-detail-actions{grid-template-columns:1fr}.app-ad-popup{width:100%}}
