/* ══════════════════════════════════════════
   고양고속차량지부 — 공통 스타일
   모바일 우선 설계 / 최대 너비 430px
════════════════════════════════════════════ */
:root {
  --b:    #00529b;  /* 메인 블루 */
  --bd:   #003d75;  /* 다크 블루 */
  --bl:   #e8f2fc;  /* 라이트 블루 배경 */
  --r:    #c0392b;  /* 레드 (경고·신고) */
  --g:    #1a7a45;  /* 그린 (나눔터) */
  --o:    #e07b00;  /* 오렌지 (강조) */
  --sl:   #f3f6fa;  /* 폼 배경 */
  --border: #e2e8f2;
  --t1:   #0f1c2e;  /* 본문 텍스트 */
  --t2:   #3d5068;  /* 보조 텍스트 */
  --t3:   #8fa0b4;  /* 힌트 텍스트 */
  --white: #fff;
  --bg:   #eef1f6;
  --sh:   0 2px 12px rgba(0,82,155,.09);
  --sh2:  0 6px 28px rgba(0,82,155,.14);
  --r8:   8px;
  --r12:  12px;
  --r16:  16px;
  --r20:  20px;
  --rpill: 999px;

  --nav-h: 60px;   /* 하단 네비 높이 */
  --top-h: 56px;   /* 상단 바 높이 */
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  background: var(--bg);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select {
  font-family: inherit;
}

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

/* ── 앱 셸 ────────────────────────────────── */
.app-shell {
  max-width: 430px;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0,0,0,.15);
}

/* ── 상단 바 ──────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--top-h);
  background: var(--b);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(0,60,130,.25);
}

.topbar-logo {
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,.18);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex: 0 0 auto;
}

.topbar-info {
  flex: 1;
}

.topbar-info h1 {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.topbar-info p {
  font-size: 10px;
  color: rgba(255,255,255,.62);
  margin-top: 1px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-login-status {
  font-size: 11px;
  color: rgba(255,255,255,.75);
  font-weight: 700;
}

.topbar-btn {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.15);
  border: 0;
  border-radius: 9px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 페이지 컨텐츠 영역 ──────────────────── */
