/* ===================================================
   고양특례시 호남향우회 연합회 - 통합 스타일시트
   기본 컬러: 초록(#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;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(23, 102, 71, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #11573d;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(17, 87, 61, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hometown-home-head button:active {
  transform: scale(0.97);
  background: #edf7f1;
}

.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 82% 12%, rgba(216, 173, 115, .2), transparent 28%),
    radial-gradient(circle at 12% 82%, rgba(22, 100, 82, .3), transparent 30%),
    linear-gradient(145deg, #100e0d 0%, #241b17 54%, #153a32 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;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px 0 12px;
}
.guest-logo-wrap img {
  display: block;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.2));
}
.guest-logo-wrap .guest-emblem { width: 82px; border-radius: 20px; }
.guest-logo-wrap .guest-wordmark { width: min(46vw, 176px); }
.guest-eyebrow {
  text-align: center;
  color: #7d431e;
  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-primary {
  margin-top: 4px;
  padding: 16px;
  border: 1px solid #e0c86a;
  border-radius: 15px;
  background: #fff9da;
}
.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;
}
.btn-kakao-login {
  width: 100%;
  min-height: 54px;
  margin-top: 13px;
  padding: 14px 16px;
  border: 2px solid #d7b900;
  border-radius: 13px;
  background: #fee500;
  color: #191919;
  box-shadow: 0 8px 20px rgba(152, 122, 0, .2);
  font: 900 1rem 'Noto Sans KR', sans-serif;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn-kakao-login:hover {
  background: #ffeb31;
  border-color: #bda300;
  box-shadow: 0 10px 24px rgba(152, 122, 0, .28);
  transform: translateY(-1px);
}
.btn-kakao-login:active { transform: translateY(0); }
.btn-kakao-login i { margin-right: 8px; color: #2b2118; }
.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;
}

/* ════════════════════════════════════
   인사말 카드
════════════════════════════════════ */
.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-card--support {
  grid-column:span 2;
  aspect-ratio:auto;
  min-width:0;
  min-height:100%;
  padding:10px 14px;
  flex-direction:row;
  justify-content:flex-start;
  gap:11px;
  text-align:left;
}
.menu-card--support .menu-icon {
  width:46px;
  height:46px;
}
.menu-card--support .menu-wide-title {
  font-size:clamp(.82rem,3vw,.98rem);
}
.menu-card--support .menu-wide-sub {
  font-size:clamp(.66rem,2.45vw,.78rem);
  line-height:1.35;
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
}
.menu-card--support .menu-badge--wide {
  right:31px;
}
.menu-card--support .menu-wide-arrow {
  margin-left:auto;
}

/* 아이콘: 모든 카드에서 동일 크기 */
.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); }
.bg-poll    { background:linear-gradient(135deg,#385fbc,#233c85); }

.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--support { gap:9px;padding:8px 10px; }
  .menu-card--support .menu-icon { width:40px;height:40px; }
  .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; }

.app-user-home-lock-preview {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* 버튼 공통 */
.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열 그리드
   PC(≥641px): 4열로 확장 — order로 재배치 */
@media (min-width:641px) {
  .menu-order-notice     { order:1; }
  .menu-order-schedule   { order:2; }
  .menu-order-polls      { order:3; }
  .menu-order-gallery    { order:4; }
  .menu-order-members    { order:5; }
  .menu-order-officers   { order:6; }
  .menu-order-exec       { order:7; }
  .menu-order-branches   { order:8; }
  .menu-order-group-chats{ order:9; }
  .menu-order-directions { order:10; }
  .menu-order-donation   { order:11; }
  .menu-order-support    { order:12; }
}

/* 모바일 편집 동작 버튼을 하단 고정 메뉴보다 위에 유지 */
@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: 1040px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 50px;
  box-sizing: border-box;
}
.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; min-width: 0; }
.lightbox-img-stage {
  position: relative;
  width: 100%;
  height: min(70vh, 720px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  touch-action: none;
  user-select: none;
  cursor: zoom-in;
}
.lightbox-img-stage.is-zoomed { cursor: grab; }
.lightbox-img-stage.is-dragging { cursor: grabbing; }
.lightbox-img-wrap img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
  transition: transform 90ms ease-out;
}
.lightbox-img-stage.is-dragging img { transition: none; }
.lightbox-zoom-hint {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,0.55);
  font-size: 0.76rem;
  font-weight: 700;
  pointer-events: none;
}
.lightbox-zoom-controls {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(8,20,31,0.78);
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
}
.lightbox-zoom-controls button {
  min-width: 42px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.lightbox-zoom-controls button:hover,
.lightbox-zoom-controls button:focus-visible {
  background: rgba(255,255,255,0.16);
  outline: none;
}
.lightbox-zoom-level { min-width: 70px !important; font-size: 0.82rem; }
@media (max-width: 767px) {
  .lightbox-inner { padding: 0 42px; }
  .lightbox-img-stage { height: min(62vh, 560px); }
  .lightbox-zoom-hint { font-size: 0.7rem; }
  .lightbox-zoom-controls { bottom: 8px; }
  .lightbox-zoom-controls button { min-width: 38px; height: 38px; padding: 0 10px; }
}
.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-card-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  margin-top: 9px;
  padding: 7px 10px;
  border: 1px solid #b9d8cb;
  border-radius: 999px;
  background: #eff8f4;
  color: #176b50;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
}
.officer-card-call span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.officer-detail-call {
  padding:0;
  border:0;
  background:none;
  color:#176b50;
  font-family:inherit;
  font-size:inherit;
  font-weight:900;
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
}

/* 임원 상세 모달 */
.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-members .officer-cards {
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:20px;
}
.officer-room-detail-members .officer-card {
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  align-items:center;
  min-height:66px;
  padding:6px 10px;
  overflow:visible;
  border:1px solid color-mix(in srgb,var(--room-accent) 20%,#dbe3e8);
  border-left:5px solid var(--room-accent);
  border-radius:12px;
  background:linear-gradient(100deg,#fff 0%,var(--room-bg) 100%);
  box-shadow:0 3px 12px rgba(17,45,68,.08);
}
.officer-room-detail-members .officer-photo-wrap {
  width:46px;
  height:46px;
  margin:0;
}
.officer-room-detail-members .officer-card-info {
  min-width:0;
  padding:1px 0 1px 7px;
  text-align:left;
}
.officer-room-detail-members .officer-card-heading {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:flex-start;
  gap:1px clamp(2px,1.2vw,6px);
  min-width:0;
}
.officer-room-detail-members .officer-card-name {
  flex:0 1 auto;
  min-width:0;
  margin:0;
  font-size:1rem;
  line-height:1.25;
  white-space:nowrap;
}
.officer-room-detail-members .officer-card-pos {
  flex:0 1 auto;
  min-width:0;
  max-width:100%;
  font-size:.84rem;
  line-height:1.25;
  white-space:normal;
  word-break:keep-all;
}
.officer-room-detail-members .officer-card-pos:not(:empty)::before {
  content:'(';
}
.officer-room-detail-members .officer-card-pos:not(:empty)::after {
  content:')';
}
.officer-room-detail-members .officer-card-pos:empty {
  display:none;
}
.officer-room-detail-members .officer-card-branch {
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
  word-break:keep-all;
  overflow-wrap:anywhere;
  margin:0;
  line-height:1.25;
}
.officer-room-detail-members .officer-card-call {
  justify-content:flex-start;
  justify-self:start;
  max-width:none;
  margin-top:2px;
  padding:3px 8px;
  font-size:.8rem;
  line-height:1.2;
}
.officer-room-detail-members .officer-card-call span {
  overflow:visible;
  text-overflow:clip;
}
.officer-room-detail-members .officer-admin-actions {
  grid-column:1 / -1;
  width:100%;
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  gap:6px;
  padding:5px 0 0;
}
.officer-room-detail-members .officer-admin-actions button {
  min-width:0;
  white-space:nowrap;
  writing-mode:horizontal-tb;
}
.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-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-hometown-filter {
  width: 146px;
  padding: 10px 12px;
  border: 1.5px solid #ddd;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #334155;
  font: 600 0.86rem 'Noto Sans KR', sans-serif;
  outline: none;
}
.mb-hometown-filter: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-card-hometown {
  margin-top: 2px;
  color: #8a6818;
  font-size: 0.78rem;
  font-weight: 650;
}
.mb-card-hometown i { margin-right: 3px; }
.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; }
@media (max-width: 430px) {
  .mb-search-bar { flex-wrap: wrap; }
  .mb-search-input, .mb-hometown-filter { width: 100%; flex: 1 1 100%; }
}
.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;
  border:0;background:var(--green-main);color:#fff;text-decoration:none;font:900 1rem 'Noto Sans KR',sans-serif;cursor:pointer;
}
.officer-card-featured { border:1px solid rgba(214,178,94,.75); }
.officer-room-section.featured .officer-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 0;
}
.officer-room-section.featured .officer-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  padding: 10px;
}
.officer-room-section.featured .officer-photo-wrap {
  width: 58px;
  height: 58px;
  margin: 0;
}
.officer-room-section.featured .officer-card-info {
  min-width: 0;
  padding: 4px 2px 4px 9px;
  text-align: left;
}
.officer-room-section.featured .officer-card-name,
.officer-room-section.featured .officer-card-pos,
.officer-room-section.featured .officer-card-branch {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.officer-room-section.featured .officer-card-call {
  justify-content: flex-start;
  padding: 5px 8px;
}
.officer-room-section.featured .officer-admin-actions {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px 0 0;
}
.officer-room-section.featured .officer-admin-actions button {
  min-width: 0;
  min-height: 36px;
  padding: 7px 6px;
  line-height: 1.2;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
}

/* ════════════════════════════════════
   채팅 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); }

/* ════════════════════════════════════
   향우업체 소개
════════════════════════════════════ */
.business-directory-header .page-title {
  min-width: 0;
  white-space: nowrap;
  word-break: keep-all;
}
.business-register-label-short { display: none; }
@media (max-width: 480px) {
  .business-directory-header {
    gap: 8px;
    padding-inline: 12px;
  }
  .business-directory-header .page-title {
    font-size: clamp(0.88rem, 4vw, 1rem) !important;
    letter-spacing: -0.035em;
  }
  .business-directory-header .page-header-btn {
    padding: 7px 10px;
    font-size: clamp(0.78rem, 3.5vw, 0.88rem) !important;
  }
  .business-directory-header .page-header-btn i { margin-right: 3px; }
}
@media (max-width: 380px) {
  .business-register-label-long { display: none; }
  .business-register-label-short { display: inline; }
}
.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; }
.business-submission-help {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(91, 187, 47, 0.24);
  border-radius: 12px;
  background: rgba(91, 187, 47, 0.08);
  color: #38512e;
  font-size: 0.86rem;
  line-height: 1.55;
}
.business-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -2px 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f6f8f4;
  color: #344230;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
}
.business-consent-check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--green-main);
}
.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: calc(88px + env(safe-area-inset-bottom, 0px)); left: 50%;
  transform: translateX(-50%) translateY(14px);
  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;
  opacity:0;visibility:hidden;
  transition:opacity .25s ease,transform .25s ease,visibility 0s linear .25s;
  white-space: normal; width:max-content; max-width:min(90vw,520px);
  text-align:center;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  pointer-events: none;
}
.toast.show {
  transform:translateX(-50%) translateY(0);
  opacity:1;visibility:visible;
  transition:opacity .25s ease,transform .25s ease,visibility 0s;
}

.foreground-notification-banner {
  position:fixed;
  top:max(12px,env(safe-area-inset-top));
  left:50%;
  z-index:10020;
  display:flex;
  align-items:center;
  gap:11px;
  width:min(calc(100vw - 24px),520px);
  padding:12px 14px;
  border:1px solid rgba(91,187,47,.45);
  border-radius:17px;
  background:rgba(20,61,46,.97);
  color:#fff;
  box-shadow:0 14px 34px rgba(16,46,36,.3);
  text-align:left;
  transform:translate(-50%,-130%);
  opacity:0;
  transition:transform .22s ease,opacity .22s ease;
}
.foreground-notification-banner.show { transform:translate(-50%,0);opacity:1; }
.foreground-notification-banner > i {
  display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:12px;
  background:#6ad7ab;color:#123f30;font-size:1.05rem;
}
.foreground-notification-banner span { min-width:0;display:grid;gap:2px; }
.foreground-notification-banner strong { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem; }
.foreground-notification-banner small { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d9f4e9;font-size:.76rem; }

/* ════════════════════════════════════
   업로드 입력 공통
════════════════════════════════════ */
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; }
  .officer-room-section.featured .officer-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .officer-room-section.featured { padding: 11px; }
  .officer-room-section.featured .officer-card {
    display: block;
    padding: 9px 6px;
  }
  .officer-room-section.featured .officer-photo-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto;
  }
  .officer-room-section.featured .officer-card-info {
    padding: 7px 3px 2px;
    text-align: center;
  }
  .officer-room-section.featured .officer-card-call { justify-content: center; }
  .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; }

/* 홈 환영 카드와 가치 */
.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; }
  #businessBadge,
  #livingBadge {
    top: 10px;
    right: 14px;
    transform: none;
  }
  .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;
}

/* ════════════════════════════════════════════════════
   관리자 운영 대시보드
════════════════════════════════════════════════════ */

.dash-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 20px;
}

.dash-action-card {
  min-width: 0;
  min-height: 88px;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 9px;
  row-gap: 3px;
  padding: 12px;
  border: 1.5px solid #dce9e2;
  border-radius: 13px;
  background: #fff;
  color: #33443d;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(0,0,0,.05);
}

.dash-action-card i {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #edf7f1;
  color: var(--green-main);
  font-size: 1rem;
}

.dash-action-card span {
  min-width: 0;
  overflow: hidden;
  color: #627068;
  font-size: .75rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-action-card strong {
  color: #173f32;
  font-size: 1.05rem;
  line-height: 1.1;
}

.dash-action-card:active {
  border-color: var(--green-main);
  background: #f5fbf7;
}

.dash-finance-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.dash-finance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid #e3e8ed;
  border-radius: 11px;
  background: #fff;
}

.dash-finance-item span {
  color: #667085;
  font-size: .8rem;
  font-weight: 700;
}

.dash-finance-item strong {
  color: #173f32;
  font-size: .96rem;
}

.dash-finance-item.income strong {
  color: #173fb0;
}

.dash-finance-item.expense strong {
  color: #c62828;
}

