/* ═══════════════════════════════════════════════════════════════
   라이프인 강서 — 디자인 시스템
   딥 파인 그린 + 웜 페이퍼, 모바일 퍼스트
   ═══════════════════════════════════════════════════════════════ */

:root {
  --pine: #0c6b55;
  --pine-dark: #095442;
  --pine-deep: #06382d;
  --pine-soft: #e6f2ee;
  --amber: #e8890c;
  --amber-soft: #fdf2e2;

  --paper: #fafaf7;
  --card: #ffffff;
  --line: #e9e9e3;
  --line-soft: #f1f1ec;

  --ink: #1b201d;
  --sub: #55605a;
  --muted: #8d968f;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;

  --shadow: 0 1px 2px rgba(20, 30, 25, 0.04), 0 4px 14px rgba(20, 30, 25, 0.05);
  --wrap: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ── 헤더 ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  height: 56px;
}
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  object-fit: cover; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(12, 107, 85, 0.35);
}
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.brand-name em { font-style: normal; color: var(--pine); }

.gnb {
  display: flex; gap: 2px; flex: 1; min-width: 0;
}
.header-auth {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  margin-left: auto;
}
.gnb-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--paper);
  cursor: pointer;
  flex-shrink: 0;
}
.gnb-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.menu-open .gnb-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.menu-open .gnb-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.menu-open .gnb-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.member-chip {
  display: flex; align-items: center; gap: 6px; max-width: 200px;
}
.member-profile-link {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: inherit;
}
.member-profile-link:hover .member-name { color: var(--pine); }
.member-avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--pine-soft) url('/images/default-avatar.svg') center/cover no-repeat;
}
.member-name {
  font-size: 13px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.member-logout {
  font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.member-logout:hover { color: var(--pine); }
.member-message-link {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  color: var(--sub);
  white-space: nowrap;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--line-soft);
}
.member-message-link:hover { color: var(--pine); background: var(--pine-soft); }
.member-message-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 2px;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.btn-login {
  padding: 7px 14px; border-radius: 99px;
  font-size: 13px; font-weight: 700; color: #3c1e1e;
  background: #fee500; white-space: nowrap;
}
.btn-login:hover { background: #f5d900; }

.login-panel { padding: 28px 22px; text-align: center; }
.login-note {
  margin-bottom: 18px; padding: 12px 14px; border-radius: var(--r-md);
  background: #fdecea; color: #b42318; font-size: 14px;
}
.btn-kakao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 320px; height: 52px; border-radius: var(--r-md);
  background: #fee500; color: #3c1e1e; font-size: 16px; font-weight: 800;
}
.btn-kakao:hover { background: #f5d900; }
.btn-kakao-icon {
  width: 24px; height: 24px; border-radius: 6px;
  background: #3c1e1e; color: #fee500; font-weight: 900;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.btn-naver {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 320px; height: 52px; margin-top: 10px; border-radius: var(--r-md);
  background: #03c75a; color: #fff; font-size: 16px; font-weight: 800;
}
.btn-naver:hover { background: #02b351; }
.btn-naver-icon {
  width: 24px; height: 24px; border-radius: 6px;
  background: #fff; color: #03c75a; font-weight: 900;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.login-help { margin-top: 18px; font-size: 13px; color: var(--muted); }

.gnb a {
  padding: 7px 12px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sub);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.gnb a:hover { background: var(--line-soft); }
.gnb a.on { background: var(--pine-soft); color: var(--pine-dark); font-weight: 700; }

@media (max-width: 719px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    min-height: 56px;
    padding: 8px 0;
    row-gap: 0;
  }
  .gnb-toggle { display: inline-flex; margin-left: 8px; }
  .header-auth { margin-left: auto; }
  .header-inner:not(:has(.header-auth)) .gnb-toggle { margin-left: auto; }
  .gnb {
    display: none;
    flex: 1 1 100%;
    order: 10;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .site-header.menu-open .gnb {
    display: grid;
  }
  .gnb a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    border-radius: var(--r-md);
    border: 1px solid var(--line-soft);
    background: #fbfbf8;
  }
  .gnb a.on {
    border-color: rgba(12, 107, 85, 0.35);
    background: var(--pine-soft);
  }
}

@media (min-width: 720px) {
  /* 메뉴가 많아 한 줄에 다 안 들어가므로, 로고 줄 아래에 GNB를 별도 줄로 배치.
     넘치면 가로로 자르지 않고 다음 줄로 감싼다. */
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    padding-top: 9px;
    row-gap: 0;
  }
  .gnb {
    order: 10;
    flex: 1 1 100%;
    width: 100%;
    flex-wrap: wrap;
    row-gap: 2px;
    padding: 6px 0 9px;
  }
}

/* ── 히어로 ───────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(700px 300px at 90% -60%, rgba(232, 137, 12, 0.25), transparent 60%),
    linear-gradient(135deg, var(--pine-deep) 0%, var(--pine) 85%);
  color: #fff;
  padding: 40px 0 44px;
}
.hero-kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.66); text-transform: uppercase;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(25px, 5.4vw, 38px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.25;
}
.hero h1 strong { color: #ffd9a1; font-weight: 800; }
.hero-sub {
  margin-top: 12px; font-size: clamp(14px, 3vw, 16px);
  color: rgba(255, 255, 255, 0.82); max-width: 560px;
}
.hero-areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-areas a {
  padding: 8px 15px; border-radius: 99px; font-size: 13.5px; font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.15s;
}
.hero-areas a:hover { background: rgba(255, 255, 255, 0.24); }

/* ── 페이지 헤드 (서브 페이지) ─────────────────────────── */
.page-head { padding: 30px 0 6px; }
.page-head h1 { font-size: clamp(22px, 4.6vw, 28px); font-weight: 800; letter-spacing: -0.03em; }
.page-head .desc { margin-top: 7px; color: var(--sub); font-size: 14px; max-width: 640px; }
.page-head .count { color: var(--pine); font-weight: 700; }

/* ── 검색 · 필터 ──────────────────────────────────────── */
.toolbar { padding: 16px 0 4px; display: flex; flex-direction: column; gap: 12px; }
.search { display: flex; gap: 8px; }
.search input {
  flex: 1; height: 46px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card); font-size: 14.5px; color: var(--ink);
  box-shadow: var(--shadow); outline: none;
  transition: border-color 0.15s;
}
.search input:focus { border-color: var(--pine); }
.search input::placeholder { color: var(--muted); }
.search button {
  height: 46px; padding: 0 22px; border: 0; border-radius: var(--r-md);
  background: var(--pine); color: #fff; font-weight: 700; font-size: 14.5px;
  cursor: pointer; transition: background 0.15s;
}
.search button:hover { background: var(--pine-dark); }

.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filters a {
  padding: 7px 14px; border-radius: 99px; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: var(--sub);
  background: var(--card); border: 1px solid var(--line);
}
.filters a.on { background: var(--pine); border-color: var(--pine); color: #fff; font-weight: 700; }

.restaurant-map-section { padding-top: 12px; padding-bottom: 0; }
.restaurant-map-panel {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.restaurant-map {
  width: 100%;
  height: 280px;
  background: var(--pine-soft);
}
.restaurant-map-hint {
  margin: 0;
  padding: 8px 12px 10px;
  font-size: 12px;
  color: var(--muted);
}
.restaurant-map-error {
  margin: 0;
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--sub);
}
.rmap-info { padding: 4px 2px; font-size: 13px; line-height: 1.45; color: #1a2420; }
.rmap-info strong { display: block; font-size: 14px; margin-bottom: 4px; }
.rmap-cat { color: #5a6b63; font-size: 12px; }
.rmap-addr { color: #5a6b63; font-size: 12px; margin-top: 2px; }
.rmap-link {
  display: inline-block;
  margin-top: 8px;
  color: #0c6b55;
  font-weight: 700;
  font-size: 12.5px;
}
@media (min-width: 720px) {
  .restaurant-map { height: 360px; }
}

/* ── 건설본부 공사 ─────────────────────────────────────── */
.construction-map-section { padding-top: 12px; padding-bottom: 0; }
.badge.construction-dday {
  background: var(--pine-soft);
  color: var(--pine);
  font-weight: 700;
}
.badge.construction-dday.is-soon {
  background: #b4552d;
  color: #fff;
}
.construction-rows .construction-item { display: block; padding: 14px 18px; }
.construction-rows li.has-pin { cursor: pointer; transition: background 0.12s; }
.construction-rows li.has-pin:hover { background: #fbfbf8; }
.kids-cafe-item {
  display: flex;
  align-items: stretch;
  min-width: 0;
}
.kids-cafe-item .construction-item {
  flex: 1;
  min-width: 0;
}
.kids-cafe-thumb {
  flex: 0 0 108px;
  width: 108px;
  min-height: 96px;
  overflow: hidden;
  background: var(--pine-soft);
}
.kids-cafe-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kids-cafe-detail-link {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.kids-cafe-detail-link:hover { color: var(--pine); text-decoration: underline; }
@media (max-width: 719px) {
  .home-kids-cafe-grid .card:nth-child(n + 5) { display: none; }
}
@media (min-width: 720px) {
  .kids-cafe-thumb {
    flex-basis: 150px;
    width: 150px;
  }
}
.construction-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}
.construction-progress-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.construction-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--pine);
}
.construction-progress-label {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--pine);
  white-space: nowrap;
}

/* ── 섹션 ─────────────────────────────────────────────── */
.section { padding: 26px 0 4px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.section-head h2 .dot { color: var(--pine); }
.section-head .more { font-size: 13px; font-weight: 600; color: var(--muted); }
.section-head .more:hover { color: var(--pine); }

/* ── 카드 · 리스트 ────────────────────────────────────── */
.panel {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden;
}

.rows { list-style: none; }
.rows li { border-bottom: 1px solid var(--line-soft); }
.rows li:last-child { border-bottom: 0; }
.rows a { display: block; padding: 14px 18px; transition: background 0.12s; }
.rows a:hover { background: #fbfbf8; }
.row-title {
  font-size: 14.5px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row-sub {
  margin-top: 3px; font-size: 13px; color: var(--sub);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.row-meta { margin-top: 5px; font-size: 12px; color: var(--muted); }
.restaurant-menu-disclaimer {
  margin: -4px 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; vertical-align: 1px; margin-right: 6px;
}
.badge.pine { background: var(--pine-soft); color: var(--pine-dark); }
.badge.sky { background: #e7f5ff; color: #1864ab; }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.gray { background: var(--line-soft); color: var(--sub); }

.price { color: var(--pine-dark); font-weight: 800; }

/* ── 그리드 카드 (맛집·영상·지역) ─────────────────────── */
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); box-shadow: var(--shadow);
  overflow: hidden; transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(20, 30, 25, 0.1); }
.card .thumb { aspect-ratio: 16/9; background: var(--pine-soft); position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb.thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: var(--pine);
}
.card .thumb .play {
  position: absolute; inset: 0; margin: auto; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(10, 20, 15, 0.55);
  display: flex; align-items: center; justify-content: center;
}
.card .thumb .play::after {
  content: ''; border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff; margin-left: 3px;
}
.card .body { padding: 12px 14px 14px; }
.card .body .row-title { font-size: 14px; }

button.card.home-popup-card {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.home-popup-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-popup-cards .home-popup-card { min-width: 0; }
.home-popup-cards .row-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popup-notice-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px;
}
.popup-notice-detail > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
}
.popup-notice-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.popup-notice-detail-actions .btn-line,
.popup-notice-detail-actions .btn-primary {
  width: auto;
  margin-top: 0;
}

/* ── 페이지네이션 ─────────────────────────────────────── */
.paging {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  padding: 26px 0 6px;
}
.paging a {
  min-width: 38px; height: 38px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--card); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--sub);
}
.paging a:hover { border-color: var(--pine); color: var(--pine); }
.paging a.on { background: var(--pine); border-color: var(--pine); color: #fff; font-weight: 700; }

/* ── 광고 ─────────────────────────────────────────────── */
.ad-box {
  margin: 20px 0 6px; padding: 0;
  border-radius: var(--r-md); overflow: hidden;
  background: #f2f2ed; border: 1px dashed var(--line);
  height: 150px; position: relative;
}
.ad-box .ad-tag {
  position: absolute; top: 8px; left: 10px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  color: var(--muted); z-index: 1;
}
.ad-box ins.adsbygoogle { display: block; height: 150px; }

/* ── 상세 페이지 ──────────────────────────────────────── */
.breadcrumb { padding: 18px 0 0; font-size: 12.5px; color: var(--muted); }
.breadcrumb a:hover { color: var(--pine); }
.breadcrumb .sep { margin: 0 6px; }

.detail-head { padding: 12px 0 4px; }
.detail-head h1 { font-size: clamp(21px, 4.4vw, 27px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.detail-head .sub { margin-top: 6px; color: var(--sub); font-size: 14px; }

.price-panel {
  margin-top: 18px; padding: 20px 22px;
  background: var(--pine-soft); border-radius: var(--r-lg);
  border: 1px solid rgba(12, 107, 85, 0.14);
}
.price-panel .label { font-size: 13px; color: var(--pine-dark); font-weight: 600; }
.price-panel .value { font-size: clamp(23px, 5vw, 30px); font-weight: 800; color: var(--pine-dark); letter-spacing: -0.02em; }
.housing-trend-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.housing-trend-panel { padding: 16px 16px 14px; }
.housing-trend-chart-wrap {
  position: relative;
  width: 100%;
  height: min(52vw, 320px);
  min-height: 220px;
}
.housing-trend-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { padding: 11px 18px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 96px; color: var(--muted); font-weight: 600; white-space: nowrap; }

.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 46px; margin-top: 16px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card); font-size: 14px; font-weight: 600; color: var(--sub);
}
.btn-line:hover { border-color: var(--pine); color: var(--pine); }

/* ── 지역 랜딩 ────────────────────────────────────────── */
.area-hero {
  background: linear-gradient(135deg, var(--pine-deep), var(--pine));
  color: #fff; padding: 34px 0 36px;
}
.area-hero h1 { font-size: clamp(23px, 5vw, 32px); font-weight: 800; letter-spacing: -0.03em; }
.area-hero p { margin-top: 10px; color: rgba(255, 255, 255, 0.85); font-size: 14.5px; max-width: 640px; }

.area-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 0; }
.area-links a {
  padding: 8px 15px; border-radius: 99px; font-size: 13px; font-weight: 700;
  background: var(--card); border: 1px solid var(--line); color: var(--sub);
}
.area-links a.on, .area-links a:hover { background: var(--pine-soft); border-color: var(--pine); color: var(--pine-dark); }
.area-links a.favorite, .hero-areas a.favorite {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.area-hero-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.area-fav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
}
.area-fav-btn:hover, .area-fav-btn.on { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.6); }
.area-fav-btn .star { font-size: 15px; line-height: 1; }

.weekly-summary .weekly-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.weekly-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.weekly-stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px 12px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.weekly-stat strong { font-size: 24px; font-weight: 800; color: var(--pine-dark); line-height: 1.1; }
.weekly-stat span { margin-top: 4px; font-size: 13px; color: var(--sub); font-weight: 600; }
.weekly-stat:hover { border-color: var(--pine); }

.two-col-weekly { display: grid; gap: 16px; }

/* 메인: 최신 뉴스 + 자유게시판 2열 (모바일·웹 공통) */
.home-news-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.home-news-board > .section {
  min-width: 0;
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.home-news-board .section-head {
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 10px;
}
.home-news-board .section-head h2 { font-size: clamp(14px, 3.6vw, 19px); }
.home-news-board .section-head .more { font-size: 12px; white-space: nowrap; }
.home-news-board .panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.home-news-board .rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* 6칸 높이 유지 (자유게시판은 5개만 노출) */
  min-height: calc(6 * 68px);
}
.home-news-board .rows li {
  flex: 1 1 0;
  min-height: 68px;
  overflow: visible;
}
.home-news-board .rows a {
  height: 100%;
  box-sizing: border-box;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
}
.home-news-board .row-title {
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-news-board .row-meta {
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-news-board .board-scope-badge { font-size: 10px; padding: 1px 5px; }
.home-news-board .board-home-avatar { width: 20px; height: 20px; }

/* 메인: 아파트 실거래 + 강서구청 공지 */
.home-housing-notices {
  align-items: stretch;
}
.home-housing-notices > .section {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
.home-housing-notices .panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.home-housing-notices .rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* 6칸 높이 유지 (아파트 실거래는 5개만 노출) */
  min-height: calc(6 * 76px);
}
.home-housing-notices .rows li {
  flex: 1 1 0;
  min-height: 76px;
  overflow: visible;
}
.home-housing-notices .rows a {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
  padding: 12px 14px;
}
.home-housing-notices .row-title,
.home-housing-notices .row-sub,
.home-housing-notices .row-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 뱃지([전체공개]·[매매]·[공지] 등)가 들어간 제목: 세로 잘림 방지 */
.home-news-board .board-home-title,
.home-housing-notices .row-title {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  line-height: 1.5;
  overflow: visible;
}
.home-news-board .board-home-title > span:last-child,
.home-housing-notices .row-title > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-news-board .board-home-title .badge,
.home-housing-notices .row-title .badge {
  flex: 0 0 auto;
  vertical-align: baseline;
  line-height: 1.4;
}

.favorite-banner {
  margin-top: 18px; padding: 12px 14px;
  background: var(--pine-soft); border: 1px solid rgba(12, 107, 85, 0.18);
  border-radius: var(--r-md);
}
.favorite-banner-inner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.favorite-banner span { font-size: 12px; font-weight: 700; color: var(--pine-dark); }
.favorite-banner a { font-size: 14px; font-weight: 700; color: var(--pine); }
.favorite-clear {
  margin-left: auto; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer;
}

.detail-image {
  margin-top: 16px; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--line-soft);
}
.detail-image img { width: 100%; max-height: 360px; object-fit: cover; }
.detail-lead { padding: 18px 20px; font-size: 15.5px; line-height: 1.75; color: var(--ink); }
.news-ai-summary-panel { padding: 18px 20px; }
.news-ai-summary-content p:first-child {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  white-space: pre-line;
}
.news-ai-summary-admin { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.news-ai-summary-draft { margin-top: 12px; }
.news-ai-summary-draft textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}
.news-ai-summary-btn { white-space: nowrap; }
.news-original-link { display: inline-flex; margin: 4px 0 18px; }
.notice-hint { margin-top: 12px; padding: 14px 18px; font-size: 14px; color: var(--sub); }

/* ── 사이트 팝업 ──────────────────────────────────────── */
body.popup-open { overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.site-popup-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px 16px;
  background: rgba(10, 20, 15, 0.62);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.site-popup-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.site-popup-stack-wrap {
  width: min(100%, 460px);
  display: grid;
  gap: 12px;
}
.site-popup-stack {
  position: relative;
  width: min(100%, 420px);
  height: min(68vh, 560px);
  margin: 0 auto;
}
.site-popup-card {
  --stack-index: 0;
  --stack-offset: calc(var(--stack-index) * 12px);
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  padding: 12px 12px 10px;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: 0 14px 36px rgba(10, 20, 15, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.65);
  transform: translate(calc(var(--stack-offset) * -1), calc(var(--stack-offset) * -1))
    scale(calc(1 - var(--stack-index) * 0.025));
  transform-origin: center bottom;
  z-index: calc(30 - var(--stack-index));
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-popup-card[hidden] { display: none !important; }
.site-popup-card-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sub);
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(10, 20, 15, 0.12);
}
.site-popup-card-close:hover { background: var(--pine-soft); color: var(--pine-dark); }
.site-popup-card-open {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--line-soft);
  cursor: zoom-in;
}
.site-popup-card-open img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: calc(68vh - 96px);
  object-fit: contain;
}
.site-popup-card-hint {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 20, 15, 0.62);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}
.site-popup-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-popup-stack-actions {
  display: flex;
  gap: 8px;
}
.site-popup-dismiss, .site-popup-close-btn {
  flex: 1; height: 42px; border-radius: var(--r-md); font-size: 14px; font-weight: 600; cursor: pointer;
}
.site-popup-dismiss {
  border: 1px solid var(--line); background: var(--paper); color: var(--sub);
}
.site-popup-close-btn {
  border: 1px solid var(--pine); background: var(--pine); color: #fff;
}
.site-popup-dismiss:hover { border-color: var(--pine); color: var(--pine); }

