@font-face {
  font-family: 'Isamanru';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-10@1.0/GongGothicLight.woff') format('woff');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Isamanru';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-10@1.0/GongGothicMedium.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Isamanru';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-10@1.0/GongGothicBold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}
:root {
  /* Brand / Main (Green) */
  --green-main: #3a6b52; /* primary */
  --green-dark: #244232; /* header, border, text */
  --green-aux-1: #2d5442;
  --green-aux-2: #466a52;
  --green-aux-3: #4c7a60;
  --green-aux-4: #1f3529;

  /* Danger / Warning */
  --danger: #FF4E4E;
  --danger-strong: #d83c3c;
  --danger-alt: #ff3b30;
  --warn-mid: #ffa500;
  --sos-1: #FF4500;
  --sos-2: #FF8C00;
  --sos-3: #FFD700;

  /* Link / Info */
  --link: #136AE3;
  --info: #578bd4;

  /* Background / Gray */
  --bg-1: #f5f5f5;
  --bg-2: #fafafa;
  --bg-3: #ffffff;
  --border-1: #e0e0e0;
  --border-2: #ccc;
  --border-3: #d0d0d0;
  --text-1: #333;
  --text-2: #666;
  --text-3: #888;
  --disabled-1: #C9C9C9;
  --disabled-2: #949494;

  /* Cards */
  --card-bg: #fafafa;

  /* Layout */
  --radius: 14px;
  --container: 960px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;

  /* Shadows (refined) */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
}
* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  display: none;
}
html {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
}
body {
  min-height: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body::-webkit-scrollbar {
  display: none;
}
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.page-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}
.page-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
html, body {
  margin: 0;
  padding: 0 5%;
  background: transparent;
  color: var(--text-1);
}
body {
  overflow-y: auto;
  overflow-x: hidden;
  font-family: 'Isamanru', "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}
@media (max-width: 480px) {
  html, body { padding-left: 16px; padding-right: 16px; }
}
.container {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}
main {
  padding-left: var(--space-6) !important;
  padding-right: var(--space-6) !important;
}
@media (max-width: 480px) {
  main {
    padding-left: var(--space-4) !important;
    padding-right: var(--space-4) !important;
  }
}
/* Sections */
.section { background: transparent; }
.section-inner { max-width: var(--container); margin: 0 auto; }
.hero + .section .section-inner { padding-top: 16px; }

/* HERO - same rhythm as intro-block / card below */
header.hero {
  background: transparent;
  color: var(--text-1);
  margin-top: 16px;
  margin-bottom: 0;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}
@media (max-width: 640px) {
  .hero-inner { padding: 32px 20px; }
}
.hero-logo { height: 84px; width: auto; }
.hero-text { margin: 0; color: var(--text-1); font-size: 17px; line-height: 1.8; max-width: 820px; }
.panel { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.image-placeholder {
  width: 100%;
  height: 520px;
  border: 2px dashed var(--border-3);
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}
@media (max-width: 520px) {
  .image-placeholder { height: 360px; }
}

/* App overview (intro + download) */
.app-overview .app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .app-overview .app-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
.app-visual-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}
.manual-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1;
  color: var(--green-main);
  text-decoration: underline;
  cursor: pointer;
}
.manual-download-icon {
  flex-shrink: 0;
  display: block;
  vertical-align: middle;
}
.manual-download:hover {
  color: var(--green-dark);
}
.app-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: none;
  border-radius: var(--radius);
  background: #ffffff;
  padding: 0;
  display: block;
}
.app-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Visual Slider */
.visual-slider {
  position: relative;
  touch-action: pan-y pinch-zoom;
}
.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
}
.visual-slider .slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
}
.visual-slider .slide img {
  cursor: pointer;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--green-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.2s ease, transform 0.2s ease;
}
.slider-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.slider-dots .dot.active {
  background: var(--green-main);
  transform: scale(1.2);
}
/* 모바일에서 슬라이더 비표시 */
@media (max-width: 768px) {
  .app-visual.visual-slider { display: none !important; }
}
/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.9);
  padding: 20px;
}
.lightbox.active {
  display: flex;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 101;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 101;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.3);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-content {
  max-width: 95%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.intro-block {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.04);
}
.intro-block .app-visual { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.intro-block .button-group { margin-top: 24px; }
.intro-block .section-title { margin-top: 0; }
@media (max-width: 520px) {
  .intro-block { padding: 20px; }
}
.app-download {
  border: none;
  border-radius: var(--radius);
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Split layout (Download | Board) */
.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 24px;
}
@media (min-width: 900px) {
  .split-grid { grid-template-columns: 1fr; }
}
.card {
  border: none;
  border-radius: var(--radius);
  background: #ffffff;
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.04);
}
.right-col .card {
  padding: 28px;
  margin-bottom: 20px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.right-col .card::-webkit-scrollbar {
  display: none;
}
@media (max-width: 520px) {
  .right-col .card { padding: 20px; max-height: calc(100vh - 180px); }
}
.section-title {
  margin: var(--space-5) 0 var(--space-2);
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.2px;
}
.button-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.intro-block .button-group {
  container-type: inline-size;
  container-name: apk-btn-group;
}
@media (max-width: 520px) {
  .intro-block,
  .intro-block .button-group {
    min-width: 0;
  }
  .button-group { grid-template-columns: 1fr; }
  .intro-block .button-group .btn {
    min-width: 0;
    white-space: nowrap;
    font-size: 12px;
    padding: 12px 10px;
    gap: 8px;
  }
  .intro-block .button-group .btn-icon {
    width: 18px;
    height: 18px;
  }
}
/* 너비가 좁아서 텍스트가 두 줄로 넘어갈 때 두 버튼 동일하게 폰트 축소 (2열일 때도 적용) */
@container apk-btn-group (max-width: 750px) {
  .intro-block .button-group .btn {
    white-space: normal;
    text-align: center;
    font-size: 11px;
    padding: 10px 8px;
    gap: 6px;
  }
  .intro-block .button-group .btn-icon {
    width: 16px;
    height: 16px;
  }
}
/* 768px 이하: 2열일 때도 긴 버튼이 줄바꿈되므로 폰트 축소 (두 버튼 동일) */
@media (max-width: 768px) {
  .intro-block .button-group .btn {
    white-space: normal;
    text-align: center;
    font-size: 11px;
    padding: 10px 8px;
    gap: 6px;
  }
  .intro-block .button-group .btn-icon {
    width: 16px;
    height: 16px;
  }
}
@media (max-width: 380px) {
  .intro-block .button-group .btn {
    white-space: normal;
    text-align: center;
    font-size: 11px;
    padding: 10px 8px;
    gap: 6px;
  }
  .intro-block .button-group .btn-icon {
    width: 16px;
    height: 16px;
  }
}
.btn-icon {
  flex-shrink: 0;
  color: inherit;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(36,66,50,0.2);
  will-change: transform;
}
.btn:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(36,66,50,0.15); }
.btn-primary { background: var(--green-main); }
.btn-primary:hover { background: var(--green-aux-1); box-shadow: 0 2px 8px rgba(36,66,50,0.25); }
/* Accent submit button (solid) */
.btn-accent {
  background: var(--green-main);
  border: 1px solid var(--green-main);
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: background-color 0.15s ease, transform 0.08s ease;
  box-shadow: none;
}
.btn-accent:hover { background: var(--green-aux-1); }
.btn-accent:active { transform: translateY(1px); }
.btn-accent:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 107, 82, 0.25);
}
.btn-secondary {
  background: #ffffff;
  color: var(--green-dark);
  border: 1px solid var(--green-aux-2);
  box-shadow: none;
}
.btn-secondary:hover { background: var(--green-aux-2); color: #fff; }
.btn-ghost {
  background: #ffffff;
  color: var(--text-1);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-weight: 700;
}
.btn-ghost:hover { background: #f2f2f2; transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(0); }
.btn-ghost:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 107, 82, 0.18);
}
.btn-inline { width: auto; padding: 10px 14px; }
.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--disabled-2);
  color: #fff;
}
.note {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 13px;
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 4px;
  background: rgba(255,255,255,0.9);
  mask-size: 18px 18px;
  mask-repeat: no-repeat;
  mask-position: center;
}
/* Simple generic download icon */
.icon-download {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="%23000" viewBox="0 0 24 24"><path d="M5 20h14v-2H5v2zm7-18-5 5h3v6h4V7h3l-5-5z"/></svg>');
  background: rgba(255,255,255,0.92);
}