/* 요약 카드 그리드 — 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: grid;
  gap: 10px;
  padding: 14px 16px;
  margin-top: 8px;
  background: #f8faf9;
  border: 1px solid #e4ece8;
  border-radius: 16px;
}
.pol-profile-link-btn {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid #d7e8df;
  color: #245d49;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color .12s, background .12s, box-shadow .12s, transform .12s;
}
.pol-profile-link-btn:hover,
.pol-profile-link-btn:focus-visible {
  border-color: #77aa94;
  background: #f1faf5;
  box-shadow: 0 5px 14px rgba(30, 91, 67, .1);
}
.pol-profile-link-btn:active { transform: translateY(1px); }
.my-profile-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 4px 2px;
  color: #183d31;
}
.my-profile-menu-heading > span,
.my-profile-menu-heading strong,
.my-profile-menu-heading small { display: block; }
.my-profile-menu-heading strong {
  font-size: .94rem;
  font-weight: 900;
}
.my-profile-menu-heading small {
  margin-top: 3px;
  color: #6b7e76;
  font-size: .73rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: keep-all;
}
.my-profile-menu-heading > i {
  flex: 0 0 auto;
  color: #b58b2d;
  font-size: 1.05rem;
}
.my-profile-menu-copy {
  min-width: 0;
  flex: 1 1 auto;
}
.my-profile-menu-copy strong,
.my-profile-menu-copy small { display: block; }
.my-profile-menu-copy strong {
  color: #1d5541;
  font-size: .92rem;
  font-weight: 900;
  line-height: 1.3;
}
.my-profile-menu-copy small {
  margin-top: 3px;
  color: #657970;
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: keep-all;
}
.my-profile-menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex: 0 0 auto;
  margin-left: auto;
  color: #287258;
  font-size: .72rem;
  font-weight: 900;
  white-space: nowrap;
}
.my-profile-menu-cta > i { font-size: .64rem; }
.my-profile-setting-btn > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #247458, #3d9272);
  font-size: 1rem;
}
.my-profile-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.my-profile-guide-btn {
  min-height: 52px;
  padding: 10px 12px;
}
.my-profile-guide-btn > i:first-child {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
  color: #277058;
  background: #e8f4ee;
}
.my-profile-guide-btn > span:not(.my-profile-menu-cta) {
  min-width: 0;
  flex: 1 1 auto;
  font-size: .84rem;
  font-weight: 800;
}
@media (min-width: 480px) {
  .my-profile-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .my-profile-guide-wide { grid-column: 1 / -1; }
}
.my-profile-pin-btn {
  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:not(.my-profile-menu-cta) {
  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 .my-profile-menu-cta {
  color: #fff;
  opacity: .96;
}
.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-public-event-card.is-locked {
  opacity: 0.72;
  filter: saturate(0.72);
  cursor: default;
}

.app-user-public-event-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f1f5f3;
  color: #45635a;
  font-size: 0.82rem;
  font-weight: 800;
}

.app-user-locked-directory-page {
  min-height: calc(100vh - 72px);
  padding: 18px 16px 96px;
  background: #f7faf8;
}

.app-user-locked-directory-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dce9e3;
  border-radius: 12px;
  background: #fff;
  color: #1c6754;
}

.app-user-locked-directory-intro > i {
  flex: 0 0 auto;
  font-size: 1.45rem;
}

.app-user-locked-directory-intro div,
.app-user-locked-room-card div {
  min-width: 0;
}

.app-user-locked-directory-intro strong,
.app-user-locked-directory-intro span,
.app-user-locked-room-card strong,
.app-user-locked-room-card div > span {
  display: block;
}

.app-user-locked-directory-intro strong {
  color: #183c33;
  font-size: 0.98rem;
}

.app-user-locked-directory-intro span {
  margin-top: 4px;
  color: #687a74;
  font-size: 0.82rem;
}

.app-user-locked-room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.app-user-locked-room-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 94px;
  padding: 14px;
  border: 1px solid #dfe7e3;
  border-radius: 12px;
  background: #fff;
  opacity: 0.68;
}

.app-user-locked-room-emoji {
  font-size: 1.5rem;
}

.app-user-locked-room-card strong {
  color: #263b35;
  font-size: 0.94rem;
}

.app-user-locked-room-card div > span {
  overflow: hidden;
  margin-top: 3px;
  color: #73827d;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-user-locked-room-badge {
  grid-column: 1 / -1;
  color: #61716b;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: right;
}

@media (max-width: 390px) {
  .app-user-locked-room-grid {
    grid-template-columns: 1fr;
  }
}

.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%}}
.my-profile-edit-modal {
  width: min(92vw, 560px);
}

.my-profile-edit-scope {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid #d8e5df;
  border-radius: 12px;
  color: #426258;
  background: #f4faf7;
  font-size: .84rem;
  line-height: 1.55;
}

.my-profile-info-btn {
  width: 100%;
  min-width: 0;
  min-height: 86px;
  padding: 16px 18px;
  border: 2px solid #4f9278;
  border-radius: 18px;
  background: linear-gradient(135deg, #eaf8f1 0%, #f8fcfa 58%, #e7f4ee 100%);
  box-shadow: 0 8px 20px rgba(27, 104, 75, .14);
  color: #164f3c;
}
.my-profile-info-btn > i {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #176b50;
  color: #fff;
  font-size: 1.25rem;
}
.my-profile-info-copy {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  text-align: left;
}
.my-profile-info-copy strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1.25;
  font-weight: 900;
}
.my-profile-info-copy small {
  display: block;
  color: #536b62;
  font-size: .86rem;
  line-height: 1.5;
  word-break: keep-all;
}
@media (max-width: 360px) {
  .my-profile-info-btn { padding: 14px; gap: 11px; }
  .my-profile-info-btn > i { flex-basis: 42px; width: 42px; height: 42px; }
  .my-profile-info-copy strong { font-size: 1.06rem; }
  .my-profile-info-copy small { font-size: .8rem; }
}

.branch-schedule-editor-modal {
  display: flex;
  flex-direction: column;
  max-height: min(92dvh, 760px);
  overflow: hidden;
}
.branch-schedule-editor-form {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}
.branch-schedule-editor-form > .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.branch-schedule-editor-form > .modal-footer {
  flex: 0 0 auto;
}
.branch-scanner-editor {
  margin: 0 0 15px;
  padding: 13px;
  border: 1px solid #cfe1d7;
  border-radius: 14px;
  background: linear-gradient(145deg, #f7fbf8, #eef7f2);
}
.branch-scanner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.branch-scanner-head strong,
.branch-scanner-head small,
.branch-scanner-person strong,
.branch-scanner-person span { display: block; }
.branch-scanner-head strong { color: #174f3a; font-size: .98rem; }
.branch-scanner-head small { margin-top: 4px; color: #687a71; font-size: .76rem; line-height: 1.45; }
.branch-scanner-head > span {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: #17684b;
  font-size: .75rem;
  font-weight: 800;
}
.branch-scanner-assigned,
.branch-scanner-results { display: grid; gap: 7px; }
.branch-scanner-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d8e5dd;
  border-radius: 11px;
  background: #fff;
}
.branch-scanner-person > div { min-width: 0; }
.branch-scanner-person strong { color: #25362f; font-size: .9rem; }
.branch-scanner-person span { margin-top: 2px; color: #718078; font-size: .75rem; }
.branch-scanner-person button { flex: 0 0 auto; padding: 8px 10px; }
.branch-schedule-editor-form .branch-scanner-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
  margin-top: 11px;
}
.branch-schedule-editor-form .branch-scanner-search label {
  display: grid;
  min-width: 0;
  gap: 6px;
}
.branch-schedule-editor-form .branch-scanner-search label > span {
  color: #344b40;
  font-size: .8rem;
  font-weight: 800;
}
.branch-schedule-editor-form .branch-scanner-search input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  border: 1.5px solid #aac6b7;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: #20372d;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  box-sizing: border-box;
}
.branch-schedule-editor-form .branch-scanner-search input:focus {
  border-color: #17684b;
  box-shadow: 0 0 0 3px rgba(23,104,75,.12);
}
.branch-schedule-editor-form .branch-scanner-search input::placeholder { color: #89978f; }
.branch-schedule-editor-form .branch-scanner-search button {
  min-width: 92px;
  height: 50px;
  padding: 0 15px;
  border-radius: 12px;
  white-space: nowrap;
  font-size: .94rem;
  font-weight: 800;
}
.branch-scanner-results { margin-top: 8px; }
.branch-scanner-state {
  padding: 10px;
  border-radius: 10px;
  color: #708078;
  background: rgba(255,255,255,.76);
  font-size: .78rem;
  line-height: 1.45;
  text-align: center;
}
.branch-scanner-state.error { color: #a33b35; }
.branch-scanner-state.error button { display: block; margin: 8px auto 0; }
@media (max-width: 380px) {
  .branch-schedule-editor-form .branch-scanner-search { grid-template-columns: 1fr; }
  .branch-schedule-editor-form .branch-scanner-search button { width: 100%; }
}

/* 투표방 */
.polls-page {
  min-height:100%;
  background:linear-gradient(180deg,#f2f6ff 0,#f7f8fa 42%,#fff 100%);
}
.polls-hero {
  display:flex;align-items:center;gap:14px;margin:0 0 14px;padding:17px;
  border:1px solid #cfdaf6;border-radius:18px;
  background:linear-gradient(135deg,#fff,#edf3ff);
  box-shadow:0 8px 22px rgba(35,60,133,.08);
}
.polls-hero-icon {
  display:grid;flex:0 0 50px;width:50px;height:50px;place-items:center;
  border-radius:15px;color:#fff;font-size:22px;
  background:linear-gradient(135deg,#385fbc,#233c85);
}
.polls-hero h2 { margin:0 0 5px;color:#172c55;font-size:17px;line-height:1.3; }
.polls-hero p { margin:0;color:#5c6880;font-size:12px;line-height:1.55; }
.polls-list { display:grid;gap:10px; }
.poll-list-card {
  width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;gap:12px;padding:15px;border:1px solid #dfe4ec;
  border-radius:16px;text-align:left;color:#18283f;background:#fff;
  box-shadow:0 5px 16px rgba(25,43,70,.06);
}
.poll-list-card:active { transform:translateY(1px); }
.poll-status {
  display:inline-flex;align-items:center;justify-content:center;min-width:54px;
  padding:6px 9px;border-radius:999px;color:#fff;font-size:11px;
  font-weight:800;background:#64748b;
}
.poll-list-card.open .poll-status,.poll-status.open { background:#167a5b; }
.poll-list-card.waiting .poll-status,.poll-status.waiting { background:#a57817; }
.poll-list-card.closed .poll-status,.poll-status.closed { background:#697386; }
.poll-list-copy { min-width:0;display:grid;gap:4px; }
.poll-list-copy strong { overflow:hidden;text-overflow:ellipsis;color:#172c55;font-size:15px;white-space:nowrap; }
.poll-list-copy small { color:#6b7280;font-size:11px;line-height:1.4; }
.poll-list-copy em { color:#385fbc;font-size:11px;font-style:normal;font-weight:750; }
.poll-list-card > i { color:#98a2b3; }
.poll-detail { padding-bottom:20px; }
.poll-detail-back {
  display:inline-flex;align-items:center;gap:7px;margin:0 0 10px;padding:8px 2px;
  border:0;color:#385fbc;font-weight:800;background:transparent;
}
.poll-detail-card {
  padding:18px;border:1px solid #dbe2ee;border-radius:20px;background:#fff;
  box-shadow:0 10px 28px rgba(25,43,70,.08);
}
.poll-detail-head { display:flex;align-items:center;justify-content:space-between;gap:8px;color:#5c6880;font-size:12px;font-weight:700; }
.poll-detail-card h2 { margin:18px 0 8px;color:#12294f;font-size:22px;line-height:1.4;word-break:keep-all; }
.poll-period { margin:0;color:#64748b;font-size:12px;line-height:1.6; }
.poll-description { margin:16px 0;padding:15px;border-radius:13px;color:#344054;line-height:1.65;background:#f6f8fb;word-break:break-word; }
.poll-privacy-note { margin:14px 0;padding:12px 13px;border-left:4px solid #385fbc;border-radius:8px;color:#415274;font-size:12px;line-height:1.55;background:#eef3ff; }
.poll-detail-card fieldset { margin:18px 0 0;padding:0;border:0; }
.poll-detail-card legend { margin-bottom:10px;color:#172c55;font-size:14px;font-weight:850; }
.poll-option-list { display:grid;gap:9px; }
.poll-option {
  display:flex;align-items:center;gap:11px;min-height:50px;padding:12px 13px;
  border:1px solid #d9e0ec;border-radius:13px;color:#27364d;background:#fff;
}
.poll-option:has(input:checked) { border-color:#385fbc;background:#eef3ff;box-shadow:0 0 0 2px rgba(56,95,188,.1); }
.poll-option input { width:20px;height:20px;accent-color:#385fbc; }
.poll-option span { font-size:14px;font-weight:700;line-height:1.45; }
.poll-submit-btn { width:100%;min-height:50px;margin-top:15px;border-radius:13px;font-weight:850; }
.poll-complete-message,.poll-result-hidden { margin-top:15px;padding:14px;border-radius:12px;text-align:center;color:#526075;font-size:13px;background:#f3f5f8; }
.poll-result-section { margin-top:18px;padding-top:18px;border-top:1px solid #e3e8ef; }
.poll-result-section h3 { margin:0 0 5px;color:#172c55; }
.poll-result-section > p { margin:0 0 14px;color:#64748b;font-size:12px; }
.poll-result-list { display:grid;gap:13px; }
.poll-result-row > div:first-child { display:flex;justify-content:space-between;gap:10px;margin-bottom:6px;font-size:12px; }
.poll-result-row strong { color:#27364d; }
.poll-result-row span { color:#526075; }
.poll-result-track { overflow:hidden;height:9px;border-radius:999px;background:#e7ebf1; }
.poll-result-track span { display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#385fbc,#167a5b); }
@media (max-width:390px) {
  .polls-hero { align-items:flex-start;padding:14px; }
  .polls-hero-icon { flex-basis:43px;width:43px;height:43px; }
  .poll-list-card { grid-template-columns:1fr auto;gap:8px;padding:13px; }
  .poll-list-card .poll-status { grid-column:1/-1;justify-self:start; }
  .poll-detail-card { padding:15px; }
  .poll-detail-card h2 { font-size:20px; }
}

/* 모바일 관리자 행사·QR 출석 */
.mobile-attendance-page { padding:14px 14px 42px; background:#f4f7f6; }
.mobile-attendance-tabs {
  position:sticky; top:0; z-index:3; display:grid; grid-template-columns:1fr 1fr 48px;
  gap:7px; margin:-2px 0 12px; padding:8px; border:1px solid #dce7e2;
  border-radius:15px; background:rgba(255,255,255,.96); box-shadow:0 7px 20px rgba(18,66,49,.08);
}
.mobile-attendance-tabs button {
  min-height:43px; border:1px solid #dbe4e0; border-radius:11px; color:#496259;
  background:#f6f9f8; font-size:14px; font-weight:800;
}
.mobile-attendance-tabs button.active { border-color:#17684d; color:#fff; background:#17684d; }
.mobile-attendance-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:13px; }
.mobile-attendance-summary article {
  min-width:0; padding:12px 6px; border:1px solid #dce7e2; border-radius:13px;
  text-align:center; background:#fff;
}
.mobile-attendance-summary span { display:block; color:#6b7d76; font-size:11px; font-weight:700; }
.mobile-attendance-summary strong { display:block; margin-top:4px; color:#154f3d; font-size:16px; }
.mobile-attendance-list { display:grid; gap:11px; }
.mobile-attendance-card {
  padding:15px; border:1px solid #d9e5e0; border-radius:16px; background:#fff;
  box-shadow:0 7px 18px rgba(29,68,53,.07);
}
.mobile-attendance-card-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.mobile-attendance-type,.mobile-attendance-scope {
  display:inline-flex; align-items:center; min-height:25px; padding:4px 8px; border-radius:999px;
  font-size:11px; font-weight:800;
}
.mobile-attendance-type { color:#12583f; background:#e6f4ee; }
.mobile-attendance-scope { overflow:hidden; max-width:52%; color:#76581e; background:#fff4d7; text-overflow:ellipsis; white-space:nowrap; }
.mobile-attendance-card h4 { margin:11px 0 8px; color:#173e31; font-size:17px; line-height:1.35; }
.mobile-attendance-card p { margin:5px 0; color:#65736e; font-size:12px; line-height:1.45; }
.mobile-attendance-card p i { width:17px; color:#40846c; text-align:center; }
.mobile-attendance-counts { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin:12px 0; }
.mobile-attendance-counts span {
  padding:8px 4px; border-radius:9px; color:#68756f; text-align:center; font-size:11px; background:#f3f7f5;
}
.mobile-attendance-counts strong { display:block; margin-top:2px; color:#183d31; font-size:15px; }
.mobile-attendance-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.mobile-attendance-actions button {
  min-height:44px; border:1px solid #17684d; border-radius:11px; color:#fff;
  background:#17684d; font-size:13px; font-weight:850;
}
.mobile-attendance-actions button:only-child { grid-column:1/-1; }
.mobile-attendance-actions button.outline { color:#17684d; background:#fff; }
@media (max-width:360px) {
  .mobile-attendance-page { padding-inline:10px; }
  .mobile-attendance-summary { gap:5px; }
  .mobile-attendance-summary strong { font-size:14px; }
}

/* 지회 회원명단·개인 쪽지함: 모바일 우선 */
.branch-detail-tabs {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.branch-detail-tabs.has-branch-polls {
  grid-template-columns:repeat(5,minmax(0,1fr));
}
.branch-tab-btn {
  min-width:0;
  min-height:50px;
  padding:9px 2px;
  font-size:.78rem;
  white-space:nowrap;
}
.branch-tab-btn > i { margin-right:2px; }
.branch-tab-btn .internal-new-badge {
  top:3px;
  right:3px;
  min-width:17px;
  height:17px;
  padding:0 4px;
  font-size:.58rem;
  transform:none;
}
.mb-card-actions {
  display:flex;
  flex:0 0 auto;
  gap:6px;
}
.mb-phone-icon,
.mb-message-icon {
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 38px;
  border:0;
  border-radius:50%;
  font-size:.92rem;
  text-decoration:none;
}
.mb-message-icon {
  color:#fff;
  background:#17684d;
  cursor:pointer;
}
.member-detail-message { gap:7px; }
.officer-card-contact-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin-top:5px;
}
.officer-card-contact-actions .officer-card-call { margin-top:0; }
.officer-card-message {
  min-height:32px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 10px;
  border:1px solid #b9d9ca;
  border-radius:999px;
  color:#17684d;
  background:#edf8f3;
  font:800 .75rem 'Noto Sans KR',sans-serif;
  cursor:pointer;
}
.branch-member-roster,
.dm-inbox,
.dm-conversation {
  width:min(100%,720px);
  margin:0 auto;
  color:#183b30;
}
.branch-member-roster { padding:13px 12px 36px; }
.branch-member-roster-head,
.dm-inbox-head {
  margin-bottom:10px;
  padding:14px;
  border:1px solid #d9e8e1;
  border-radius:15px;
  background:linear-gradient(135deg,#f2faf6,#fff);
}
.branch-member-roster-head h2,
.dm-inbox-head h2 {
  margin:0;
  font-size:1.05rem;
  line-height:1.3;
}
.branch-member-roster-head h2 i,
.dm-inbox-head h2 i { color:#17684d; }
.branch-member-roster-head p,
.dm-inbox-head p {
  margin:5px 0 0;
  color:#687b74;
  font-size:.76rem;
  line-height:1.45;
  word-break:keep-all;
}
.branch-member-list,
.dm-thread-list {
  overflow:hidden;
  border:1px solid #dce8e3;
  border-radius:16px;
  background:#fff;
}
.branch-member-row {
  min-width:0;
  min-height:64px;
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:10px 11px;
  border-bottom:1px solid #edf2ef;
}
.branch-member-row:last-child { border-bottom:0; }
.branch-member-avatar,
.dm-avatar,
.dm-compose-avatar {
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  border-radius:50%;
  object-fit:cover;
  color:#fff;
  background:linear-gradient(135deg,#2b8a67,#14523e);
  font-weight:900;
}
.branch-member-copy { min-width:0; }
.branch-member-copy strong,
.branch-member-copy span {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.branch-member-copy strong { font-size:.94rem; }
.branch-member-copy span {
  margin-top:3px;
  color:#6a7a74;
  font-size:.73rem;
}
.branch-member-message {
  min-width:52px;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:6px 8px;
  border:1px solid #b9d9ca;
  border-radius:11px;
  color:#17684d;
  background:#edf8f3;
  font:800 .72rem 'Noto Sans KR',sans-serif;
}
.branch-member-self {
  min-width:38px;
  padding:5px 8px;
  border-radius:999px;
  color:#5f716a;
  background:#f0f4f2;
  text-align:center;
  font-size:.7rem;
  font-weight:800;
}
.dm-loading {
  min-height:220px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:11px;
  color:#65766f;
}
.dm-inbox { padding:12px 11px 38px; }
.dm-inbox-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.dm-icon-btn,
.dm-text-btn {
  flex:0 0 auto;
  min-width:42px;
  min-height:42px;
  border:1px solid #d7e5df;
  border-radius:12px;
  color:#17684d;
  background:#fff;
  font-weight:800;
}
.dm-text-btn { padding:7px 9px;font-size:.7rem; }
.dm-text-btn.is-danger { color:#b53b3b;border-color:#efc9c9;background:#fff6f6; }
.dm-unread-summary {
  margin:0 0 9px;
  padding:9px 12px;
  border-radius:11px;
  color:#fff;
  background:#17684d;
  font-size:.78rem;
  font-weight:800;
}
.dm-thread-row {
  width:100%;
  min-width:0;
  min-height:70px;
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  padding:10px;
  border:0;
  border-bottom:1px solid #edf2ef;
  text-align:left;
  color:inherit;
  background:#fff;
}
.dm-thread-row:last-child { border-bottom:0; }
.dm-thread-row.has-unread { background:#f1faf6; }
.dm-thread-copy,
.dm-thread-name,
.dm-thread-preview { min-width:0;display:block; }
.dm-thread-name {
  overflow:hidden;
  color:#183b30;
  font-size:.92rem;
  font-weight:900;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dm-thread-name small {
  margin-left:5px;
  color:#75847e;
  font-size:.64rem;
  font-weight:700;
}
.dm-thread-preview {
  margin-top:4px;
  overflow:hidden;
  color:#6e7c77;
  font-size:.74rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dm-thread-meta {
  align-self:stretch;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:6px;
}
.dm-thread-meta time { color:#8a9691;font-size:.62rem; }
.dm-thread-meta em {
  min-width:19px;
  height:19px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 5px;
  border-radius:999px;
  color:#fff;
  background:#e33b42;
  font-size:.62rem;
  font-style:normal;
  font-weight:900;
}
.dm-empty {
  min-height:180px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:24px 18px;
  color:#71817b;
  text-align:center;
}
.dm-empty > i { color:#9db0a8;font-size:2rem; }
.dm-empty strong { color:#324c42;font-size:.92rem; }
.dm-empty p { margin:0;font-size:.75rem;line-height:1.5;word-break:keep-all; }
.dm-empty--error > i { color:#cf5555; }
.dm-conversation {
  height:calc(100dvh - 176px);
  min-height:430px;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  background:#eef4f1;
}
.dm-conversation-head {
  min-width:0;
  display:grid;
  grid-template-columns:42px 40px minmax(0,1fr) auto;
  align-items:center;
  gap:7px;
  padding:9px;
  border-bottom:1px solid #dce7e2;
  background:#fff;
}
.dm-conversation-head .dm-avatar { width:40px;height:40px; }
.dm-conversation-head > div { min-width:0; }
.dm-conversation-head strong,
.dm-conversation-head span {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dm-conversation-head strong { font-size:.9rem; }
.dm-conversation-head span { margin-top:2px;color:#71817b;font-size:.66rem; }
.dm-message-list {
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:14px 11px 18px;
  -webkit-overflow-scrolling:touch;
}
.dm-message {
  max-width:82%;
  display:flex;
  flex-direction:column;
  margin-bottom:10px;
}
.dm-message.is-mine { margin-left:auto;align-items:flex-end; }
.dm-message.is-other { margin-right:auto;align-items:flex-start; }
.dm-message-bubble {
  padding:9px 11px;
  border-radius:14px;
  color:#283f36;
  background:#fff;
  box-shadow:0 2px 7px rgba(29,70,54,.08);
  font-size:.83rem;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.dm-message.is-mine .dm-message-bubble {
  color:#fff;
  background:#17684d;
  border-bottom-right-radius:4px;
}
.dm-message.is-other .dm-message-bubble { border-bottom-left-radius:4px; }
.dm-message-meta {
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:3px;
  color:#88958f;
  font-size:.6rem;
}
.dm-message-meta button {
  padding:0;
  border:0;
  color:#a25959;
  background:transparent;
  font-size:.6rem;
}
.dm-reply-form {
  display:grid;
  grid-template-columns:minmax(0,1fr) 44px;
  align-items:end;
  gap:7px;
  padding:9px max(9px,env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left));
  border-top:1px solid #d7e4de;
  background:#fff;
}
.dm-reply-form textarea {
  width:100%;
  min-height:44px;
  max-height:112px;
  resize:vertical;
  padding:11px 12px;
  border:1px solid #cad9d2;
  border-radius:13px;
  font:500 .84rem/1.4 'Noto Sans KR',sans-serif;
}
.dm-reply-form button {
  width:44px;
  height:44px;
  border:0;
  border-radius:13px;
  color:#fff;
  background:#17684d;
}
.dm-reply-form button:disabled { opacity:.45; }
.dm-compose-overlay {
  top:var(--dm-compose-viewport-top,0) !important;
  right:0;
  bottom:auto !important;
  left:0;
  height:var(--dm-compose-viewport-height,calc(100dvh - 72px - env(safe-area-inset-bottom,0px)));
  max-height:none;
  box-sizing:border-box;
  padding:10px;
  align-items:flex-end;
}
.dm-compose-modal {
  width:min(100%,520px);
  max-height:min(100%,720px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.dm-compose-modal > .modal-header { flex:0 0 auto; }
.dm-compose-form {
  min-height:0;
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
}
.dm-compose-form > .modal-body {
  min-height:0;
  flex:1 1 auto;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
}
.dm-compose-form > .modal-footer { flex:0 0 auto; }
.dm-compose-recipient {
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}
.dm-compose-recipient > div { min-width:0; }
.dm-compose-avatar { width:42px;height:42px; }
.dm-compose-recipient small,
.dm-compose-recipient strong,
.dm-compose-recipient span {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dm-compose-recipient small { color:#7b8984;font-size:.62rem; }
.dm-compose-recipient strong { color:#173f31;font-size:.92rem; }
.dm-compose-recipient span { color:#70817a;font-size:.66rem; }
.dm-compose-label {
  display:block;
  margin-bottom:7px;
  color:#274c3e;
  font-size:.83rem;
  font-weight:900;
}
.dm-compose-form textarea {
  width:100%;
  min-height:150px;
  resize:vertical;
  padding:13px;
  border:1px solid #cad9d2;
  border-radius:13px;
  font:500 .9rem/1.55 'Noto Sans KR',sans-serif;
}
.dm-compose-help {
  margin-top:9px;
  color:#75847f;
  font-size:.7rem;
  line-height:1.45;
}
.dm-compose-actions {
  display:grid;
  grid-template-columns:1fr 1.35fr;
}
.dm-compose-actions button { min-width:0;min-height:46px; }
.dm-compose-overlay.dm-keyboard-open {
  padding:4px 8px max(4px,env(safe-area-inset-bottom,0px));
}
.dm-compose-overlay.dm-keyboard-open .dm-compose-modal {
  max-height:100%;
}
.dm-compose-overlay.dm-keyboard-open .modal-header {
  padding:9px 12px 7px;
}
.dm-compose-overlay.dm-keyboard-open .dm-compose-form > .modal-body {
  padding:9px 12px;
}
.dm-compose-overlay.dm-keyboard-open .dm-compose-form textarea {
  min-height:72px;
  resize:none;
}
.dm-compose-overlay.dm-keyboard-open .dm-compose-help {
  display:none;
}
.dm-compose-overlay.dm-keyboard-open .dm-compose-actions {
  padding:8px 12px max(8px,env(safe-area-inset-bottom,0px));
}
@media (max-width:390px) {
  .branch-tab-btn { min-height:48px;font-size:.68rem;letter-spacing:-.04em; }
  .branch-tab-btn > i { display:block;margin:0 auto 3px;font-size:.82rem; }
  .mb-card { gap:8px;padding:11px 9px; }
  .mb-avatar,.mb-avatar-img { width:42px;height:42px; }
  .mb-card-actions { flex-direction:column;gap:4px; }
  .mb-phone-icon,.mb-message-icon { width:34px;height:34px;flex-basis:34px; }
  .branch-member-row { grid-template-columns:40px minmax(0,1fr) 48px;padding-inline:8px;gap:8px; }
  .branch-member-avatar { width:40px;height:40px; }
  .branch-member-message span { display:none; }
  .branch-member-message { min-width:40px;padding-inline:6px; }
  .dm-thread-name small { display:block;margin:2px 0 0; }
  .dm-conversation { height:calc(100dvh - 168px); }
}
@media (min-width:700px) {
  .branch-tab-btn { font-size:.9rem; }
  .branch-member-roster,.dm-inbox { padding-inline:18px; }
  .dm-message { max-width:70%; }
}

/* 정회원 자율 소그룹 채팅 */
.gc-loading {
  min-height:65vh;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:12px;color:#667a72;font-size:.82rem;
}
.gc-page-header .page-title i { color:#21a474; }
.gc-create-head {
  min-height:38px;padding:7px 11px;border:1px solid #b9d9ca;border-radius:11px;
  color:#17684d;background:#f3fbf7;font:900 .74rem 'Noto Sans KR',sans-serif;
}
.gc-room-page { width:min(100%,760px);margin:0 auto;padding:12px 11px 42px;color:#183b30; }
.gc-hero {
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:13px;
  padding:19px 17px;border-radius:20px;color:#fff;
  background:radial-gradient(circle at 90% 10%,rgba(100,255,202,.25),transparent 34%),linear-gradient(135deg,#0f513d,#1f8b66);
  box-shadow:0 12px 28px rgba(17,91,67,.18);
}
.gc-hero span { color:#9ff0cf;font-size:.61rem;font-weight:900;letter-spacing:.16em; }
.gc-hero h2 { margin:5px 0 6px;font-size:1.14rem;line-height:1.3; }
.gc-hero p { margin:0;color:#dcf7ec;font-size:.72rem;line-height:1.5;word-break:keep-all; }
.gc-hero > i { font-size:2.25rem;color:#a9f3d4; }
.gc-safety-note {
  display:flex;align-items:flex-start;gap:7px;margin:10px 0;padding:10px 12px;border:1px solid #dbe9e3;
  border-radius:13px;color:#687b73;background:#f8fbfa;font-size:.69rem;line-height:1.45;
}
.gc-room-list { overflow:hidden;border:1px solid #dce8e3;border-radius:17px;background:#fff; }
.gc-room-row {
  width:100%;min-width:0;min-height:76px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;
  align-items:center;gap:10px;padding:11px;border:0;border-bottom:1px solid #edf2ef;
  color:inherit;text-align:left;background:#fff;
}
.gc-room-row:last-child { border-bottom:0; }
.gc-room-row.has-unread { background:#effaf5; }
.gc-room-avatar {
  width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:17px;
  color:#fff;background:linear-gradient(135deg,#27a877,#11664a);font-size:1.18rem;
}
.gc-room-avatar--small { width:40px;height:40px;border-radius:14px;font-size:.94rem; }
.gc-room-copy,.gc-room-copy strong,.gc-room-copy > span { min-width:0;display:block; }
.gc-room-copy strong { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.92rem; }
.gc-room-copy strong small { margin-left:6px;color:#73867e;font-size:.62rem;font-weight:700; }
.gc-room-copy > span { margin-top:5px;overflow:hidden;color:#6d7d77;font-size:.73rem;text-overflow:ellipsis;white-space:nowrap; }
.gc-room-meta { align-self:stretch;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:7px; }
.gc-room-meta time { color:#8b9893;font-size:.61rem; }
.gc-room-meta em {
  min-width:20px;height:20px;display:flex;align-items:center;justify-content:center;padding:0 6px;border-radius:999px;
  color:#fff;background:#e23d45;font-size:.62rem;font-style:normal;font-weight:900;
}
.gc-empty {
  min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  padding:28px 18px;color:#708079;text-align:center;
}
.gc-empty > i { color:#87a99b;font-size:2.3rem; }
.gc-empty strong { color:#28493c;font-size:.94rem; }
.gc-empty p { max-width:310px;margin:0;font-size:.73rem;line-height:1.5;word-break:keep-all; }
.gc-empty--error > i { color:#cb5454; }
.gc-avatar,.gc-member-avatar {
  width:42px;height:42px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;
  border-radius:50%;object-fit:cover;color:#fff;background:linear-gradient(135deg,#32a87d,#155f47);font-weight:900;
}
.gc-picker-modal { width:min(100%,560px);max-height:min(92dvh,780px);display:grid;grid-template-rows:auto minmax(0,1fr); }
.gc-picker-modal .modal-header small,.gc-settings-modal .modal-header small { display:block;color:#72847d;font-size:.63rem;font-weight:800; }
.gc-picker-modal .modal-header h3,.gc-settings-modal .modal-header h3 { margin:3px 0 0;color:#183f31;font-size:1rem; }
.gc-picker-modal form { min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto; }
.gc-picker-body { min-height:0;overflow-y:auto; }
.gc-field-label { display:block;margin-bottom:11px;color:#284d3e;font-size:.77rem;font-weight:900; }
.gc-field-label input {
  width:100%;height:45px;margin-top:6px;padding:0 12px;border:1px solid #cbdcd4;border-radius:12px;
  color:#183b30;background:#fff;font:500 .84rem 'Noto Sans KR',sans-serif;
}
.gc-picker-count { margin:4px 0 7px;color:#17684d;font-size:.7rem;font-weight:900; }
.gc-member-choices { overflow:hidden;border:1px solid #dce8e3;border-radius:14px;background:#fff; }
.gc-member-choice {
  min-width:0;display:grid;grid-template-columns:22px 42px minmax(0,1fr);align-items:center;gap:9px;
  padding:9px;border-bottom:1px solid #edf2ef;cursor:pointer;
}
.gc-member-choice:last-child { border-bottom:0; }
.gc-member-choice input { width:18px;height:18px;accent-color:#17684d; }
.gc-member-choice > span { min-width:0; }
.gc-member-choice strong,.gc-member-choice small { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.gc-member-choice strong { color:#183b30;font-size:.84rem; }
.gc-member-choice small { margin-top:3px;color:#72817b;font-size:.65rem; }
.gc-picker-empty,.gc-loading-inline { min-height:100px;display:flex;align-items:center;justify-content:center;padding:20px;color:#75857f;font-size:.73rem; }
.gc-picker-guide { margin:10px 1px 0;color:#73827d;font-size:.66rem;line-height:1.45; }
.gc-picker-actions { display:grid;grid-template-columns:1fr 1.35fr; }
.gc-picker-actions button { min-height:46px; }
.gc-conversation {
  width:min(100%,760px);height:calc(100dvh - 8px);min-height:480px;margin:0 auto;
  display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;color:#183b30;background:#e9f1ed;
}
.gc-conversation-head {
  min-width:0;display:grid;grid-template-columns:42px 40px minmax(0,1fr) 42px;align-items:center;gap:7px;
  padding:max(9px,env(safe-area-inset-top)) 9px 9px;border-bottom:1px solid #d9e5df;background:#fff;
}
.gc-icon-btn {
  width:40px;height:40px;border:1px solid #d7e5df;border-radius:12px;color:#17684d;background:#fff;font-size:.9rem;
}
.gc-conversation-head > div { min-width:0; }
.gc-conversation-head strong,.gc-conversation-head span { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.gc-conversation-head strong { font-size:.9rem; }
.gc-conversation-head span { margin-top:2px;color:#71817b;font-size:.65rem; }
.gc-message-list { min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 12px 20px;-webkit-overflow-scrolling:touch; }
.gc-conversation-empty { padding:50px 15px;color:#7a8a84;text-align:center;font-size:.75rem; }
.gc-message { max-width:82%;display:flex;flex-direction:column;margin-bottom:11px; }
.gc-message.is-mine { margin-left:auto;align-items:flex-end; }
.gc-message.is-other { margin-right:auto;align-items:flex-start; }
.gc-message-sender { margin:0 0 4px 4px;color:#52665e;font-size:.67rem;font-weight:800; }
.gc-message-bubble {
  overflow:hidden;padding:9px 11px;border-radius:15px;color:#263e35;background:#fff;
  box-shadow:0 2px 7px rgba(29,70,54,.08);font-size:.84rem;line-height:1.48;overflow-wrap:anywhere;
}
.gc-message-bubble p { margin:0; }
.gc-message.is-mine .gc-message-bubble { color:#fff;background:#17684d;border-bottom-right-radius:4px; }
.gc-message.is-other .gc-message-bubble { border-bottom-left-radius:4px; }
.gc-message-image { display:block;max-width:230px;margin:-5px -7px 7px;padding:0;border:0;border-radius:11px;overflow:hidden;background:#dce8e2; }
.gc-message-image img { display:block;width:100%;max-height:320px;object-fit:cover; }
.gc-message-meta { display:flex;align-items:center;gap:6px;margin-top:3px;color:#83928c;font-size:.6rem; }
.gc-message-meta button { padding:0;border:0;color:#a15555;background:transparent;font-size:.6rem; }
.gc-reply-form {
  position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) 44px;align-items:end;gap:7px;
  padding:9px max(9px,env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left));
  border-top:1px solid #d4e1db;background:#fff;
}
.gc-reply-form textarea {
  width:100%;min-height:44px;max-height:112px;resize:vertical;padding:11px 12px;border:1px solid #c9d9d1;
  border-radius:13px;font:500 .84rem/1.4 'Noto Sans KR',sans-serif;
}
.gc-image-pick,.gc-send { width:42px;height:44px;border:0;border-radius:13px;font-size:1rem; }
.gc-image-pick { color:#17684d;background:#eaf6f0; }
.gc-send { color:#fff;background:#17684d; }
.gc-send:disabled { opacity:.45; }
.gc-file-chip {
  grid-column:1/-1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:7px 10px;border-radius:10px;color:#38564a;background:#eef7f3;font-size:.67rem;
}
.gc-file-chip[hidden] { display:none; }
.gc-file-chip span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.gc-file-chip button { border:0;color:#8f4c4c;background:transparent; }
.gc-settings-modal { width:min(100%,520px);max-height:min(90dvh,760px); }
.gc-settings-body { overflow-y:auto; }
.gc-settings-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:14px; }
.gc-settings-actions button {
  min-height:43px;padding:8px;border:1px solid #d6e5de;border-radius:11px;color:#17684d;background:#f5fbf8;font-size:.7rem;font-weight:900;
}
.gc-settings-body h4 { margin:0 0 7px;color:#314d42;font-size:.78rem; }
.gc-participant-list { overflow:hidden;border:1px solid #dce8e3;border-radius:13px; }
.gc-participant-row {
  min-width:0;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:8px;
  padding:9px;border-bottom:1px solid #edf2ef;
}
.gc-participant-row:last-child { border-bottom:0; }
.gc-participant-row > span { min-width:0; }
.gc-participant-row strong,.gc-participant-row small { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.gc-participant-row strong { font-size:.8rem; }.gc-participant-row small { margin-top:3px;color:#72817b;font-size:.63rem; }
.gc-participant-row em { padding:4px 7px;border-radius:999px;color:#17684d;background:#e8f6ef;font-size:.61rem;font-style:normal;font-weight:900; }
.gc-participant-row > button { padding:5px 7px;border:1px solid #efcaca;border-radius:8px;color:#aa4949;background:#fff6f6;font-size:.61rem; }
.gc-settings-footer { display:grid;grid-template-columns:repeat(2,minmax(0,1fr)); }
.gc-settings-footer .is-danger { color:#ae4545;border-color:#efcaca;background:#fff7f7; }
.gc-image-overlay { padding:10px;background:rgba(0,0,0,.82); }
.gc-image-modal { position:relative;max-width:min(96vw,920px);max-height:92dvh; }
.gc-image-modal img { display:block;max-width:100%;max-height:92dvh;border-radius:12px;object-fit:contain; }
.gc-image-modal .modal-close-btn { position:absolute;z-index:2;top:8px;right:8px;color:#fff;background:rgba(0,0,0,.55); }
.gc-report-page { width:min(100%,760px);margin:0 auto;padding:12px 11px 42px;color:#183b30; }
.gc-report-hero { display:flex;align-items:center;gap:12px;padding:16px;border-radius:17px;color:#fff;background:linear-gradient(135deg,#173f31,#246f55); }
.gc-report-hero > i { font-size:1.8rem;color:#9ce4c7; }.gc-report-hero h2 { margin:0;font-size:1rem; }.gc-report-hero p { margin:4px 0 0;color:#d8f2e8;font-size:.68rem;line-height:1.45; }
.gc-report-list { margin-top:10px;display:grid;gap:9px; }
.gc-report-card { padding:13px;border:1px solid #dbe7e2;border-radius:15px;background:#fff;box-shadow:0 4px 13px rgba(30,75,57,.06); }
.gc-report-card-head { display:flex;align-items:center;justify-content:space-between;gap:8px; }.gc-report-card-head strong { font-size:.88rem; }
.gc-report-card-head span { padding:4px 8px;border-radius:999px;font-size:.61rem;font-weight:900; }.gc-report-card-head .status-pending { color:#a84d32;background:#fff0e9; }.gc-report-card-head .status-reviewing { color:#755a13;background:#fff7d6; }.gc-report-card-head .status-resolved { color:#17684d;background:#e8f7ef; }.gc-report-card-head .status-dismissed { color:#65716d;background:#edf1ef; }
.gc-report-card dl { margin:10px 0;display:grid;gap:5px; }.gc-report-card dl > div { display:grid;grid-template-columns:62px minmax(0,1fr);gap:7px;font-size:.7rem;line-height:1.45; }.gc-report-card dt { color:#74827d;font-weight:800; }.gc-report-card dd { margin:0;color:#30483f;overflow-wrap:anywhere; }
.gc-report-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px; }.gc-report-actions button { min-height:38px;padding:7px;border:1px solid #cee1d8;border-radius:10px;color:#17684d;background:#f4fbf7;font-size:.66rem;font-weight:900; }.gc-report-actions .warn { color:#8b6519;border-color:#ead7a9;background:#fffaf0; }.gc-report-actions .danger { color:#aa4545;border-color:#edc6c6;background:#fff5f5; }
@media (min-width:700px) {
  .gc-room-page,.gc-report-page { padding-inline:18px; }
  .gc-message { max-width:70%; }
  .gc-conversation { height:calc(100dvh - 22px); }
}
@media (max-width:390px) {
  .gc-create-head { padding-inline:8px;font-size:.67rem; }
  .gc-room-row { grid-template-columns:43px minmax(0,1fr) auto;padding-inline:8px; }
  .gc-room-avatar { width:43px;height:43px;border-radius:14px; }
  .gc-settings-actions { grid-template-columns:1fr; }
}

/* 지회방 전용 투표: 모바일 우선, 연합회 투표와 독립 */
.branch-polls-page {
  padding:14px 12px 36px;
  color:#17372e;
}
.branch-polls-hero {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:18px;
  border:1px solid #cfe2da;
  border-radius:20px;
  background:linear-gradient(145deg,#f5fbf8 0%,#fffaf0 100%);
  box-shadow:0 8px 24px rgba(24,78,62,.08);
}
.branch-polls-kicker {
  display:block;
  margin-bottom:5px;
  color:#26735c;
  font-size:.75rem;
  font-weight:800;
}
.branch-polls-hero h2 { margin:0 0 5px;font-size:1.35rem;color:#113f33; }
.branch-polls-hero p { margin:0;color:#5c6e68;font-size:.82rem;line-height:1.55; }
.branch-polls-create {
  flex:0 0 auto;
  min-height:42px;
  padding:0 13px;
  border:0;
  border-radius:12px;
  background:#176c52;
  color:#fff;
  font:800 .82rem 'Noto Sans KR',sans-serif;
  box-shadow:0 5px 14px rgba(23,108,82,.2);
}
.branch-polls-list { display:grid;gap:11px;margin-top:13px; }
.branch-poll-list-card {
  overflow:hidden;
  border:1px solid #dce8e3;
  border-radius:17px;
  background:#fff;
  box-shadow:0 5px 16px rgba(28,61,51,.06);
}
.branch-poll-list-card .poll-status.draft { background:#6b5d91;color:#fff; }
.branch-poll-open-detail {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  width:100%;
  padding:15px;
  border:0;
  background:#fff;
  text-align:left;
  font-family:'Noto Sans KR',sans-serif;
}
.branch-poll-open-detail > i { color:#92a29d; }
.branch-poll-actions {
  display:flex;
  justify-content:flex-end;
  gap:6px;
  padding:9px 12px 11px;
  border-top:1px solid #edf2f0;
  background:#f8fbfa;
}
.branch-poll-actions button {
  min-height:34px;
  padding:0 11px;
  border:1px solid #bfcfc9;
  border-radius:9px;
  background:#fff;
  color:#46625a;
  font:800 .75rem 'Noto Sans KR',sans-serif;
}
.branch-poll-actions button.primary { border-color:#176c52;background:#176c52;color:#fff; }
.branch-poll-actions button.danger { border-color:#efc2c2;color:#c63e3e;background:#fff8f8; }
.branch-poll-detail { padding:14px 12px 36px; }
.branch-poll-choice-agree input:checked + span { border-color:#176c52;background:#edf8f3;color:#115b45; }
.branch-poll-choice-disagree input:checked + span { border-color:#d14f4f;background:#fff2f2;color:#b73535; }
.branch-poll-choice-abstain input:checked + span { border-color:#8a7350;background:#faf6ed;color:#6e593b; }
.branch-poll-voters { margin-top:16px;padding-top:14px;border-top:1px solid #dfe8e4; }
.branch-poll-voters h4 { margin:0 0 8px;font-size:.9rem; }
.branch-poll-voters > div { display:flex;justify-content:space-between;gap:12px;padding:8px 2px;border-bottom:1px solid #edf1ef;font-size:.78rem; }
.branch-poll-editor {
  width:min(640px,calc(100vw - 20px));
  max-width:calc(100vw - 20px);
  max-height:min(88dvh,760px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  box-sizing:border-box;
}
.branch-poll-editor > form {
  min-width:0;
  min-height:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.branch-poll-editor .modal-body {
  min-width:0;
  min-height:0;
  flex:1 1 auto;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  padding-bottom:20px;
}
.branch-poll-editor .modal-body > *,
.branch-poll-editor .form-group,
.branch-poll-editor input,
.branch-poll-editor textarea,
.branch-poll-editor select { min-width:0;max-width:100%;box-sizing:border-box; }
.branch-poll-editor .modal-footer { flex:0 0 auto; }
.branch-poll-editor-guide { display:flex;flex-direction:column;gap:3px;padding:12px 13px;margin-bottom:14px;border-radius:12px;background:#edf7f3;color:#285c4d;font-size:.78rem; }
.branch-poll-editor-guide strong { font-size:.9rem; }
.branch-poll-editor-grid { display:grid;grid-template-columns:minmax(0,1fr);gap:0; }
.branch-poll-fixed-options { display:grid;grid-template-columns:1fr repeat(3,auto);align-items:center;gap:7px;margin-top:12px;padding:12px;border:1px solid #dce7e2;border-radius:12px;background:#fafcfb;font-size:.78rem; }
.branch-poll-fixed-options strong { padding:6px 10px;border-radius:999px;background:#eaf3ef;color:#235a49; }
@media (max-width:390px) {
  .branch-detail-tabs.has-branch-polls .branch-tab-btn { font-size:.62rem;letter-spacing:-.06em; }
  .branch-polls-hero { align-items:stretch;flex-direction:column;padding:15px; }
  .branch-polls-create { align-self:flex-end; }
  .branch-poll-open-detail { grid-template-columns:1fr auto;gap:7px;padding:13px; }
  .branch-poll-open-detail .poll-status { grid-column:1/-1;justify-self:start; }
  .branch-poll-actions { flex-wrap:wrap; }
  .branch-poll-fixed-options { grid-template-columns:1fr 1fr 1fr; }
  .branch-poll-fixed-options span { grid-column:1/-1; }
}
.profile-setting-guide {
  margin: 0 0 18px;
  padding: 13px 14px;
  border-radius: 12px;
  background: #f2f7f5;
  color: #36554b;
  font-size: 0.9rem;
  line-height: 1.55;
}

.member-session-list {
  display: grid;
  gap: 10px;
}

.member-session-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid #dce8e3;
  border-radius: 14px;
  background: #fff;
}

.member-session-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e8f4ef;
  color: #176b50;
  font-size: 1.1rem;
}

.member-session-copy {
  min-width: 0;
}

.member-session-copy strong,
.member-session-copy small {
  display: block;
}

.member-session-copy strong {
  color: #172b24;
  line-height: 1.35;
}

.member-session-copy strong em {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #dff3ea;
  color: #126247;
  font-size: 0.72rem;
  font-style: normal;
  vertical-align: 1px;
}

.member-session-copy small {
  margin-top: 4px;
  color: #71817b;
  font-size: 0.78rem;
}

.member-session-revoke {
  min-width: 64px;
  padding: 9px 10px;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .member-session-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .member-session-icon {
    width: 38px;
    height: 38px;
  }

  .member-session-revoke {
    grid-column: 2;
    justify-self: start;
  }
}

/* 향우ON 프리미엄 공통 디자인 테마
   기능·권한·데이터 구조는 변경하지 않고 화면 표현만 재정의한다. */
:root {
  --hon-on-ink: #201b18;
  --hon-on-ink-soft: #342923;
  --hon-on-espresso: #120f0d;
  --hon-on-ivory: #f6f2eb;
  --hon-on-surface: #fffdf9;
  --hon-on-line: #d8c9b8;
  --hon-on-bronze: #b47a54;
  --hon-on-gold: #d8ad73;
  --hon-on-green: #194f43;
  --hon-on-green-deep: #0e352e;
  --hon-on-muted: #716861;
  --hon-on-danger: #c83f49;
  --navy: var(--hon-on-ink-soft);
  --navy-deep: var(--hon-on-espresso);
  --navy-soft: #534137;
  --green-main: var(--hon-on-green);
  --green-dark: var(--hon-on-green-deep);
  --green-light: #e8f0ec;
  --green-mid: #4d796e;
  --gold: var(--hon-on-gold);
  --gold-dark: #8f5f3d;
  --gold-light: #f8ecdc;
  --gray-light: var(--hon-on-ivory);
  --gray-mid: #c8beb3;
  --gray-dark: #625b55;
  --text-main: #28231f;
  --shadow: 0 18px 44px rgba(45, 33, 25, 0.12);
  --shadow-sm: 0 7px 20px rgba(45, 33, 25, 0.08);
}

html,
body,
#app,
#mainApp,
.app-container,
.app-main-card {
  background:
    radial-gradient(circle at 92% 5%, rgba(216, 173, 115, 0.11), transparent 25%),
    linear-gradient(180deg, #f8f5ef 0%, #f1ece5 100%);
  color: var(--text-main);
}

.app-header {
  background:
    radial-gradient(circle at 14% -80%, rgba(216, 173, 115, 0.22), transparent 46%),
    linear-gradient(122deg, #111820 0%, #192b2c 54%, #174b42 100%);
  border-bottom: 2px solid rgba(216, 173, 115, 0.78);
  box-shadow: 0 9px 28px rgba(24, 17, 13, 0.24);
}

.header-inner { min-height: 70px; }
.header-title,
.header-sub,
.user-greeting { text-shadow: none; }
.header-title { color: #fffdf9; letter-spacing: -0.045em; }
.header-sub { color: #e4be87; }
.btn-logout {
  border: 1px solid rgba(224, 190, 142, 0.62);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-logout:hover { background: rgba(216, 173, 115, 0.18); }

.app-main { padding-top: 12px; }

.member-count-grid { gap: 9px; }
.member-count-card,
.member-count-card.associate {
  border: 1px solid var(--hon-on-line);
  background: rgba(255, 253, 249, 0.92);
  color: var(--hon-on-ink);
  box-shadow: 0 5px 16px rgba(52, 41, 35, 0.065);
}
.member-count-card i,
.member-count-card.associate i { color: var(--hon-on-bronze); }
.member-count-card strong { color: var(--hon-on-green-deep); }

.president-greeting-card {
  border: 1px solid #d9c6ae;
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.98), rgba(249, 242, 232, 0.96));
  box-shadow: var(--shadow-sm);
}
.president-greeting-icon {
  color: #8c603f;
  background: #f4e7d5;
  border: 1px solid #e3cba9;
}
.president-greeting-summary strong { color: var(--hon-on-ink); }
.president-greeting-summary span { color: var(--hon-on-muted); }
.president-greeting-card button {
  border: 1px solid #41352e;
  background: #2c2420;
  color: #fffdf9;
  box-shadow: none;
}
.president-greeting-card button.edit {
  border-color: #1e5d50;
  background: var(--hon-on-green);
}

.hometown-home-card {
  border-color: #d8c6ae;
  background:
    radial-gradient(circle at 100% 0, rgba(216, 173, 115, 0.14), transparent 38%),
    rgba(255, 253, 249, 0.94);
  box-shadow: var(--shadow-sm);
}
.hometown-home-head h3 { color: var(--hon-on-ink); }
.hometown-home-head h3 i,
.hometown-home-story-text small { color: #98663f; }
.hometown-home-story-text em { color: #5b534d; }
.hometown-home-head button {
  border-color: #d7c4ab;
  background: #fffaf3;
  color: var(--hon-on-green-deep);
}
.hometown-home-weather {
  background: linear-gradient(145deg, #0e352e, #1d5a4c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.hometown-home-story {
  border-color: #e1d6c8;
  background: rgba(255, 255, 255, 0.76);
}

.menu-section-title,
.section-title {
  color: var(--hon-on-ink) !important;
  letter-spacing: -0.035em;
}
.menu-section-title i,
.section-title i { color: var(--hon-on-bronze); }

.menu-card,
.menu-card-wide,
.upcoming-item,
.notice-item {
  border: 1px solid rgba(184, 162, 139, 0.54);
  background: rgba(255, 253, 249, 0.96);
  box-shadow: var(--shadow-sm);
}
.menu-card:hover,
.menu-card-wide:hover {
  border-color: var(--hon-on-gold);
  box-shadow: 0 13px 28px rgba(52, 41, 35, 0.13);
}
.menu-icon {
  border: 1px solid rgba(229, 196, 150, 0.42);
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 11px rgba(42, 30, 23, 0.1);
}
.bg-green,
.bg-blue,
.bg-purple,
.bg-gray,
.bg-poll,
.bg-support { background: linear-gradient(145deg, #3a2f29, #1e1916); }
.bg-gold,
.bg-orange,
.bg-market { background: linear-gradient(145deg, #c18a5f, #8f5f3d); }
.bg-teal,
.bg-emerald { background: linear-gradient(145deg, #25685a, #103c33); }
.bg-red { background: linear-gradient(145deg, #70413b, #402722); }
.bg-donation {
  color: #f7e5cf;
  background: linear-gradient(145deg, #b47756, #704433);
}
.menu-label,
.menu-wide-title { color: var(--hon-on-ink); }
.menu-wide-sub { color: #5b534d; }
.menu-wide-arrow { color: var(--hon-on-bronze); }
.menu-card .menu-label.menu-label--word-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: center;
  column-gap: 0.2em;
  row-gap: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1;
}
.menu-label--word-wrap > span {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}
.menu-card-wide--admin {
  border-color: #c9b9a7;
  background: #f4eee6;
}
.menu-badge,
.internal-new-badge {
  background: var(--hon-on-danger);
  border-color: #fffdf9;
  box-shadow: 0 4px 12px rgba(143, 32, 42, 0.24);
}

.upcoming-section,
.recent-notice-section {
  border-color: #ddd0c1;
  background: rgba(255, 253, 249, 0.76);
}
.upcoming-item { border-left-color: var(--hon-on-green); }
.upcoming-date,
.upcoming-dday { background: #e8f0ec; }
.upcoming-month,
.upcoming-day,
.upcoming-dday { color: var(--hon-on-green-deep); }
.notice-item-icon {
  color: #8f5f3d;
  background: #f5e7d4;
}

.page-header,
.president-greeting-header {
  background: linear-gradient(125deg, #100e0d, #2d231e 64%, #163d34);
  border-bottom-color: var(--hon-on-gold);
}
.page-header-btn,
.btn-primary { background: linear-gradient(135deg, var(--hon-on-green), var(--hon-on-green-deep)); }

@media (max-width: 540px) {
  .header-inner { min-height: 68px; }
  .user-greeting {
    border-color: rgba(224, 190, 142, 0.42);
    background: rgba(255, 255, 255, 0.075);
    color: #f8ebd8;
  }
}

@media (prefers-color-scheme: dark) {
  html,
  body,
  #app,
  #mainApp,
  .app-container,
  .app-main-card {
    background: #f3eee7 !important;
    color: #28231f !important;
  }
}

/* �ý��� ��ũ��忡���� ������ ���ON �̸����� �׸��� �����Ѵ�. */
@media (prefers-color-scheme: dark) {
  body.login-page,
  .login-page,
  #loginScreen,
  .login-screen {
    background:
      radial-gradient(circle at 82% 12%, rgba(216, 173, 115, 0.19), transparent 28%),
      radial-gradient(circle at 12% 78%, rgba(25, 79, 67, 0.3), transparent 32%),
      linear-gradient(145deg, #100e0d 0%, #241b17 54%, #153a32 100%) !important;
  }

  .app-header {
    background:
      radial-gradient(circle at 14% -80%, rgba(216, 173, 115, 0.22), transparent 46%),
      linear-gradient(122deg, #111820 0%, #192b2c 54%, #174b42 100%) !important;
  }

  .page-header,
  .president-greeting-header {
    background: linear-gradient(125deg, #100e0d, #2d231e 64%, #163d34) !important;
  }

  .menu-card,
  .menu-card-wide,
  .upcoming-item,
  .notice-item {
    background: #fffdf9 !important;
    color: #28231f !important;
  }

  .login-subtitle {
    color: #2a211c !important;
    -webkit-text-fill-color: #2a211c !important;
    background: linear-gradient(135deg, #f0d7b3, #d8ad73) !important;
  }
}
/* ==========================================================
   ���ON �����̾� �׸�: ȸ�� �� ��ü ���� ȭ��
   ���� ��Ÿ���̹Ƿ� ���� 31�� ���� �ۿ� �����ϰ� ����ȴ�.
   ���, ����, ����, ȭ�� ������ �������� �ʴ´�.
========================================================== */

/* ���� ������ ������ �⺻ ī�� */
.page-overlay {
  background:
    radial-gradient(circle at 92% 2%, rgba(216, 173, 115, 0.09), transparent 24%),
    linear-gradient(180deg, #f8f5ef 0%, #f1ece5 100%);
}

.page-content { color: var(--hon-on-ink); }

.card,
.notice-card,
.schedule-detail-modal-box,
.my-profile-card,
.dir-info-card,
.join-review-card,
.job-card,
.job-detail-card,
.job-form,
.group-buy-card,
.gb-detail-main,
.gb-detail-info,
.gb-detail-section,
.business-product-card,
.bp-filter-panel,
.business-product-owner-panel,
.bp-owner-card,
.mkt-card,
.stk-card,
.poll-list-card,
.poll-detail-card,
.branch-poll-list-card,
.branch-polls-hero,
.member-session-row,
.event-engagement-block,
.event-supporter-wall,
.event-public-detail-box {
  border-color: rgba(184, 162, 139, 0.55);
  background: rgba(255, 253, 249, 0.97);
  box-shadow: 0 7px 20px rgba(45, 33, 25, 0.08);
}

.card:hover,
.notice-card:hover,
.branch-card:hover,
.biz-card:hover,
.job-card:hover,
.group-buy-card:hover,
.business-product-card:hover,
.mkt-card:hover,
.stk-card:hover,
.poll-list-card:hover {
  border-color: rgba(180, 122, 84, 0.7);
  box-shadow: 0 12px 28px rgba(45, 33, 25, 0.12);
}

.empty-state,
.mkt-empty,
.stk-empty,
.gb-owner-empty,
.bp-inquiry-empty,
.event-engagement-empty {
  color: #6a615a;
  background: rgba(255, 253, 249, 0.72);
  border-color: #d9ccbe;
}

.empty-state i,
.mkt-empty i,
.stk-empty i,
.gb-owner-empty i { color: #a87858; }

/* ����, ����, ���� ���� */
.page-title,
.form-title,
.modal-header h3,
.upload-modal-header h3,
.officer-group-title,
.officer-room-section h3,
.member-detail-name,
.biz-detail-name,
.dir-info-title,
.job-detail-card h2,
.gb-detail-main h2,
.business-product-hero h2,
.event-engagement-title h4,
.event-engagement-hero h4,
.poll-detail-card h2,
.branch-polls-hero h2 {
  color: var(--hon-on-ink);
}

.notice-item-date,
.notice-card small,
.officer-card-branch,
.branch-card-leader,
.mb-card-branch,
.mb-phone,
.biz-card-owner,
.business-hub-card-sub,
.living-yard-card-sub,
.job-card-body p,
.job-card-body small,
.gb-card-body small,
.bp-owner-meta,
.bp-card-body small,
.mkt-card-meta,
.stk-card-meta,
.poll-list-copy small,
.event-public-meta,
.member-session-copy small {
  color: #625a54 !important;
}

/* ��� �� �ϴ� ������̼� */
.page-header,
.president-greeting-header {
  background:
    radial-gradient(circle at 88% -70%, rgba(216, 173, 115, 0.18), transparent 42%),
    linear-gradient(124deg, #111820 0%, #192b2c 56%, #174b42 100%);
  border-bottom: 2px solid rgba(216, 173, 115, 0.78);
  box-shadow: 0 7px 22px rgba(24, 17, 13, 0.2);
}

.page-back-btn,
.page-header-btn {
  border: 1px solid rgba(224, 190, 142, 0.42);
  background: rgba(255, 255, 255, 0.075);
  color: #fffdf9;
}

.page-back-btn:hover,
.page-header-btn:hover { background: rgba(216, 173, 115, 0.18); }

.app-bottom-nav {
  border-top: 1px solid #d8c9b8;
  background: rgba(255, 253, 249, 0.97);
  box-shadow: 0 -6px 20px rgba(45, 33, 25, 0.08);
}

.app-bottom-nav button { color: #665f59; }
.app-bottom-nav button.active { color: var(--hon-on-green-deep); }
.app-bottom-nav button.active i { color: var(--hon-on-bronze); }

/* ���� ��ư */
.btn-primary,
.btn-green,
.btn-load-more,
.btn-upload-submit,
.br-chat-send,
.ec-send,
.stk-btn-write,
.stk-filter-btn,
.stk-modal-footer .stk-btn-save,
.poll-submit-btn,
.branch-polls-create,
.mkt-add-btn,
.dir-call-btn {
  border-color: var(--hon-on-green);
  background: linear-gradient(135deg, var(--hon-on-green), var(--hon-on-green-deep));
  color: #fff;
  box-shadow: 0 5px 13px rgba(14, 53, 46, 0.16);
}

.btn-gold {
  border-color: #a87049;
  background: linear-gradient(135deg, #c18a5f, #8f5f3d);
}

.btn-outline,
.btn-cancel,
.btn-upload-cancel,
.stk-modal-footer .stk-btn-cancel,
.poll-detail-back,
.officer-room-back,
.group-buy-more,
.mkt-more-btn {
  border-color: #cdbca9;
  background: #fffaf3;
  color: var(--hon-on-green-deep);
}

.btn-danger,
.btn-red { box-shadow: none; }

/* �Է�, �˻�, ����, �ۼ� ȭ�� */
.form-group input,
.form-group textarea,
.form-group select,
.upload-url-input,
.upload-input,
.upload-select,
.upload-textarea,
.mb-search-input,
.mb-hometown-filter,
.br-chat-input,
.ec-input,
.biz-search-wrap input,
.jobs-filter input,
.jobs-filter select,
.job-form input,
.job-form select,
.job-form textarea,
.gb-comment-form textarea,
.gb-participation-row input,
.gb-create-form input,
.gb-create-form select,
.gb-create-form textarea,
.bp-inquiry-textarea,
.mkt-search-input,
.mkt-status-select,
.stk-filter-select,
.stk-filter-input,
.stk-input,
.stk-select,
.stk-textarea,
.py-filter-input,
.py-filter-select,
.branch-scanner-search input,
.branch-poll-editor input,
.branch-poll-editor textarea,
.branch-poll-editor select {
  border-color: #cfc1b2;
  background: #fffdf9;
  color: #28231f;
  box-shadow: inset 0 1px 2px rgba(45, 33, 25, 0.025);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.upload-url-input:focus,
.upload-input:focus,
.upload-select:focus,
.upload-textarea:focus,
.mb-search-input:focus,
.mb-hometown-filter:focus,
.br-chat-input:focus,
.ec-input:focus,
.biz-search-wrap input:focus,
.job-form input:focus,
.job-form select:focus,
.job-form textarea:focus,
.gb-comment-form textarea:focus,
.gb-participation-row input:focus,
.bp-inquiry-textarea:focus,
.mkt-search-input:focus,
.mkt-status-select:focus,
.stk-filter-select:focus,
.stk-filter-input:focus,
.stk-input:focus,
.stk-select:focus,
.stk-textarea:focus,
.branch-scanner-search input:focus,
.branch-poll-editor input:focus,
.branch-poll-editor textarea:focus,
.branch-poll-editor select:focus {
  border-color: var(--hon-on-bronze);
  outline: 3px solid rgba(180, 122, 84, 0.14);
  box-shadow: none;
}

.form-group label,
.upload-field label,
.stk-label,
.gb-comment-form label,
.gb-participation-form label {
  color: #403832;
}

/* ���, �� �г�, ���ε� */
.modal-overlay,
.stk-modal-overlay,
.gallery-upload-modal,
.president-greeting-overlay {
  background: rgba(14, 18, 18, 0.68);
  backdrop-filter: blur(3px);
}

.modal-box,
.upload-modal-inner,
.stk-modal-box,
.president-greeting-modal,
.branch-poll-editor > form {
  border: 1px solid rgba(216, 173, 115, 0.42);
  background: #fffdf9;
  box-shadow: 0 24px 70px rgba(24, 17, 13, 0.3);
}

.modal-header,
.upload-modal-header,
.stk-modal-header {
  border-bottom-color: #dfd2c4;
  background: linear-gradient(180deg, #fffdf9, #f8f2e9);
}

.modal-footer,
.upload-modal-footer,
.stk-modal-footer {
  border-top-color: #dfd2c4;
  background: #faf6f0;
}

.modal-close-btn,
.upload-modal-header button,
.stk-modal-close { color: #695f57; }

.upload-preview-area,
.img-drop-zone,
.gb-file-picker,
.gb-image-empty {
  border-color: #ccb99f;
  background: #fbf6ef;
  color: #74685f;
}

.img-tab,
.gallery-filter-btn,
.mb-filter-btn,
.biz-filter-btn,
.jobs-tab,
.bp-chip,
.mkt-tab,
.mkt-status-btn,
.stk-tab,
.branch-tab-btn {
  border-color: #d6c9bc;
  background: #fffaf3;
  color: #5f5751;
}

.img-tab.active,
.gallery-filter-btn.active,
.mb-filter-btn.active,
.biz-filter-btn.active,
.jobs-tab.active,
.bp-chip.active,
.mkt-tab.active,
.mkt-status-btn.active,
.stk-tab.active,
.branch-tab-btn.active {
  border-color: var(--hon-on-green);
  background: var(--hon-on-green);
  color: #fff;
}

/* 지회 간편 회계장부: 고령 사용자도 쉽게 누르고 읽는 모바일 우선 화면 */
.branch-detail-tabs.has-branch-accounting {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.branch-detail-tabs.has-branch-accounting .branch-tab-btn {
  min-height: 52px;
  padding: 8px 2px;
  font-size: .72rem;
}
.branch-detail-tabs.has-branch-accounting .branch-tab-btn > i {
  display: block;
  margin: 0 auto 3px;
}
.ba-loading {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #665c54;
}
.ba-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 10px 46px;
  color: #2f2925;
}
.ba-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 18px;
  border: 1px solid #c99b6a;
  border-radius: 20px;
  color: #fff8ef;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 188, 98, .26), transparent 34%),
    linear-gradient(135deg, #18120f, #3c2419 62%, #163f31);
  box-shadow: 0 14px 30px rgba(61, 39, 26, .14);
}
.ba-hero > div > span,
.ba-step {
  display: inline-block;
  color: #f4b56e;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.ba-hero h2 {
  margin: 6px 0 5px;
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1.25;
}
.ba-hero p { margin: 0; color: #e7d7ca; font-size: .84rem; line-height: 1.55; }
.ba-year-select { flex: 0 0 auto; }
.ba-year-select > span { display: block; margin-bottom: 5px; color: #e7c9aa; font-size: .7rem; font-weight: 800; }
.ba-year-select select {
  min-width: 108px;
  min-height: 46px;
  padding: 0 34px 0 13px;
  border: 1px solid #d9a76f;
  border-radius: 12px;
  color: #2d1e15;
  background: #fff8ef;
  font: 900 1rem 'Noto Sans KR', sans-serif;
}
.ba-control-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 13px 0;
  padding: 13px;
  border: 1px solid #dfd1c2;
  border-radius: 15px;
  background: #fffaf4;
}
.ba-control-strip > div > small { display: block; margin-top: 6px; color: #776c64; font-size: .7rem; line-height: 1.45; }
.ba-control-strip form { display: flex; align-items: flex-end; gap: 7px; }
.ba-control-strip form label { color: #5e544d; font-size: .7rem; font-weight: 800; }
.ba-control-strip form input {
  display: block;
  width: 135px;
  height: 42px;
  margin-top: 4px;
  padding: 0 10px;
  border: 1px solid #cdb9a5;
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
  font-weight: 800;
}
.ba-status { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; font-size: .74rem; font-weight: 900; }
.ba-status-draft { color: #6c5e54; background: #eee7df; }
.ba-status-public { color: #146141; background: #dff5e9; }
.ba-status-changed { color: #8c5100; background: #fff0cd; }
.ba-view-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 13px 0; }
.ba-view-nav button { min-height: 68px; display: flex; align-items: center; gap: 11px; padding: 11px 14px; border: 1px solid #d3c3b4; border-radius: 14px; color: #5b5048; background: #fff; cursor: pointer; text-align: left; }
.ba-view-nav button > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #6b513d; background: #f3e9df; font-size: 1.05rem; }
.ba-view-nav button span,
.ba-view-nav button strong,
.ba-view-nav button small { display: block; }
.ba-view-nav button strong { font-size: .88rem; }
.ba-view-nav button small { margin-top: 3px; color: #887b72; font-size: .67rem; }
.ba-view-nav button.active { border-color: #25805e; color: #fff; background: linear-gradient(135deg, #164f3b, #278562); box-shadow: 0 7px 17px rgba(28,101,75,.17); }
.ba-view-nav button.active > i { color: #fff; background: rgba(255,255,255,.16); }
.ba-view-nav button.active small { color: #d8eee5; }
.ba-managers-panel { margin: 14px 0; padding: 17px 14px; border: 1px solid #c9d9d1; border-radius: 18px; background: #f7fcf9; box-shadow: 0 7px 18px rgba(35,84,64,.06); }
.ba-manager-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba-manager-slot { position: relative; min-height: 84px; padding: 12px; border: 1px solid #afd0bf; border-radius: 13px; background: #fff; }
.ba-manager-slot > span,
.ba-manager-slot > strong,
.ba-manager-slot > small { display: block; }
.ba-manager-slot > span { color: #668073; font-size: .65rem; font-weight: 900; }
.ba-manager-slot > strong { margin-top: 5px; color: #204d3b; font-size: .9rem; }
.ba-manager-slot > small { margin-top: 2px; color: #7a716a; font-size: .65rem; }
.ba-manager-slot.empty { border-style: dashed; color: #83776f; background: #fbfaf8; }
.ba-manager-slot.empty > strong { color: #887c73; }
.ba-manager-slot button { position: absolute; right: 9px; bottom: 9px; min-height: 34px; padding: 0 9px; border: 0; border-radius: 8px; color: #a23f28; background: #ffebe5; cursor: pointer; font: 900 .68rem 'Noto Sans KR', sans-serif; }
.ba-manager-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 10px; }
.ba-manager-form label > span { display: block; margin-bottom: 5px; color: #52685d; font-size: .7rem; font-weight: 900; }
.ba-manager-form select { width: 100%; min-height: 46px; padding: 0 34px 0 11px; border: 1px solid #afc8bb; border-radius: 10px; color: #293c34; background: #fff; font: 800 .8rem 'Noto Sans KR', sans-serif; }
.ba-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 13px 0;
}
.ba-summary-card {
  min-height: 88px;
  padding: 15px;
  border: 1px solid #ded2c6;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(57, 40, 29, .07);
}
.ba-summary-card span { display: block; margin-bottom: 7px; color: #756a62; font-size: .72rem; font-weight: 800; }
.ba-summary-card strong { font-size: clamp(1.08rem, 4.7vw, 1.55rem); line-height: 1.2; word-break: break-all; }
.ba-summary-income { border-color: #a9d6c2; background: #f1fbf6; }
.ba-summary-income strong, .ba-table .income, .ba-category-row .income { color: #087a4f; }
.ba-summary-fees { border-color: #d7bd77; background: #fff9df; }
.ba-summary-fees strong { color: #7a5710; }
.ba-summary-fees span small { margin-left: 4px; color: #8f6e27; font-size: .65rem; }
.ba-summary-expense { border-color: #efc1b6; background: #fff6f3; }
.ba-summary-expense strong, .ba-table .expense, .ba-category-row .expense { color: #bd3d28; }
.ba-summary-balance { border-color: #d4ad7d; background: #fff7ea; }
.ba-entry-panel,
.ba-ledger-panel,
.ba-review-panel {
  margin-top: 14px;
  padding: 17px 14px;
  border: 1px solid #ddd0c3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(57, 40, 29, .06);
}
.ba-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ba-section-head h3 { margin: 3px 0; color: #312820; font-size: 1.13rem; }
.ba-section-head p { margin: 0; color: #746960; font-size: .75rem; line-height: 1.5; }
.ba-count { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; color: #79502e; background: #f9e6d1; font-size: .78rem; }
.ba-type-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0 0 14px; padding: 0; border: 0; }
.ba-type-picker legend { grid-column: 1 / -1; margin-bottom: 7px; color: #43382f; font-size: .9rem; font-weight: 900; }
.ba-type-picker label {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid #d8cdc2;
  border-radius: 14px;
  color: #6c625b;
  background: #faf8f5;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
}
.ba-type-picker input { position: absolute; opacity: 0; pointer-events: none; }
.ba-type-picker label.income.active { border-color: #1e9d68; color: #087a4f; background: #eaf8f1; }
.ba-type-picker label.expense.active { border-color: #d95e49; color: #b23420; background: #fff0ec; }
.ba-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba-form-grid label > span { display: block; margin-bottom: 6px; color: #43382f; font-size: .78rem; font-weight: 900; }
.ba-form-grid input,
.ba-form-grid select,
.ba-form-grid textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #cfc0b2;
  border-radius: 11px;
  color: #28221e;
  background: #fffdfb;
  font: 700 16px 'Noto Sans KR', sans-serif;
}
.ba-form-grid textarea { resize: vertical; }
.ba-field-help { display: block; margin-top: 5px; color: #7b6b5d; font-size: .68rem; line-height: 1.4; }
.ba-form-grid input:focus,
.ba-form-grid select:focus,
.ba-form-grid textarea:focus { border-color: #27805f; outline: 3px solid rgba(39, 128, 95, .13); }
.ba-form-wide { grid-column: 1 / -1; }
.ba-money-input { position: relative; }
.ba-money-input input { padding-right: 38px; }
.ba-money-input b { position: absolute; top: 50%; right: 13px; transform: translateY(-50%); color: #76695f; }
.ba-form-actions,
.ba-public-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.ba-btn {
  min-height: 46px;
  padding: 0 15px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font: 900 .85rem 'Noto Sans KR', sans-serif;
}
.ba-btn:disabled { cursor: wait; opacity: .55; }
.ba-btn-primary { color: #fff; background: linear-gradient(135deg, #176344, #268b62); }
.ba-btn-muted { color: #5c524b; background: #eee7df; }
.ba-btn-outline { border: 1px solid #b98958; color: #70451f; background: #fff; }
.ba-ledger-table { overflow: hidden; border: 1px solid #d8c9ba; border-radius: 14px; background: #fffdfa; }
.ba-scroll-hint { display: none; margin: -4px 0 9px; color: #765632; font-size: .69rem; font-weight: 800; }
.ba-ledger-head,
.ba-entry-row {
  display: grid;
  grid-template-columns: 88px minmax(190px, 1fr) 118px 118px minmax(150px, .8fr);
  gap: 0;
  align-items: center;
}
.ba-ledger-head { min-height: 44px; color: #fff; background: linear-gradient(135deg, #263e34, #4c3325); font-size: .73rem; font-weight: 900; }
.ba-ledger-head span { padding: 10px 9px; border-right: 1px solid rgba(255,255,255,.18); text-align: center; }
.ba-ledger-head span:last-child { border-right: 0; }
.ba-entry-list { display: grid; }
.ba-entry-row {
  min-height: 66px;
  border-bottom: 1px solid #e8ddd3;
  background: #fffdfa;
}
.ba-entry-row:last-child { border-bottom: 0; }
.ba-entry-row:nth-child(even) { background: #fcf7f1; }
.ba-entry-row > [role="cell"] { min-width: 0; height: 100%; display: flex; align-items: center; padding: 10px 9px; border-right: 1px solid #eee3d9; }
.ba-entry-row > [role="cell"]:last-child { border-right: 0; }
.ba-entry-date { justify-content: center; color: #62574f; font-size: .72rem; font-weight: 900; }
.ba-entry-main { min-width: 0; }
.ba-entry-main { flex-direction: column; align-items: flex-start !important; justify-content: center; }
.ba-entry-main > span { display: inline-block; margin-bottom: 3px; padding: 2px 6px; border-radius: 999px; color: #76502d; background: #f8e8d5; font-size: .66rem; font-weight: 900; }
.ba-entry-main > strong { display: block; overflow: hidden; color: #302923; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.ba-entry-main > small { display: block; max-width: 100%; overflow: hidden; margin-top: 3px; color: #81756c; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.ba-entry-money { justify-content: flex-end; font-size: .86rem; font-weight: 900; white-space: nowrap; }
.ba-entry-money.income { color: #087a4f; background: rgba(231,247,238,.62); }
.ba-entry-money.expense { color: #bd3d28; background: rgba(255,239,235,.62); }
.ba-entry-note { justify-content: space-between; gap: 7px; }
.ba-entry-note > small { min-width: 0; overflow: hidden; color: #71665e; font-size: .68rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.ba-entry-actions { display: flex; gap: 4px; }
.ba-entry-actions button { width: 34px; height: 34px; border: 0; border-radius: 9px; color: #32644f; background: #e8f3ed; cursor: pointer; }
.ba-entry-actions button.danger { color: #b63b2a; background: #ffebe7; }
.ba-dues-panel { margin-top: 14px; padding: 17px 14px; border: 1px solid #d7c39b; border-radius: 18px; background: linear-gradient(180deg, #fffdf7, #fff9e9); box-shadow: 0 7px 18px rgba(57,40,29,.06); }
.ba-dues-month { flex: 0 0 auto; color: #6a594a; font-size: .68rem; font-weight: 900; }
.ba-dues-month span { display: block; margin-bottom: 4px; }
.ba-dues-month select { min-width: 96px; min-height: 43px; padding: 0 32px 0 11px; border: 1px solid #c5a877; border-radius: 10px; color: #3f3125; background: #fff; font: 900 .9rem 'Noto Sans KR', sans-serif; }
.ba-dues-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.ba-dues-summary article { min-width: 0; padding: 13px 11px; border: 1px solid #dccdb5; border-radius: 12px; background: #fff; }
.ba-dues-summary article > span { display: block; margin-bottom: 5px; color: #73685e; font-size: .68rem; font-weight: 800; }
.ba-dues-summary article > strong { display: block; color: #1b6549; font-size: 1.05rem; }
.ba-dues-summary article:nth-child(2) > strong { color: #aa4d2e; }
.ba-dues-summary article.warning { border-color: #e3a476; background: #fff1e7; }
.ba-dues-summary article.warning > strong { color: #ac3f22; }
.ba-dues-summary article > small { display: block; margin-top: 3px; color: #8a5b42; font-size: .64rem; }
.ba-dues-warning { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; color: #8c3e22; background: #ffede5; font-size: .7rem; font-weight: 800; line-height: 1.5; }
.ba-dues-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba-dues-lists > section { min-width: 0; border: 1px solid #dfd3c3; border-radius: 13px; overflow: hidden; background: #fff; }
.ba-dues-lists h4 { margin: 0; padding: 11px 12px; color: #1b6348; background: #eaf7f0; font-size: .82rem; }
.ba-dues-lists > section:nth-child(2) h4 { color: #944129; background: #fff0e9; }
.ba-dues-lists ul { max-height: 330px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.ba-dues-lists li { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border-bottom: 1px solid #eee5dc; }
.ba-dues-lists li:last-child { border-bottom: 0; }
.ba-dues-lists li span { min-width: 0; }
.ba-dues-lists li strong,
.ba-dues-lists li small { display: block; }
.ba-dues-lists li strong { overflow: hidden; color: #342c26; font-size: .79rem; text-overflow: ellipsis; white-space: nowrap; }
.ba-dues-lists li small { margin-top: 2px; color: #82766d; font-size: .63rem; }
.ba-dues-lists li b { flex: 0 0 auto; color: #087a4f; font-size: .73rem; }
.ba-dues-lists > section:nth-child(2) li b { color: #b4462a; }
.ba-dues-lists li.ba-dues-empty { justify-content: center; color: #81756d; font-size: .72rem; text-align: center; }
.ba-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ba-review-grid h3,
.ba-review-grid h4 { margin: 0 0 10px; color: #43372f; font-size: .92rem; }
.ba-table-wrap { overflow-x: auto; border: 1px solid #e2d7cd; border-radius: 12px; }
.ba-table { width: 100%; border-collapse: collapse; font-size: .72rem; }
.ba-table th,
.ba-table td { padding: 9px 8px; border-bottom: 1px solid #eee5dd; text-align: right; white-space: nowrap; }
.ba-table th:first-child { text-align: center; }
.ba-category-list { display: grid; gap: 7px; }
.ba-category-row { display: grid; grid-template-columns: minmax(70px, 1fr) auto auto; gap: 7px; align-items: center; padding: 10px; border: 1px solid #e4d9ce; border-radius: 11px; background: #fffaf5; font-size: .7rem; }
.ba-category-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ba-category-row span { white-space: nowrap; }
.ba-public-banner { display: flex; align-items: center; gap: 12px; margin: 13px 0; padding: 14px; border: 1px solid #add7c3; border-radius: 14px; color: #155c40; background: #ecf9f2; }
.ba-public-banner > i { font-size: 1.5rem; }
.ba-public-banner strong,
.ba-public-banner span { display: block; }
.ba-public-banner span { margin-top: 3px; color: #567267; font-size: .72rem; }
.ba-permission-note { margin-top: 13px; padding: 12px; border-radius: 11px; color: #6c5a48; background: #fff3df; font-size: .75rem; line-height: 1.5; }
.ba-empty { min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 28px 18px; color: #766b62; text-align: center; }
.ba-empty > i { color: #b98a5c; font-size: 2rem; }
.ba-empty > strong { color: #40362f; }
.ba-empty > span { max-width: 420px; font-size: .76rem; line-height: 1.55; }
.ba-empty-public { margin-top: 15px; border: 1px dashed #cdb9a6; border-radius: 18px; background: #fffaf4; }
.ba-empty-small { padding: 18px; border: 1px dashed #d8cabd; border-radius: 11px; color: #81766e; font-size: .72rem; text-align: center; }

@media (max-width: 620px) {
  .ba-page { padding-inline: 6px; }
  .ba-hero { align-items: stretch; flex-direction: column; padding: 18px 15px; }
  .ba-year-select select { width: 100%; }
  .ba-control-strip { grid-template-columns: 1fr; }
  .ba-control-strip form { align-items: stretch; }
  .ba-control-strip form label { flex: 1; }
  .ba-control-strip form input { width: 100%; }
  .ba-view-nav button { min-height: 63px; padding: 9px 10px; }
  .ba-view-nav button > i { width: 34px; height: 34px; }
  .ba-manager-form { grid-template-columns: 1fr; }
  .ba-manager-form .ba-btn { width: 100%; }
  .ba-form-grid { grid-template-columns: 1fr; }
  .ba-form-wide { grid-column: auto; }
  .ba-review-grid { grid-template-columns: 1fr; }
  .ba-ledger-table { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-inline: contain; touch-action: pan-x pan-y; scrollbar-width: thin; }
  .ba-scroll-hint { display: flex; align-items: center; gap: 6px; }
  .ba-ledger-head,
  .ba-entry-row { min-width: 760px; grid-template-columns: 88px minmax(210px, 1fr) 118px 118px minmax(190px, .9fr); }
  .ba-ledger-head { position: sticky; left: 0; }
  .ba-entry-row > [role="cell"] { padding-inline: 9px; }
  .ba-entry-note > small { white-space: nowrap; }
  .ba-dues-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ba-dues-lists { grid-template-columns: 1fr; }
  .ba-category-row { grid-template-columns: 1fr 1fr; }
  .ba-category-row strong { grid-column: 1 / -1; }
  .ba-category-row .expense { text-align: right; }
  .ba-form-actions,
  .ba-public-actions { display: grid; grid-template-columns: 1fr; }
}

@media (min-width: 700px) {
  .branch-detail-tabs.has-branch-accounting {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .branch-detail-tabs.has-branch-accounting .branch-tab-btn {
    min-height: 54px;
    font-size: .84rem;
  }
  .ba-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ����, ����, ��� */
.notice-card,
.schedule-detail-body,
.event-public-description,
.schedule-detail-description,
.event-action-intro,
.event-action-note {
  color: #302a26;
}

.notice-card.important { border-color: #b47a54; }
.notice-important-badge { background: var(--hon-on-danger); }

.schedule-detail-type,
.event-engagement-badges span,
.event-public-scope {
  background: #e8f0ec;
  color: var(--hon-on-green-deep);
}

.schedule-detail-description,
.poll-description,
.event-public-description {
  border: 1px solid #e0d4c7;
  background: #faf6f0;
}

.schedule-detail-list,
.schedule-detail-list > div,
.event-engagement-block,
.event-supporter-wall { border-color: #e0d4c7; }

/* ������ */
.gallery-filter-bar,
.gallery-filter-info {
  border-color: #ddd0c1;
  background: rgba(255, 253, 249, 0.94);
}

.gallery-item {
  border: 1px solid #d7c8b8;
  background: #eae2d8;
  box-shadow: 0 5px 16px rgba(45, 33, 25, 0.1);
}

.gallery-lightbox { background: rgba(9, 12, 12, 0.93); }

/* ȸ������, �ӿ���, ��ȸ */
.mb-list { background: #ded3c6; }
.mb-card,
.officer-card,
.branch-card,
.join-review-entry,
.bulk-management-grid button,
.branch-member-row {
  border-color: rgba(184, 162, 139, 0.52);
  background: #fffdf9;
}

.mb-card:hover,
.officer-card:hover,
.branch-card:hover { background: #fbf7f1; }

.mb-avatar,
.member-detail-avatar,
.officer-avatar,
.officer-detail-avatar {
  background: linear-gradient(145deg, #25685a, #103c33);
  color: #fff;
}

.mb-card-name,
.officer-card-name,
.branch-card-name,
.branch-member-copy strong { color: var(--hon-on-ink); }

.mb-card-pos,
.officer-card-pos,
.member-detail-position { color: var(--hon-on-green); }

.officer-hero,
.dir-title-card,
.business-product-hero,
.jobs-hero,
.group-buy-hero,
.business-hub-intro,
.living-yard-intro {
  background:
    radial-gradient(circle at 88% -30%, rgba(216, 173, 115, 0.2), transparent 42%),
    linear-gradient(128deg, #111820, #174b42);
  color: #fffdf9;
  box-shadow: 0 8px 22px rgba(24, 17, 13, 0.16);
}

.business-hub-intro h2,
.business-hub-intro p,
.business-product-hero h2,
.business-product-hero p,
.jobs-hero h2,
.jobs-hero p,
.group-buy-hero h2,
.group-buy-hero p,
.living-yard-intro h2,
.living-yard-intro p {
  color: #fffdf9;
}

.officer-room-tab,
.officer-room-detail-head {
  box-shadow: 0 7px 20px rgba(45, 33, 25, 0.08);
}

.officer-room-icon,
.officer-room-detail-icon {
  background: rgba(255, 253, 249, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 4px 12px rgba(45, 33, 25, 0.08);
}

.join-review-summary {
  background: linear-gradient(135deg, #1c5548, #11382f);
  color: #fff;
}

/* ä�� �� ����� */
.br-chat-wrap,
.ec-chat-wrap,
.ec-messages,
.br-chat-messages {
  background:
    radial-gradient(circle at 90% 0, rgba(216, 173, 115, 0.08), transparent 28%),
    #eee9e2;
}

.br-chat-bubble--mine,
.ec-bubble--mine {
  background: linear-gradient(135deg, #1c5a4b, #0e352e);
  color: #fff;
  box-shadow: 0 4px 12px rgba(14, 53, 46, 0.13);
}

.br-chat-bubble--other,
.ec-bubble--other {
  border: 1px solid #dfd2c4;
  background: #fffdf9;
  color: #28231f;
  box-shadow: 0 3px 10px rgba(45, 33, 25, 0.07);
}

.br-chat-input-wrap,
.ec-input-wrap,
.ec-readonly-footer {
  border-top-color: #d8c9b8;
  background: #fffdf9;
}

.ec-room-card {
  border-color: rgba(184, 162, 139, 0.52);
  background: #fffdf9;
  box-shadow: 0 6px 17px rgba(45, 33, 25, 0.07);
}

/* ����ü, ���ڸ�, ��������, ��ǰ, ���� */
.biz-card,
.job-card,
.group-buy-card,
.business-product-card,
.mkt-card {
  overflow: hidden;
  border-color: rgba(184, 162, 139, 0.55);
  background: #fffdf9;
}

.biz-card-name,
.job-card-body strong,
.gb-card-body strong,
.bp-owner-title-row strong,
.mkt-card-title { color: var(--hon-on-ink); }

.biz-card-cat,
.bp-card-price,
.gb-card-price em,
.mkt-card-price { color: #8f5f3d; }

.biz-desc,
.gb-create-notice,
.gb-comments-guide,
.bp-owner-note,
.mkt-notice,
.bp-inquiry-empty {
  border-color: #ddcdbb;
  background: #faf3e9;
  color: #514840;
}

.gb-detail-info,
.gb-contact-box,
.bp-detail-business,
.product-purchase-method,
.bp-inquiry-card,
.bp-answer-card {
  border-color: #ded1c3;
  background: #fffdf9;
}

.product-purchase-method.is-selected,
.product-purchase-method:has(input:checked) {
  border-color: var(--hon-on-green);
  background: #edf4f1;
}

/* ���ǡ��Ű����� */
.stk-toolbar,
.stk-filter-bar,
.stk-tabs,
.stk-summary-bar {
  border-color: #ddd0c1;
  background: rgba(255, 253, 249, 0.94);
}

.stk-card-title,
.stk-detail-value,
.stk-toggle-label { color: var(--hon-on-ink); }

.stk-reply-box,
.stk-admin-section {
  border-color: #d8c8b7;
  background: #faf6f0;
}

/* ��ǥ */
.poll-list-copy strong,
.poll-detail-card legend,
.poll-result-section h3,
.poll-result-row strong { color: var(--hon-on-ink); }

.poll-privacy-note,
.branch-poll-editor-guide {
  border-color: var(--hon-on-bronze);
  background: #f6ede2;
  color: #55463b;
}

.poll-option {
  border-color: #d8c9b8;
  background: #fffdf9;
}

.poll-option:has(input:checked) {
  border-color: var(--hon-on-green);
  background: #edf4f1;
  box-shadow: 0 0 0 2px rgba(25, 79, 67, 0.1);
}

.poll-option input { accent-color: var(--hon-on-green); }
.poll-result-track span {
  background: linear-gradient(90deg, var(--hon-on-bronze), var(--hon-on-green));
}

/* �� ����, �Ŀ�, ã�ƿ��� �� */
.my-profile-card,
.profile-setting-guide,
.my-profile-guide-btn,
.my-profile-pin-btn,
.my-profile-info-btn,
.member-session-row,
.donation-details div,
.donation-qr-card {
  border-color: rgba(184, 162, 139, 0.52);
  background: #fffdf9;
}

.my-profile-avatar {
  background: linear-gradient(145deg, #25685a, #103c33);
  box-shadow: 0 5px 15px rgba(14, 53, 46, 0.14);
}

.my-profile-menu-heading strong,
.my-profile-menu-copy strong,
.my-profile-info-copy strong { color: var(--hon-on-ink); }

.my-profile-menu-heading small,
.my-profile-menu-copy small,
.my-profile-info-copy small { color: #625a54; }

.donation-details dt,
.dir-info-title,
.dir-info-row i { color: var(--hon-on-green-deep); }

.donation-details div,
.dir-info-row { border-color: #e0d4c7; }

/* �˸��� �ε� */
.toast {
  border: 1px solid rgba(216, 173, 115, 0.5);
  background: #211b18;
  color: #fffdf9;
  box-shadow: 0 12px 30px rgba(24, 17, 13, 0.25);
}

.spinner { border-top-color: var(--hon-on-bronze); }

/* �ý��� ��ũ ��忡���� �� ���� �׸��� �������� ���� */
@media (prefers-color-scheme: dark) {
  .page-overlay,
  .page-content {
    background: #f3eee7 !important;
    color: #28231f !important;
  }

  .card,
  .modal-box,
  .upload-modal-inner,
  .stk-modal-box,
  .notice-card,
  .officer-card,
  .branch-card,
  .mb-card,
  .biz-card,
  .job-card,
  .group-buy-card,
  .business-product-card,
  .mkt-card,
  .stk-card,
  .poll-list-card,
  .poll-detail-card,
  .my-profile-card {
    background: #fffdf9 !important;
    color: #28231f !important;
  }

  .page-header,
  .president-greeting-header {
    background:
      radial-gradient(circle at 88% -70%, rgba(216, 173, 115, 0.18), transparent 42%),
      linear-gradient(124deg, #111820 0%, #192b2c 56%, #174b42 100%) !important;
  }
}

.page-header .page-title { color: #fffdf9; }
/* Ŭ���� ���� �������� �����Ǵ� ���� �ۼ� �� */
.modal-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.modal-body textarea,
.modal-body select,
.page-content input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.page-content textarea,
.page-content select {
  border-color: #cfc1b2 !important;
  background: #fffdf9 !important;
  color: #28231f !important;
  -webkit-text-fill-color: #28231f !important;
  box-shadow: inset 0 1px 2px rgba(45, 33, 25, 0.025) !important;
}

.modal-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus,
.modal-body textarea:focus,
.modal-body select:focus,
.page-content input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus,
.page-content textarea:focus,
.page-content select:focus {
  border-color: var(--hon-on-bronze) !important;
  outline: 3px solid rgba(180, 122, 84, 0.14) !important;
  box-shadow: none !important;
}
/* �ý��� ��ũ��� ���������� ���� ȭ�� �Է� �׸��� �켱�Ѵ�. */
.mb-search-input,
.mb-hometown-filter,
.br-chat-input,
.ec-input,
.biz-search-wrap input,
.jobs-filter input,
.jobs-filter select,
.job-form input,
.job-form select,
.job-form textarea,
.gb-comment-form textarea,
.gb-participation-row input,
.gb-create-form input,
.gb-create-form select,
.gb-create-form textarea,
.bp-inquiry-textarea,
.mkt-search-input,
.mkt-status-select,
.stk-filter-select,
.stk-filter-input,
.stk-input,
.stk-select,
.stk-textarea {
  border-color:#cfc1b2 !important;background:#fffdf9 !important;color:#28231f !important;-webkit-text-fill-color:#28231f !important;
}
/* ��� ���� ȭ���� �߸� ī�� ǥ���� �ý��� �׸��� �����ϰ� ���� */
.business-hub-card,
.living-yard-card,
.ec-room-card,
.bulk-management-grid button,
.join-review-entry,
.dir-info-card,
.job-card,
.job-detail-card,
.job-form,
.group-buy-card,
.gb-detail-main,
.gb-detail-info,
.gb-detail-section,
.bp-filter-panel,
.business-product-owner-panel,
.bp-owner-card,
.business-product-card,
.mkt-card,
.stk-card,
.poll-list-card,
.poll-detail-card,
.branch-poll-list-card,
.member-session-row,
.event-engagement-block,
.event-supporter-wall,
.event-public-detail-box {
  border-color:rgba(184,162,139,.55) !important;
  background:#fffdf9 !important;
  color:#28231f !important;
}

/* 3�� �޴����� ���ǡ��Ű������� �����ܡ�������ȭ��ǥ ���� ���� */
.menu-card--support {
  display:grid;
  grid-template-columns:46px minmax(0,1fr) 18px;
  grid-template-rows:1fr;
  align-items:center;
  justify-content:stretch;
  column-gap:10px;
  padding:10px 12px;
  text-align:left;
}

.menu-card--support .menu-icon {
  grid-column:1;
  grid-row:1;
  align-self:center;
  justify-self:start;
  margin:0;
}

.menu-card--support .menu-wide-text {
  grid-column:2;
  grid-row:1;
  width:100%;
  min-width:0;
  align-self:center;
  justify-self:stretch;
  overflow:hidden;
}

.menu-card--support .menu-wide-title,
.menu-card--support .menu-wide-sub {
  display:block;
  max-width:100%;
  margin-left:0;
  word-break:keep-all;
  overflow-wrap:normal;
}

.menu-card--support .menu-wide-title { line-height:1.3; }
.menu-card--support .menu-wide-sub { line-height:1.45; }

.menu-card--support .menu-wide-arrow {
  grid-column:3;
  grid-row:1;
  align-self:center;
  justify-self:end;
  width:18px;
  margin:0;
  text-align:right;
}

@media (max-width:360px) {
  .menu-card--support {
    grid-template-columns:40px minmax(0,1fr) 14px;
    column-gap:7px;
    padding:8px 9px;
  }

  .menu-card--support .menu-wide-title { font-size:.78rem; }
  .menu-card--support .menu-wide-sub { font-size:.64rem;line-height:1.4; }
  .menu-card--support .menu-wide-arrow { width:14px;font-size:.82rem; }
}

/* 지회 회계 기간별 공개보고서 */
.ba-publication-form {
  margin: 12px 0 20px;
  padding: 14px;
  border: 1px solid #d7c5b2;
  border-radius: 15px;
  background: #fffaf4;
}
.ba-publication-form fieldset { margin: 0 0 12px; padding: 0; border: 0; }
.ba-publication-form legend { margin-bottom: 8px; color: #43382f; font-size: .86rem; font-weight: 900; }
.ba-period-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ba-period-types label { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #cdb9a6; border-radius: 10px; color: #5f5146; background: #fff; font-size: .76rem; font-weight: 900; cursor: pointer; }
.ba-period-types label:has(input:checked) { border-color: #277d5d; color: #176044; background: #e7f5ee; }
.ba-period-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 12px; }
.ba-period-fields label > span { display: block; margin-bottom: 5px; color: #51453c; font-size: .72rem; font-weight: 900; }
.ba-period-fields select { width: 100%; min-height: 46px; padding: 0 10px; border: 1px solid #cdb9a6; border-radius: 10px; background: #fff; font: 800 16px 'Noto Sans KR', sans-serif; }
.ba-publication-form > .ba-btn { width: 100%; margin-top: 12px; }
.ba-public-list-head { margin-top: 24px; padding-top: 18px; border-top: 1px solid #e2d6ca; }
.ba-publication-tabs { display: flex; gap: 7px; margin-bottom: 12px; padding-bottom: 5px; overflow-x: auto; }
.ba-publication-tabs button { flex: 0 0 auto; min-height: 42px; padding: 0 12px; border: 1px solid #cab7a5; border-radius: 999px; color: #62564d; background: #fff; font: 900 .74rem 'Noto Sans KR', sans-serif; cursor: pointer; }
.ba-publication-tabs button.active { border-color: #216e51; color: #fff; background: #216e51; }
.ba-publication-detail { padding: 12px; border: 1px solid #ddcdbc; border-radius: 15px; background: #fffdf9; }
.ba-publication-detail .ba-public-banner { margin-top: 0; }
.ba-icon-danger { margin-left: auto; width: 42px; height: 42px; border: 0; border-radius: 10px; color: #b63b2a; background: #ffe7e2; cursor: pointer; }
.ba-bank-check { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.ba-bank-check article { min-width: 0; padding: 12px 9px; border: 1px solid #ddd1c6; border-radius: 12px; background: #fff; }
.ba-bank-check span { display: block; margin-bottom: 5px; color: #71665e; font-size: .66rem; font-weight: 800; }
.ba-bank-check strong { display: block; overflow-wrap: anywhere; color: #332a24; font-size: .92rem; }
.ba-bank-check article.match { border-color: #a8d6c2; background: #eefaf4; }
.ba-bank-check article.match strong { color: #0b704c; }
.ba-bank-check article.mismatch { border-color: #edb3a7; background: #fff0ec; }
.ba-bank-check article.mismatch strong { color: #b93624; }
.ba-balance-warning,
.ba-balance-ok { margin: 10px 0 14px; padding: 11px 12px; border-radius: 10px; font-size: .72rem; font-weight: 800; line-height: 1.5; }
.ba-balance-warning { color: #8a3b20; background: #fff0e7; }
.ba-balance-ok { color: #176044; background: #eaf7f0; }
.ba-public-entry-list { display: grid; gap: 6px; max-height: 420px; overflow-y: auto; }
.ba-public-entry { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 7px; align-items: center; padding: 9px; border: 1px solid #e2d8cf; border-left: 4px solid #2a9168; border-radius: 10px; background: #fff; font-size: .68rem; }
.ba-public-entry.expense { border-left-color: #d75c49; }
.ba-public-entry > span { color: #796d64; }
.ba-public-entry > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ba-public-entry > b { color: #087a4f; white-space: nowrap; }
.ba-public-entry.expense > b { color: #bd3d28; }
.ba-review-grid-lower { margin-top: 14px; }
.ba-public-facts { margin: 0; border: 1px solid #e2d7cd; border-radius: 11px; overflow: hidden; }
.ba-public-facts > div { display: flex; justify-content: space-between; gap: 10px; padding: 11px; border-bottom: 1px solid #eee5dd; font-size: .75rem; }
.ba-public-facts > div:last-child { border-bottom: 0; }
.ba-public-facts dt { color: #6f645c; }
.ba-public-facts dd { margin: 0; color: #332b25; font-weight: 900; }

@media (max-width: 620px) {
  .ba-period-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ba-bank-check { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ba-public-entry { grid-template-columns: 50px minmax(0, 1fr); }
  .ba-public-entry > b { grid-column: 2; }
  .ba-control-strip form { display: grid; grid-template-columns: 1fr 1fr; }
  .ba-control-strip form .ba-btn { grid-column: 1 / -1; }
}

/* 공통 장기목록 페이지 이동 — 회원 앱·관리자센터 동일 구조 */
.hy-archive-pager {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(86px, 1fr) minmax(96px, auto) minmax(86px, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: min(100%, 590px);
  margin: 18px auto 6px;
  padding: 9px;
  border: 1px solid rgba(29, 103, 76, .18);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,247,243,.98));
  box-shadow: 0 8px 22px rgba(18, 72, 55, .09);
}

.hy-archive-pager[hidden] {
  display: none;
}

.hy-archive-pager__button,
.hy-archive-pager__status {
  min-width: 0;
  min-height: 46px;
  border-radius: 12px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.hy-archive-pager__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(26, 101, 73, .28);
  background: #fff;
  color: #165b43;
  box-shadow: 0 3px 9px rgba(20, 70, 53, .07);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.hy-archive-pager__button:hover:not(:disabled),
.hy-archive-pager__button:focus-visible {
  border-color: #1f7454;
  background: #edf8f2;
  box-shadow: 0 5px 13px rgba(20, 92, 65, .14);
  transform: translateY(-1px);
}

.hy-archive-pager__button:focus-visible {
  outline: 3px solid rgba(35, 139, 99, .2);
  outline-offset: 2px;
}

.hy-archive-pager__button:active:not(:disabled) { transform: translateY(0); }
.hy-archive-pager__button:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }

.hy-archive-pager__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #15583f;
  background: linear-gradient(135deg, #1d7252, #124735);
  color: #fff;
  box-shadow: 0 5px 13px rgba(16, 70, 50, .2);
  text-align: center;
}

.hy-archive-pager__button.is-refresh {
  border-color: rgba(151, 112, 53, .28);
  background: #fffaf1;
  color: #6b4d21;
}

.hy-archive-pager__button.is-refresh:hover:not(:disabled),
.hy-archive-pager__button.is-refresh:focus-visible {
  border-color: #ad7a32;
  background: #fff3dc;
}

@media (max-width: 520px) {
  .hy-archive-pager {
    grid-template-columns: minmax(0, 1fr) minmax(88px, auto) minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
    border-radius: 15px;
  }

  .hy-archive-pager__button,
  .hy-archive-pager__status {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 14px;
  }

  .hy-archive-pager__button.is-refresh {
    grid-column: 1 / -1;
    width: 100%;
  }
}
/* 긴 모바일 목록은 화면 밖 카드의 레이아웃·그리기를 미뤄 첫 표시 부담을 줄인다. */
@supports (content-visibility: auto) {
  .mb-card,
  .notice-card,
  .officer-card,
  .biz-card,
  .job-card,
  .gallery-item {
    content-visibility: auto;
    contain-intrinsic-size: auto 180px;
  }
}
.platform-readonly-banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(43, 182, 226, .36);
  border-radius: 14px;
  color: #d8f7ff;
  background: linear-gradient(135deg, rgba(8, 57, 72, .96), rgba(8, 35, 45, .96));
  font-size: 12px;
  line-height: 1.55;
}
.platform-readonly-banner[hidden] { display: none; }
.platform-readonly-banner i { margin-top: 2px; color: #70dcff; }
.platform-readonly-banner strong { display: block; color: #fff; }

/* 향우ON 단일 앱 셸: 로그인 → 광역시도회 → 지역 연합회를 문서 이동 없이 전환한다. */
.regional-council-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff8ed;
  font-weight: 900;
  letter-spacing: -.07em;
  line-height: 1;
}
.regional-council-brand { font-size: 1.65rem; }
.hyangwoo-on-o {
  margin-inline: .03em;
  color: #69e7ff;
  -webkit-text-fill-color: #69e7ff;
  text-shadow: 0 0 5px #087fff, 0 0 14px #087fff, 0 0 26px rgba(0, 175, 255, .8);
}
.login-page,
body.login-page,
#loginScreen,
.login-screen {
  background:
    radial-gradient(circle at 17% 17%, rgba(228, 154, 110, .14), transparent 31rem),
    radial-gradient(circle at 83% 74%, rgba(40, 168, 224, .1), transparent 28rem),
    linear-gradient(145deg, #070706 0%, #110e0c 49%, #080706 100%) !important;
  color: #ffffff !important;
}
.login-screen {
  isolation: isolate;
  padding: 24px 20px;
  overflow-y: auto;
}
.login-screen::after {
  content: '';
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(118deg, transparent 0 49.5%, rgba(255, 255, 255, .028) 50%, transparent 50.5%),
    repeating-linear-gradient(118deg, transparent 0 12px, rgba(255, 255, 255, .018) 13px 14px);
}
.login-screen .bg-circle { opacity: .14; filter: blur(84px); border: 0; }
.login-screen .bg-circle-1 { width: 34rem; height: 34rem; top: -25rem; right: -14rem; background: #df7f52; }
.login-screen .bg-circle-2 { width: 34rem; height: 34rem; bottom: -27rem; left: -15rem; background: #d9a95e; }
.login-screen .bg-circle-3 { width: 25rem; height: 25rem; top: 45%; left: 62%; background: #168dbd; opacity: .07; }
.login-container {
  width: min(1040px, 100%);
  max-width: 1040px;
  min-height: min(740px, calc(100dvh - 48px));
  padding: clamp(32px, 5vw, 68px);
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(340px, 1.1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 82px);
  border: 1px solid rgba(227, 182, 120, .22);
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012) 45%, rgba(201, 118, 88, .035));
  box-shadow: inset 0 1px rgba(255, 255, 255, .07), 0 38px 110px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.unified-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hyangwoo-brand-emblem-frame {
  position: relative;
  width: clamp(154px, 21vw, 230px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hyangwoo-brand-orbit {
  position: absolute;
  inset: -7%;
  border: 1px solid rgba(240, 174, 111, .24);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(238, 155, 94, .025), 0 0 52px rgba(222, 129, 83, .12);
}
.hyangwoo-brand-orbit::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  top: 12%;
  right: 11%;
  border-radius: 50%;
  background: #72ddff;
  box-shadow: 0 0 12px #5cd8ff, 0 0 28px rgba(50, 177, 231, .85);
}
.hyangwoo-brand-emblem {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .72));
}
.hyangwoo-brand-wordmark {
  width: min(310px, 88%);
  height: auto;
  margin-top: 18px;
  display: block;
  filter: drop-shadow(0 9px 17px rgba(0, 0, 0, .72));
}
.unified-login-brand .login-title {
  margin-top: 24px;
  color: #f5e5cf;
  font-size: clamp(1.5rem, 3vw, 2.16rem);
  line-height: 1.36;
  letter-spacing: -.04em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .62);
}
.unified-login-brand .login-slogan {
  margin-top: 17px;
  color: #a89a8c;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .18em;
}
.login-form-box {
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid #cbb9a8;
  border-radius: 28px;
  color: #241a15 !important;
  color-scheme: light !important;
  background: linear-gradient(145deg, #fffefb, #f6eee5) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .9), 0 28px 72px rgba(0, 0, 0, .4);
}
.unified-login-heading .login-subtitle {
  margin: 0;
  padding: 0;
  color: #7d431e;
  background: none;
  border: 0;
  box-shadow: none;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.unified-login-heading .form-title {
  margin: 10px 0 8px;
  color: #211711;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  line-height: 1.25;
  text-align: left;
  letter-spacing: -.045em;
}
.login-form-description {
  margin: 0 0 24px;
  color: #51443a;
  font-size: .9rem;
  line-height: 1.65;
}
.login-form-box .form-group { margin-bottom: 15px; }
.login-form-box .form-group label { color: #322820; font-size: .9rem; }
.login-form-box .form-group label i { color: #9b4f26; }
.login-form-box .form-group input {
  min-height: 52px;
  padding: 13px 15px;
  color: #181411 !important;
  -webkit-text-fill-color: #181411 !important;
  caret-color: #873f1d;
  background: #ffffff !important;
  border: 1px solid #89786c !important;
  border-radius: 13px;
  font-size: 1rem;
  font-weight: 600;
}
.login-form-box .form-group input::placeholder {
  color: #6e635b !important;
  -webkit-text-fill-color: #6e635b !important;
}
.login-form-box .form-group input:focus {
  background: #ffffff !important;
  border-color: #9b4f26 !important;
  box-shadow: 0 0 0 4px rgba(155, 79, 38, .14);
}
.login-form-box .btn-login {
  min-height: 54px;
  color: #ffffff !important;
  background: linear-gradient(112deg, #3e281d, #8b4325 58%, #0d5749) !important;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(201, 118, 88, .15);
}
.login-form-box .btn-login:hover { background: linear-gradient(112deg, #2d1d15, #75371f 58%, #08483c) !important; }
.login-form-box .btn-guest-browse {
  min-height: 50px;
  color: #191919 !important;
  background: linear-gradient(135deg, #ffe95a, #fee500) !important;
  border: 2px solid #d1b400;
  box-shadow: 0 8px 20px rgba(154, 124, 0, .2);
}
.login-form-box .btn-guest-browse:hover {
  color: #111 !important;
  background: linear-gradient(135deg, #fff176, #ffea2d) !important;
  border-color: #bca100;
  box-shadow: 0 10px 24px rgba(154, 124, 0, .28);
}
.login-form-box .btn-guest-browse i { color: #332719; }
.login-form-box .login-notice {
  margin-top: 14px;
  padding: 12px 14px;
  color: #44382f;
  background: #eee5db;
  border: 1px solid #c8b6a5;
  font-size: .8rem;
  line-height: 1.65;
}
.login-form-box .login-notice i { color: #0b5b6d; }
.login-form-box .login-notice strong { color: #7b3e1c; }
.login-footer {
  grid-column: 1 / -1;
  margin-top: -20px;
  padding: 0;
  color: #8f8277;
  background: none;
  border: 0;
  font-size: .76rem;
  font-weight: 600;
  text-shadow: none;
}
.login-footer .login-policy-btn { color: #aa9b8e; }
.login-footer .login-policy-btn:hover { color: #f0c98d; }

@media (max-width: 760px) {
  .login-screen { align-items: flex-start; padding: 8px 10px calc(14px + env(safe-area-inset-bottom)); }
  .login-container {
    min-height: 0;
    padding: 15px 13px 14px;
    display: flex;
    gap: 11px;
    border-radius: 25px;
  }
  .hyangwoo-brand-emblem-frame { width: clamp(76px, 22vw, 92px); }
  .hyangwoo-brand-orbit { inset: -5%; box-shadow: 0 0 0 8px rgba(238, 155, 94, .02), 0 0 26px rgba(222, 129, 83, .11); }
  .hyangwoo-brand-orbit::after { width: 6px; height: 6px; box-shadow: 0 0 8px #5cd8ff; }
  .hyangwoo-brand-wordmark { width: min(184px, 58%); margin-top: 6px; }
  .unified-login-brand .login-title { margin-top: 7px; font-size: clamp(1.08rem, 5vw, 1.32rem); line-height: 1.26; }
  .unified-login-brand .login-slogan { display: none; }
  .login-form-box { padding: 17px 15px 15px; border-radius: 20px; }
  .unified-login-heading .login-subtitle { font-size: .68rem; }
  .unified-login-heading .form-title { margin: 6px 0 4px; font-size: clamp(1.48rem, 7vw, 1.75rem); }
  .login-form-description { margin-bottom: 13px; font-size: .76rem; line-height: 1.45; }
  .login-form-box .form-group { margin-bottom: 9px; }
  .login-form-box .form-group label { margin-bottom: 5px; font-size: .82rem; }
  .login-form-box .form-group input { min-height: 47px; padding: 10px 13px; }
  .login-form-box .btn-login { min-height: 49px; padding: 12px; font-size: 1.02rem; }
  .login-form-box .btn-guest-browse { min-height: 45px; margin-top: 8px; padding: 10px; font-size: .9rem; }
  .login-form-box .login-notice { margin-top: 9px; padding: 8px 10px; font-size: .71rem; line-height: 1.45; }
  .login-footer { margin-top: 0; font-size: .68rem; line-height: 1.55; }
}

@media (max-width: 360px) {
  .login-container { padding-inline: 9px; }
  .login-form-box { padding-inline: 12px; }
  .hyangwoo-brand-emblem-frame { width: 72px; }
  .unified-login-brand .login-title { font-size: 1.04rem; }
}

@media (max-width: 760px) and (max-height: 700px) {
  .login-screen { padding: 5px 7px calc(8px + env(safe-area-inset-bottom)); }
  .login-container { padding: 8px 9px 10px; gap: 6px; border-radius: 21px; }
  .hyangwoo-brand-emblem-frame { width: 58px; }
  .hyangwoo-brand-wordmark { width: 142px; margin-top: 2px; }
  .unified-login-brand .login-title { margin-top: 2px; font-size: .9rem; line-height: 1.2; }
  .login-form-box { padding: 11px 12px 12px; border-radius: 17px; }
  .unified-login-heading .login-subtitle { font-size: .58rem; }
  .unified-login-heading .form-title { margin: 3px 0 5px; font-size: 1.28rem; }
  .login-form-description { display: none; }
  .login-form-box .form-group { margin-bottom: 6px; }
  .login-form-box .form-group label { margin-bottom: 3px; font-size: .74rem; }
  .login-form-box .form-group input { min-height: 43px; padding: 8px 11px; font-size: .9rem; }
  .login-form-box .btn-login { min-height: 45px; padding: 9px; font-size: .94rem; }
  .login-form-box .btn-guest-browse { min-height: 41px; margin-top: 6px; padding: 8px; font-size: .8rem; }
  .login-form-box .login-notice { margin-top: 6px; padding: 6px 8px; font-size: .64rem; line-height: 1.35; }
  .login-footer { display: none; }
}

body.regional-council-page,
body.central-council-page {
  /* 기존 전역 다크모드 보정의 밝은 배경보다 이 화면의 테마를 우선한다. */
  min-height: 100dvh;
  background:
    radial-gradient(circle at 88% 5%, rgba(221, 174, 108, .18), transparent 31rem),
    radial-gradient(circle at 8% 92%, rgba(38, 120, 102, .2), transparent 29rem),
    linear-gradient(145deg, #0d0d0c, #241b17 56%, #12372f) !important;
}
body.central-council-page {
  background:
    radial-gradient(circle at 86% 4%, rgba(226, 173, 98, .22), transparent 30rem),
    radial-gradient(circle at 10% 94%, rgba(111, 66, 166, .19), transparent 31rem),
    linear-gradient(145deg, #090807, #22170f 55%, #1e1630) !important;
}
.regional-council-screen { min-height: 100dvh; color: #fff7eb; }
.council-detail-mode .regional-council-main > :not(.council-page-content):not(.council-detail-toolbar) { display: none !important; }
.council-detail-mode .regional-council-main { padding-top: 16px; }
.council-detail-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: #fff7eb; }
.council-detail-toolbar[hidden] { display: none; }
.council-detail-toolbar button, .council-note-recipient { min-height: 44px; padding: 10px 14px; border: 1px solid #e5bd70; border-radius: 12px; background: #ffe3a3; color: #302313; font-weight: 800; cursor: pointer; }
.council-detail-mode .council-page-content { min-height: 65dvh; }
.council-detail-mode .council-chat-compose { position: sticky; bottom: env(safe-area-inset-bottom, 0px); z-index: 2; }
.council-chat-permission { margin: 12px 0; color: #eee2d5; font-size: .8rem; line-height: 1.6; }
.council-mail-heading { margin: 18px 0 10px; color: #fff7eb; font-size: 18px; }
.council-phone-link { display: inline-flex; align-items: center; min-height: 44px; color: #145641; font-weight: 800; }
.council-note-compose fieldset { display: grid; gap: 10px; margin: 10px 0; padding: 12px; }
.council-note-compose fieldset label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.council-editor { margin: 12px 0; padding: 16px; border: 1px solid #dab775; border-radius: 14px; background: #fff9ed; color: #302313; }
.council-editor h3 { margin: 0 0 12px; font-size: 18px; overflow-wrap: anywhere; }
.council-editor [hidden] { display: none !important; }
.council-editor > button { width: 100%; }
.council-editor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: sticky; bottom: 8px; padding: 8px 0; background: #fff9ed; }
.council-editor-actions [data-editor-cancel] { background: #e6ddd0; color: #302313; border: 1px solid #89745c; }
.council-editor form { display: grid; gap: 12px; }
.council-editor label { display: grid; gap: 6px; font-size: 16px; }
.council-editor input:not([type="checkbox"]), .council-editor select, .council-editor textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid #907d63; border-radius: 8px; background: #fff; color: #21190f; font: inherit; }
.council-editor button { min-height: 48px; padding: 12px; background: #154d40; color: #fff; border: 0; border-radius: 10px; font-weight: 800; cursor: pointer; }
.council-editor p { color: #65523f; font-size: 13px; }
.council-chat-compose :disabled { cursor: not-allowed; opacity: .7; }
.regional-council-header {
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: 68px;
  padding: 12px max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(235, 195, 137, .25);
  background: rgba(14, 14, 13, .88);
  backdrop-filter: blur(18px);
}
.regional-council-logout,
.header-region-back {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(235, 195, 137, .34);
  border-radius: 14px;
  color: #fff8ed;
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
}
.regional-council-logout { width: auto; padding: 8px 12px; display: inline-flex; align-items: center; gap: 7px; }
.app-header > .header-region-back {
  width: calc(100% - 24px);
  max-width: 656px;
  margin: 10px auto 0;
  padding: 10px 14px;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5bd70;
  background: #ffe3a3;
  color: #302313;
  font: 800 16px/1.4 'Noto Sans KR', sans-serif;
  text-align: left;
}
.header-council-label { min-width: 0; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
.app-header > .header-region-back:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.header-region-back,
.regional-upper-card { position: relative; }
.upper-council-alert-badge {
  position: absolute;
  z-index: 4;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff8ed;
  border-radius: 999px;
  color: #fff;
  background: #b42e38;
  box-shadow: 0 4px 12px rgba(87, 14, 22, .38);
  font-size: .65rem;
  font-weight: 900;
  line-height: 1;
  box-sizing: border-box;
}
.regional-upper-card .upper-council-alert-badge { top: 8px; right: 8px; }
.regional-council-main { width: min(680px, 100%); margin: 0 auto; padding: clamp(34px, 8vw, 72px) 18px calc(42px + env(safe-area-inset-bottom)); }
.regional-council-eyebrow { margin: 0 0 10px; color: #f0c98d; font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.regional-council-main > h1 { margin: 0; color: #fff8ed; font-size: clamp(1.85rem, 7vw, 3rem); line-height: 1.28; letter-spacing: -.055em; }
.regional-council-welcome { margin: 14px 0 0; color: #cfc0b2; }
.regional-council-welcome strong { color: #fff; }
.regional-council-summary,
.regional-local-section {
  margin-top: 26px;
  border: 1px solid rgba(230, 190, 133, .27);
  border-radius: 24px;
  background: rgba(255, 255, 255, .065);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .24);
}
.regional-council-summary { padding: 20px; display: flex; align-items: center; gap: 16px; }
.regional-council-emblem { width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; border-radius: 17px; color: #17332d; background: linear-gradient(135deg, #f6d5a0, #d99665); font-size: 1.4rem; }
.central-council-screen .regional-council-emblem { color: #2a172e; background: linear-gradient(135deg, #f8d59b, #c999dc); }
.regional-council-summary strong { color: #fff7eb; font-size: 1.08rem; }
.regional-council-summary p { margin: 6px 0 0; color: #bdafa2; font-size: .9rem; line-height: 1.55; }
.council-live-overview {
  min-height: 104px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(230, 190, 133, .22);
  border-radius: 20px;
  background: rgba(8, 8, 8, .24);
}
.council-live-overview > p { margin: 0; color: #cfc0b2; font-size: .86rem; line-height: 1.55; }
.council-live-overview > p i { margin-right: 6px; color: #f0c98d; }
.council-live-overview > button { margin-top: 12px; padding: 9px 13px; border: 1px solid rgba(240, 201, 141, .4); border-radius: 11px; color: #fff7eb; background: rgba(255, 255, 255, .08); cursor: pointer; }
.council-live-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.council-live-heading span { color: #95e2c9; font-size: .7rem; font-weight: 900; letter-spacing: .08em; }
.council-live-heading strong { overflow: hidden; color: #fff7eb; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.council-live-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.council-live-grid > div { min-width: 0; padding: 10px 6px; border-radius: 13px; background: rgba(255, 255, 255, .06); text-align: center; }
.council-live-grid strong,
.council-live-grid span { display: block; }
.council-live-grid strong { color: #fff; font-size: 1.15rem; }
.council-live-grid span { margin-top: 3px; overflow: hidden; color: #bfb2a6; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.council-page-tabs {
  margin-top: 18px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(230, 190, 133, .22);
  border-radius: 17px;
  background: rgba(8, 8, 8, .28);
}
.council-page-tabs button {
  min-width: 0;
  min-height: 55px;
  padding: 7px 9px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #cfc1b5;
  background: transparent;
  font: 800 .72rem 'Noto Sans KR', sans-serif;
  cursor: pointer;
}
.council-page-tabs button span {
  max-width: 100%;
  line-height: 1.28;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: center;
}
.council-page-tabs button i { color: #dfb878; font-size: .94rem; }
.council-page-tabs button { position: relative; }
.council-page-tabs button .council-menu-badge { position: absolute; top: 2px; right: 2px; min-width: 20px; padding: 2px 5px; border-radius: 999px; background: #bd2337; color: #fff; font-size: 11px; font-weight: 900; line-height: 16px; box-shadow: 0 0 0 1px #fff5e5; }
.council-menu-badge[hidden] { display: none !important; }
.council-page-tabs button.active {
  border-color: rgba(248, 215, 160, .52);
  color: #20150e;
  background: linear-gradient(135deg, #f7d69e, #dda66b);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .24);
}
.council-page-tabs button.active i { color: #3b2517; }
.council-page-content {
  min-height: 150px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(230, 190, 133, .24);
  border-radius: 21px;
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .2);
}
.council-page-intro { padding: 6px 2px; }
.council-page-intro h2,
.council-page-heading h2 { margin: 0; color: #fff8ed; font-size: 1.22rem; }
.council-page-intro p { margin: 8px 0 0; color: #c9bbb0; font-size: .86rem; line-height: 1.65; }
.council-page-heading { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.council-page-heading > div { flex: 1; min-width: 0; }
.council-page-heading h2 { white-space: normal; word-break: keep-all; overflow-wrap: normal; line-height: 1.4; }
.council-page-heading > button { flex-shrink: 0; }
.council-page-heading span { display: block; margin-bottom: 3px; color: #dfb878; font-size: .67rem; font-weight: 900; }
.council-page-heading button,
.council-page-empty button,
.council-page-pagination button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(238, 200, 146, .42);
  border-radius: 12px;
  color: #fff8ed;
  background: rgba(255, 255, 255, .08);
  font-weight: 900;
  cursor: pointer;
}
.council-content-card,
.council-person-card,
.council-message-card {
  margin-top: 9px;
  padding: 14px;
  border: 1px solid #d8c8b9;
  border-radius: 15px;
  color: #2a211b;
  background: #fffdf9;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .12);
}
.council-content-card:first-of-type,
.council-person-card:first-of-type,
.council-message-card:first-of-type { margin-top: 0; }
.council-content-kind { display: inline-flex; margin-bottom: 7px; padding: 4px 8px; border-radius: 999px; color: #714017; background: #fff0ce; font-size: .66rem; font-weight: 900; }
.council-content-card h3,
.council-person-card h3 { margin: 0; color: #241a15; font-size: .98rem; line-height: 1.45; }
.council-content-card p,
.council-message-card p { margin: 7px 0 0; color: #4d4138; font-size: .82rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.council-content-card small,
.council-person-card small { display: block; margin-top: 7px; color: #76685e; font-size: .68rem; line-height: 1.5; }
.council-person-card { display: grid; grid-template-columns: 45px minmax(0, 1fr); align-items: center; gap: 12px; }
.council-person-avatar { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; color: #70431f; background: #f7e2be; }
.council-person-card p { margin: 4px 0 0; color: #5b4d43; font-size: .78rem; }
.council-message-card > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.council-message-card strong { color: #2b211b; font-size: .82rem; }
.council-message-card small { color: #786a5f; font-size: .65rem; text-align: right; }
.council-page-loading,
.council-page-empty { min-height: 116px; display: grid; place-items: center; align-content: center; gap: 9px; color: #cfc1b5; text-align: center; }
.council-page-loading i,
.council-page-empty i { color: #efc98f; font-size: 1.35rem; }
.council-page-loading p,
.council-page-empty p { margin: 0; font-size: .82rem; line-height: 1.55; }
.council-page-empty button { padding: 8px 13px; }
.council-page-pagination { margin-top: 14px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.council-page-pagination span { color: #d6c8bc; font-size: .74rem; font-weight: 900; text-align: center; }
.council-page-pagination button:disabled { opacity: .4; cursor: default; }
.council-action-row { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.council-inline-action { margin: 0; }
.council-inline-action button,
.council-response-form button,
.council-compose-form button,
.council-note-compose button {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #c99b62;
  border-radius: 11px;
  color: #52331c;
  background: #fff6e6;
  font: 800 .72rem 'Noto Sans KR', sans-serif;
  cursor: pointer;
}
.council-inline-action.primary button,
.council-compose-form > button,
.council-note-compose button { color: #fff; background: linear-gradient(135deg, #8d542c, #23594c); border-color: transparent; }
.council-inline-action.qr { margin-top: 9px; }
.council-inline-action.qr button { width: 100%; color: #153f35; background: #dbf5eb; border-color: #82bea9; }
.council-inline-action button:disabled,
.council-response-form button:disabled,
.council-compose-form button:disabled,
.council-note-compose button:disabled { opacity: .55; cursor: wait; }
.council-response-form { margin-top: 12px; padding-top: 11px; border-top: 1px solid #eadfd4; }
.council-response-form > span { display: block; margin-bottom: 7px; color: #695a4f; font-size: .68rem; font-weight: 900; }
.council-response-form > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.council-response-form button { padding-left: 5px; padding-right: 5px; }
.council-compose-form { margin-bottom: 12px; padding: 13px; border: 1px solid #d8c8b9; border-radius: 15px; background: #fff9ef; }
.council-compose-form label { display: block; color: #49372b; font-size: .75rem; font-weight: 900; }
.council-compose-form textarea,
.council-note-compose textarea {
  width: 100%;
  min-height: 82px;
  margin-top: 8px;
  padding: 10px;
  resize: vertical;
  border: 1px solid #cdbbad;
  border-radius: 11px;
  color: #28201a;
  background: #fff;
  font: 500 .8rem/1.55 'Noto Sans KR', sans-serif;
  box-sizing: border-box;
}
.council-compose-form > button { width: 100%; margin-top: 8px; }
.council-note-compose { margin-top: 9px; }
.council-note-compose summary { color: #70441f; font-size: .7rem; font-weight: 900; cursor: pointer; }
.council-note-compose form { margin-top: 8px; }
.council-note-compose textarea { min-height: 70px; }
.council-note-compose button { width: 100%; margin-top: 6px; }
.council-chat-shell { margin: -3px; }
.council-chat-participants { padding: 12px; border-radius: 14px; background: rgba(255, 248, 236, .94); }
.council-chat-participants > div:first-child { display:flex; align-items:center; justify-content:space-between; gap:10px; color:#3f3025; font-size:.73rem; }
.council-chat-participants > div:first-child span { min-width:31px; padding:4px 8px; border-radius:999px; color:#fff; background:#3f6f61; text-align:center; }
.council-chat-participants > div:last-child { margin-top:9px; display:flex; gap:7px; overflow-x:auto; scrollbar-width:none; }
.council-chat-participants > div:last-child::-webkit-scrollbar { display:none; }
.council-chat-participants > div:last-child > span { flex:0 0 auto; display:inline-flex; align-items:center; gap:5px; padding:7px 9px; border:1px solid #decdbd; border-radius:999px; color:#574336; background:#fff; font-size:.66rem; font-weight:800; }
.council-chat-participants > div:last-child > span i { color:#9a6238; }
.council-chat-participants small { color:#76695f; }
.council-chat-live { margin:10px 2px 8px; display:flex; justify-content:space-between; align-items:center; gap:8px; color:#cfc1b5; font-size:.64rem; }
.council-chat-live span { color:#aee4d2; font-weight:800; }
.council-chat-live i { margin-right:4px; color:#62c59f; font-size:.46rem; }
.council-chat-list { height:52vh; height:52dvh; min-height:120px; max-height:560px; padding:12px; display:flex; flex-direction:column; gap:9px; overflow-y:auto; overflow-x:hidden; touch-action:pan-y pinch-zoom; -webkit-overflow-scrolling:touch; border-radius:15px; background:linear-gradient(180deg,rgba(224,235,231,.96),rgba(207,222,217,.96)); scroll-behavior:auto; }
.council-chat-list > * { flex-shrink:0; }
.council-chat-bubble { width:fit-content; max-width:82%; padding:9px 11px 7px; border-radius:14px; color:#2e2925; background:#fff; box-shadow:0 2px 7px rgba(32,48,42,.12); }
.council-chat-bubble.mine { align-self:flex-end; border-bottom-right-radius:4px; background:#fee681; }
.council-chat-bubble.other { align-self:flex-start; border-bottom-left-radius:4px; }
.council-chat-bubble strong { display:block; margin-bottom:3px; color:#5b4738; font-size:.65rem; }
.council-chat-bubble p { margin:0; font-size:.8rem; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
.council-chat-bubble small { display:block; margin-top:4px; color:#7a7068; font-size:.57rem; text-align:right; }
.council-chat-empty { margin:auto; color:#65756f; font-size:.75rem; text-align:center; }
.council-private-modal { position:fixed; inset:0; z-index:10030; padding:12px; background:rgba(0,0,0,.65); overflow-y:auto; display:flex; align-items:flex-start; justify-content:center; }
.council-private-panel { width:min(680px,100%); max-height:calc(100dvh - 24px); overflow-y:auto; padding:16px; border-radius:18px; background:#173f35; color:#fff; }
.council-private-panel header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.council-private-panel h2 { font-size:1rem; word-break:keep-all; }
.council-private-panel nav { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.council-private-panel button { min-height:44px; padding:8px 12px; margin:4px; border:1px solid #c99b62; border-radius:10px; background:#fff5df; color:#30251b; font:inherit; cursor:pointer; }
.council-private-panel button:disabled { opacity:.55; cursor:default; }
.council-private-panel label { display:flex; gap:8px; align-items:center; margin:10px 0; word-break:keep-all; }
.council-private-panel input { min-width:0; max-width:100%; padding:8px; font:inherit; }
.council-private-panel input[type=checkbox] { width:22px; height:22px; flex-shrink:0; }
.council-private-panel [data-people] { max-height:36dvh; overflow:auto; }
.council-private-panel [data-status] { font-size:.75rem; color:#ffe4ad; }
.council-private-panel .council-chat-list { height:42vh; height:42dvh; }
.council-private-panel .council-chat-compose { position:static; }
.council-chat-compose { position:sticky; bottom:8px; margin-top:9px; padding:7px; display:grid; grid-template-columns:minmax(0,1fr) 46px; gap:7px; border:1px solid #d2c3b6; border-radius:16px; background:#fff; box-shadow:0 10px 24px rgba(0,0,0,.2); }
.council-chat-compose textarea { width:100%; min-height:44px; max-height:110px; padding:11px; resize:none; border:0; outline:0; color:#29231f; background:transparent; font:500 .82rem/1.5 'Noto Sans KR',sans-serif; box-sizing:border-box; }
.council-chat-compose button { width:46px; height:46px; padding:0; align-self:end; border:0; border-radius:14px; color:#3c2915; background:#fee500; font-size:1rem; }
.unified-workspace-qr-modal { z-index: 10020; }
.unified-workspace-qr-modal .modal-box { width: min(390px, calc(100vw - 28px)); }
.unified-workspace-qr-ticket { padding: 12px; color: #28201a; text-align: center; }
.unified-workspace-qr-ticket > p { margin: 0 0 14px; font-size: 1rem; font-weight: 900; }
.unified-workspace-qr-ticket svg { width: min(260px, 74vw); height: auto; padding: 10px; border-radius: 14px; background: #fff; }
.unified-workspace-qr-ticket small { display: block; margin-top: 10px; color: #6d5c50; font-size: .72rem; line-height: 1.55; }
.regional-local-section { padding: 20px; }
.regional-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.regional-section-heading p { margin: 0 0 6px; color: #e0b879; font-size: .76rem; font-weight: 900; }
.regional-section-heading h2 { margin: 0; color: #fff8ed; font-size: clamp(1.1rem, 4.7vw, 1.45rem); line-height: 1.4; }
.regional-membership-badge { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; color: #c9f8e9; background: rgba(49, 146, 119, .23); font-size: .7rem; font-weight: 900; }
.regional-local-card {
  width: 100%;
  min-height: 94px;
  margin-top: 18px;
  padding: 13px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(237, 203, 153, .4);
  border-radius: 19px;
  color: #fff;
  background: linear-gradient(135deg, rgba(45, 91, 77, .85), rgba(21, 57, 49, .95));
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.regional-local-card:hover,
.regional-local-card:focus-visible { outline: 0; transform: translateY(-2px); border-color: #f0c98d; box-shadow: 0 12px 30px rgba(0, 0, 0, .28); }
.regional-local-card:active { transform: translateY(0); }
.regional-local-card img { width: 68px; height: 68px; border-radius: 17px; object-fit: cover; }
.regional-local-copy { min-width: 0; }
.regional-local-copy strong,
.regional-local-copy small { display: block; }
.regional-local-copy strong { color: #fff; font-size: 1rem; line-height: 1.4; }
.regional-local-copy small { margin-top: 6px; color: #c9d9d4; font-size: .76rem; line-height: 1.45; }
.regional-local-card > i { color: #f3ce96; }
.regional-council-card-icon { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 17px; color: #19382f; background: linear-gradient(135deg, #f5d9a9, #d6a36a); font-size: 1.45rem; }
.regional-upper-card {
  width: 100%;
  min-height: 72px;
  margin-top: 20px;
  padding: 14px 16px;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(237, 203, 153, .38);
  border-radius: 18px;
  color: #fff;
  background: rgba(53, 34, 68, .62);
  text-align: left;
  cursor: pointer;
}
.regional-upper-card > i:first-child { font-size: 1.2rem; color: #f0c98d; }
.regional-upper-card > i:last-child { color: #f0c98d; }
.regional-upper-card strong,
.regional-upper-card small { display: block; }
.regional-upper-card small { margin-top: 4px; color: #cbbbd0; }
.header-logo { min-width: 0; }
.header-title-wrap { min-width: 0; }

@media (max-width: 420px) {
  .regional-council-logout span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .regional-council-logout { width: 44px; padding: 0; justify-content: center; }
  .regional-local-section { padding: 16px; }
  .regional-local-card { grid-template-columns: 58px minmax(0, 1fr) 18px; gap: 11px; }
  .regional-local-card img { width: 58px; height: 58px; border-radius: 15px; }
  .regional-council-card-icon { width: 58px; height: 58px; border-radius: 15px; }
  .council-page-content { padding: 13px; }
  .council-page-tabs button { min-height: 52px; }
}

@media (max-width: 560px) {
  .council-page-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.council-ad { display: grid; gap: 8px; margin: 12px 0; padding: 14px; border: 1px solid #8a784b; border-radius: 14px; background: #24221c; color: #fff4d4; text-decoration: none; }
.council-ad small { color: #ead18e; }
.council-ad-images { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; }
.council-ad-images img { max-width: 100%; max-height: 220px; object-fit: contain; border-radius: 8px; }
.council-editor fieldset { display: grid; gap: 8px; max-height: 260px; overflow-y: auto; }
.council-editor fieldset label, .council-note-compose fieldset label { display: flex; align-items: center; gap: 8px; }
.council-editor input[type="checkbox"] { width: auto; }
.council-editor [role="status"] { color: #ffe19a; white-space: pre-wrap; }
.council-editor .council-image-picker { max-height: none; padding: 12px; border: 1px solid #c8ab77; border-radius: 12px; }
.council-retained-images { display: grid; gap: 8px; }
.council-retained-images label { display: grid !important; grid-template-columns: auto minmax(0, 1fr) 64px; align-items: center; padding: 8px; border-radius: 10px; background: #fff; }
.council-retained-images img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.council-retained-images small { grid-column: 2 / -1; color: #65523f; }
.council-image-file { display: flex !important; min-height: 52px; padding: 10px; border: 1px dashed #907d63; border-radius: 10px; background: #fff; cursor: pointer; }
.council-image-file input { min-height: auto !important; padding: 0 !important; border: 0 !important; }
.council-image-file span { display: grid; gap: 2px; }
.council-image-file small { color: #65523f; }
.council-image-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.council-image-preview-item { display: grid; gap: 4px; min-width: 0; }
.council-image-preview-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.council-image-preview-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #65523f; }
.council-photo { margin: 12px 0; }
.council-photo img { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 12px; }
.council-photo img[hidden] { display: none; }
.council-photo figcaption { font-size: 13px; color: #ead18e; }