.site-popup-viewer {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(6, 14, 11, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.site-popup-viewer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.site-popup-viewer-inner {
  width: min(100%, 960px);
  max-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--card);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.35);
}
.site-popup-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.site-popup-viewer-heading {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-popup-close {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--line-soft); color: var(--sub); font-size: 18px; cursor: pointer;
  flex-shrink: 0;
}
.site-popup-close:hover { background: var(--pine-soft); color: var(--pine-dark); }
.site-popup-viewer-body {
  min-height: 0;
  padding: 12px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #101816;
}
.site-popup-viewer-body img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  cursor: zoom-out;
}
.site-popup-viewer-footer {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line-soft);
}
.site-popup-viewer-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--pine);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.site-popup-viewer-link:hover { border-color: var(--pine); background: var(--pine-soft); }
.site-popup-viewer-footer .site-popup-close-btn { flex: 1; }

@media (max-width: 768px) {
  .site-popup-stack-wrap { width: 100%; }
  .site-popup-stack {
    width: 60vw;
    height: 60vh;
    max-width: 60vw;
    max-height: 60vh;
  }
  .site-popup-card-open img {
    max-height: calc(60vh - 88px);
  }
  .site-popup-card {
    padding: 10px 10px 8px;
  }
  .site-popup-card-hint { font-size: 11px; }
  .site-popup-viewer { padding: 0; }
  .site-popup-viewer-inner {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  .site-popup-viewer-body img {
    max-height: calc(100vh - 120px);
  }
}

@media (min-width: 769px) {
  .site-popup-stack {
    width: min(100%, 380px);
    height: min(62vh, 520px);
  }
}

/* ── 관리자 폼 ─────────────────────────────────────────── */
.admin-form { display: grid; gap: 14px; padding: 18px 20px; }
.admin-field { display: grid; gap: 6px; font-size: 14px; }
.admin-field span { font-weight: 600; color: var(--sub); }
.admin-field input[type="text"],
.admin-field input[type="url"],
.admin-field input[type="date"],
.admin-field input[type="number"],
.admin-field input[type="file"] {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
}
.admin-field input[type="file"] { padding: 8px 12px; height: auto; }
.admin-row { display: grid; gap: 12px; }
.admin-check { display: flex; align-items: center; gap: 8px; padding-top: 24px; }
.admin-check input { width: 18px; height: 18px; }
.btn-primary {
  height: 44px; border: 0; border-radius: var(--r-md);
  background: var(--pine); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
}
.btn-primary:hover { background: var(--pine-dark); }
.btn-line.danger:hover { border-color: #c0392b; color: #c0392b; }
.admin-flash { margin-bottom: 14px; padding: 12px 16px; font-size: 14px; font-weight: 600; }
.admin-flash.success { background: var(--pine-soft); color: var(--pine-dark); border: 1px solid rgba(12,107,85,0.2); }
.admin-flash.error { background: #fdecea; color: #b42318; border: 1px solid #f5c2c0; }
.admin-flash.warn { background: #fff8e6; color: #8a5a00; border: 1px solid #f0d48a; }
.admin-ip-filter .admin-row { margin-bottom: 4px; }
.admin-ip-toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px;
  padding: 14px 16px; border-bottom: 1px solid var(--line-soft);
}
.admin-ip-toolbar .admin-check { padding-top: 0; }
.admin-ip-reason { flex: 1; min-width: 180px; margin: 0; }
.admin-ip-reason span { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.admin-ip-table { margin: 0; }
.admin-ip-table th.admin-ip-check,
.admin-ip-table td.admin-ip-check { width: 40px; text-align: center; }
.admin-ip-table tr.is-blocked { opacity: 0.55; }
.admin-ip-table code {
  font-size: 13px; background: #f4f4f1; padding: 2px 6px; border-radius: 4px;
}
.admin-ip-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: #eee; color: var(--muted);
}
.admin-ip-badge.on { background: #fdecea; color: #b42318; }
.popup-admin-list { display: grid; gap: 14px; }
.popup-admin-item { display: grid; gap: 14px; padding: 16px; }
.popup-admin-thumb img {
  width: 100%; max-height: 180px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line);
}
.popup-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.popup-admin-status { margin-top: 8px; }

/* ── 빈 상태 ──────────────────────────────────────────── */
.empty { padding: 56px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* ── 오류 페이지 ───────────────────────────────────────── */
.error-page {
  padding: 56px 16px 80px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.error-code {
  font-size: clamp(56px, 14vw, 88px);
  font-weight: 800;
  line-height: 1;
  color: var(--pine);
  letter-spacing: -0.04em;
}
.error-title {
  margin-top: 14px;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  color: var(--ink);
}
.error-message {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--sub);
}
.error-hint {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.error-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.error-path {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

/* ── 자유게시판 ─────────────────────────────────────────── */
.board-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.board-write-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.board-login-note { margin-top: 6px; font-size: 13px; color: var(--muted); }
.board-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.board-table th,
.board-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}
.board-table th { font-size: 12px; color: var(--muted); font-weight: 600; }
.board-col-title a { color: var(--ink); font-weight: 600; }
.board-col-title a:hover { color: var(--pine); }
.board-comment-badge { margin-left: 4px; font-size: 12px; color: var(--pine); font-weight: 700; }
.board-scope-badge {
  margin-right: 6px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}
.board-scope-badge.public { background: #e8f4fd; color: #1565a8; }
.board-scope-badge.members { background: var(--pine-soft); color: var(--pine-dark); }
.board-story-label {
  margin-right: 5px;
  color: var(--pine);
  font-weight: 800;
  white-space: nowrap;
}
.board-read-scope { display: grid; gap: 10px; }
.board-read-scope-option {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: #fbfbf8;
  cursor: pointer;
}
.board-read-scope-option input { margin-top: 3px; }
.board-read-scope-option span { font-weight: 700; color: var(--ink); }
.board-read-scope-option small {
  grid-column: 2;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.board-comment-login {
  padding: 16px;
  text-align: center;
  color: var(--sub);
  font-size: 14px;
}
.board-comment-login .btn-primary { margin-top: 12px; }
.board-detail-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.board-col-author,
.board-col-date,
.board-col-count { color: var(--sub); white-space: nowrap; }
.board-col-count { text-align: right; width: 56px; }
.board-author {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
}
.board-author-avatar,
.board-home-avatar { width: 24px; height: 24px; }
.board-home-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }

.home-column-rows > li > a.home-column-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.home-column-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: var(--r-sm, 8px);
  overflow: hidden;
  background: var(--pine-soft);
}
.home-column-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-column-body {
  min-width: 0;
  flex: 1;
}
@media (min-width: 720px) {
  .home-column-thumb {
    flex-basis: 88px;
    width: 88px;
    height: 88px;
  }
}

.board-detail-head { margin-bottom: 16px; }
.board-detail-head h1 { font-size: clamp(22px, 4vw, 30px); line-height: 1.35; }
.board-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.board-content-panel,
.board-locked-panel { padding: 20px; }
.board-content { line-height: 1.75; font-size: 15px; color: var(--ink); }
.board-content img { max-width: 100%; height: auto; border-radius: var(--r-md); margin: 10px 0; cursor: zoom-in; }
.board-content p { margin: 0.6em 0; }
.board-content blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--pine);
  background: var(--pine-soft);
  color: var(--sub);
}
.board-locked { text-align: center; padding: 28px 12px; }
.board-locked-title { font-size: 18px; font-weight: 700; }
.board-locked-desc { margin-top: 8px; color: var(--sub); font-size: 14px; }
.board-locked .btn-primary { margin-top: 18px; }
.social-login-buttons {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 18px;
}
.social-login-buttons .btn-kakao,
.social-login-buttons .btn-naver { margin-top: 0; }
.board-comment-login .social-login-buttons { margin-top: 14px; }

.board-detail-actions { margin: 16px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.board-inline-form { display: inline; margin: 0; }
.board-comment-delete { margin-top: 8px; margin-left: 42px; }
.board-home-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.board-post-like-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.board-like-hint { font-size: 12px; color: var(--muted); }
.board-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--sub);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.board-like-btn:hover { border-color: #e57373; color: #d84343; }
.board-like-btn.is-liked {
  border-color: #ef9a9a;
  background: #fff5f5;
  color: #d32f2f;
}
.board-like-btn:disabled { opacity: 0.7; cursor: wait; }
.board-like-icon { font-size: 15px; line-height: 1; }
.board-comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  margin-left: 42px;
}
.board-comment-actions .board-comment-delete { margin-top: 0; margin-left: 0; }
.board-reply-list {
  margin-left: 28px;
  padding-left: 12px;
  border-left: 2px solid var(--line-soft);
  display: grid;
  gap: 8px;
}
.board-comment.is-reply { padding-top: 4px; }
.board-comment.is-reply .board-comment-meta { margin-left: 0; }
.board-reply-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--pine);
  margin-right: 4px;
}
.board-reply-form {
  margin-top: 10px;
  margin-left: 42px;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}
.board-reply-form[hidden] { display: none !important; }
.board-reply-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.board-reply-form-actions .btn-line,
.board-reply-form-actions .btn-primary {
  width: auto;
  min-width: 96px;
  margin-top: 0;
  height: 40px;
  padding: 0 16px;
  box-sizing: border-box;
}
.board-reply-toggle { min-height: 32px; padding: 0 10px; font-size: 13px; width: auto; margin-top: 0; }

/* 관리자 메뉴 */
.btn-admin {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #c5dfd4;
  background: #f2faf6;
  color: var(--pine);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.btn-admin:hover { background: #e4f3ec; }
.gnb-admin {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.gnb-admin-label {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.gnb-admin a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: #fbfbf8;
  font-size: 13px;
  font-weight: 600;
}
.gnb-admin a:hover { background: #f2faf6; border-color: #c5dfd4; }
.admin-site-header .admin-gnb-toggle { display: inline-flex; margin-left: auto; }
.admin-site-header .header-inner { gap: 8px; }
.admin-site-header .admin-gnb {
  display: none;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
}
.admin-site-header.menu-open .admin-gnb { display: grid; }
.admin-site-header .admin-gnb a {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 600;
}
.admin-site-header .admin-gnb a.on { color: var(--pine); background: #f2faf6; }
.admin-site-header .admin-back-home { color: var(--muted); }
.admin-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.admin-collect-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 8px;
}
.admin-collect-nav {
  position: sticky;
  top: 72px;
  padding: 12px;
}
.admin-collect-nav-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 10px;
}
.admin-collect-nav-list {
  display: grid;
  gap: 4px;
}
.admin-collect-nav-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
}
.admin-collect-nav-list a:hover {
  background: var(--line-soft);
}
.admin-collect-nav-list a.on {
  background: var(--pine);
  color: #fff;
  font-weight: 700;
}
.admin-collect-detail {
  min-width: 0;
}
.medical-category-tabs {
  margin-top: 8px;
  margin-bottom: 4px;
}
@media (max-width: 860px) {
  .admin-collect-layout {
    grid-template-columns: 1fr;
  }
  .admin-collect-nav {
    position: static;
  }
  .admin-collect-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .admin-collect-nav-list a {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 99px;
    font-size: 13px;
  }
}
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  background: #fbfbf8;
  font-size: 12px;
  color: var(--sub);
  white-space: nowrap;
}
.admin-table-name {
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}
.admin-error-cell {
  max-width: 420px;
  word-break: break-all;
  white-space: pre-wrap;
  color: var(--sub);
  font-size: 12px;
}
.admin-collect-results { padding: 14px 16px; }
.admin-collect-results-title { font-size: 15px; margin-bottom: 10px; }
.admin-collect-result-list { list-style: none; display: grid; gap: 8px; }
.admin-collect-result-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-collect-error { font-size: 12px; color: #c62828; }
.admin-collect-progress { padding: 14px 16px; margin-bottom: 14px; }
.admin-collect-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.admin-collect-progress-list {
  list-style: none;
  display: grid;
  gap: 8px;
}
.admin-collect-progress-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-collect-progress-message {
  font-size: 12px;
  color: var(--sub);
}
.admin-section-head {
  align-items: center;
  gap: 12px;
}
.admin-section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.admin-section-head form { flex-shrink: 0; }
.admin-section-head .btn-line {
  width: auto;
  margin-top: 0;
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
.admin-schedule-form {
  padding: 14px 16px;
  margin-bottom: 10px;
}
.admin-schedule-grid {
  display: grid;
  gap: 10px;
  align-items: end;
}
.admin-schedule-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.admin-schedule-check input {
  width: 18px;
  height: 18px;
}
.admin-schedule-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.admin-schedule-field span {
  font-weight: 600;
  color: var(--sub);
}
.admin-schedule-field select,
.admin-schedule-field input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px;
}
.admin-schedule-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--sub);
}
.admin-exclude-form {
  padding: 14px 16px;
  margin-bottom: 10px;
}
.admin-exclude-title {
  margin: 0 0 6px;
  font-size: 15px;
}
.admin-manual-restaurant {
  padding: 14px 16px;
  margin-bottom: 10px;
}
.admin-manual-restaurant-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.admin-manual-restaurant-search input {
  flex: 1 1 220px;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px;
}
.admin-manual-restaurant-results {
  margin-top: 12px;
}
.admin-manual-restaurant-select-all {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--sub);
}
.admin-manual-restaurant-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.admin-manual-restaurant-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: #fff;
  cursor: pointer;
}
.admin-manual-restaurant-item.is-disabled {
  opacity: 0.72;
  cursor: default;
  background: #f7f8f7;
}
.admin-manual-restaurant-item input {
  margin-top: 3px;
}
.admin-manual-restaurant-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.admin-manual-restaurant-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.admin-manual-restaurant-title .badge {
  margin-left: 4px;
  vertical-align: middle;
}
.admin-manual-restaurant-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  word-break: break-word;
}
.admin-exclude-add {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.admin-exclude-add input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.admin-exclude-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-exclude-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 13px;
  background: var(--bg, #fff);
}
.admin-exclude-delete {
  display: inline;
  margin: 0;
}
.admin-exclude-delete .btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
.admin-exclude-empty {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--sub);
}
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.badge.danger { background: #ffebee; color: #c62828; border-color: #ffcdd2; }

@media (min-width: 720px) {
  .gnb-admin {
    grid-column: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .gnb-admin-label { display: none; }
  .gnb-admin a {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: #fff;
  }
  .admin-site-header .admin-gnb-toggle { display: none; }
  .admin-site-header .admin-gnb {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px;
    width: auto;
    margin-left: auto;
  }
  .admin-site-header .admin-gnb a {
    border: 0;
    border-radius: 6px;
    padding: 8px 10px;
  }
  .admin-site-header .admin-gnb a.on { background: #f2faf6; }
  .admin-schedule-grid {
    grid-template-columns: auto 150px minmax(180px, 1fr) auto;
  }
}
.board-comment-body.is-deleted { color: var(--muted); font-style: italic; }
.board-comments .section-head { margin-bottom: 10px; }
.board-comment-list { display: grid; gap: 10px; margin-bottom: 14px; }
.board-comment {
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: #fbfbf8;
}
.board-comment-meta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.board-comment-avatar { width: 32px; height: 32px; }
.board-comment-author { display: grid; gap: 2px; }
.board-comment-author strong { color: var(--ink); font-size: 13px; }
.board-comment-body { line-height: 1.6; font-size: 14px; margin-left: 42px; }
.board-comment-form { display: grid; gap: 12px; padding: 16px; }
.board-comment-form textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  resize: vertical;
  font: inherit;
}
.content-comment-body img,
.board-comment-body img {
  display: block;
  max-width: min(100%, 420px);
  height: auto;
  margin-top: 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
  cursor: zoom-in;
}
.content-comment-body.is-deleted { color: var(--muted); font-style: italic; }
.content-comment-attach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.content-comment-attach .btn-line {
  width: auto;
  margin-top: 0;
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
.content-comment-attach-hint { font-size: 12px; color: var(--muted); }
.content-comment-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.content-comment-preview {
  position: relative;
  margin: 0;
  width: 96px;
  height: 96px;
}
.content-comment-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
}
.content-comment-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 20, 15, 0.72);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.board-write-form {
  display: grid;
  gap: 16px;
  padding: 18px 20px;
  overflow: visible;
}
.board-story-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--pine-soft);
  cursor: pointer;
}
.board-story-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--pine);
}
.board-story-check > span {
  display: grid;
  gap: 3px;
}
.board-story-check strong { color: var(--pine-dark); }
.board-story-check small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.neighborhood-story-card .body { min-width: 0; }
.neighborhood-story-card .row-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.neighborhood-story-card .row-meta {
  margin-top: 8px;
  font-size: 12px;
}
.board-write-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: stretch;
  position: relative;
  z-index: 2;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  background: var(--card);
}
.board-write-actions .btn-line,
.board-write-actions .btn-primary {
  flex: 1 1 0;
  width: auto;
  max-width: 160px;
  min-width: 0;
  margin-top: 0;
  height: 44px;
  padding: 0 16px;
  box-sizing: border-box;
}
.board-image-upload-progress {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(10, 20, 15, 0.45);
}
.board-image-upload-progress[hidden] {
  display: none !important;
}
.board-image-upload-progress-card {
  width: min(360px, 100%);
  padding: 18px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(10, 20, 15, 0.22);
}
.board-image-upload-progress-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.board-image-upload-progress-track {
  height: 10px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.board-image-upload-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pine), #3e9d75);
  transition: width 0.15s ease;
}
.board-image-upload-progress-status {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}
body.board-image-uploading {
  overflow: hidden;
}
@media (max-width: 768px) {
  .board-write-form {
    padding: 14px 12px 20px;
    gap: 14px;
  }
  .board-write-actions {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 4px;
    padding: 14px 0 0;
    border-top: 1px solid var(--line-soft);
    box-shadow: none;
    backdrop-filter: none;
    background: transparent;
  }
  .board-write-actions .btn-line,
  .board-write-actions .btn-primary {
    flex: 1 1 0;
    max-width: none;
    height: 48px;
    font-size: 16px;
    font-weight: 700;
  }
  .board-editor {
    min-height: 240px;
  }
  .board-editor .ql-toolbar {
    position: static;
    z-index: auto;
    background: #fff;
  }
  .board-editor .ql-container {
    min-height: 200px;
  }
  .board-markdown-input,
  .board-markdown-preview-wrap {
    min-height: 240px;
  }
  .board-md-hint {
    display: none;
  }
}