.page-content {
  flex: 1;
  padding: 14px 13px calc(var(--nav-h) + 14px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

/* ── 하단 내비게이션 ─────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, 100%);
  height: var(--nav-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  z-index: 300;
}

.nav-btn {
  background: transparent;
  border: 0;
  padding: 7px 2px 5px;
  color: var(--t3);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: color .12s;
  line-height: 1;
}

.nav-btn .nav-ico {
  font-size: 20px;
  line-height: 1;
}

.nav-btn.active {
  color: var(--b);
}

/* ── 공통 카드 ────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--r16);
  padding: 14px;
  box-shadow: var(--sh);
  border: 1px solid var(--border);
}


/* ── 공통 안내문: 모바일 가독성용 번호/점 목록 ─────────────── */
.guide-box {
  background: #f8fbff;
  border: 1px solid #d6e7f7;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 12px;
  width: 100%;
  max-width: 100%;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--t2);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.guide-box.warning,
.guide-box.warn {
  background: #fff8e6;
  border-color: #ffe0a6;
  color: #73510f;
}
.guide-box.danger {
  background: #fff7f7;
  border-color: #ffd6d3;
  color: #8a1c16;
}
.guide-box.success,
.guide-box.ok {
  background: #eaf8ef;
  border-color: #bfe6cc;
  color: #166534;
}
.guide-box.compact {
  padding: 8px 10px;
  margin: 6px 0 10px;
}
.guide-title {
  display: block;
  margin-bottom: 6px;
  font-weight: 900;
}
.guide-list {
  margin: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
  counter-reset: guide-item;
}
.guide-list.numbered,
.guide-list.bullets {
  list-style: none !important;
}
.guide-list > li {
  position: relative;
  display: block;
  margin: 0.38em 0;
  padding-left: 1.35rem;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.guide-list.numbered > li { counter-increment: guide-item; }
.guide-list.numbered > li::before {
  content: counter(guide-item) ".";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.05rem;
  font-weight: 900;
  text-align: left;
}
.guide-list.bullets > li::before {
  content: "•";
  position: absolute;
  left: .08rem;
  top: 0;
  width: 1rem;
  font-weight: 900;
}
.guide-list > li:first-child { margin-top: 0; }
.guide-list > li:last-child { margin-bottom: 0; }
.guide-list.compact > li { margin: 0.22em 0; }
.guide-box a { color: var(--b); font-weight: 900; }

/* ── 섹션 헤더 ────────────────────────────── */
.sec-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sec-hd h2 {
  font-size: 15px;
  font-weight: 900;
  color: var(--t1);
}

.sec-hd-more {
  background: 0;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--b);
  cursor: pointer;
}

/* ── 공통 버튼 ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--rpill);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: .12s all;
  font-family: inherit;
}

.btn-primary { background: var(--b); color: #fff; }
.btn-primary:active { background: var(--bd); }
.btn-green   { background: var(--g); color: #fff; }
.btn-sm      { padding: 7px 14px; font-size: 12.5px; }
.btn-full    { width: 100%; }

/* ── 배지 ─────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: var(--rpill);
  white-space: nowrap;
}
.badge-ing  { background: #fff0e8; color: #b94a00; }
.badge-wait { background: var(--bl); color: var(--bd); }
.badge-done { background: #edfaf3; color: #1a7a45; }
.badge-out  { background: #f1f5f9; color: #64748b; }
.badge-late { background: #fef9ec; color: #7a4e00; }
.badge-new  { background: #f5f3ff; color: #6d28d9; }

/* ── 폼 요소 ──────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--t2);
}

.form-control {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r8);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  background: var(--sl);
  outline: none;
  transition: .15s border;
}

.form-control:focus {
  border-color: var(--b);
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

/* ── 파일 업로드 자리 (기능 구현 전 UI 예약) ── */
.upload-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--r12);
  padding: 18px;
  text-align: center;
  background: var(--sl);
  color: var(--t3);
  font-size: 12.5px;
  cursor: pointer;
}

.upload-placeholder .upload-ico {
  font-size: 26px;
  display: block;
  margin-bottom: 6px;
}

.upload-preview-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.upload-preview-item {
  width: 72px;
  height: 72px;
  border-radius: var(--r8);
  background: var(--bl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--t3);
  font-weight: 700;
  border: 1px solid var(--border);
}

/* ── 서브탭 바 ────────────────────────────── */
.subtab-bar {
  display: flex;
  background: var(--white);
  border-radius: var(--r12);
  padding: 4px;
  gap: 4px;
  box-shadow: var(--sh);
  border: 1px solid var(--border);
}

.subtab {
  flex: 1;
  border: 0;
  padding: 9px 0;
  border-radius: var(--r8);
  font-size: 13px;
  font-weight: 700;
  color: var(--t3);
  cursor: pointer;
  transition: .15s all;
  background: transparent;
}

.subtab.active {
  background: var(--b);
  color: #fff;
}

/* ── 토스트 알림 ──────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #0f1c2e;
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--rpill);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: .2s all;
  z-index: 999;
  white-space: nowrap;
  max-width: 340px;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── 웹진 iframe ───────────────────────────
   기존 정적 웹진을 앱 셸 안에 표시하되, iframe 내부 스크롤을 만들지 않는다.
   높이는 assets/js/app.js 의 resizeWebzineFrame()에서 내부 문서 높이에 맞춰 자동 조정한다. */
.webzine-page {
  gap: 0 !important;
  padding: 0 !important;
}

.webzine-shell-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
}

.webzine-shell-header h2 {
  font-size: 15px;
  font-weight: 900;
  color: var(--b);
}

.webzine-shell-header p {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--t3);
}