/* Board styles */
.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.board-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.board-search { margin-left: auto; }
.board-search input {
  width: 100%;
  max-width: 260px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-1);
  background: var(--bg-2);
  color: var(--text-1);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Isamanru', "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.board-search input:focus {
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(58,107,82,0.12);
}
.board-search input::placeholder { color: var(--text-3); }
@media (max-width: 768px) {
  .board-search { display: none; }
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.board-table th, .board-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-1);
  text-align: left;
  color: var(--text-1);
}
.board-table th {
  background: #f5f7f6;
  color: var(--green-dark);
  font-weight: 600;
}
.board-table tbody tr {
  transition: background-color 0.15s ease;
}
.board-table tbody tr:hover {
  background: #fafbfa;
}
.board-table a {
  color: var(--green-main);
  text-decoration: none;
}
.board-table a:hover { text-decoration: underline; }
/* 날짜 열 한 줄 유지 (YYYY-MM-DD) */
.board-table th:nth-child(4), .board-table td:nth-child(4) {
  white-space: nowrap;
}
.board-empty-cell {
  text-align: center;
  color: var(--text-2, #666);
  padding: 24px 12px;
}
.board-empty-msg {
  text-align: center;
  color: var(--text-2, #666);
  padding: 24px 12px;
  margin: 0;
}

/* 태블릿·모바일: 조회 숨김, 제목 넓힘 + 말줄임 */
@media (max-width: 1024px) {
  .board-table {
    table-layout: fixed;
  }
  .board-table th:nth-child(5),
  .board-table td:nth-child(5) {
    display: none;
  }
  .board-table th:nth-child(1), .board-table td:nth-child(1) { width: 72px; }
  .board-table th:nth-child(2), .board-table td:nth-child(2) { width: 55%; }
  .board-table th:nth-child(3), .board-table td:nth-child(3) { width: 22%; }
  .board-table th:nth-child(4), .board-table td:nth-child(4) { width: 23%; }
  .board-table td:nth-child(2) {
    overflow: hidden;
  }
  .board-table td:nth-child(2) a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .board-table td:nth-child(3) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .board-table th:nth-child(4), .board-table td:nth-child(4) {
    white-space: nowrap;
    min-width: 96px;
  }
}

.board-cards { display: none; }
.board-card {
  border: none;
  border-radius: 12px;
  padding: 12px;
  background: var(--card-bg);
  min-width: 0;
  overflow: hidden;
}
.board-card-title {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--green-dark);
  min-width: 0;
  overflow: hidden;
}
.board-card-title a {
  color: var(--green-main);
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-card-title a:hover { text-decoration: underline; }
.board-card-meta {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}
.board-card-meta span:nth-child(1),
.board-card-meta span:nth-child(3),
.board-card-meta span:nth-child(4) {
  flex-shrink: 0;
}
.board-card-meta span:nth-child(2) {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
}
.page-btn {
  min-width: 36px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--bg-2);
  color: var(--text-2);
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.page-btn:hover {
  border-color: var(--border-2);
  color: var(--green-dark);
  background: #fff;
}
.page-btn.active {
  background: var(--green-main);
  color: #fff;
  border-color: var(--green-main);
}
.page-btn.disabled {
  color: var(--disabled-2);
  pointer-events: none;
  background: var(--bg-2);
}

/* Editor */
.board-editor {
  display: none;
  margin-top: 12px;
  border: none;
  border-radius: 12px;
  background: #fcfdfc;
  padding: 12px;
}
.form-row {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 10px;
  margin-bottom: 8px;
}
/* PC·태블릿: 제목·작성자·비밀번호·비밀글 한 줄 */
.form-row.form-row-meta {
  grid-template-columns: 2fr 1fr 1fr auto;
  grid-template-rows: auto;
  align-items: center;
}
/* 모바일만: 1줄=제목+작성자(7:3), 2줄=비밀번호+비밀글 */
@media (max-width: 640px) {
  .board-editor .form-row.form-row-meta {
    grid-template-columns: 7fr 3fr;
    grid-template-rows: auto auto;
  }
}
.form-row.single { grid-template-columns: 1fr; }
.editor-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 14px;
  color: var(--text-1);
  cursor: pointer;
}
.editor-checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green-main);
  cursor: pointer;
}
.board-editor input[type="text"],
.board-editor input[type="password"],
.board-editor textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-1);
  background: var(--bg-3);
  color: var(--text-1);
  outline: none;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.board-editor input[type="text"]:focus,