/* ── 청약캘린더 ─────────────────────────────────────────── */
.subscription-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px;
}
.subscription-calendar-nav h2 {
  margin: 0;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 800;
}
.subscription-calendar-nav .btn-line {
  width: auto;
  margin-top: 0;
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
}
.subscription-calendar-nav button.btn-line[data-subscription-nav-blocked] {
  opacity: 0.55;
  cursor: not-allowed;
}
.subscription-calendar-layout {
  display: grid;
  gap: 16px;
}
.subscription-calendar-panel { padding: 14px; }
.subscription-calendar-weekdays,
.subscription-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.subscription-calendar-weekdays {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}
.subscription-day {
  min-height: 78px;
  padding: 6px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: #fff;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.subscription-day:hover { border-color: var(--pine); }
.subscription-day.is-outside { opacity: 0.4; }
.subscription-day.is-today { box-shadow: inset 0 0 0 1px var(--pine); }
.subscription-day.is-selected {
  background: var(--pine-soft);
  border-color: var(--pine);
}
.subscription-day-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--sub);
}
.subscription-day-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  min-width: 0;
}
.subscription-day-events li {
  font-size: 10px;
  line-height: 1.25;
  border-radius: 4px;
  padding: 2px 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #eef6f2;
  color: var(--pine-dark);
  min-width: 0;
}
.subscription-day-events li span:first-child { font-weight: 700; margin-right: 3px; }
.subscription-day-events .more { background: transparent; color: var(--muted); padding: 0; }