.webzine-frame {
  display: block;
  width: 100%;
  min-height: calc(100vh - var(--top-h) - var(--nav-h) - 58px);
  height: calc(100vh - var(--top-h) - var(--nav-h) - 58px);
  border: 0;
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
}

/* ── PC 에서 볼 때: 폰 모양 ─────────────── */
@media (min-width: 450px) {
  body {
    background: #c8d4e6;
    padding: 20px 0;
  }
  .app-shell {
    border-radius: 32px;
    overflow: hidden;
    min-height: calc(100vh - 40px);
  }
  .bottom-nav {
    border-radius: 0 0 32px 32px;
  }
}

/* ── 4단계: 익명광장 기본 기능 ───────────────── */
.feed-compose .form-group { margin-bottom: 10px; }
.form-help {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--t3);
}
.feed-post {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.feed-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--t3);
  font-weight: 700;
}
.feed-post-title {
  font-size: 15px;
  line-height: 1.35;
  color: var(--t1);
  font-weight: 900;
  word-break: keep-all;
}
.feed-post-content {
  font-size: 13px;
  line-height: 1.68;
  color: var(--t2);
  word-break: break-word;
  white-space: normal;
}
.feed-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 9px;
}
.feed-actions form { margin: 0; }
.feed-action-btn {
  border: 1px solid var(--border);
  background: var(--sl);
  color: var(--t2);
  border-radius: var(--rpill);
  padding: 6px 9px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.feed-action-btn.active {
  background: var(--bl);
  color: var(--b);
  border-color: #b8d8f5;
}
.feed-action-btn.danger {
  color: var(--r);
  background: #fff8f8;
  border-color: #f5c6c5;
}
.feed-comments {
  display: none;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  border-radius: var(--r12);
  padding: 10px;
  border: 1px solid var(--border);
}
.feed-comments.open { display: flex; }
.feed-empty-comment {
  font-size: 12px;
  color: var(--t3);
  text-align: center;
  padding: 6px 0;
}
.feed-comment {
  background: #fff;
  border-radius: var(--r8);
  padding: 9px 10px;
  border: 1px solid #edf1f6;
}
.feed-comment.feed-reply {
  margin-left: 18px;
  background: #fbfdff;
}
.feed-comment-meta {
  font-size: 10.5px;
  color: var(--t3);
  font-weight: 700;
  margin-bottom: 4px;
}
.feed-comment-body {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--t2);
  word-break: break-word;
}
.feed-comment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.feed-comment-actions form { margin: 0; }
.feed-reply-toggle,
.feed-report-link {
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 800;
  color: var(--b);
  cursor: pointer;
  padding: 0;
}
.feed-report-link { color: var(--r); }
.feed-comment-form,
.feed-reply-form {
  display: flex;
  gap: 6px;
  align-items: center;
}
.feed-comment-form .form-control,
.feed-reply-form .form-control {
  font-size: 12.5px;
  padding: 8px 10px;
}
.feed-comment-form .btn,
.feed-reply-form .btn { flex: 0 0 auto; }
.feed-reply-form {
  display: none;
  margin-top: 7px;
}
.feed-reply-form.open { display: flex; }
.feed-blinded {
  padding: 13px;
  border-radius: var(--r12);
  background: #f1f5f9;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
  font-weight: 700;
}

