/* Hallmark · checked: 2026-10-30 · genre: editorial (inferred) · shape: app screen
   built: the project · redesign: full · scope: app · theme: brand (gold, green, navy)
   signature: the check-in card · v2.0.0
   waive: 30a tab marks stay, the desk already knows them
   waive: 44d the phone column stays at 480px */
/* ================================================================
   📌 CSS 구조 안내
   ① 색상 변수 ② 기본 레이아웃 ③ 상단 카테고리 탭
   ④ 섹션 블록 ⑤ 컴포넌트    ⑥ 하단 네비게이션
   ⑦ 관리자 스타일 ⑧ 모달
================================================================ */

  /* ① 색상 변수 ──────────────────────────────────────────── */
  :root {
    --gold: #c9a84c;
    --gold-light: #e8c96a;
    --gold-dark: #8a6a1e;
    --deep: #1a1206;
    --warm: #2e2010;
    --cream: #fdf8ef;
    --cream2: #f5ead4;
    --text: #2a1a08;
    --text-light: #6b4f2a;
    --green: #2d6a4f;
    --green-light: #e8f5ee;
    --blue: #1a4a7a;
    --blue-light: #e8f0fa;
    --yellow-light: #fffbe6;
    --paper: #fffcf7;
    --bg: #f4f0e8;
    --line: rgba(42, 26, 8, 0.1);
    --warn: #9b2c2c;
    --cream-dim: rgba(253, 248, 239, 0.45);
    --cream-faint: rgba(253, 248, 239, 0.35);
    --font-sans: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
    --font-display: SUIT, Pretendard, -apple-system, sans-serif;
  }


  /* ② 기본 레이아웃 (body, header, content) ─────────────── */
  * { margin: 0; padding: 0; box-sizing: border-box; }

  html, body { overflow-x: clip; }

  :focus-visible {
    outline: 2px solid var(--gold-dark);
    outline-offset: 2px;
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  /* 배경 사진 레이어 (콘텐츠·탭 뒤) */
  #site-bg-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    min-height: 100vh;
    min-height: 100dvh;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  #site-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: none;
  }
  #site-bg-layer.has-image #site-bg-image { display: block; }
  #site-bg-overlay {
    position: absolute;
    inset: 0;
    background: var(--cream);
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  #site-bg-layer.has-image #site-bg-overlay { opacity: var(--bg-overlay, 0.65); }

  header {
    position: relative;
    overflow: hidden;
    background: var(--deep);
    padding: 16px 20px 14px;
    text-align: center;
  }
  .header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    display: none;
  }
  header.has-header-image .header-bg { display: block; }
  .header-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--deep);
    pointer-events: none;
    display: none;
    transition: opacity 0.2s ease;
  }
  header.has-header-image .header-bg-overlay {
    display: block;
    opacity: var(--header-overlay, 0.55);
  }
  .header-inner {
    position: relative;
    z-index: 2;
  }
  .header-font-ctrl {
    position: absolute;
    top: calc(10px - 2pt);
    right: calc(10px - 2pt);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 2;
  }
  .header-font-btns {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .header-font-btn {
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.45);
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 700;
    padding: 4px 10px;
    min-width: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .header-font-btn:disabled,
  .header-font-btn.at-limit {
    opacity: 0.35;
    cursor: default;
  }
  .header-font-label {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--gold-light);
    text-align: center;
    user-select: none;
  }
  .header-title {
    font-family: var(--font-display);
    font-size: 17px; font-weight: 700;
    color: var(--cream);
    overflow-wrap: break-word;
    min-width: 0;
  }
  .header-sub { font-size: 13px; color: var(--gold-light); margin-top: 3px; }


  /* ③ 상단 카테고리 탭 ───────────────────────────────────── */
  .cat-nav {
    background: var(--deep);
    display: flex; overflow-x: auto; scrollbar-width: none;
    border-bottom: 2px solid rgba(201,168,76,0.3);
    position: sticky; top: 0; z-index: 100;
  }
  .cat-nav::-webkit-scrollbar { display: none; }
  .cat-btn {
    flex: none; padding: 13px 16px 12px;
    font-size: 15px; font-weight: 600;
    color: var(--cream-dim); cursor: pointer;
    white-space: nowrap;
    border-bottom: 2.5px solid transparent; margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .cat-btn.active { color: var(--cream); border-bottom-color: var(--gold); }
  .cat-btn.drag-over { background: rgba(201,168,76,0.2); border-radius: 8px; }
  .cat-btn.dragging { opacity: 0.4; }
  .cat-order-hint {
    display: none;
    text-align: center;
    font-size: 11px;
    color: var(--gold);
    padding: 4px 0 2px;
    background: #1a1206;
    max-width: 480px; margin: 0 auto;
  }
  body.admin-mode .cat-order-hint { display: block; }

  .content { max-width: 480px; margin: 0 auto; padding: 16px 14px 20px; }

  .page { display: none; }
  .page.active { display: block; animation: fadein 0.25s ease; }
  @keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }

  .page-title {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 700;
    color: var(--text); margin-bottom: 14px; margin-top: 4px;
    overflow-wrap: break-word;
    min-width: 0;
  }


  /* ④ 섹션 블록 ──────────────────────────────────────────── */
  /* SECTION BLOCKS */
  .section-block {
    background: var(--paper);
    border: 1px solid var(--gold-dark);
    border-radius: 12px;
    margin-bottom: 12px; overflow: hidden;
  }
  .section-header {
    padding: 13px 16px 11px;
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; user-select: none;
  }
  .section-header.orange { background: var(--warm); }
  .section-header.green  { background: var(--green); }
  .section-header.blue   { background: var(--blue); }
  .section-header.yellow { background: var(--gold-dark); }

  .section-num {
    font-size: 13px; font-weight: 700;
    padding: 2px 8px; border-radius: 10px; flex-shrink: 0;
  }
  .orange .section-num { background: rgba(224,123,42,0.3); color: #ffb570; }
  .green  .section-num { background: rgba(45,106,79,0.4);  color: #7fddaa; }
  .blue   .section-num { background: rgba(26,74,122,0.5);  color: #88bbff; }
  .yellow .section-num { background: rgba(201,168,76,0.3); color: var(--gold-light); }

  .section-title-text {
    font-family: var(--font-display);
    font-size: 14px; font-weight: 700;
    color: var(--cream); flex: 1; line-height: 1.3;
    overflow-wrap: break-word; min-width: 0;
  }
  .section-arrow { font-size: 12px; color: rgba(253,248,239,0.4); transition: transform 0.25s; }
  .section-arrow.open { transform: rotate(180deg); }

  .section-body { padding: 16px 18px; display: none; border-top: 1px solid rgba(0,0,0,0.05); }
  .section-body.open { display: block; animation: fadein 0.2s ease; }

  /* INFO ROW */
  .info-row { display: flex; gap: 8px; margin-bottom: 10px; font-size: 16px; align-items: flex-start; line-height: 1.7; }
  .info-row:last-child { margin-bottom: 0; }
  .lbl {
    background: var(--cream2); color: var(--gold-dark);
    font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 10px;
    white-space: nowrap; margin-top: 2px; flex-shrink: 0;
  }
  .lbl.green { background: var(--green-light); color: var(--green); }
  .lbl.blue  { background: var(--blue-light);  color: var(--blue); }

  /* NOTICE */
  .notice-item {
    background: var(--cream);
    border: 1px solid var(--gold-dark);
    border-radius: 12px; padding: 10px 14px; margin-bottom: 8px;
    font-size: 16px; line-height: 1.85; color: var(--text);
  }
  .notice-item:last-child { margin-bottom: 0; }
  .notice-item b { color: var(--gold-dark); }
  /* 전역 margin/padding 0 때문에 ol 번호가 카드 밖으로 나가지 않게 */
  .notice-item ol,
  .notice-item ul,
  .section-body ol,
  .section-body ul:not(.bullet-list) {
    margin: 4px 0 0;
    padding-left: 0;
    list-style-position: inside;
  }
  .notice-item li,
  .section-body li { margin: 0; }

  /* BULLET */
  .bullet-list { list-style: none; padding: 0; }
  .bullet-list li {
    font-size: 16px; line-height: 1.9; color: var(--text);
    padding: 6px 0 6px 20px; position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }
  .bullet-list li:last-child { border-bottom: none; }
  .bullet-list li::before { content: '•'; position: absolute; left: 4px; color: var(--gold); }
  .bullet-list li b { font-weight: 600; }
  .bullet-list li small { color: var(--text-light); font-size: 15px; }

  /* NUM SECTION */
  .num-section { margin-bottom: 12px; }
  .num-section:last-child { margin-bottom: 0; }
  .num-title {
    font-size: 16px; font-weight: 700; color: var(--text);
    margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
  }
  .num-badge {
    background: var(--cream2); color: var(--gold-dark);
    font-size: 14px; font-weight: 700;
    padding: 3px 10px; border-radius: 8px;
  }

  /* PRAYER */
  .prayer-group-title {
    font-family: var(--font-display);
    font-size: 17px; font-weight: 700; color: var(--text);
    margin: 16px 0 10px; padding-left: 8px;
    border-left: 3px solid var(--gold);
  }
  .prayer-item {
    background: var(--yellow-light); border-radius: 10px;
    padding: 10px 14px; margin-bottom: 6px;
    font-size: 16px; line-height: 1.9; color: var(--text);
    border-left: 3px solid var(--gold);
  }

  /* MINISTRY APPLY */
  .ministry-apply-block {
    background: #fafafa; border-radius: 12px;
    margin-bottom: 12px; overflow: hidden;
    border: 1px solid rgba(201,168,76,0.2);
  }
  .ministry-apply-header {
    background: var(--gold-dark);
    padding: 12px 14px; display: flex; align-items: center; gap: 10px;
  }
  .ministry-icon {
    width: 38px; height: 38px;
    background: rgba(201,168,76,0.2); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; flex-shrink: 0;
  }
  .ministry-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--cream); }
  .ministry-target { font-size: 14px; color: var(--gold-light); margin-top: 2px; }
  .ministry-apply-body { padding: 12px 14px; }
  .ministry-date { font-size: 16px; color: var(--text-light); margin-bottom: 10px; }
  .ministry-date b { color: var(--text); }

  /* BUTTONS */
  .apply-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%;
    background: var(--gold-dark);
    color: var(--cream); border: none; padding: 12px; border-radius: 12px;
    font-size: 17px; font-weight: 700; font-family: var(--font-sans);
    cursor: pointer; text-decoration: none; transition: filter 0.2s;
  }
  .link-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; background: var(--paper); color: var(--blue);
    border: 1px solid var(--blue); padding: 11px; border-radius: 12px;
    font-size: 16px; font-weight: 600; font-family: var(--font-sans);
    cursor: pointer; text-decoration: none; margin-top: 8px;
  }

  .reg-notice {
    background: var(--cream);
    border: 1px solid var(--gold-dark);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
  }
  .reg-notice b { font-size: 17px; }
  .reg-modes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
  }
  .reg-mode {
    width: 100%;
    padding: 16px 14px;
    border-radius: 12px;
    border: 1px solid var(--gold-dark);
    background: var(--paper);
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
  }
  .reg-panel {
    background: var(--paper);
    border: 1px solid var(--gold-dark);
    border-radius: 12px;
    padding: 18px 16px;
  }
  .reg-field { margin-bottom: 14px; }
  .reg-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    display: block;
    margin-bottom: 6px;
  }
  .reg-field input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 17px;
    font-family: inherit;
    color: var(--text);
    background: var(--paper);
    box-sizing: border-box;
  }
  .reg-field input:focus-visible {
    outline: 2px solid var(--gold-dark);
    outline-offset: 2px;
    border-color: var(--gold-dark);
  }
  .reg-submit {
    width: 100%;
    margin-top: 6px;
    padding: 16px;
    background: var(--gold-dark);
    color: var(--cream);
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
  }


  /* ⑤ 컴포넌트 (notice, prayer, ministry, goods, note 등) ── */
  /* GOODS */
  .goods-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 17px;
  }
  .goods-item:last-child { border-bottom: none; }
  .goods-price {
    font-weight: 700; color: var(--gold-dark);
    background: var(--cream2); padding: 2px 10px; border-radius: 10px;
  }

  .note {
    background: #fffbf0; border: 1px dashed rgba(201,168,76,0.4);
    border-radius: 10px; padding: 10px 14px;
    font-size: 15px; color: var(--text-light); line-height: 1.8; margin-top: 10px;
  }


  /* ⑥ 하단 네비게이션 ────────────────────────────────────── */
  /* BOTTOM NAV */
  .bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--deep); border-top: 1.5px solid rgba(201,168,76,0.25);
    display: flex; z-index: 200;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  @media (min-width: 480px) {
    .bottom-nav { left: 50%; transform: translateX(-50%); width: 480px; }
  }
  #reg-submit-btn.is-above-keyboard {
    position: fixed;
    z-index: 13000;
    margin: 0;
    box-sizing: border-box;
  }
  .nav-item {
    flex: 1; padding: 9px 4px 7px;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    cursor: pointer;
  }
  .nav-icon { font-size: 18px; }
  .nav-label {
    font-size: 12px;
    color: var(--cream-faint);
    font-weight: 500;
    text-align: center;
    line-height: 1.25;
    word-break: keep-all;
    max-width: 100%;
  }
  .nav-item.active .nav-label { color: var(--gold); }

  a { color: inherit; text-decoration: none; }

  /* ⑦ 관리자 모드 스타일 ─────────────────────────────────── */
  /* ===== 관리자 모드 ===== */
  .admin-bar {
    background: #1a1206;
    border-bottom: 1px solid rgba(201,168,76,0.2);
    padding: 7px 16px;
    display: flex; align-items: center; justify-content: space-between;
    max-width: 480px; margin: 0 auto;
  }
  .admin-bar-label { font-size: 11px; color: rgba(253,248,239,0.4); }
  .admin-login-btn {
    background: rgba(201,168,76,0.2); border: 1px solid var(--gold);
    color: var(--gold); font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 8px; cursor: pointer;
    font-family: var(--font-sans);
  }
  .admin-logout-btn {
    background: rgba(255,80,80,0.15); border: 1px solid #ff6060;
    color: #ff8080; font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 8px; cursor: pointer;
    font-family: var(--font-sans);
  }
  .edit-btn {
    display: none;
    background: rgba(201,168,76,0.15); border: 1px solid var(--gold);
    color: var(--gold-dark); font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 8px; cursor: pointer;
    font-family: var(--font-sans); flex-shrink: 0;
  }
  body.admin-mode .edit-btn { display: inline-flex; align-items: center; gap: 3px; }
  body.admin-mode .section-block { border: 1.5px dashed rgba(201,168,76,0.3); }
  body.admin-mode .notice-item  { border: 1.5px dashed rgba(201,168,76,0.3); }


  /* ⑧ 모달 (로그인 / 편집창 등) ─────────────────────────── */
  /* 편집 모달 */
  .modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.65); z-index: 2000;
    align-items: center; justify-content: center; padding: 16px;
  }
  .modal-overlay.open { display: flex; }
  .modal-box {
    background: var(--paper);
    border: 1px solid var(--gold-dark);
    border-radius: 12px;
    width: 100%; max-width: 460px;
    max-height: 88vh;
    display: flex; flex-direction: column;
    padding: 0;
    overflow: hidden;
  }
  .modal-box h3 {
    font-family: var(--font-sans);
    font-size: 15px; font-weight: 700; color: var(--text);
    margin-bottom: 0; padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(201,168,76,0.25);
    flex-shrink: 0;
  }
  .modal-box-body {
    flex: 1; overflow-y: auto; padding: 16px 20px 8px;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
  }
  .modal-box-footer {
    flex-shrink: 0; padding: 12px 20px 16px;
    border-top: 1px solid rgba(201,168,76,0.15);
    background: var(--cream);
    border-radius: 0 0 12px 12px;
  }
  .edit-field { margin-bottom: 11px; }
  .edit-field label {
    display: block; font-size: 11px; font-weight: 700;
    color: var(--text-light); margin-bottom: 4px;
  }
  .edit-field input, .edit-field textarea {
    width: 100%; border: 1.5px solid rgba(201,168,76,0.3);
    border-radius: 8px; padding: 8px 10px;
    font-size: 13px; font-family: var(--font-sans);
    color: var(--text); background: #fdfaf5; resize: vertical;
  }
  .edit-field input:focus-visible, .edit-field textarea:focus-visible {
    outline: 2px solid var(--gold-dark);
    outline-offset: 2px;
    border-color: var(--gold-dark);
  }
  .modal-btns { display: flex; gap: 8px; margin-top: 0; }
  .btn-save {
    flex: 1; background: var(--gold-dark);
    color: var(--cream); border: none; padding: 12px; border-radius: 12px;
    font-size: 16px; font-weight: 700; cursor: pointer;
    font-family: var(--font-sans);
  }
  .btn-cancel {
    flex: 1; background: var(--paper); color: var(--text-light);
    border: 1px solid var(--line); padding: 12px; border-radius: 12px;
    font-size: 14px; cursor: pointer; font-family: var(--font-sans);
  }
  .toast {
    position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
    background: #2d6a4f; color: white; padding: 10px 22px;
    border-radius: 20px; font-size: 13px; font-weight: 700;
    z-index: 9999; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    opacity: 0; transition: opacity 0.3s;
  }
  .toast.show { opacity: 1; }

  /* ⑨ 첫방문 글자크기 모달 버튼 hover */
  #fontsize-modal .modal-box button:hover {
    opacity: 0.92;
  }

  /* ⑨ 관리자 모드 - edit-btn-area 표시 */
  body.admin-mode .edit-btn-area { display: block !important; }
  /* 관리자 모드에서 헤더 편집 버튼 표시 */
  body.admin-mode #header-edit-btn,
  body.admin-mode #header-sub-edit-btn { display: inline-block !important; }

  /* ⑩ 사진 갤러리 */
  .photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; margin-top: 8px;
    justify-content: center;
  }
  .photo-thumb {
    position: relative; border-radius: 10px; overflow: hidden;
    aspect-ratio: 4/3; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    width: calc(50% - 4px);
    max-width: 220px;
    flex-shrink: 0;
  }
  /* 사진 1장이면 가운데 크게 */
  .photo-thumb:only-child {
    width: 80%;
    max-width: 340px;
  }
  [id^="schedule-photos"], [id^="facility-photos"], [id^="goods-photos-"] {
    text-align: center;
  }
  .photo-thumb img { width:100%; height:100%; object-fit:cover; }
  /* 일정표·시설: 가로 긴 문서형 — 잘리지 않고 전체 너비 표시 */
  .photo-gallery--document {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .photo-gallery--document .photo-thumb {
    width: 100%;
    max-width: 100%;
    aspect-ratio: unset;
    height: auto;
  }
  .photo-gallery--document .photo-thumb:only-child {
    width: 100%;
    max-width: 100%;
  }
  .photo-gallery--document .photo-thumb img {
    width: 100%;
    height: auto;
    object-fit: unset;
    display: block;
  }
  .photo-del-btn {
    display: none; position: absolute; top:4px; right:4px;
    background: rgba(192,57,43,0.85); color: white;
    border: none; border-radius: 50%; width:24px; height:24px;
    font-size:13px; cursor:pointer; line-height:24px; text-align:center;
  }
  body.admin-mode .photo-del-btn { display: block; }

  /* 1-2 오시는 길: 길찾기 카드 통일 */
  .s12-map-card {
    margin-top: 12px;
    background: #e8f5ee;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(45, 106, 79, 0.2);
  }
  .s12-map-card__title {
    font-size: 13px;
    color: #2d6a4f;
    font-weight: 700;
    margin-bottom: 8px;
  }
  .s12-map-card__hint {
    font-size: 12px;
    color: var(--text-light, #7a7268);
    margin-bottom: 10px;
    line-height: 1.45;
  }
  .s12-map-card__btn {
    background: linear-gradient(135deg, #03c75a, #02a34a) !important;
    color: white !important;
    margin-bottom: 0 !important;
  }

  /* 1-1 개요: 글·사진 혼합 블록 */
  #overview-blocks {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .overview-block--text .overview-text {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text, #2a1a08);
  }
  .overview-caption {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-light, #7a7268);
    text-align: center;
  }
  .overview-empty {
    font-size: 13px;
    color: var(--text-light, #7a7268);
    padding: 8px 2px;
    line-height: 1.5;
  }
  .overview-admin-hint {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-light, #7a7268);
  }
  .overview-add-photo-label {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1.5px dashed var(--gold);
    background: rgba(201,168,76,0.08);
    color: var(--gold-dark);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
  }
  .ov-move-btns {
    display: flex;
    gap: 4px;
  }
  .ov-icon-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(42,26,8,0.15);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
  }
  .ov-icon-btn--danger {
    color: #c0392b;
    border-color: rgba(192,57,43,0.35);
  }

  /* ⑨-2 관리자에게만 보이는 숨김 메뉴 표시 */
  .cat-btn.menu-hidden-admin,
  .nav-item.menu-hidden-admin { opacity: 0.45; }
  .cat-btn.menu-hidden-admin { border: 1px dashed rgba(201,168,76,0.45); }
  .section-block--hidden .section-header { opacity: 0.5; }
  .section-block--hidden { border: 1px dashed rgba(201,168,76,0.4); border-radius: 12px; }
  .section-hidden-badge { display: none; margin-left: 6px; color: #999; font-size: 12px; font-weight: 600; }
  .section-block--hidden .section-hidden-badge { display: inline; }

  /* ⑪ 사진 전체화면 뷰어 */
  #photo-viewer {
    display: none;
    position: fixed; inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: env(safe-area-inset-top) env(safe-area-inset-right)
             env(safe-area-inset-bottom) env(safe-area-inset-left);
    box-sizing: border-box;
    background: rgba(0,0,0,0.95); z-index: 99999;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  #photo-viewer.open { display: block; }
  #photo-viewer-inner {
    min-height: 100%;
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 8px 0;
  }
  #photo-viewer-img {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    min-width: 0;
    touch-action: pan-x pan-y pinch-zoom;
    user-select: none; -webkit-user-select: none;
  }
  #photo-viewer-close {
    position: fixed; top:16px; right:16px;
    background: rgba(255,255,255,0.15); color: white;
    border: none; border-radius: 50%; width:40px; height:40px;
    font-size:20px; cursor:pointer; z-index:100000;
  }
  /* ── 초기 로딩 오버레이 애니메이션 ── */
  @keyframes pmOverlayPulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.12);opacity:0.75} }
  @keyframes pmLoadBar { from{width:8%} to{width:92%} }
  /* ⑩ 셔틀 시간표 테이블 */
  .shuttle-table { width:100%; border-collapse:collapse; font-size:15px; margin-top:8px; margin-bottom:4px; }
  .shuttle-table th { background: var(--blue); color: var(--cream); padding: 8px 10px; text-align: center; font-size: 13px; font-weight: 700; }
  .shuttle-table td { padding:8px 10px; border-bottom:1px solid rgba(0,0,0,0.06); text-align:center; color:var(--text); vertical-align:middle; }
  .shuttle-table tr:last-child td { border-bottom:none; }
  .shuttle-table tr:nth-child(even) td { background:#f8f5ee; }
  .shuttle-table .warn-row td { background:#fff3cd; color:#856404; font-weight:700; }
  .shuttle-badge { display:inline-block; background:var(--blue-light); color:var(--blue); font-size:11px; font-weight:700; padding:1px 7px; border-radius:8px; margin-bottom:3px; }

  /* ⑪ 리치텍스트 에디터 (글 수정 툴바) ─────────────────── */
  .rte-wrap {
    position: relative;
    border: 1.5px solid rgba(201,168,76,0.3);
    border-radius: 8px;
    background: #fff;
    overflow: visible;
  }
  .rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    background: #f3f3f3;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 7px 7px 0 0;
  }
  .rte-sep {
    width: 1px;
    height: 20px;
    background: #ddd;
    margin: 0 2px;
    flex-shrink: 0;
  }
  .rte-btn, .rte-size {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    height: 30px;
    min-width: 30px;
    padding: 0 7px;
    font-size: 13px;
    font-family: var(--font-sans);
    color: #333;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
    touch-action: manipulation;
  }
  .rte-size {
    font-weight: 700;
    padding: 0 4px 0 8px;
    min-width: 44px;
  }
  .rte-btn:hover, .rte-size:hover { border-color: #bbb; background: #fafafa; }
  .rte-btn:active, .rte-btn.active { background: #eee; border-color: #aaa; }
  .rte-btn b { font-weight: 800; }
  .rte-btn i { font-style: italic; }
  .rte-btn .rte-u { text-decoration: underline; }
  .rte-btn .rte-s { text-decoration: line-through; }
  .rte-color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: #000;
    border: 1px solid rgba(0,0,0,0.15);
    display: block;
  }
  .rte-editor {
    min-height: 66px;
    max-height: 280px;
    overflow-y: auto;
    padding: 10px 12px;
    font-size: 14px;
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--text);
    outline: none;
    -webkit-user-select: text;
    user-select: text;
    word-break: break-word;
  }
  .rte-editor:focus { background: #fffcf7; }
  .rte-editor:empty:before {
    content: attr(data-placeholder);
    color: #bbb;
    pointer-events: none;
  }
  .rte-panel {
    display: none;
    position: absolute;
    z-index: 40;
    top: 42px;
    left: 8px;
    right: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    padding: 10px 12px;
    max-height: 260px;
    overflow-y: auto;
  }
  .rte-panel.open { display: block; }
  .rte-panel-title {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    margin: 8px 0 6px;
  }
  .rte-panel-title:first-child { margin-top: 0; }
  .rte-swatch-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    margin-bottom: 2px;
  }
  .rte-swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.12);
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
  }
  .rte-swatch:hover { transform: scale(1.08); box-shadow: 0 0 0 2px rgba(201,168,76,0.45); }
  .rte-align-row { display: flex; gap: 6px; }
  .rte-align-row .rte-btn { flex: 1; height: 34px; font-size: 12px; }

  /* ⑨ UI 모드 선택 UI */
  .uimode-modal-box {
    max-width: 360px;
    padding: 22px 20px 20px;
    text-align: left;
  }
  .uimode-modal-title {
    border: none !important;
    padding: 0 0 6px !important;
    font-family: var(--font-display) !important;
    font-size: 20px !important;
    letter-spacing: -0.03em;
  }
  .uimode-modal-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .uimode-pick-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .uimode-pick-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    padding: 16px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--line-strong);
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    touch-action: manipulation;
    transition: border-color 0.15s ease, background 0.15s ease;
  }
  .uimode-pick-btn:active { background: var(--accent-soft); }
  .uimode-pick-btn--senior {
    border-color: var(--accent);
    background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 140%);
  }
  .uimode-pick-kicker {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.04em;
  }
  .uimode-pick-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
  }
  .uimode-pick-hint {
    font-size: 12px;
    color: var(--text-light);
  }

  .uimode-settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .uimode-settings-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px 12px;
    border-radius: 10px;
    border: 2px solid rgba(201, 168, 76, 0.45);
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    touch-action: manipulation;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  }
  .uimode-settings-btn.is-active {
    border-color: var(--gold-dark, #b8922a);
    background: #f9f6ee;
    box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.35);
  }
  .uimode-settings-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
  }
  .uimode-settings-hint {
    font-size: 11px;
    color: var(--text-light);
  }


  /* ⑨-b compact (30–40) — 기본 세련 톤 유지, 약간 타이트 */
  html.ui-compact .section-title-text { font-size: 14px; }
  html.ui-compact .nav-label { font-size: 11px; }
  html.ui-compact .apply-btn,
  html.ui-compact .link-btn { font-size: 15px; }


  /* ⑨-c senior (50–60) — 2번 풀와이드 리스트 */
  html.ui-senior body {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
  html.ui-senior .content {
    padding: 14px 12px 24px;
  }
  html.ui-senior .page-title {
    font-size: 24px;
    margin-bottom: 16px;
  }
  html.ui-senior .section-block {
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: none;
    border: 1px solid var(--line-strong);
  }
  html.ui-senior .section-header {
    padding: 18px 16px;
    min-height: 64px;
    gap: 12px;
  }
  html.ui-senior .section-title-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
  }
  html.ui-senior .section-num {
    font-size: 13px;
    padding: 4px 10px;
  }
  html.ui-senior .section-arrow {
    font-size: 16px;
    color: rgba(253,248,239,0.55);
  }
  html.ui-senior .section-body {
    padding: 18px 16px 20px;
  }
  html.ui-senior .info-row,
  html.ui-senior .bullet-list li,
  html.ui-senior .notice-item,
  html.ui-senior .prayer-item,
  html.ui-senior .ministry-date,
  html.ui-senior .goods-item {
    font-size: 18px;
    line-height: 1.85;
  }
  html.ui-senior .lbl {
    font-size: 13px;
    padding: 4px 10px;
  }
  html.ui-senior .apply-btn,
  html.ui-senior .link-btn {
    justify-content: space-between;
    padding: 18px 18px;
    min-height: 60px;
    font-size: 18px;
    border-radius: 12px;
    margin-top: 10px;
  }
  html.ui-senior .apply-btn::after,
  html.ui-senior .link-btn::after {
    content: '›';
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    opacity: 0.85;
  }
  html.ui-senior .link-btn {
    margin-top: 10px;
  }
  html.ui-senior .ministry-name {
    font-size: 19px;
  }
  html.ui-senior .ministry-target {
    font-size: 15px;
  }
  html.ui-senior .nav-item {
    padding: 11px 4px 10px;
    gap: 3px;
  }
  html.ui-senior .nav-icon {
    font-size: 20px;
  }
  html.ui-senior .nav-label {
    font-size: 13px;
    font-weight: 600;
  }
  html.ui-senior .header-font-btn,
  html.ui-senior .header-font-label {
    font-size: 13px;
  }
  html.ui-senior .header-font-btn {
    padding: 8px 11px;
  }
  html.ui-senior .header-title {
    font-size: 18px;
  }
  html.ui-senior .header-sub {
    font-size: 14px;
  }
  html.ui-senior .cat-btn {
    padding: 15px 18px 14px;
    font-size: 16px;
  }
  html.ui-senior .btn-save,
  html.ui-senior .btn-cancel {
    padding: 16px;
    font-size: 17px;
    min-height: 54px;
  }
  html.ui-senior .uimode-settings-btn {
    min-height: 64px;
    padding: 16px 14px;
  }
  html.ui-senior .uimode-settings-name {
    font-size: 15px;
  }

  /* Hallmark · checked: 2026-10-30 · genre: editorial (inferred) · shape: app screen
     built: the project · redesign: restyle · scope: check-in result · v2.0.0
     keeps the gold, green and navy already on the page */
  .checkin-result {
    background: var(--paper);
    border: 1px solid var(--gold-dark);
    border-radius: 12px;
    overflow: hidden;
  }
  .checkin-result__head {
    background: var(--deep);
    color: var(--cream);
    padding: 16px 18px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .checkin-result__title { min-width: 0; overflow-wrap: break-word; }
  .checkin-result__badge {
    margin-left: auto;
    flex-shrink: 0;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    border: 1px solid rgba(253, 248, 239, 0.55);
    border-radius: 4px;
    padding: 3px 8px;
  }
  .checkin-result__head--ok { background: var(--green); }
  .checkin-result__head--done { background: var(--blue); }
  .checkin-result__msg {
    padding: 14px 18px 6px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
  }
  .checkin-result__list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--paper);
  }
  .checkin-result__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 13px 18px;
    border-top: 1px solid var(--line);
    font-size: 17px;
    line-height: 1.45;
    background: var(--paper);
  }
  .checkin-result__label {
    flex-shrink: 0;
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    min-width: 7.5em;
  }
  .checkin-result__value {
    flex: 1;
    min-width: 0;
    text-align: right;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    overflow-wrap: break-word;
    word-break: keep-all;
  }
  .checkin-result__value.is-empty {
    color: var(--text-light);
    font-weight: 500;
  }
  .checkin-result__value a.checkin-tel {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
    touch-action: manipulation;
  }
  .checkin-result__value a.checkin-tel:focus-visible,
  .checkin-result__foot a.checkin-tel:focus-visible,
  .checkin-key input:focus-visible,
  .checkin-key__edit:focus-visible {
    outline: 2px solid var(--gold-dark);
    outline-offset: 3px;
  }
  .checkin-result__foot {
    padding: 14px 18px 16px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.55;
    background: var(--cream2);
    border-top: 1px solid var(--line);
  }
  .checkin-result__foot a.checkin-tel {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
    touch-action: manipulation;
  }
  html.ui-senior .checkin-result__row {
    padding: 16px 18px;
    font-size: 18px;
  }
  html.ui-senior .checkin-result__label {
    font-size: 15px;
  }
  .checkin-confirm {
    background: var(--cream);
    border-top: 1px solid var(--line);
  }
  .checkin-key-note {
    background: var(--cream);
    padding: 14px 18px 4px;
  }
  .checkin-key-wrap {
    background: var(--cream);
  }
  .checkin-coupon-wrap {
    border-bottom: 1px solid var(--line);
  }
  .checkin-coupon-wrap.is-locked:not(.is-on) {
    background: var(--cream2);
  }
  .checkin-coupon-wrap.is-locked:not(.is-on) .checkin-key__text,
  .checkin-coupon-wrap.is-locked:not(.is-on) .checkin-key__state {
    color: var(--text-light);
  }
  .checkin-key-wrap.is-on {
    background: var(--green-light);
  }
  .checkin-deposit-wrap {
    border-top: 1px solid var(--line);
    background: var(--paper);
  }
  .checkin-deposit-wrap.is-on {
    background: var(--green-light);
  }
  .checkin-deposit-wrap.is-locked:not(.is-on) {
    background: var(--cream2);
  }
  .checkin-key {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 18px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
  .checkin-key.is-locked {
    cursor: default;
  }
  .checkin-key input {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    accent-color: var(--green);
  }
  .checkin-key__text {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
  }
  .checkin-key__state {
    margin-left: auto;
    max-width: 54%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
    color: var(--text-light);
  }
  .checkin-key-wrap.is-on .checkin-key__state,
  .checkin-deposit-wrap.is-on .checkin-key__state {
    color: var(--green);
  }
  .checkin-key__warn {
    margin: 0;
    padding: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--warn);
  }
  .checkin-key__hint {
    margin: 0;
    padding: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--warn);
  }
  html.ui-senior .checkin-key {
    padding: 18px 16px 8px;
  }
  html.ui-senior .checkin-key input {
    width: 26px;
    height: 26px;
  }
  html.ui-senior .checkin-key__text {
    font-size: 19px;
  }
  html.ui-senior .checkin-key__warn {
    font-size: 16px;
  }
  html.ui-senior .checkin-key__hint {
    font-size: 15px;
    padding: 0 0 8px;
  }
  .checkin-key__edit {
    margin: 2px 0 8px;
  }

  /* ── 지역 기도 모임 (rpm) ─────────────────────────────── */
  #page-goods #rpm-root {
    margin: 0;
    padding: 0;
  }
  /* 배경 사진과 분리: 정보 영역은 거의 불투명 */
  .rpm-list,
  .rpm-detail {
    padding: 10px 10px 12px;
    background: rgba(253, 248, 239, 0.97);
    border-radius: 14px;
    border: 1px solid rgba(42, 26, 8, 0.06);
  }
  #page-goods .page-title {
    color: var(--text, #2a1a08);
    text-shadow: none;
  }
  .rpm-search {
    margin: 0 0 12px;
  }
  .rpm-search__label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 800;
    color: rgba(44, 40, 36, 0.65);
  }
  .rpm-search__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: #fff;
  }
  .rpm-search__icon {
    flex-shrink: 0;
    font-size: 15px;
    line-height: 1;
  }
  .rpm-search__input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--text, #2c2824);
  }
  .rpm-search__input::placeholder {
    color: rgba(44, 40, 36, 0.35);
    font-weight: 500;
  }
  .rpm-search-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
  }
  .rpm-search-hit {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 2px;
    width: 100%;
    padding: 11px 12px;
    border: 1.5px solid rgba(42, 26, 8, 0.08);
    border-radius: 10px;
    background: #ffffff;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    touch-action: manipulation;
  }
  .rpm-search-hit__name {
    grid-column: 1;
    grid-row: 1;
    font-size: 15px;
    font-weight: 800;
    color: var(--text, #2c2824);
  }
  .rpm-search-hit__sub {
    grid-column: 1;
    grid-row: 2;
    font-size: 12px;
    font-weight: 600;
    color: rgba(44, 40, 36, 0.5);
  }
  .rpm-search-hit--place {
    grid-template-columns: 1fr auto auto;
  }
  .rpm-search-hit__place {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    max-width: 34vw;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-align: right;
    color: rgba(42, 26, 8, 0.62);
  }
  .rpm-search-hit--place .rpm-search-hit__region {
    grid-column: 3;
  }
  .rpm-search-hit__region {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    max-width: 42vw;
    padding: 5px 9px;
    border-radius: 999px;
    background: #D4EDC9;
    color: #2c4a22;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rpm-search-empty {
    margin-top: 8px;
    padding: 12px 10px;
    border-radius: 10px;
    background: #f5f1e8;
    font-size: 13px;
    font-weight: 600;
    color: rgba(44, 40, 36, 0.55);
    line-height: 1.45;
  }
  .rpm-admin-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
  }
  .rpm-admin-bar--tight {
    margin: 8px 0;
  }
  /* 시트 연동 버튼: 목록 스크롤 중에도 상단 고정 */
  .rpm-sticky-tools {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
    padding: 8px 8px;
    background: rgba(253, 248, 239, 0.97);
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(42, 26, 8, 0.06);
  }
  .rpm-btn-soft--accent {
    background: linear-gradient(135deg, rgba(201,168,76,0.25), rgba(201,168,76,0.12));
    border-color: rgba(201,168,76,0.55);
    font-weight: 700;
  }
  .rpm-hint {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-light, #7a7268);
  }
  .rpm-empty {
    padding: 20px 8px;
    text-align: center;
    font-size: 14px;
    color: var(--text-light, #7a7268);
    line-height: 1.6;
  }
  .rpm-empty--sm {
    padding: 12px 4px;
  }
  .rpm-btn-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .rpm-region-row {
    display: flex;
    align-items: stretch;
    gap: 6px;
  }
  .rpm-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    color: #9a9084;
    cursor: grab;
    user-select: none;
    font-size: 14px;
    touch-action: none;
  }
  /* 텍스트 선택·하단 구글 검색 방지 */
  .rpm-list,
  .rpm-detail,
  .rpm-region-btn,
  .rpm-card,
  .rpm-member-row,
  .rpm-badge,
  .rpm-detail-title,
  .rpm-section-label {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }

  /* 기도사역/생활안내 section-header 와 비슷한 한 줄 높이 */
  .rpm-region-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 16px 11px;
    border: 1.5px solid transparent;
    border-radius: 14px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    touch-action: manipulation;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }
  .rpm-region-btn__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text, #2a1a08);
    letter-spacing: -0.01em;
    line-height: 1.3;
    min-width: 0;
  }
  .rpm-region-btn__who {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .rpm-region-btn__place {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    color: rgba(42, 26, 8, 0.62);
  }
  .rpm-region-btn__meta {
    flex-shrink: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    max-width: 58%;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-align: right;
    color: rgba(42, 26, 8, 0.55);
    white-space: normal;
  }
  .rpm-meta-phone { display: none; }
  .rpm-icon-btn {
    min-width: 40px;
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    touch-action: manipulation;
    border-radius: 8px;
  }
  .rpm-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 8px;
    padding: 6px 2px;
    border: none;
    background: none;
    color: var(--blue, #2a6f97);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    touch-action: manipulation;
  }
  .rpm-detail-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text, #2c2824);
  }
  .rpm-section-label {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    color: rgba(44, 40, 36, 0.65);
  }
  .rpm-card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .rpm-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 12px;
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(42, 26, 8, 0.08);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(26, 18, 6, 0.04);
  }
  .rpm-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #efe6d6;
  }
  .rpm-avatar--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 1.5px solid rgba(42, 26, 8, 0.08);
  }
  .rpm-card__body {
    flex: 1;
    min-width: 0;
    padding-right: 64px;
  }
  .rpm-card__name {
    font-size: 16px;
    font-weight: 800;
    color: #1a1206;
    line-height: 1.35;
  }
  .rpm-card__church {
    font-weight: 700;
    font-size: 13px;
    color: #4a3420;
  }
  .rpm-hide-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #8a6a1e;
    cursor: pointer;
  }
  .rpm-hide-contact input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #8a6a1e;
    cursor: pointer;
  }
  .rpm-card__phone,
  .rpm-card__addr {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.35;
    color: #2a1a08;
  }
  .rpm-link-phone,
  .rpm-link-addr {
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    word-break: break-all;
  }
  .rpm-link-phone {
    color: var(--blue, #1a4a7a);
    text-decoration: underline;
  }
  .rpm-link-addr {
    color: #2a1a08;
    text-decoration: none;
    font-weight: 600;
  }
  .rpm-muted {
    color: rgba(44, 40, 36, 0.4);
    font-size: 13px;
  }
  .rpm-badge {
    position: absolute;
    top: 12px;
    right: 10px;
    max-width: 58px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #dceaf8;
    color: #143a62;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rpm-members-toggle {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid rgba(42, 26, 8, 0.1);
    border-radius: 10px;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--text, #2c2824);
    cursor: pointer;
    touch-action: manipulation;
    text-align: left;
  }
  .rpm-count {
    color: rgba(44, 40, 36, 0.5);
    font-weight: 600;
  }
  .rpm-members {
    margin-top: 8px;
  }
  .rpm-members-list {
    display: flex;
    flex-direction: column;
  }
  .rpm-member-wrap {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(42, 26, 8, 0.1);
  }
  .rpm-member-wrap:last-child {
    border-bottom: none;
  }
  .rpm-member-row {
    padding: 10px 2px 8px;
  }
  .rpm-member-row__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
  .rpm-member-row__who {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }
  .rpm-member-row__role {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    color: #1a4a7a;
  }
  .rpm-member-row__year {
    flex-shrink: 0;
    margin-left: 0;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.18);
    color: #8a6a1e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
  }
  .rpm-member-row__name {
    font-size: 15px;
    font-weight: 800;
    color: #1a1206;
    line-height: 1.3;
    min-width: 0;
  }
  .rpm-member-row__phone {
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: none;
    color: var(--blue, #1a4a7a);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    touch-action: manipulation;
    white-space: nowrap;
  }
  .rpm-member-row__sub {
    margin-top: 3px;
    font-size: 13px;
    font-weight: 600;
    color: #4a3420;
    line-height: 1.4;
    word-break: break-word;
  }
  .rpm-member-row__sep {
    color: rgba(42, 26, 8, 0.35);
  }
  .rpm-member-row__sub .rpm-link-addr {
    font-size: 13px;
    font-weight: 600;
    color: #4a3420;
  }
  .rpm-member-actions {
    display: flex;
    gap: 8px;
    padding: 0 2px 8px;
  }
  .rpm-kakao {
    margin: 12px 0;
  }
  .rpm-kakao-btn {
    width: 100%;
    padding: 13px 14px;
    border: none;
    border-radius: 10px;
    background: #FEE500;
    color: #191600;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
  }
  .rpm-kakao-admin {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    align-items: center;
  }
  .rpm-kakao-admin .rpm-input {
    flex: 1 1 160px;
  }
  .rpm-btn-soft,
  .rpm-btn-primary,
  .rpm-btn-danger,
  .rpm-btn-tiny {
    font-family: inherit;
    cursor: pointer;
    touch-action: manipulation;
    border-radius: 8px;
  }
  .rpm-btn-soft {
    padding: 8px 12px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: var(--text, #2c2824);
  }
  .rpm-btn-primary {
    padding: 10px 16px;
    border: none;
    background: var(--blue, #2a6f97);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
  }
  .rpm-btn-danger {
    padding: 8px 12px;
    border: 1.5px solid rgba(192, 57, 43, 0.35);
    background: #fff5f4;
    color: #c0392b;
    font-size: 13px;
    font-weight: 700;
  }
  .rpm-btn-tiny {
    padding: 4px 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    color: var(--text, #2c2824);
  }
  .rpm-btn-tiny--danger {
    color: #c0392b;
    border-color: rgba(192, 57, 43, 0.3);
  }
  .rpm-input {
    width: 100%;
    padding: 9px 10px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
  }
  .rpm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(20, 16, 12, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }
  .rpm-modal {
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    overflow: auto;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 16px 14px 20px;
    box-sizing: border-box;
  }
  .rpm-modal__title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 12px;
  }
  .rpm-modal__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .rpm-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 8px;
    flex-shrink: 0;
  }
  .rpm-modal__title + .rpm-modal__actions {
    position: sticky;
    top: 0;
    z-index: 3;
    margin-top: 0;
    padding: 8px 0;
    background: #fff;
    border-bottom: 1px solid rgba(42, 26, 8, 0.06);
  }
  .rpm-edit-block {
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: #faf7f0;
  }
  .rpm-edit-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
  }
  .rpm-edit-row label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(44, 40, 36, 0.6);
  }
  .rpm-edit-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 6px;
  }

  /* 모바일: 여백·공백 최소화 */
  @media (max-width: 767px) {
    #page-goods .page-title {
      font-size: 18px;
    }
    #page-goods [data-role="page-title-bar"] {
      margin-bottom: 6px !important;
      margin-top: 0 !important;
    }
    .rpm-search {
      margin-bottom: 10px;
    }
    .rpm-search__row {
      padding: 9px 10px;
    }
    .rpm-search-hit__region {
      max-width: 38vw;
    }
    .rpm-region-btn {
      padding: 12px 14px 10px;
    }
    .rpm-region-btn__name {
      font-size: 14px;
    }
    .rpm-region-btn__meta {
      font-size: 11px;
      max-width: 62%;
    }
    .rpm-region-btn__meta .rpm-meta-wide { display: none; }
    .rpm-region-btn__meta .rpm-meta-phone { display: block; }
    .rpm-list,
    .rpm-detail {
      padding: 8px 8px 10px;
    }
    .rpm-card {
      padding: 10px 10px;
      gap: 10px;
    }
    .rpm-avatar {
      width: 52px;
      height: 52px;
    }
    .rpm-card__body {
      padding-right: 56px;
    }
    .rpm-badge {
      right: 8px;
      max-width: 52px;
      padding: 4px 7px;
      font-size: 11px;
    }
    .rpm-empty {
      padding: 16px 4px;
    }
    .rpm-detail-title {
      margin-bottom: 8px;
      font-size: 18px;
    }
  }

  /* 데스크톱: 숨 쉴 여유 */
  @media (min-width: 768px) {
    .rpm-list,
    .rpm-detail {
      max-width: 640px;
      padding-bottom: 24px;
    }
    .rpm-btn-stack {
      gap: 10px;
    }
    .rpm-region-btn {
      padding: 13px 16px 11px;
    }
    .rpm-card {
      padding: 14px 14px;
      gap: 16px;
    }
    .rpm-avatar {
      width: 64px;
      height: 64px;
    }
    .rpm-modal-overlay {
      align-items: center;
      padding: 24px;
    }
    .rpm-modal {
      border-radius: 14px;
      max-height: 80vh;
      padding: 20px 18px;
    }
  }

  html.ui-senior .rpm-region-btn__name {
    font-size: 18px;
  }
  html.ui-senior .rpm-card__name {
    font-size: 18px;
  }
  html.ui-senior .rpm-card__phone,
  html.ui-senior .rpm-card__addr,
  html.ui-senior .rpm-link-phone,
  html.ui-senior .rpm-link-addr {
    font-size: 16px;
  }

  @media (prefers-reduced-motion: reduce) {
    .page.active,
    .section-body.open {
      animation: none;
    }
  }