@media (max-width: 719px) {
  .subscription-calendar-panel { padding: 10px; }
  .subscription-calendar-weekdays,
  .subscription-calendar-grid { gap: 3px; }
  .subscription-calendar-weekdays { font-size: 11px; }
  .subscription-day {
    min-height: 54px;
    padding: 4px 3px;
    gap: 2px;
  }
  .subscription-day-num {
    font-size: 11px;
    color: var(--ink);
  }
  .subscription-day-events {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
  }
  .subscription-day-events li {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    font-size: 0;
    line-height: 0;
    color: transparent;
    opacity: 1;
  }
  .subscription-day-events li.event-type-receipt,
  .subscription-day-events li.event-type-rank1 {
    background: #0a5c48 !important;
  }
  .subscription-day-events li.event-type-special {
    background: #2a3f9e !important;
  }
  .subscription-day-events li.event-type-winner {
    background: #c2410c !important;
  }
  .subscription-day-events li.event-type-notice {
    background: #334155 !important;
  }
  .subscription-day-events li.event-type-contract {
    background: #6b21a8 !important;
  }
  .subscription-day-events li.more {
    width: auto;
    height: auto;
    font-size: 9px;
    line-height: 1.2;
    color: var(--muted);
    background: transparent !important;
  }
  .subscription-day.has-events .subscription-day-num {
    color: var(--pine-dark);
    font-weight: 800;
  }
  .subscription-side { margin-top: 4px; }
}
.subscription-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
}
.subscription-legend span {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef6f2;
  color: var(--pine-dark);
}
.event-type-receipt,
.event-type-rank1 { background: #e7f5ee !important; color: #0c6b55 !important; }
.event-type-special { background: #eaf0ff !important; color: #3451b2 !important; }
.event-type-winner { background: #fff1e6 !important; color: #b54708 !important; }
.event-type-notice { background: #f3f4f6 !important; color: #445065 !important; }
.event-type-contract { background: #f3e8ff !important; color: #6b21a8 !important; }
.subscription-side { padding: 16px; }
.subscription-side h3 { margin: 0 0 12px; font-size: 16px; }
.subscription-event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.subscription-event-list > li {
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: #fff;
}
.subscription-event-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.subscription-event-head .badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--pine-soft);
  color: var(--pine-dark);
}
.subscription-event-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.subscription-event-list .btn-line {
  width: auto;
  margin-top: 10px;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
}
.subscription-month-list .row-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ── 홈 청약 D-Day ─────────────────────────────────────── */
.home-subscription-dday { margin-bottom: 8px; }
.subscription-dday-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.subscription-dday-list li { border-bottom: 1px solid var(--line-soft); }
.subscription-dday-list li:last-child { border-bottom: 0; }
.subscription-dday-list a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
}
.subscription-dday-list a:hover { background: #f3f6f4; }
.subscription-dday-badge {
  flex: 0 0 auto;
  min-width: 58px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: #eef6f2;
  color: var(--pine-dark);
}
.subscription-dday-badge.is-soon {
  background: #fff1e6;
  color: #b54708;
}
.subscription-dday-badge.is-today {
  background: var(--pine);
  color: #fff;
}
.subscription-dday-body { min-width: 0; flex: 1; }
.subscription-dday-body .row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.subscription-dday-body .row-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-subscription-dday .empty a { color: var(--pine); font-weight: 600; }

.board-editor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.board-editor-head > span { font-weight: 600; color: var(--sub); font-size: 14px; }
.board-editor-mode {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: var(--line-soft);
}
.board-editor-mode-btn {
  border: 0;
  background: transparent;
  color: var(--sub);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.board-editor-mode-btn.on {
  background: #fff;
  color: var(--pine-dark);
  box-shadow: 0 1px 4px rgba(10, 20, 15, 0.08);
}
.board-editor-mode-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.board-editor-mode-hint[hidden] {
  display: none !important;
}
.board-rich-panel { display: block; }
.board-rich-panel[hidden],
.board-markdown-editor[hidden] {
  display: none !important;
}
.board-editor {
  min-height: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.board-editor .ql-toolbar {
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.board-editor .ql-container {
  border: 0;
  font-size: 15px;
  min-height: 260px;
}
.board-markdown-editor { display: grid; gap: 10px; }
.board-markdown-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.board-md-hint { font-size: 12px; color: var(--muted); }
.board-markdown-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 360px;
}
@media (max-width: 768px) {
  .board-markdown-split { grid-template-columns: 1fr; }
}
.board-markdown-input {
  width: 100%;
  min-height: 360px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  resize: vertical;
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  tab-size: 2;
}
.board-markdown-input.board-md-dragover {
  border-color: var(--accent, #2f6fed);
  background: #f3f7ff;
  box-shadow: inset 0 0 0 1px var(--accent, #2f6fed);
}
.board-markdown-preview-wrap {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: #fbfbf8;
  overflow: hidden;
}
.board-markdown-preview-label {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}
.board-markdown-preview {
  flex: 1;
  padding: 14px;
  overflow: auto;
}
.board-md-empty { color: var(--muted); font-size: 14px; }
.board-markdown-body h1,
.board-markdown-body h2,
.board-markdown-body h3,
.board-markdown-body h4 { margin: 1em 0 0.5em; line-height: 1.35; }
.board-markdown-body h1 { font-size: 1.6em; }
.board-markdown-body h2 { font-size: 1.35em; }
.board-markdown-body h3 { font-size: 1.15em; }
.board-markdown-body ul,
.board-markdown-body ol { margin: 0.6em 0; padding-left: 1.4em; }
.board-markdown-body li { margin: 0.25em 0; }
.board-markdown-body pre {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: #1e1e1e;
  color: #e8e8e8;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
}
.board-markdown-body code {
  padding: 0.15em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.92em;
}
.board-markdown-body pre code { padding: 0; background: none; color: inherit; }
.board-markdown-body table {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
  font-size: 14px;
}
.board-markdown-body th,
.board-markdown-body td {
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  text-align: left;
}
.board-markdown-body th { background: var(--pine-soft); font-weight: 600; }
.board-markdown-body hr { margin: 20px 0; border: 0; border-top: 1px solid var(--line-soft); }
.board-markdown-body a { color: var(--pine); word-break: break-all; }
.board-markdown-preview h1,
.board-markdown-preview h2,
.board-markdown-preview h3,
.board-markdown-preview pre,
.board-markdown-preview table,
.board-markdown-preview ul,
.board-markdown-preview ol { margin: 0.6em 0; }
.board-markdown-preview pre {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: #1e1e1e;
  color: #e8e8e8;
  overflow-x: auto;
  font-size: 13px;
}

/* ── 회원정보 수정 ───────────────────────────────────────── */
.member-profile-form { display: grid; gap: 16px; padding: 18px 20px; max-width: 560px; }
.member-profile-preview {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: #fbfbf8;
}
.member-profile-avatar { width: 72px; height: 72px; }
.member-profile-name { font-size: 18px; font-weight: 700; }
.member-profile-email { margin-top: 4px; font-size: 13px; color: var(--muted); word-break: break-all; }
.member-profile-actions { display: flex; gap: 10px; justify-content: flex-end; }

.message-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.message-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.message-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--sub);
  font-size: 13px;
  font-weight: 700;
}
.message-tabs a.on {
  border-color: var(--pine);
  background: var(--pine-soft);
  color: var(--pine-dark);
}
.message-unread-count { color: var(--pine); font-weight: 700; }
.message-table tr.is-unread { background: #f7fcfa; }
.message-col-status { width: 88px; }
.message-col-title { min-width: 0; }
.message-col-title a { font-weight: 700; }
.message-col-author { width: 150px; }
.message-col-date { width: 130px; white-space: nowrap; color: var(--muted); font-size: 13px; }
.message-compose-form {
  display: grid;
  gap: 16px;
  padding: 18px 20px;
  max-width: 720px;
}
.message-compose-form textarea {
  width: 100%;
  min-height: 180px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  resize: vertical;
}
.message-compose-actions,
.message-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.message-detail-head { margin-bottom: 14px; }
.message-detail-head h1 { font-size: 24px; line-height: 1.35; }
.message-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  align-items: center;
}
.message-detail-body {
  padding: 18px 20px;
  line-height: 1.75;
  white-space: pre-wrap;
}
.message-author-btn {
  padding: 4px 10px;
  font-size: 12px;
  min-height: 0;
}

.member-action-menu {
  position: relative;
  display: inline-block;
}
.member-action-menu summary {
  list-style: none;
  cursor: pointer;
}
.member-action-menu summary::-webkit-details-marker { display: none; }
.member-action-trigger::after {
  content: "▾";
  margin-left: 4px;
  font-size: 10px;
  color: var(--muted);
}
.member-action-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 132px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  box-shadow: var(--shadow);
}
.member-action-popover a,
.member-action-popover .member-action-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--pine-dark);
  cursor: pointer;
}
.member-action-popover a:hover,
.member-action-popover .member-action-item:hover { background: var(--pine-soft); }

body.profile-photo-open { overflow: hidden; }
.member-profile-photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(10, 20, 15, 0.72);
}
.member-profile-photo-viewer[hidden] { display: none; }
.member-profile-photo-dialog {
  position: relative;
  width: min(100%, 420px);
  padding: 22px 18px 18px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}
.member-profile-photo-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
}
.member-profile-photo-image {
  width: min(72vw, 320px);
  height: min(72vw, 320px);
  max-width: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--pine-soft);
}
.member-profile-photo-name {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.message-inbox-reply {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pine);
}
.message-inbox-reply:hover { text-decoration: underline; }
.message-col-title .message-inbox-reply { vertical-align: middle; }
.admin-test-user-table .board-inline-form .error-btn { min-width: 120px; height: 36px; font-size: 13px; }