/* ── 관리자 검토함 / 마이페이지 링크 ───────────────── */
.mypage-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--r12);
  border-bottom: 0;
  cursor: pointer;
  margin-bottom: 1px;
  text-decoration: none;
  color: inherit;
}
.admin-review-card {
  border-left: 4px solid var(--b);
  background: linear-gradient(135deg, #ffffff, #f2f7ff);
}
.admin-page {
  max-width: 540px;
  margin: 0 auto;
  padding: 16px 14px 92px;
  min-height: 100vh;
  background: #eef1f6;
}
.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  margin-bottom: 10px;
}
.admin-page-head h2 {
  margin: 0 0 5px;
  color: var(--b);
  font-size: 18px;
  font-weight: 900;
}
.admin-page-head p {
  margin: 0;
  color: var(--t2);
  font-size: 12px;
  line-height: 1.55;
}
.admin-back-link {
  flex: 0 0 auto;
  color: #fff;
  background: var(--b);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.admin-notice-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 14px;
  padding: 12px;
  font-size: 12.5px;
  line-height: 1.65;
  margin-bottom: 10px;
}
.admin-tabs-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}
.admin-tabs-note span {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--t2);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
}
.admin-section-title {
  font-size: 14px;
  color: var(--t1);
  margin: 18px 2px 8px;
  font-weight: 900;
}
.admin-empty,
.admin-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.admin-empty {
  color: var(--t3);
  text-align: center;
  font-size: 12.5px;
  padding: 18px 10px;
}
.admin-item.deleted {
  opacity: .82;
  background: #f8fafc;
}
.admin-item-meta {
  font-size: 10.8px;
  color: var(--t3);
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.5;
}
.admin-item h4 {
  margin: 0 0 6px;
  font-size: 13.5px;
  color: var(--b);
  line-height: 1.35;
}
.admin-item p {
  margin: 0;
  font-size: 12.5px;
  color: var(--t2);
  line-height: 1.6;
  word-break: break-word;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.admin-actions form { margin: 0; }
.admin-action-btn {
  border: 0;
  border-radius: 999px;
  background: var(--b);
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  padding: 7px 10px;
  cursor: pointer;
}
.admin-action-btn.danger {
  background: var(--r);
}
.admin-action-btn.muted {
  background: #64748b;
}

/* 익명광장 사진 업로드 */
.photo-uploader {
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 10px;
}
.photo-source-input,
.photo-hidden-input {
  display: none;
}
.photo-uploader-title {
  font-size: 12px;
  font-weight: 900;
  color: var(--t2);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.photo-uploader-title span {
  font-size: 10.5px;
  color: var(--t3);
  font-weight: 700;
}
.photo-uploader-buttons {
  display: flex;
  gap: 8px;
}
.photo-btn {
  flex: 1;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--b);
  font-size: 12px;
  font-weight: 900;
  padding: 9px 8px;
  border-radius: 10px;
  cursor: pointer;
}
.photo-preview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}
.photo-preview-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  min-height: 94px;
}
.photo-preview-item img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: block;
}
.photo-preview-meta {
  font-size: 10px;
  color: var(--t3);
  padding: 4px 5px 5px;
  line-height: 1.25;
}
.photo-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.62);
  color: #fff;
  width: 22px;
  height: 22px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.feed-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.feed-image-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f8fafc;
}
.feed-image-link img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
@media (max-width: 360px) {
  .photo-uploader-buttons { flex-direction: column; }
  .photo-preview-list, .feed-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ── PC/노트북 보기 보강 ─────────────────────────────
   조합원 화면은 모바일 우선으로 유지하되, 노트북에서는 지나치게 좁거나
   사진이 길게 늘어지는 문제를 줄인다. 관리자 화면은 별도 파일에서 확장한다. */
@media (min-width: 900px) {
  body {
    padding: 18px 0;
  }

  .app-shell {
    max-width: 760px;
    min-height: calc(100vh - 36px);
    border-radius: 26px;
  }

  .bottom-nav {
    width: min(760px, 100%);
    border-radius: 0 0 26px 26px;
  }

  .page-content {
    padding: 18px 22px calc(var(--nav-h) + 20px);
  }

  .feed-card,
  .card {
    border-radius: 18px;
  }

  /* 노트북에서는 첨부 사진을 작은 판독용 썸네일로 표시한다.
     클릭하면 새 탭에서 전체 사진을 볼 수 있으므로 목록에서는 세로 사진이 화면을 과도하게 먹지 않게 한다. */
  .feed-images {
    grid-template-columns: repeat(auto-fill, minmax(132px, 176px)) !important;
    justify-content: start;
    align-items: start;
    gap: 8px;
  }

  .feed-image-link {
    max-width: 176px;
  }

  .feed-image-link img {
    width: 100%;
    height: 148px;
    aspect-ratio: auto !important;
    object-fit: cover;
  }

  .photo-preview-list {
    grid-template-columns: repeat(auto-fill, minmax(128px, 150px));
    justify-content: start;
  }

  .photo-preview-item {
    min-height: 120px;
  }

  .photo-preview-item img {
    height: 104px;
  }
}

@media (min-width: 1200px) {
  .app-shell {
    max-width: 860px;
  }

  .bottom-nav {
    width: min(860px, 100%);
  }

  .feed-images {
    grid-template-columns: repeat(auto-fill, minmax(144px, 190px)) !important;
  }

  .feed-image-link {
    max-width: 190px;
  }

  .feed-image-link img {
    height: 160px;
  }
}


/* ── v1.8: PC/노트북 전체 화면 확장 보강 ─────────────────────
   모바일 구조는 유지하고, 900px 이상 데스크톱에서는 일반 조합원 화면도
   관리자 화면처럼 더 넓은 작업 폭을 사용한다. */
@media (min-width: 900px) {
  .app-shell {
    max-width: min(1080px, calc(100vw - 72px)) !important;
    min-height: calc(100vh - 36px) !important;
  }

  .bottom-nav {
    width: min(1080px, calc(100vw - 72px)) !important;
  }

  .topbar {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .topbar-info h1 {
    font-size: 16px !important;
  }

  .page-content {
    padding: 22px 30px calc(var(--nav-h) + 24px) !important;
    gap: 16px !important;
  }

  .page-section.active {
    gap: 16px !important;
  }

  .card,
  .feed-card {
    padding: 18px !important;
    border-radius: 20px !important;
  }

  .feed-title,
  .feed-post-title {
    font-size: 16px !important;
  }

  .feed-body,
  .feed-post-content {
    font-size: 14px !important;
    line-height: 1.75 !important;
  }

  .feed-head,
  .feed-post-meta {
    font-size: 12.5px !important;
  }

  .feed-foot,
  .feed-actions {
    gap: 14px !important;
  }

  .fbtn,
  .feed-action-btn,
  .feed-reply-toggle,
  .feed-report-link {
    font-size: 12.5px !important;
  }

  .cmt,
  .feed-comment,
  .cmt-body,
  .feed-comment-body {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
  }

  .form-control,
  input.form-control,
  textarea.form-control {
    font-size: 14px !important;
  }

  textarea.form-control {
    min-height: 130px !important;
  }

  .photo-uploader-buttons {
    gap: 10px !important;
  }

  .photo-btn {
    font-size: 13px !important;
    padding: 11px 10px !important;
  }

  .feed-images {
    grid-template-columns: repeat(auto-fill, minmax(150px, 210px)) !important;
    justify-content: start !important;
    gap: 10px !important;
  }

  .feed-image-link {
    max-width: 210px !important;
  }

  .feed-image-link img {
    height: 168px !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
  }

  .webzine-section {
    margin-left: -30px !important;
    margin-right: -30px !important;
  }
}

@media (min-width: 1200px) {
  .app-shell {
    max-width: min(1180px, calc(100vw - 96px)) !important;
  }

  .bottom-nav {
    width: min(1180px, calc(100vw - 96px)) !important;
  }

  .page-content {
    padding-left: 36px !important;
    padding-right: 36px !important;
  }

  .webzine-section {
    margin-left: -36px !important;
    margin-right: -36px !important;
  }

  .feed-images {
    grid-template-columns: repeat(auto-fill, minmax(168px, 230px)) !important;
  }

  .feed-image-link {
    max-width: 230px !important;
  }

  .feed-image-link img {
    height: 184px !important;
  }
}

@media (min-width: 1440px) {
  .app-shell {
    max-width: 1240px !important;
  }

  .bottom-nav {
    width: min(1240px, 100%) !important;
  }
}

/* ── v1.16.16: 안내문 마커 실문자 고정 방식 ─────────────────────────
   이전 버전은 CSS counter/::before 또는 브라우저 기본 marker에 의존했다.
   모바일·캐시·중복 규칙이 겹치면 숫자/점이 사라지거나 박스 밖으로 밀릴 수 있다.
   이번 방식은 HTML 안에 실제 <span class="guide-marker">1.</span> 텍스트를 넣고,
   CSS는 정렬만 담당한다. CSS가 일부 깨져도 번호 텍스트 자체는 남는다. */
.guide-box,
.note.guide-box,
.danger-note.guide-box,
.msg.guide-box,
.info.guide-box,
.warn.guide-box,
.ops-desc.guide-box,
.ops-warning.guide-box,
.super.guide-box,
.hidden-list-note.guide-box {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.guide-list,
ol.guide-list,
ul.guide-list {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
  counter-reset: none !important;
}

.guide-list > li,
ol.guide-list > li,
ul.guide-list > li {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 1.65em minmax(0, 1fr) !important;
  column-gap: .12em !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: .38em 0 !important;
  padding: 0 !important;
  line-height: 1.62 !important;
  list-style: none !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: anywhere !important;
}

.guide-list > li::before,
ol.guide-list > li::before,
ul.guide-list > li::before,
.guide-list.numbered > li::before,
.guide-list.bullets > li::before {
  content: none !important;
  display: none !important;
}

.guide-marker {
  display: block !important;
  width: 1.55em !important;
  min-width: 1.55em !important;
  max-width: 1.55em !important;
  text-align: left !important;
  font-weight: 900 !important;
  line-height: inherit !important;
  color: inherit !important;
  white-space: nowrap !important;
}

.guide-copy {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  line-height: inherit !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: anywhere !important;
}

.guide-list.compact > li,
.guide-box.compact .guide-list > li,
.small .guide-list > li,
.file-hint .guide-list > li,
.helptext .guide-list > li,
.feed-edit-help .guide-list > li {
  margin: .24em 0 !important;
  grid-template-columns: 1.55em minmax(0, 1fr) !important;
}

@media (max-width: 430px) {
  .guide-box,
  .note.guide-box,
  .danger-note.guide-box,
  .msg.guide-box,
  .info.guide-box,
  .warn.guide-box,
  .ops-desc.guide-box,
  .ops-warning.guide-box,
  .super.guide-box,
  .hidden-list-note.guide-box {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .guide-list > li,
  ol.guide-list > li,
  ul.guide-list > li {
    grid-template-columns: 1.55em minmax(0, 1fr) !important;
    column-gap: .08em !important;
  }
  .guide-marker {
    width: 1.45em !important;
    min-width: 1.45em !important;
    max-width: 1.45em !important;
  }
}


/* v1.16.18 진행판 의견·알림 */
.issue-comment-box{margin-top:12px;border-top:1px solid rgba(226,232,242,.9);padding-top:10px;display:flex;flex-direction:column;gap:8px;}
.issue-comment-title{font-size:12px;font-weight:900;color:#00529b;}
.issue-comment-empty{font-size:12px;color:#8fa0b4;background:#f8fbff;border:1px dashed #d8e4f0;border-radius:10px;padding:9px;text-align:center;}
.issue-comment-item{background:#f8fbff;border:1px solid #e2e8f2;border-radius:10px;padding:9px;}
.issue-comment-item div{font-size:11px;color:#8fa0b4;display:flex;gap:6px;align-items:center;}
.issue-comment-item strong{font-size:12px;color:#143a5a;}
.issue-comment-item p{font-size:12.5px;color:#3d5068;line-height:1.55;margin-top:4px;word-break:break-word;}
.issue-comment-form{display:grid;grid-template-columns:120px 1fr auto;gap:7px;align-items:start;}
.issue-comment-form textarea{min-height:42px;resize:vertical;}
@media(max-width:640px){.issue-comment-form{grid-template-columns:1fr}.issue-comment-form button{width:100%;}}