.board-editor input[type="password"]:focus,
.board-editor textarea:focus {
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(58,107,82,0.12);
}
.board-editor textarea { height: 206px; min-height: 206px; resize: none; }
.editor-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0,0,0,0.4);
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}
.modal.active { display: flex; }
.modal-card {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(0,0,0,0.12);
  overflow: hidden;
}
.modal-head {
  padding: 14px 16px;
  background: #f7faf7;
  border-bottom: 1px solid var(--border-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.modal-title { margin: 0; font-size: 16px; color: var(--green-dark); flex: 1; }
.modal-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.modal-body { padding: 14px 16px; color: var(--text-1); max-height: 70vh; overflow-y: auto; }
#modalContent { white-space: pre-line; word-break: break-word; }
.modal-meta {
  font-size: 12px; color: var(--text-3); display: flex; gap: 10px; margin-bottom: 8px;
}
.modal-close {
  background: transparent; border: 0; cursor: pointer; color: var(--text-2); font-size: 18px;
}

/* 비밀글 비밀번호 입력 모달 */
.pwd-modal .pwd-modal-card,
.modal-card.pwd-modal-card {
  max-width: 440px;
}
.pwd-modal-card .modal-body {
  padding: 16px 20px;
}
.pwd-modal-desc {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}
.pwd-modal .form-row,
.pwd-modal-card .form-row {
  display: block;
  margin-bottom: 18px;
}
.pwd-modal .form-row input,
.pwd-modal-card .form-row input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
}
.pwd-modal .form-row input:focus,
.pwd-modal-card .form-row input:focus {
  outline: none;
  border-color: var(--green-main);
}
.pwd-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.pwd-modal-actions .btn { flex: 1; font-family: inherit; }
/* 비밀글 모달 확인 버튼: 검정 테두리 제거, 폰트 적용 */
.pwd-modal-actions .btn.btn-primary {
  border: none;
  outline: none;
  font-family: inherit;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(36, 66, 50, 0.2);
}
.pwd-modal-actions .btn.btn-primary:hover {
  box-shadow: 0 2px 8px rgba(36, 66, 50, 0.25);
}
.pwd-modal-actions .btn.btn-primary:focus-visible {
  outline: none;
  border: none;
  box-shadow: 0 0 0 3px rgba(58, 107, 82, 0.25);
}

/* 메시지 알림 모달 (alert 대체) */
.message-modal {
  z-index: 100 !important;
}
.message-modal .message-modal-card {
  max-width: 360px;
}
.message-modal-text {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.5;
}
.message-modal-actions {
  display: flex;
  justify-content: flex-end;
}
.message-modal-actions .btn { min-width: 80px; font-family: inherit; }
.message-modal-actions .btn.btn-primary {
  border: none;
  outline: none;
  box-shadow: 0 1px 3px rgba(36, 66, 50, 0.2);
}
.message-modal-actions .btn.btn-primary:hover {
  box-shadow: 0 2px 8px rgba(36, 66, 50, 0.25);
}
.message-modal-actions .btn.btn-primary:focus-visible {
  outline: none;
  border: none;
  box-shadow: 0 0 0 3px rgba(58, 107, 82, 0.25);
}

/* 확인 모달 (기본 confirm 대체) */
.confirm-modal {
  z-index: 100 !important;
}
.confirm-modal .confirm-modal-card {
  max-width: 400px;
  width: 100%;
}
.confirm-modal-text {
  margin: 0 0 20px;
  color: var(--text-1);
  line-height: 1.5;
}
.confirm-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.confirm-modal-actions .btn { min-width: 80px; font-family: inherit; }
.confirm-modal-actions .btn.btn-primary {
  box-shadow: none !important;
  border: none !important;
}
.confirm-modal-actions .btn.btn-primary:hover {
  box-shadow: 0 2px 8px rgba(36, 66, 50, 0.25);
}
.confirm-modal-actions .btn.btn-primary:focus-visible {
  outline: none;
  border: none;
  box-shadow: 0 0 0 3px rgba(58, 107, 82, 0.25);
}

/* APK 다운로드 안내 커스텀 알림 (앱 설치 안내) */
#apkNoticeOverlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(36, 66, 50, 0.35);
  backdrop-filter: blur(4px);
}
#apkNoticeOverlay.active { display: flex; }
.apk-notice-card {
  position: relative;
  max-width: 420px;
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(36, 66, 50, 0.15);
  border: 1px solid rgba(58, 107, 82, 0.12);
  padding: 5px 10px 5px;
  text-align: center;
  animation: apkNoticeIn 0.25s ease;
}
@keyframes apkNoticeIn {
  from { opacity: 0; transform: scale(0.96) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 태블릿: apk-notice-card 크기 확대 */
@media (min-width: 641px) {
  .apk-notice-card {
    max-width: 570px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 12px 20px 12px;
  }
}

/* PC: apk-notice-card 더 크게 */
@media (min-width: 1024px) {
  .apk-notice-card {
    max-width: 750px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 16px 24px 16px;
  }
}
.apk-notice-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--text-2);
  cursor: pointer;
  border-radius: 4px;
}
.apk-notice-close:hover {
  color: var(--green-dark);
  background: rgba(58, 107, 82, 0.08);
}
.apk-notice-image-wrap {
  margin: 0;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
}
.apk-notice-image {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

/* APK 다운로드중 표시 */
.apk-downloading-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(36, 66, 50, 0.4);
  backdrop-filter: blur(4px);
}
.apk-downloading-overlay.active {
  display: flex;
}
.apk-downloading-overlay .apk-downloading-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: apk-downloading-spin 0.8s linear infinite;
  margin-right: 12px;
  vertical-align: middle;
}
.apk-downloading-overlay .apk-downloading-text {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
@keyframes apk-downloading-spin {
  to { transform: rotate(360deg); }
}

/* 로그인 창 */
#loginOverlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(36, 66, 50, 0.35);
  backdrop-filter: blur(4px);
}
#loginOverlay.active { display: flex; }
.login-card {
  max-width: 360px;
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(36, 66, 50, 0.15);
  border: 1px solid rgba(58, 107, 82, 0.12);
  padding: 28px 24px;
}
.login-card h3 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--green-dark);
  text-align: center;
}
.login-card .form-row {
  margin-bottom: 14px;
  display: block;
}
.login-card .form-row:last-of-type { margin-bottom: 20px; }
.login-card input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-1);
  background: var(--bg-2);
  color: var(--text-1);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.login-card input:focus {
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(58,107,82,0.12);
}
.login-card .login-actions {
  display: flex;
  gap: 10px;
}
.login-card .login-actions .btn { flex: 1; }
.login-card .login-actions .btn.btn-primary {
  box-shadow: none !important;
  border: none;
  outline: none;
}
.login-card .login-actions .btn.btn-primary:hover,
.login-card .login-actions .btn.btn-primary:active {
  box-shadow: none !important;
}
/* 댓글 섹션 */
.comment-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-1);
}
.comment-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  margin: 0 0 12px 0;
}
.comment-title span {
  color: var(--green-main);
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 12px;
  padding-right: 4px;
}
/* 댓글 리스트 스크롤바 스타일링 */
.comment-list::-webkit-scrollbar {
  width: 6px;
}
.comment-list::-webkit-scrollbar-track {
  background: var(--bg-2);
  border-radius: 3px;
}
.comment-list::-webkit-scrollbar-thumb {
  background: var(--border-1);
  border-radius: 3px;
}
.comment-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-3);
}
.comment-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--bg-2);
  border-radius: 8px;
}
.comment-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.comment-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
}
.comment-date {
  font-size: 11px;
  color: var(--text-3);
}
.comment-text {
  font-size: 13px;
  color: var(--text-1);
  line-height: 1.5;
}
.comment-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.comment-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-1);
  border-radius: 8px;
  background: var(--bg-3);
  color: var(--text-1);
  font-size: 13px;
  outline: none;
}
.comment-form input:focus {
  border-color: var(--green-main);
  box-shadow: 0 0 0 2px rgba(58,107,82,0.1);
}
.comment-empty {
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  padding: 16px 0;
}

/* Responsive rules */
@media (max-width: 640px) {
  .board-table { display: none; }
  .board-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .board-card-meta span:nth-child(4) {
    display: none;
  }
}
@media (min-width: 641px) {
  .board-cards { display: none; }
}

/* 모바일 좁은 화면에서 게시판 비율/레이아웃 유지 */
@media (max-width: 480px) {
  .split-grid,
  .right-col,
  .right-col .card {
    min-width: 0;
  }
  .right-col .card {
    padding: 14px;
    max-height: calc(100vh - 100px);
  }
  .board-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .board-header .section-title {
    font-size: 18px;
  }
  .board-actions .btn-inline {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 13px;
  }
  .pagination {
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
  }
  .pagination .page-btn:nth-child(5),
  .pagination .page-btn:nth-child(6) {
    display: none;
  }
  .page-btn {
    min-width: 32px;
    padding: 6px 10px;
    font-size: 13px;
  }
}

.site-footer {
  width: 100%;
  margin: 24px auto 12px;
  padding: 12px 0 20px;
}

.site-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  font-size: 13px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  flex-wrap: wrap;
}

.privacy-link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 700;
}

.privacy-link:hover {
  color: #e7f3ea;
}