/* ── 우리지금 만나 ─────────────────────────────────────── */
.meet-now-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.meet-now-create-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  text-decoration: none;
  white-space: nowrap;
}
.meet-now-room-list { list-style: none; display: grid; gap: 12px; }
.meet-now-room-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: #fbfbf8;
  transition: border-color 0.15s, background 0.15s;
}
.meet-now-room-card:hover {
  border-color: rgba(12, 107, 85, 0.35);
  background: var(--pine-soft);
}
.meet-now-room-card.ended { opacity: 0.72; background: #f5f5f2; }
.meet-now-room-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.meet-now-room-top strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.meet-now-room-preview {
  margin-top: 8px;
  color: var(--sub);
  font-size: 14px;
  line-height: 1.55;
}
.meet-now-room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
.meet-now-form { display: grid; gap: 16px; padding: 20px; }
.meet-now-field { display: grid; gap: 8px; }
.meet-now-field span { font-size: 13px; font-weight: 700; color: var(--sub); }
.meet-now-field input,
.meet-now-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  background: #fff;
  font: inherit;
}
.meet-now-field textarea { resize: vertical; min-height: 140px; }
.meet-now-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.meet-now-form-actions,
.meet-now-actions,
.meet-now-share-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.meet-now-detail-panel { padding: 20px; display: grid; gap: 16px; }
.meet-now-content {
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 15px;
  color: var(--ink);
}
.meet-now-share-status {
  flex: 1 1 100%;
  margin: 0;
  font-size: 13px;
  color: var(--sub);
}
.meet-now-share-status.is-error { color: #b42318; font-weight: 600; }
.meet-now-map { min-height: 280px; border-radius: var(--r-md); overflow: hidden; }
.meet-now-subtitle {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
}
.meet-now-participants {
  list-style: none;
  display: grid;
  gap: 10px;
}
.meet-now-participants li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: #fff;
}
.meet-now-participants strong { margin-right: 6px; }
.meet-now-loc-hint {
  margin-left: 6px;
  font-size: 12px;
  color: var(--pine);
  font-weight: 600;
}
.meet-now-loc-hint.stale { color: #8a5a00; }
.meet-now-chat-panel { padding: 20px; }
.meet-now-chat-list {
  list-style: none;
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}
.meet-now-chat-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.meet-now-chat-list li.mine { flex-direction: row-reverse; }
.meet-now-chat-body {
  max-width: min(76%, 560px);
  padding: 9px 12px;
  border-radius: var(--r-md);
  background: #f4f6f4;
}
.meet-now-chat-list li.mine .meet-now-chat-body { background: var(--pine-soft); }
.meet-now-chat-meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 4px;
  font-size: 12px;
}
.meet-now-chat-meta time { color: var(--muted); font-size: 11px; }
.meet-now-chat-body p { white-space: pre-wrap; line-height: 1.45; font-size: 14px; }
.meet-now-chat-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.meet-now-chat-form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.meet-now-chat-form .btn-primary { min-width: 72px; padding: 0 14px; }
.home-meet-now-rows li > a { display: block; width: 100%; }
.meet-now-actions .btn-primary,
.meet-now-actions .btn-line,
.meet-now-share-controls .btn-primary,
.meet-now-share-controls .btn-line,
.meet-now-form-actions .btn-primary,
.meet-now-form-actions .btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  min-width: 110px;
  text-decoration: none;
}
.meet-now-share-controls .btn-line:disabled,
.meet-now-share-controls .btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 719px) {
  .board-col-author,
  .board-col-count { display: none; }
  .board-col-date { width: 72px; font-size: 12px; }
  .meet-now-create-btn { width: 100%; height: 44px; }
  .meet-now-map { height: 280px !important; }
}

/* ── 푸터 ─────────────────────────────────────────────── */
.site-footer { margin-top: 44px; background: var(--pine-deep); color: rgba(255, 255, 255, 0.75); }
.footer-inner { padding: 36px 16px 40px; display: grid; gap: 26px; }
.footer-brand .brand-name { color: #fff; font-size: 18px; }
.footer-brand p { margin-top: 10px; font-size: 13px; line-height: 1.7; max-width: 480px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.footer-nav h3 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.45); margin-bottom: 10px; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 7px; }
.footer-nav a { font-size: 13.5px; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-copy { font-size: 12px; color: rgba(255, 255, 255, 0.4); border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 18px; }

/* ── 메인 홈 (모바일) ─────────────────────────────────── */
@media (max-width: 719px) {
  .home-news-board .rows { min-height: calc(6 * 72px); }
  .home-news-board .rows li { min-height: 72px; }
  .home-housing-notices .rows { min-height: calc(6 * 80px); }
  .home-housing-notices .rows li { min-height: 80px; }
  /* 맛집: 가로 2 × 세로 4 = 8개만 */
  .home-restaurant-grid > .card:nth-child(n+9) { display: none; }
}

/* ── 데스크톱 ─────────────────────────────────────────── */
@media (min-width: 720px) {
  body { font-size: 15.5px; }
  .header-inner { height: auto; min-height: 62px; }
  .toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .search { max-width: 420px; flex: 1; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3, .grid.video-grid { grid-template-columns: repeat(3, 1fr); }
  .home-popup-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
  .home-news-board { gap: 16px; }
  .two-col-weekly { grid-template-columns: 1fr 1fr; }
  .weekly-stats { grid-template-columns: repeat(4, 1fr); }
  .admin-row { grid-template-columns: 1fr 1fr; }
  .popup-admin-item { grid-template-columns: 200px 1fr; align-items: start; }
  .subscription-calendar-layout { grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr); align-items: start; }
  .subscription-day { min-height: 96px; }
  .footer-inner { grid-template-columns: 1.2fr 1.6fr; padding: 44px 16px 48px; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
  .footer-copy { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 56px 0 60px; }
}
