﻿@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* 대표님이 언제든 편하게 색상을 꾸밀 수 있는 내비게이터 변수 */
:root {
    --bg-dark: #f9fafb;         /* 전체 배경 (라이트 그레이) */
    --surface-dark: #ffffff;    /* 카드 및 패널 배경 */
    --point-gold: #d4af37;      /* 하이라이트 포인트 (차분한 골드) */
    --champagne: #f4e6bd;
    --text-main: #1f2937;       /* 주 텍스트 (차콜) */
    --text-muted: #6b7280;      /* 부 텍스트 */
    --border-color: #e5e7eb;    /* 연한 경계선 */
    --soft-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.04);

    /* 시스템 추가 변수 */
    --danger: #dc2626;
    --success: #059669;
    --radius: 10px;
    --radius-lg: 12px;
    --container: 1000px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background-color: var(--bg-dark);
  font-size: 16px;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
button, input, textarea { font: inherit; outline: none; }
button { border: 0; cursor: pointer; transition: var(--transition); }
button:disabled { cursor: not-allowed; opacity: 0.5; }
:focus-visible { outline: 2px solid var(--point-gold); outline-offset: 2px; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.nav {
  width: min(100%, var(--container));
  min-height: 58px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--point-gold);
  color: #000;
  font-weight: 900;
  font-size: 1.2rem;
}

.brand-logo-mark {
  overflow: hidden;
  background: #111827;
  border: 0;
  box-shadow: none;
  filter: grayscale(1) contrast(1.05);
}

.brand-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  color: #1f2937;
  font-weight: 900;
  letter-spacing: 0;
}

.nav-actions { display: flex; gap: 5px; align-items: center; }

.nav-link {
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  background: transparent;
  border: 1px solid transparent;
}

.nav-link:hover, .nav-link.is-active {
  color: var(--point-gold);
  background: rgba(212, 175, 55, 0.09);
  border-color: transparent;
}

.site-main {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 18px 24px 78px;
  flex: 1;
  animation: fadeIn 0.5s ease-out;
}

/* 메인 배너 고급화 */
.banner-badge {
    background-color: rgba(212, 175, 55, 0.14);
    color: #8a6d1d;
    font-weight: 800;
    font-size: 12px;
    padding: 4px 9px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 8px;
    border: 0;
}

.page-title {
  color: var(--text-main);
  font-weight: 900;
  text-shadow: none;
  margin-top: 0;
  margin-bottom: 4px;
}

.page-copy {
  margin: 0;
}

/* 상단 탭 디자인 */
.tab-container {
    display: flex;
    gap: 18px;
    border-bottom: 1px solid #edf0f3;
    margin-bottom: 16px;
    padding-bottom: 2px;
}

.tab-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 17px;
    font-weight: 700;
    padding: 9px 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--point-gold);
    font-weight: 900;
    border-bottom: 3px solid var(--point-gold);
}

.tab-btn:hover:not(.active) {
    color: var(--text-main);
}

/* 공통 서페이스 (카드, 패널) */
.surface, .post-item, .notice-item, .form-card, .detail-card, .comment-card, .reply-card, .stat-card, .admin-row-card {
  background-color: var(--surface-dark);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

/* 공지사항 */
.notice-list, .post-list { display: grid; gap: 12px; }

.notice-item {
  padding: 16px;
  background: #fff;
  border-left: 3px solid var(--point-gold);
}

.notice-title {
  color: var(--point-gold);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 8px;
}
.notice-content { color: var(--text-main); margin: 0; white-space: pre-wrap; font-size: 0.95rem; }

/* 게시글 목록 */
.post-item {
  transition: var(--transition);
}

.post-item:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.4);
}

.post-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 17px 18px;
  align-items: center;
}

.post-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-main);
  transition: color 0.2s;
}

.post-item:hover .post-title { color: var(--point-gold); }

.post-meta { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.9rem; }

.author-badge {
  padding: 2px 10px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--point-gold);
  border: 0;
  font-weight: 700;
  font-size: 0.8rem;
}

.post-count {
  padding: 4px 12px;
  border-radius: 8px;
  background: #f3f4f6;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.empty-state {
  padding: 36px 18px;
  text-align: center;
  background-color: var(--surface-dark);
  border: 1px solid #f3f4f6;
  border-radius: var(--radius);
  color: var(--text-muted);
  display: grid;
  gap: 7px;
  justify-items: center;
  box-shadow: var(--soft-shadow);
}

.empty-state strong { color: var(--text-main); }
.empty-icon {
  width: 38px;
  height: 46px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  color: transparent;
  position: relative;
}
.empty-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 14px;
  height: 2px;
  background: #d1d5db;
  box-shadow: 0 8px 0 #d1d5db;
}

/* 버튼 (글쓰기 등) */
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.button {
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.button-primary {
  background-color: var(--point-gold);
  color: #1f2937;
}
.button-primary:hover {
  background-color: #e6c24f;
  transform: translateY(-1px);
}

.button-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.button-ghost:hover { background: #f9fafb; border-color: rgba(212,175,55,0.42); }

.button-danger {
  background: rgba(255, 77, 77, 0.1);
  color: var(--danger);
  border: 1px solid rgba(255, 77, 77, 0.3);
}

/* 입장 / 폼 / 상세 등 유지보수 */
.entry-wrap { min-height: calc(100vh - 180px); display: flex; align-items: center; justify-content: center; }
.entry-panel { width: 100%; max-width: 400px; padding: 32px; text-align: center; background: var(--surface-dark); border: 0; border-radius: var(--radius-lg); box-shadow: var(--soft-shadow); }
.entry-form { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.field-label { font-weight: 700; color: var(--text-muted); font-size: 0.9rem; }
.field-input { width: 100%; padding: 11px 12px; background: #ffffff; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); }
.field-input:focus { border-color: var(--point-gold); }
.remember-login-row {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.55rem;
  min-height: 2.4rem;
  margin-top: -0.2rem;
  padding: 0.25rem 0.15rem;
  color: var(--navy-deep);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.remember-login-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.remember-login-check {
  position: relative;
  width: 1.28rem;
  height: 1.28rem;
  flex: 0 0 auto;
  border: 1.6px solid #cbd5e1;
  border-radius: 0.38rem;
  background: #fff;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.remember-login-check::after {
  content: "";
  position: absolute;
  left: 0.36rem;
  top: 0.16rem;
  width: 0.34rem;
  height: 0.66rem;
  border: solid #fff;
  border-width: 0 0.14rem 0.14rem 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.82);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.remember-login-row input:checked + .remember-login-check {
  border-color: var(--gold-accent);
  background: var(--gold-accent);
  box-shadow: 0 0 0 0.22rem rgba(212, 167, 44, 0.15);
}
.remember-login-row input:checked + .remember-login-check::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}
.remember-login-row input:focus-visible + .remember-login-check {
  outline: 2px solid rgba(212, 167, 44, 0.42);
  outline-offset: 2px;
}
.account-help-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.account-help-links a { color: var(--point-gold); font-weight: 800; text-decoration: none; }
.field-help {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}
.business-verification-open {
    width: 100%;
    margin-top: 14px;
    padding: 11px 12px;
    border: 1px solid rgba(212,175,55,0.28);
    border-radius: 10px;
    background: rgba(212,175,55,0.08);
    color: var(--navy-deep);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.business-verification-open strong {
    color: var(--point-gold);
    font-weight: 900;
}
.business-verification-open:hover {
    border-color: rgba(212,175,55,0.48);
    background: rgba(212,175,55,0.13);
    transform: translateY(-1px);
}
body.modal-open {
    overflow: hidden;
}
.business-verification-modal[hidden] {
    display: none !important;
}
.business-verification-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 18px;
}
.business-verification-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(5px);
}
.business-verification-dialog {
    position: relative;
    width: min(100%, 460px);
    max-height: min(86vh, 720px);
    overflow: auto;
    padding: 24px;
    border: 1px solid rgba(226,232,240,0.95);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15,23,42,0.22);
    text-align: left;
}
.business-verification-dialog h2 {
    margin: 0 0 18px;
    color: var(--navy-deep);
    font-size: 1.35rem;
    font-weight: 900;
}
.business-verification-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: var(--text-muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.business-verification-form {
    display: grid;
    gap: 14px;
}
.business-verification-status {
    min-height: 18px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.45;
}
.business-verification-status.is-success {
    color: var(--success);
}
.business-verification-status.is-error {
    color: var(--danger);
}
@media (max-width: 520px) {
    .entry-wrap {
        align-items: flex-start;
        padding-top: 18px;
    }
    .entry-panel {
        padding: 24px 18px;
    }
    .business-verification-modal {
        align-items: end;
        padding: 10px;
    }
    .business-verification-dialog {
        width: 100%;
        max-height: 88vh;
        padding: 20px 16px;
        border-radius: 16px;
    }
    .business-verification-open {
        font-size: 0.82rem;
        line-height: 1.45;
    }
}
.recovery-result {
    display: grid;
    gap: 10px;
    margin: 24px 0;
    padding: 18px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: var(--radius);
    background: rgba(212, 175, 55, 0.08);
    text-align: center;
}

.form-card, .detail-card, .comment-form { padding: 24px; }
.form-grid { display: grid; gap: 20px; }
.form-actions { margin-top: 24px; display: flex; justify-content: flex-end; }
.textarea-input { min-height: 250px; resize: vertical; line-height: 1.6; }
.compact-textarea { min-height: 100px; }

.fixed-author { display: flex; gap: 10px; padding: 10px; background: rgba(212,175,55,0.08); border-radius: 8px; margin-bottom: 20px; }
.fixed-author-label { font-weight: 800; color: var(--point-gold); }

.detail-head { margin-bottom: 20px; }
.detail-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.post-body { padding: 22px 0; border-top: 1px solid #eef0f2; font-size: 1rem; line-height: 1.8; white-space: pre-wrap; }
.inline-form-row { display: flex; gap: 10px; background: #f9fafb; padding: 10px; border-radius: 8px; border: 0; align-items: center; }

/* 댓글 영역 */
.comment-list { display: grid; gap: 16px; margin-top: 30px; }
.comment-card { padding: 20px; }
.comment-head { display: flex; justify-content: space-between; margin-bottom: 12px; }
.comment-content { font-size: 0.95rem; line-height: 1.6; }
.delete-form { display: flex; gap: 8px; }
.delete-password { width: 120px; padding: 4px 8px; }
.reply-list { margin-top: 12px; padding-left: 18px; border-left: 2px solid #e5e7eb; display: grid; gap: 12px; }
.reply-card { padding: 16px; background: #f9fafb; }

/* 관리자 대시보드 */
.admin-actions { margin-bottom: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.admin-only-link {
    border-color: rgba(212, 175, 55, 0.45);
    color: var(--point-gold);
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 20px; text-align: center; }
.stat-label { color: var(--text-muted); font-size: 0.85rem; font-weight: 700; }
.stat-value { font-size: 2rem; font-weight: 900; color: var(--point-gold); margin-top: 8px; }
.admin-activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: -8px 0 22px;
}
.admin-activity-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.92));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.admin-activity-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 900;
}
.admin-activity-card strong {
  color: #0f172a;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 950;
  line-height: 1;
}
.admin-activity-card small {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.admin-activity-card .trend-up { color: #dc2626 !important; }
.admin-activity-card .trend-down { color: #2563eb !important; }
.admin-pagination {
  margin: 18px 0 4px;
}
.admin-list { display: grid; gap: 12px; }
.admin-row-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.admin-row-card .detail-head { margin: 0; display: flex; justify-content: space-between; }
.admin-muted { color: var(--text-muted); font-size: 0.85rem; }
.mono-id { font-family: monospace; color: var(--point-gold); background: rgba(212, 175, 55, 0.1); padding: 2px 6px; border-radius: 4px; }
.table-wrap { overflow-x: auto; background: var(--surface-dark); border: 0; border-radius: var(--radius); padding: 16px; box-shadow: var(--soft-shadow); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid var(--border-color); text-align: left; }
.admin-table th { font-weight: 800; color: var(--text-muted); }
.overflow-x-auto {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}
.admin-tab-shell {
  display: grid;
  gap: 18px;
}
.admin-tab-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -4px 12px;
  padding: 4px 4px 10px;
  scrollbar-width: none;
}
.admin-tab-nav::-webkit-scrollbar {
  display: none;
}
.admin-tab-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  background: #fff;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.admin-tab-button.is-active {
  border-color: rgba(212, 175, 55, 0.7);
  background: var(--point-gold);
  color: #fff;
}
.admin-tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.admin-settings-tab-link {
  margin-left: auto;
  border-color: rgba(15, 23, 42, 0.12);
  background: #0f172a;
  color: #fff;
}
.admin-tab-panel[hidden] {
  display: none !important;
}
.admin-tab-panel {
  min-width: 0;
}
.admin-scroll-table {
  max-height: 500px;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.max-h-\[500px\] {
  max-height: 500px !important;
}
.overflow-y-auto {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
.admin-scroll-table .admin-table {
  min-width: 760px;
}
.admin-scroll-table .admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-dark);
}
.admin-download-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
}
.admin-download-panel .button {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}
.admin-section-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.admin-member-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: min(100%, 34rem);
}
.admin-member-search .field-input {
  min-width: min(100%, 20rem);
  height: 2.55rem;
}
.admin-tab-panel .admin-mobile-list {
  display: none !important;
}
.admin-member-link { color: var(--point-gold); font-weight: 800; text-decoration: none; }
.admin-member-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    padding: 18px;
    margin-bottom: 26px;
}
.admin-member-summary > div {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: #f9fafb;
}

/* Flash Messages */
.flash-list {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}
.flash {
    padding: 14px 18px;
    border-radius: 8px;
    background: var(--surface-dark);
    border-left: 4px solid var(--point-gold);
    font-weight: 600;
    box-shadow: var(--soft-shadow);
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

/* Footer */
.site-footer { padding: 30px 24px; text-align: center; border-top: 1px solid #eef0f2; margin-top: auto; background: #fff; }
.footer-inner { max-width: 800px; margin: 0 auto; color: var(--text-muted); font-size: 0.85rem; }
.admin-settings-footer { margin-top: 14px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.admin-settings-footer a { color: var(--point-gold); font-weight: 800; text-decoration: none; }
.footer-ad-section { max-width: 1120px; margin: 0 auto 26px; }
.footer-ad-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}
.footer-ad-slot {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    border: 0;
    background: var(--surface-dark);
    box-shadow: var(--soft-shadow);
    aspect-ratio: 16 / 7;
    text-decoration: none;
}
.footer-ad-slot.is-empty {
    border: 1px dashed #e5e7eb;
    box-shadow: none;
}
.footer-ad-empty {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 900;
}
.footer-ad-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.footer-ad-title {
    position: absolute;
    left: 10px;
    bottom: 8px;
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
.tan-time-badge {
    color: var(--point-gold);
    font-weight: 800;
    font-size: 0.85rem;
}
.admin-settings-section { padding: 22px; }
.ad-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.ad-settings-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.02);
}
.ad-settings-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.settings-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.86rem;
}

/* 공용 계정 경고 배너 */
.alert-banner {
    background: #fff1f2;
    border: 0;
    border-radius: var(--radius);
    padding: 14px 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #991b1b;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* 게스트 경고 배너 (정보수정 유도) */
.guest-warning-banner {
    background: #fffbeb;
    border: 0;
    border-radius: var(--radius);
    padding: 14px 20px;
    margin: 12px auto 0;
    max-width: 600px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--point-gold);
    text-align: center;
}

/* 상태 필 */
.status-pill { padding: 3px 9px; border-radius: 8px; font-size: 0.78rem; font-weight: 800; }
.status-ok { background: rgba(0, 204, 102, 0.1); color: #00cc66; border: 1px solid rgba(0,204,102,0.3); }
.status-danger { background: rgba(255, 77, 77, 0.1); color: var(--danger); border: 1px solid rgba(255,77,77,0.3); }
.verification-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.verification-invite-cell {
    min-width: 180px;
}
.verification-invite-cell small {
    display: block;
    max-width: 260px;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.admin-file-link {
    color: var(--point-gold);
    font-size: 0.84rem;
    font-weight: 900;
    text-decoration: none;
}
.verification-request-card .admin-mobile-address {
    overflow-wrap: anywhere;
}

/* 회원 초대장 */
.invite-quick-form { padding: 0; overflow: hidden; }
.quick-button {
    width: 100%;
    height: 100%;
    min-height: 54px;
    border: 0;
    background: transparent;
    color: inherit;
    display: grid;
    place-items: center;
    gap: 6px;
    cursor: pointer;
}
.invite-home-panel { margin: 0 0 22px; padding: 18px; }
.invite-panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.invite-mini-list { display: grid; gap: 8px; margin-top: 14px; }
.invite-mini-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: #f9fafb;
}
.muted-small { color: var(--text-muted); font-size: 0.82rem; }
.invite-card { max-width: 760px; margin: 0 auto; }
.invite-field { display: grid; gap: 8px; margin-bottom: 16px; }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.invite-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(212,175,55,0.08);
}

/* 중앙 핵심 액션 스트립 */
.community-action-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 0 auto 18px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    max-width: 760px;
}
.action-strip-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.action-kicker {
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(212,175,55,0.12);
    color: #8a6d1d;
    font-size: 0.72rem;
    font-weight: 900;
}
.action-strip-title strong {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 900;
    white-space: nowrap;
}
.action-strip-title span:not(.action-kicker) {
    color: var(--text-muted);
    font-size: 0.86rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.action-strip-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.action-strip-links a,
.action-strip-links button {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 8px;
    border-radius: 8px;
    background: #f9fafb;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.78rem;
    cursor: pointer;
    text-decoration: none;
}
.action-strip-links form { display: inline-flex; }
.action-strip-links a:hover,
.action-strip-links button:hover {
    color: var(--point-gold);
    background: rgba(212,175,55,0.1);
}
.action-strip-links .pwa-close {
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: 1rem;
}
.search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    padding: 9px;
    align-items: center;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}
.search-input {
    flex: 1;
    margin-bottom: 0;
    padding: 9px 11px;
    border-color: transparent;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.search-input:focus {
    border-color: rgba(212,175,55,0.45);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}
.search-button {
    white-space: nowrap;
    min-width: 72px;
    padding: 8px 13px;
}
.search-form .button {
    width: auto;
}

.fab-write {
    position: fixed;
    right: max(22px, calc((100vw - var(--container)) / 2 + 22px));
    bottom: 24px;
    z-index: 80;
    min-width: 104px;
    height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--point-gold);
    color: #1f2937;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(150, 120, 32, 0.24);
}
.fab-write:hover { transform: translateY(-2px); }
.fab-write-muted { background: #1f2937; color: #fff; }

/* 게시글 수정 영역 */
.post-actions { margin-top: 8px; display: flex; justify-content: flex-end; gap: 8px; }

/* Responsive */
@media (max-width: 768px) {
  .page-title { font-size: 1.8rem; }
  .nav { padding: 0 16px; min-height: 54px; }
  .nav-actions { gap: 3px; }
  .nav-link { padding: 6px 7px; font-size: 0.82rem; }
  .site-main { padding: 16px; }
  .community-action-strip { display: grid; justify-items: center; gap: 9px; padding: 10px; }
  .action-strip-title { justify-content: center; flex-wrap: wrap; text-align: center; }
  .action-strip-title span:not(.action-kicker) { white-space: normal; }
  .action-strip-links { flex-wrap: wrap; justify-content: center; }
.pwa-slim-copy { display: grid; gap: 2px; }
  .pwa-slim-copy span { white-space: normal; }
  .post-link { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .inline-form-row { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .invite-panel-head, .copy-row { grid-template-columns: 1fr; display: grid; }
  .fab-write { right: 16px; bottom: 18px; }
}

/* V2 growth UI */
.site-main,
.main-content {
  gap: 12px;
}
.compact-page-head {
  text-align: center;
  padding: 22px 0 14px;
}

.board-tabs,
.tab-container {
  justify-content: space-between;
  gap: 0;
}

.tab,
.tab-btn {
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
}

.post-list {
  gap: 8px;
}

.post-item {
  height: 54px;
  min-height: 54px;
  overflow: hidden;
}

.post-link {
  height: 54px;
  padding: 8px 12px;
  gap: 8px;
}

.post-copy {
  min-width: 0;
}

.post-title {
  font-size: 14px;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.post-meta {
  gap: 8px;
  font-size: 11px;
  line-height: 1.2;
}

.post-count {
  font-size: 11px;
  padding: 3px 8px;
  white-space: nowrap;
}

.badge-notice,
.badge-popular,
.badge-poll {
  font-weight: 900;
  margin-right: 4px;
}

.badge-notice { color: var(--point-gold); }
.badge-popular { color: #0f172a; }
.badge-poll { color: #2563eb; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.page-link {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 800;
}

.page-link.is-current {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.fab-write {
  background: #0f172a;
  color: #fff;
  border: 1px solid var(--point-gold);
}

.locked-preview-wrapper {
  position: relative;
}

.locked-content {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.join-cta-overlay {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  padding: 18px;
  text-align: center;
  z-index: 10;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.poll-card,
.poll-compose {
  padding: 16px;
}

.poll-compose-fields {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.poll-vote-form,
.poll-result-list {
  display: grid;
  gap: 10px;
}

.poll-option-button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: var(--text-main);
  font-weight: 800;
  text-align: left;
}

.poll-result {
  display: grid;
  gap: 6px;
}

.poll-result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.poll-bar {
  height: 8px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.poll-bar span {
  display: block;
  height: 100%;
  background: var(--point-gold);
}

.push-soft-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  box-shadow: var(--soft-shadow);
}

.push-soft-banner button {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--point-gold);
  color: #0f172a;
  font-weight: 900;
}

.post-image img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 20px;
  border: 1px solid var(--border-color);
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 700;
}

@media (max-width: 768px) {
  .post-link {
    grid-template-columns: 1fr auto;
    padding: 8px 12px;
  }

  .board-tabs {
    overflow: visible;
  }

  .footer-ad-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .footer-ad-title,
  .footer-ad-empty {
    font-size: 0.62rem;
  }

  .push-soft-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-row {
    flex-direction: column;
  }
}

/* Premium B2B mobile app design system: deep navy & gold */
:root {
  --navy-deep: #0F172A;
  --navy-light: #1E293B;
  --gold-accent: #D4AF37;
  --gold-hover: #AA8C2C;
  --bg-light: #F8FAFC;
  --card-white: #FFFFFF;
  --border-light: #E2E8F0;
  --text-dark: #1E293B;
  --text-gray: #64748B;
  --text-muted: #94A3B8;
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.03);
  --bg-dark: var(--bg-light);
  --surface-dark: var(--card-white);
  --point-gold: var(--gold-accent);
  --text-main: var(--text-dark);
  --border-color: var(--border-light);
  --soft-shadow: var(--shadow-sm);
  --container: 480px;
  --radius: 12px;
  --radius-lg: 12px;
}

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

body {
  background:
    radial-gradient(circle at top, rgba(15, 23, 42, 0.08), transparent 32%),
    #dfe6f0;
  color: var(--text-dark);
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.site-shell {
  max-width: 480px;
  min-height: 100vh;
  margin: 16px auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-light);
  padding-bottom: 80px;
  position: relative;
  border: 6px solid var(--navy-deep);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.site-header {
  background: var(--card-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav {
  width: 100%;
  min-height: 57px;
  padding: 0 20px;
}

.brand {
  gap: 8px;
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-deep);
}

.brand-logo-mark {
  width: 26px;
  height: 26px;
  background: var(--navy-deep);
  filter: grayscale(1) contrast(1.08);
}

.brand-text {
  color: var(--navy-deep);
}

.nav-actions {
  gap: 4px;
  font-size: 13px;
}

.nav-link {
  padding: 6px 7px;
  border-radius: 8px;
  color: var(--text-gray);
  font-size: 13px;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--navy-deep);
  background: rgba(212, 175, 55, 0.12);
}

.site-main,
.main-content {
  width: 100%;
  padding: 16px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}
.app-install-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  margin: -16px -16px 0;
  padding: 0 14px;
  background: #F7F2DF;
  border-bottom: 1px solid #E8DFC4;
  color: var(--text-gray);
  font-size: 11px;
  line-height: 1;
}

.app-install-bar strong {
  color: var(--gold-hover);
  margin-right: 4px;
}

.app-install-bar .pwa-close {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--navy-deep);
  font-size: 15px;
  font-weight: 800;
}
.banner-badge {
  background: rgba(212, 175, 55, 0.13);
  color: var(--gold-hover);
}

.page-title,
.detail-title,
.section-title {
  color: var(--navy-deep);
}

.page-copy,
.muted-small {
  color: var(--text-gray);
}

.search-form {
  display: flex;
  background: var(--card-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 4px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
}

.search-input,
.search-form .field-input {
  flex: 1;
  border: 0;
  padding: 10px 14px;
  font-size: 14px;
  background: transparent;
}

.search-input:focus {
  border-color: transparent;
  box-shadow: none;
}

.search-button,
.search-form .button-primary {
  background: var(--gold-accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  min-width: auto;
  font-weight: 700;
}

.search-form svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
}

.community-action-strip {
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--card-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.action-strip-title strong {
  color: var(--navy-deep);
}

.action-strip-links a,
.action-strip-links button {
  background: #F8FAFC;
  color: var(--text-gray);
  border: 1px solid transparent;
}

.action-strip-links a:hover,
.action-strip-links button:hover {
  color: var(--navy-deep);
  background: rgba(212, 175, 55, 0.12);
}
.board-tabs,
.tab-container {
  display: flex;
  justify-content: space-between;
  gap: 0;
  margin-top: 4px;
  margin-bottom: 0;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0;
}

.tab,
.tab-btn {
  padding: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-gray);
  position: relative;
  border-bottom: 0;
}

.tab.active,
.tab-btn.active {
  color: var(--navy-deep);
  border-bottom: 0;
}

.tab.active::after,
.tab-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: var(--gold-accent);
  border-radius: 2px;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.post-item {
  height: 54px;
  min-height: 54px;
  padding: 0;
  border-bottom: 1px solid var(--border-light);
  border-radius: 0;
  box-shadow: none;
  display: block;
}

.post-item:last-child {
  border-bottom: 0;
}

.post-item:hover {
  transform: none;
}

.post-link {
  height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.post-title {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-item:hover .post-title {
  color: var(--text-dark);
}

.post-item .post-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-gray);
  font-size: 11px;
  line-height: 1.2;
}

.detail-card .post-meta,
.comment-card .post-meta {
  justify-content: flex-start;
}

.author-badge {
  padding: 0;
  background: transparent;
  color: var(--text-gray);
  font-size: 11px;
  font-weight: 700;
}

.tan-time-badge,
.tanning-time {
  color: var(--gold-accent);
  font-weight: 800;
}

.post-count {
  padding: 0;
  background: transparent;
  color: var(--text-gray);
  font-size: 11px;
  white-space: nowrap;
}

.badge-notice {
  color: var(--gold-accent);
  font-weight: 900;
}

.badge-popular {
  color: #EF4444;
  font-weight: 900;
}

.badge-poll {
  color: #2563EB;
  font-weight: 900;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0;
}

.page-link,
.page-btn {
  min-width: 32px;
  width: auto;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--card-white);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.page-link.is-current,
.page-btn.active {
  background: var(--navy-deep);
  color: #fff;
  border-color: var(--navy-deep);
}

.surface,
.detail-card,
.comment-card,
.reply-card,
.form-card,
.poll-card,
.notice-item {
  background: var(--card-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.detail-card,
.comment-card,
.reply-card,
.form-card,
.poll-card {
  padding: 16px;
}

.post-body,
.comment-content {
  color: var(--text-dark);
}

.button-primary {
  background: var(--gold-accent);
  color: #fff;
}

.button {
  width: auto;
}

.button-primary:hover {
  background: var(--gold-hover);
}

.button-ghost {
  background: var(--card-white);
  color: var(--navy-deep);
  border: 1px solid var(--border-light);
}

.field-input {
  background: var(--card-white);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
}

.field-input:focus {
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.footer-ad-section {
  width: 100%;
  max-width: none;
  margin: 4px 0 16px;
  padding: 0 16px;
}

.footer-ad-grid,
.ad-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.footer-ad-slot,
.ad-slot {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #F1F5F9;
  border: 1px dashed var(--text-muted);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  font-size: 11px;
  font-weight: 700;
}

.footer-ad-slot:not(.is-empty),
.ad-slot.filled {
  background: var(--navy-deep);
  color: var(--gold-accent);
  border: 1px solid var(--navy-deep);
}

.site-footer {
  padding: 0 0 12px;
  border-top: 0;
  background: var(--bg-light);
}

.footer-inner {
  padding: 0 16px;
  font-size: 11px;
  color: var(--text-muted);
}

.fab-write {
  position: fixed;
  bottom: 20px;
  right: 50%;
  transform: translateX(216px);
  width: 54px;
  min-width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 50%;
  background: var(--navy-deep);
  color: #fff;
  border: 2px solid var(--gold-accent);
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.3);
  font-size: 0;
}

.fab-write::before {
  content: "+";
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
}

.fab-write:hover {
  transform: translateX(216px) translateY(-2px);
}

.locked-content {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.locked-preview-wrapper {
  position: relative;
}

.join-cta-overlay {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  padding: 18px;
  text-align: center;
  z-index: 10;
}

@media (max-width: 480px) {
  body {
    background: var(--bg-light);
  }

  .site-shell {
    max-width: none;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav {
    padding: 0 16px;
  }

  .nav-link {
    font-size: 12px;
    padding: 6px 5px;
  }

  .fab-write {
    right: 20px;
    transform: none;
  }

  .fab-write:hover {
    transform: translateY(-2px);
  }
}

/* Exact mobile mockup pass */
@media (min-width: 481px) {
  .site-shell {
    width: min(390px, calc(100vw - 48px));
    max-width: 390px;
    min-height: min(760px, calc(100vh - 32px));
    max-height: calc(100vh - 32px);
    margin: 16px auto;
    border: 5px solid #0F172A;
    border-radius: 28px;
    overflow: hidden;
  }

  .site-main {
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  min-height: 47px;
  padding: 0 10px;
}

.brand {
  font-size: 15px;
  gap: 5px;
}

.brand-logo-mark {
  width: 19px;
  height: 19px;
  border-radius: 50%;
}

.nav-actions {
  gap: 7px;
}

.nav-link {
  padding: 3px 2px;
  background: transparent;
  color: var(--text-gray);
  font-size: 10px;
  font-weight: 700;
}

.nav-link.is-active {
  color: var(--navy-deep);
  background: transparent;
}

.site-main {
  padding: 0 10px 10px;
  gap: 8px;
}

.app-install-bar {
  min-height: 24px;
  margin: 0 -10px;
  padding: 0 10px;
  font-size: 9px;
}

.search-form {
  min-height: 39px;
  border-radius: 8px;
  padding: 4px;
}

.search-input,
.search-form .field-input {
  padding: 8px 10px;
  font-size: 11px;
}

.search-button,
.search-form .button-primary {
  width: 34px;
  min-width: 34px;
  height: 32px;
  padding: 0;
  border-radius: 7px;
}

.search-form svg {
  width: 15px;
  height: 15px;
}
.board-tabs,
.tab-container {
  margin-top: 2px;
  border-bottom-width: 1px;
}

.tab,
.tab-btn {
  padding: 0 0 7px;
  font-size: 11px;
  font-weight: 800;
}

.tab.active::after,
.tab-btn.active::after {
  bottom: -1px;
  height: 2px;
}

.post-section {
  margin-top: 0;
}

.post-list {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
}

.post-item {
  height: 42px;
  min-height: 42px;
}

.post-link {
  height: 42px;
  padding: 5px 0;
}

.post-title {
  font-size: 10.5px;
  font-weight: 850;
  margin-bottom: 1px;
}

.post-item .post-meta {
  font-size: 9px;
}

.author-badge {
  font-size: 9px;
}

.tanning-time {
  margin-left: auto;
  font-size: 9px;
}

.badge-notice,
.badge-popular,
.badge-poll {
  margin-right: 2px;
}

.pagination {
  margin: 2px 0 0;
}

.page-link {
  min-width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 10px;
}

.footer-ad-section {
  padding: 0 10px;
  margin: 4px 0 8px;
}

.footer-ad-grid {
  gap: 5px;
}

.footer-ad-slot {
  border-radius: 6px;
}

.footer-inner {
  padding: 0 10px;
  font-size: 8px;
}

.fab-write {
  width: 42px;
  min-width: 42px;
  height: 42px;
  bottom: 14px;
  transform: translateX(min(174px, calc(50vw - 34px)));
  border-width: 2px;
}

.fab-write::before {
  font-size: 23px;
}

.fab-write:hover {
  transform: translateX(min(174px, calc(50vw - 34px))) translateY(-2px);
}

@media (min-width: 481px) and (max-width: 760px) {
  .site-shell {
    width: min(340px, calc(100vw - 32px));
  }

  .fab-write {
    transform: translateX(min(149px, calc(50vw - 34px)));
  }

  .fab-write:hover {
    transform: translateX(min(149px, calc(50vw - 34px))) translateY(-2px);
  }
}

@media (max-width: 480px) {
  .site-main {
    padding: 0 10px 10px;
  }

  .app-install-bar {
    margin: 0 -10px;
  }

  .post-item,
  .post-link {
    height: 44px;
    min-height: 44px;
  }
}

/* Requested rendering cleanup: real posts, compact quick menu, active ads only */
.ad-flex-container {
  display: flex;
  width: 100%;
  gap: 8px;
  margin-top: 8px;
}

.ad-flex-container .ad-slot {
  flex: 1;
  height: 60px;
  aspect-ratio: auto;
  background: #0F172A;
  color: #D4AF37;
  border: 0;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-align: center;
}

.ad-flex-container .ad-slot img,
.ad-flex-container .ad-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Profile/edit screen refinement */
.profile-page-head {
  text-align: left;
  padding: 8px 0 2px;
}

.profile-page-head .eyebrow {
  margin: 0 0 2px;
  color: var(--gold-hover);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.profile-page-head .page-title {
  margin: 0;
  color: var(--navy-deep);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
}

.profile-form-card {
  padding: 12px;
  border-radius: 12px;
}

.profile-form-card .form-grid {
  display: grid;
  gap: 10px;
}

.profile-form-card .field {
  gap: 5px;
}

.profile-form-card .field-label {
  color: var(--text-gray);
  font-size: 10px;
  line-height: 1.25;
  font-weight: 800;
}

.profile-form-card .field-input {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.25;
}

.profile-form-card p {
  font-size: 10px !important;
  line-height: 1.45;
}

.profile-form-card .button {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11px;
}

.profile-form-card .button-row,
.profile-form-card .form-actions {
  gap: 8px;
  margin-top: 12px;
}

.guest-warning-banner {
  padding: 9px 10px;
  margin: 8px 0 0;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.45;
}

/* Ad strip final guard: prevent square image regressions */
.site-footer .ad-flex-container {
  display: flex !important;
  width: 100%;
  gap: 8px;
  margin-top: 8px;
}

.site-footer .ad-flex-container .ad-slot {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 60px !important;
  aspect-ratio: auto !important;
  border-radius: 12px;
  background: #0F172A;
  color: #D4AF37;
  border: 0;
}

.site-footer .ad-flex-container .ad-slot img,
.site-footer .ad-flex-container .ad-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stable write action and detail-only tanning reaction */
.site-shell {
  position: relative;
}

.fab-write {
  position: absolute !important;
  right: 14px !important;
  bottom: 86px !important;
  transform: none !important;
  z-index: 320;
}

.fab-write:hover {
  transform: translateY(-2px) !important;
}

.post-like-panel {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
}

.post-like-submit {
  width: 2.75rem;
  height: 2.75rem;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--navy-deep);
  border: 1px solid rgba(148, 163, 184, 0.34);
  box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.post-like-submit:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0.65rem 1.4rem rgba(15, 23, 42, 0.11);
}

.post-like-submit:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.post-like-submit.is-liked {
  border-color: rgba(239, 68, 68, 0.44);
  background: #fff7f7;
}

.post-like-submit .like-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(0.02em);
}

/* Rotating wholesale ad carousel */
.site-footer .footer-ad-section {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 10px;
  padding: 0 10px;
}

.site-footer .ad-carousel {
  position: relative;
  width: 100%;
  height: 64px;
  overflow: hidden;
  border-radius: 12px;
  background: #0F172A;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
}

.site-footer .ad-carousel-track {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 520ms ease;
  will-change: transform;
}

.site-footer .ad-slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  width: 100%;
  height: 100%;
  background: #0F172A;
  color: #D4AF37;
  text-align: center;
  overflow: hidden;
}

.site-footer .ad-slide.is-active {
  z-index: 1;
}

.site-footer .ad-slide img,
.site-footer .ad-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-footer .ad-slide span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.site-footer .ad-carousel-dots {
  position: absolute;
  right: 8px;
  bottom: 7px;
  z-index: 4;
  display: flex;
  gap: 4px;
}

.site-footer .ad-carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.50);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.20);
}

.site-footer .ad-carousel-dot.is-active {
  width: 14px;
  background: #D4AF37;
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .ad-carousel-track {
    transition: none;
  }
}

/* Anonymous compose polish */
.post-compose-card {
  padding: 14px;
}

.anonymous-notice {
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: #fbf7ea;
  border: 1px solid rgba(212, 175, 55, 0.22);
}

.anonymous-notice .author-badge {
  color: var(--text-gray);
  font-size: 10px;
  font-weight: 800;
}

.anonymous-note {
  flex-basis: 100%;
  color: var(--text-gray);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.locked-category {
  min-height: 39px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 9px;
  background: #f8fafc;
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.post-compose-card .form-grid {
  gap: 13px;
}

.post-compose-card .field {
  gap: 6px;
}

.post-compose-card .field-label {
  color: var(--text-gray);
  font-size: 11px;
  font-weight: 900;
}

.post-compose-card .field-input {
  min-height: 39px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 12px;
}

.post-compose-card .textarea-input {
  min-height: 160px;
  line-height: 1.55;
}

.poll-compose {
  padding: 0;
}

.poll-compose-fields {
  margin-top: 10px;
  padding: 13px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
}

.poll-compose-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
}

.poll-compose-head strong {
  color: var(--navy-deep);
  font-size: 12px;
}

.poll-compose-head span {
  color: var(--text-gray);
  font-size: 9px;
  font-weight: 700;
  text-align: right;
}

/* Post list frame: keep feed rows clearly separated like a mobile app */
.post-list {
  border: 1px solid var(--border-light) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #fff !important;
}

.post-list .post-item {
  border-bottom: 1px solid #e5e7eb !important;
  background: #fff !important;
}

.post-list .post-item:last-child {
  border-bottom: 0 !important;
}

.post-list .post-title {
  display: block;
  width: 100%;
}

/* Pinned admin notices and visible popular ranking */
.pinned-notice-list {
  display: grid;
  gap: 0;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 10px;
  overflow: hidden;
  background: #fffbeb;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.04);
}

.pinned-notice-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  color: var(--navy-deep);
  font-size: 11px;
  line-height: 1.25;
}

.pinned-notice-item:last-child {
  border-bottom: 0;
}

.pinned-notice-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.post-list .post-item.is-popular-row {
  background: linear-gradient(90deg, #fffaf0 0%, #ffffff 72%) !important;
}

.post-list .post-item.is-popular-row .post-link {
  border-left: 3px solid var(--gold-accent);
  padding-left: 9px;
}

.badge-popular {
  display: inline-flex;
  align-items: center;
  color: #EF4444 !important;
  font-weight: 950 !important;
}

/* Desktop layout override: keep the app-like mobile UI on phones, but use
   a wider framed lounge on real desktop screens. */
@media (min-width: 900px) {
  :root {
    --container: 1240px;
  }

  html,
  body {
    min-height: 100%;
    background: var(--bg-light);
  }

  .site-shell {
    width: min(1320px, calc(100vw - 24px));
    max-width: 1320px;
    min-height: calc(100vh - 24px);
    max-height: none;
    margin: 12px auto;
    border: 5px solid #0F172A;
    border-radius: 26px;
    overflow: visible;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
    background: var(--bg-light);
  }

  .site-header {
    border-radius: 21px 21px 0 0;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
  }

  .nav {
    width: min(100%, var(--container));
    min-height: 64px;
    margin: 0 auto;
    padding: 0 28px;
  }

  .brand {
    font-size: 20px;
    gap: 10px;
  }

  .brand-logo-mark {
    width: 30px;
    height: 30px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 10px;
  }

  .site-main {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 30px 30px 96px;
    overflow: visible;
  }
.banner-badge {
    font-size: 13px;
    padding: 5px 11px;
  }

  .page-title {
    font-size: 34px;
    line-height: 1.22;
    margin-bottom: 8px;
  }

  .page-copy {
    font-size: 17px;
    line-height: 1.65;
  }

  .search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }

  .search-button {
    width: auto;
    min-width: 96px;
  }

  .board-tabs,
  .tab-container {
    overflow-x: visible;
    gap: 22px;
  }

  .post-link {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 20px 22px;
  }

  .post-title {
    font-size: 19px;
  }

  .post-meta {
    font-size: 15px;
  }

  .post-count {
    min-width: 84px;
  }

  .surface,
  .post-item,
  .notice-item,
  .form-card,
  .detail-card,
  .comment-card,
  .reply-card,
  .stat-card,
  .admin-card {
    border-radius: 16px;
  }

  .fab-write {
    position: fixed !important;
    right: max(28px, calc((100vw - var(--container)) / 2 + 28px)) !important;
    bottom: 28px !important;
    z-index: 500;
  }

  .site-footer {
    max-width: none;
  }

  .footer-inner,
  .footer-ad-section {
    width: min(100%, var(--container));
    max-width: var(--container);
  }
}

@media (max-width: 899px) {
  .page-title {
    font-size: 24px;
    line-height: 1.25;
  }

  .page-copy {
    font-size: 14px;
    line-height: 1.55;
  }

  .tab-btn,
  .tab {
    font-size: 13px;
  }

  .post-title {
    font-size: 14px;
    line-height: 1.38;
  }
}

/* Issue fix pass: board alignment, resource labels, PWA controls */
.app-install-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pwa-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.pwa-install-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}

.badge-resource {
  display: inline-flex;
  align-items: center;
  color: #2563EB !important;
  font-weight: 950 !important;
  white-space: nowrap;
}

.post-copy {
  min-width: 0;
}

.post-title {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

@media (min-width: 900px) {
  .site-main {
    font-size: 16px;
  }
.board-tabs,
  .tab-container {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid var(--border-light);
  }

  .tab-btn,
  .tab {
    justify-content: center;
    padding: 14px 10px;
    font-size: 16px;
  }

  .post-list .post-link {
    min-height: 76px;
  }
}

@media (max-width: 899px) {
  .app-install-bar {
    align-items: flex-start;
    padding: 10px 12px;
  }

  .app-install-bar > span {
    min-width: 0;
    line-height: 1.35;
  }

  .pwa-actions {
    align-self: center;
  }

  .board-tabs,
  .tab-container {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
  }

  .tab-btn,
  .tab {
    min-width: 0;
    padding: 10px 3px;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
    word-break: keep-all;
  }

  .post-list {
    border-radius: 12px !important;
  }

  .post-list .post-item {
    width: 100%;
    overflow: visible;
  }

  .post-list .post-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 62px;
    padding: 13px 12px;
  }

  .post-list .post-title {
    display: block;
    width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.45;
  }

  .badge-notice,
  .badge-popular,
  .badge-poll,
  .badge-resource {
    margin-right: 4px;
    vertical-align: baseline;
  }

  .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.2;
  }

  .post-count {
    align-self: center;
    min-width: 34px;
    font-size: 12px;
  }

  .fab-write {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .site-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .post-list .post-link {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-count {
    justify-self: start;
  }
}

/* Extended FAB */
.fab-write {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 52px;
  padding: 12px 26px !important;
  border-radius: 9999px !important;
  background: var(--navy-deep);
  color: #fff;
  border: 2px solid var(--gold-accent);
  font-size: 15px !important;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.fab-write::before {
  content: none !important;
}

.fab-write-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
}

.fab-write-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-size: 15px;
}

/* Pinpoint UI refinements: logo stack, extended FAB, post row clamping */
.brand {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  line-height: 1;
  text-decoration: none;
}

.brand-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.brand-domain {
  display: block;
  margin-top: -1px;
  padding-left: 37px;
  color: var(--navy-deep);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-domain-dot {
  color: var(--gold-accent);
}

.brand-logo-mark {
  filter: none !important;
  background: transparent;
}

.fab-write {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 52px !important;
  padding: 0 26px !important;
  border-radius: 9999px !important;
  background: var(--navy-deep) !important;
  color: #fff !important;
  border: 2px solid var(--gold-accent) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.26) !important;
}

.fab-write-icon,
.fab-write-label {
  pointer-events: none;
}

.post-list .post-item {
  overflow: hidden !important;
}

.post-list .post-link {
  box-sizing: border-box;
  width: 100%;
  padding-left: 22px !important;
  padding-right: 16px !important;
  overflow: hidden;
}

.post-list .post-copy {
  min-width: 0;
  overflow: hidden;
}

.post-list .post-title {
  display: block !important;
  max-width: 100%;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.post-list .badge-notice,
.post-list .badge-popular,
.post-list .badge-poll,
.post-list .badge-resource {
  display: inline;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .brand-domain {
    padding-left: 39px;
    font-size: 12px;
  }

  .post-list .post-link {
    padding-left: 28px !important;
    padding-right: 22px !important;
  }

  .post-list .post-item.is-popular-row .post-link {
    padding-left: 24px !important;
  }
}

@media (max-width: 420px) {
  .brand-domain {
    padding-left: 36px;
    font-size: 10px;
  }

  .post-list .post-link {
    grid-template-columns: minmax(0, 1fr) !important;
    padding-left: 18px !important;
    padding-right: 14px !important;
  }
}

@media (max-width: 820px) {
  .admin-actions {
    gap: 8px;
  }

  .admin-actions .button {
    flex: 1 1 140px;
    min-width: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .stat-card {
    padding: 16px 14px;
  }

  .stat-value {
    font-size: 1.7rem;
  }

  .table-wrap {
    padding: 12px;
  }

  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table tr,
  .admin-table th,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
  }

  .admin-table tr:last-child {
    margin-bottom: 0;
  }

  .admin-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    text-align: right;
    font-size: 0.94rem;
    word-break: break-word;
  }

  .admin-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .admin-table td::before {
    content: attr(data-label);
    flex: 0 0 92px;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
  }

  .admin-table td > * {
    text-align: right;
  }

  .admin-table td form {
    margin-left: auto;
  }

  .admin-table td .status-pill,
  .admin-table td .mono-id {
    display: inline-flex;
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .page-title {
    font-size: 1.45rem !important;
    line-height: 1.15;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 14px 12px;
  }

  .stat-label {
    font-size: 0.78rem;
  }

  .stat-value {
    font-size: 1.45rem;
  }

  .admin-actions {
    gap: 8px;
  }

  .admin-actions .button {
    flex: 1 1 calc(50% - 8px);
    padding-inline: 12px;
    min-height: 42px;
    font-size: 0.88rem;
  }

  .table-wrap {
    padding: 10px;
    border-radius: 20px;
  }

  .admin-table tr {
    padding: 10px;
    border-radius: 14px;
  }

  .admin-table td {
    gap: 10px;
    padding: 8px 0;
    font-size: 0.88rem;
  }

  .admin-table td::before {
    flex-basis: 78px;
    font-size: 0.74rem;
  }

  .admin-member-summary {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .admin-member-summary > div {
    padding: 10px;
  }
}

/* Community board redesign: reference mockup polish */
:root {
  --container: 1280px;
  --board-bg: #F7F9FC;
  --board-shell: #FBFCFF;
  --board-card: #FFFFFF;
  --navy-deep: #0F172A;
  --navy-light: #24324A;
  --gold-accent: #D4A72C;
  --gold-hover: #B98B18;
  --border-light: #E3E8F0;
  --text-dark: #17233A;
  --text-gray: #64748B;
  --text-muted: #91A0B4;
  --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.09);
  --shadow-gold: 0 14px 30px rgba(212, 167, 44, 0.26);
  --bg-light: var(--board-bg);
  --card-white: var(--board-card);
  --point-gold: var(--gold-accent);
  --surface-dark: var(--board-card);
  --bg-dark: var(--board-bg);
  --text-main: var(--text-dark);
  --border-color: var(--border-light);
}

html,
body {
  min-width: 320px;
  background: var(--board-bg) !important;
}

body {
  color: var(--text-dark);
}

.site-shell {
  width: min(1510px, calc(100vw - 48px)) !important;
  max-width: 1510px !important;
  min-height: calc(100vh - 44px) !important;
  margin: 22px auto !important;
  padding-bottom: 0 !important;
  background: var(--board-shell) !important;
  border: 1px solid rgba(212, 167, 44, 0.72) !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12) !important;
}

.site-shell::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
}

.site-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: none !important;
}

.nav {
  width: 100% !important;
  max-width: none !important;
  min-height: 98px !important;
  padding: 0 50px !important;
}

.brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  text-decoration: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.brand-logo-mark {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: var(--navy-deep) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.brand-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  color: var(--navy-deep) !important;
  font-size: 31px !important;
  font-weight: 900 !important;
  line-height: 0.96;
  letter-spacing: 0;
}

.brand-domain-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-domain-line {
  display: inline-block;
  width: 28px;
  height: 2px;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.9);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.08);
}

.brand-domain {
  margin-top: 0;
  padding-left: 0 !important;
  color: var(--navy-light) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1;
}

.brand-domain-dot {
  color: var(--gold-accent) !important;
}

.nav-actions {
  gap: 32px !important;
}

.nav-link {
  position: relative;
  padding: 12px 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  color: var(--navy-light) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--navy-deep) !important;
  background: transparent !important;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--gold-accent);
  border-radius: 9999px;
}

.site-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 34px 48px 28px !important;
  gap: 18px !important;
}

.app-install-bar {
  min-height: 52px !important;
  margin: 0 0 14px !important;
  padding: 0 18px !important;
  background: linear-gradient(90deg, #FFF8E6, #FFFDF6) !important;
  border: 1px solid #F0E4C8 !important;
  border-radius: 6px !important;
  color: var(--navy-light) !important;
  font-size: 15px !important;
  box-shadow: 0 8px 20px rgba(212, 167, 44, 0.08);
}

.app-install-bar strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  margin-right: 12px;
  border-radius: 6px;
  background: rgba(212, 167, 44, 0.16);
  color: var(--gold-hover) !important;
  font-weight: 900;
}

.pwa-actions {
  gap: 18px !important;
}

.pwa-install-button {
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  background: var(--gold-accent) !important;
  color: #fff !important;
  box-shadow: var(--shadow-gold);
  font-size: 15px !important;
}

.pwa-close {
  color: var(--navy-deep) !important;
}

.inapp-exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(10px);
}

.inapp-exit-card {
  width: min(24rem, 100%);
  padding: 1.35rem;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--navy-deep);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
  text-align: center;
}

.inapp-exit-card strong {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.02rem;
  font-weight: 900;
}

.inapp-exit-card p {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.62;
}

.pwa-install-toast {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 5000;
  width: min(31rem, calc(100vw - 2rem));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.15);
}

.pwa-install-toast[hidden] {
  display: none;
}

.pwa-install-toast p {
  margin: 0;
  color: var(--navy-deep);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.42;
}

.pwa-install-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.pwa-install-actions .button {
  width: auto;
  min-height: 2.35rem;
  padding: 0 0.78rem;
  border-radius: 0.55rem;
  white-space: nowrap;
  font-size: 0.82rem;
}

.pwa-install-close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.ios-install-modal[hidden] {
  display: none !important;
}

.ios-install-modal {
  position: fixed;
  inset: 0;
  z-index: 6100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.ios-install-modal-open {
  overflow: hidden;
}

.ios-install-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
}

.ios-install-dialog {
  position: relative;
  width: min(100%, 25rem);
  padding: 1.15rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.9rem;
  background: #fff;
  color: var(--navy-deep);
  box-shadow: 0 1.4rem 3rem rgba(15, 23, 42, 0.22);
}

.ios-install-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 1rem;
  font-weight: 950;
}

.ios-install-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.75rem;
  border-radius: 0.85rem;
  background: #eff6ff;
  color: #1d4ed8;
}

.ios-install-icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.ios-install-dialog h2 {
  margin: 0 2.2rem 0.45rem 0;
  font-size: 1.08rem;
  font-weight: 950;
  letter-spacing: 0;
}

.ios-install-dialog p {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.62;
}

.ios-install-steps {
  display: grid;
  gap: 0.45rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.ios-install-steps li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.4rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.7rem;
  background: #f8fafc;
  color: #1e293b;
  font-size: 0.84rem;
  font-weight: 850;
}

.ios-install-steps span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: var(--gold-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
}

.ios-install-confirm {
  width: 100%;
  min-height: 2.65rem;
  margin-top: 0.95rem;
  border: 0;
  border-radius: 999px;
  background: var(--navy-deep);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 950;
}

.mobile-benefit-primary.is-install-unlocked {
  border-color: rgba(34, 197, 94, 0.62) !important;
  box-shadow: 0 0.55rem 1rem rgba(34, 197, 94, 0.16), 0 0 0 1px rgba(34, 197, 94, 0.12) inset;
}

@media (max-width: 560px) {
  .pwa-install-toast {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.78rem;
  }

  .pwa-install-actions {
    justify-content: space-between;
  }

  .pwa-install-actions .button {
    flex: 1 1 auto;
  }

  .inapp-exit-card {
    padding: 1.15rem;
  }
}

.search-form {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 56px !important;
  gap: 12px !important;
  align-items: center;
  min-height: 64px;
  margin: 0 !important;
  padding: 7px 7px 7px 58px !important;
  background: var(--board-card) !important;
  border: 1px solid rgba(226, 232, 240, 0.96) !important;
  border-radius: 18px !important;
  box-shadow: var(--shadow-sm) !important;
}

.search-form::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  background: no-repeat center / 22px 22px url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%2371849A' stroke-width='2.2'/%3E%3Cpath d='m16.2 16.2 4.1 4.1' fill='none' stroke='%2371849A' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.search-form .field-input,
.search-input {
  min-height: 48px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--navy-deep) !important;
  font-size: 17px !important;
  box-shadow: none !important;
}

.search-input::placeholder {
  color: #A1ADBD;
}

.search-button,
.search-form .button-primary {
  width: 56px !important;
  min-width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  border-radius: 14px !important;
  background: var(--gold-accent) !important;
  color: #fff !important;
  box-shadow: var(--shadow-gold) !important;
}

.search-form svg {
  width: 25px !important;
  height: 25px !important;
  stroke-width: 2.4 !important;
}
.tab-container,
.board-tabs {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  background: var(--board-card) !important;
  border: 1px solid rgba(226, 232, 240, 0.96) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.96) !important;
  border-radius: 16px 16px 0 0 !important;
  box-shadow: var(--shadow-sm) !important;
  overflow: hidden !important;
}

.tab-btn,
.tab {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 10px !important;
  color: var(--text-gray) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  border-bottom: 1px solid var(--border-light) !important;
}

.tab-btn.active,
.tab.active {
  color: var(--navy-deep) !important;
}

.tab-btn.active::after,
.tab.active::after {
  bottom: -1px !important;
  height: 3px !important;
  background: var(--gold-accent) !important;
}

.post-section {
  margin-top: -18px;
}

.post-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  background: var(--board-card) !important;
  border: 1px solid rgba(226, 232, 240, 0.96) !important;
  border-radius: 0 0 16px 16px !important;
  box-shadow: var(--shadow-sm) !important;
  overflow: hidden !important;
}
.post-list .post-item {
  height: auto !important;
  min-height: 0 !important;
  border-bottom: 1px solid var(--border-light) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: background-color 0.18s ease;
}

.post-list .post-item:last-child {
  border-bottom: 0 !important;
}

.post-list .post-item:hover {
  background: #FAFCFF !important;
}

.post-list .post-link {
  min-height: 64px !important;
  height: auto !important;
  width: 100%;
  padding: 0 28px !important;
}

.post-list .post-copy {
  min-width: 0;
}

.post-list .post-title {
  display: block !important;
  margin: 0 !important;
  color: var(--navy-deep) !important;
  font-size: 17px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.badge-notice,
.badge-popular,
.badge-poll,
.badge-resource,
.post-list .badge-notice,
.post-list .badge-popular,
.post-list .badge-poll,
.post-list .badge-resource {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-right: 8px !important;
  padding: 0 9px;
  border-radius: 6px;
  background: #FFFFFF;
  font-size: 15px;
  line-height: 1;
  font-weight: 900 !important;
  vertical-align: middle;
}

.badge-notice,
.post-list .badge-notice,
.badge-popular,
.post-list .badge-popular {
  color: #EF4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.56);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.08);
}

.badge-poll,
.post-list .badge-poll,
.badge-resource,
.post-list .badge-resource {
  color: #2563EB !important;
  border: 1px solid rgba(37, 99, 235, 0.5);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.pagination {
  gap: 12px !important;
  margin: 8px 0 0 !important;
}

.page-link,
.page-btn {
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  background: #fff !important;
  border: 1px solid var(--border-light) !important;
  color: var(--navy-light) !important;
  box-shadow: var(--shadow-sm) !important;
}

.page-link.is-current,
.page-btn.active {
  background: var(--navy-deep) !important;
  border-color: var(--navy-deep) !important;
  color: #fff !important;
}

.page-link.text-btn {
  color: var(--text-gray) !important;
}

.fab-write {
  position: fixed !important;
  right: max(72px, calc((100vw - 1510px) / 2 + 58px)) !important;
  bottom: 34px !important;
  min-height: 66px !important;
  padding: 0 34px !important;
  border-radius: 9999px !important;
  background: var(--navy-deep) !important;
  border: 2px solid var(--gold-accent) !important;
  color: #fff !important;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.32), 0 0 0 1px rgba(212, 167, 44, 0.18) !important;
  font-size: 18px !important;
}

.fab-write:hover {
  transform: translateY(-3px) !important;
}

.fab-write-icon {
  font-size: 28px !important;
}

.fab-write-label {
  font-size: 20px !important;
  font-weight: 900;
}

.site-footer {
  background: var(--board-shell) !important;
  padding: 0 48px 34px !important;
}

.footer-inner {
  color: var(--text-muted) !important;
  font-size: 14px !important;
  text-align: center;
}

@media (max-width: 899px) {
  .site-shell {
    width: min(100%, calc(100vw - 16px)) !important;
    min-height: calc(100vh - 16px) !important;
    margin: 8px auto !important;
    border-radius: 18px !important;
  }

  .nav {
    min-height: 76px !important;
    padding: 0 18px !important;
  }

  .brand-logo-mark {
    width: 34px !important;
    height: 34px !important;
  }

  .brand-text {
    font-size: 24px !important;
  }

  .brand-domain-row {
    gap: 9px;
  }

  .brand-domain-line {
    width: 22px;
  }

  .brand-domain {
    font-size: 12px !important;
  }

  .nav-actions {
    gap: 14px !important;
  }

  .nav-link {
    font-size: 14px !important;
    padding: 10px 0 !important;
  }

  .site-main {
    padding: 18px 14px 90px !important;
    gap: 14px !important;
  }

  .app-install-bar {
    min-height: 0 !important;
    padding: 12px !important;
    font-size: 13px !important;
  }

  .pwa-install-button {
    min-height: 34px !important;
    font-size: 12px !important;
  }

  .search-form {
    grid-template-columns: minmax(0, 1fr) 48px !important;
    min-height: 56px;
    padding: 5px 5px 5px 46px !important;
    border-radius: 14px !important;
  }

  .search-form::before {
    left: 17px;
    width: 18px;
    height: 18px;
    background-size: 18px 18px;
  }

  .search-form .field-input,
  .search-input {
    min-height: 44px !important;
    font-size: 14px !important;
  }

  .search-button,
  .search-form .button-primary {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
}
.tab-btn,
  .tab {
    min-height: 48px;
    padding: 0 4px !important;
    font-size: 12px !important;
  }

  .post-section {
    margin-top: -14px;
  }
.post-list .post-link {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 70px !important;
    padding: 13px 14px !important;
  }

  .post-list .post-title {
    white-space: normal !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  .post-list .post-meta {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    color: var(--text-gray);
    font-size: 12px;
  }
.badge-notice,
  .badge-popular,
  .badge-poll,
  .badge-resource,
  .post-list .badge-notice,
  .post-list .badge-popular,
  .post-list .badge-poll,
  .post-list .badge-resource {
    min-height: 24px;
    padding: 0 7px;
    font-size: 12px;
    border-radius: 5px;
  }

  .pagination {
    margin-top: 10px !important;
  }

  .page-link,
  .page-btn {
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 11px !important;
  }

  .fab-write {
    right: 18px !important;
    bottom: 18px !important;
    min-height: 52px !important;
    padding: 0 24px !important;
  }

  .fab-write-label {
    font-size: 16px !important;
  }

  .site-footer {
    padding: 0 14px 24px !important;
  }

  .footer-inner {
    font-size: 12px !important;
  }
}

@media (max-width: 520px) {
  .nav-actions {
    gap: 10px !important;
  }

  .nav-link {
    font-size: 12px !important;
  }

  .brand {
    gap: 10px !important;
  }

  .brand-copy {
    gap: 2px;
  }

  .brand-text {
    font-size: 20px !important;
  }

  .brand-domain {
    font-size: 11px !important;
  }

  .brand-domain-row {
    gap: 7px;
  }

  .brand-domain-line {
    width: 14px;
  }
}

/* Final UI pass: poll accordion, list thumbnails, uploaded lockup logo */
.brand.brand-lockup {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  text-decoration: none;
}

.brand-lockup-image {
  display: block;
  width: auto;
  height: 70px;
  max-width: min(100%, 360px);
  object-fit: contain;
}

.poll-compose {
  display: grid;
  gap: 10px;
}

.poll-compose-toggle {
  align-self: flex-start;
}

.poll-compose-fields[hidden] {
  display: none !important;
}

.post-list .post-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.post-copy-body {
  min-width: 0;
  flex: 1 1 auto;
}

.post-copy-side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.post-thumb {
  display: inline-flex;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  background: #F8FAFC;
  flex: 0 0 auto;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-list .badge-notice,
.post-list .badge-popular,
.post-list .badge-poll,
.post-list .badge-resource {
  margin-right: 6px !important;
  padding: 0 8px !important;
  min-height: 24px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

.post-list .post-title {
  display: block !important;
  margin: 0 !important;
  color: var(--navy-deep) !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0;
}

@media (max-width: 900px) {
  .brand-lockup-image {
    height: 58px;
    max-width: 290px;
  }
}

@media (max-width: 720px) {
  .post-list .post-copy {
    gap: 14px;
  }

  .post-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
  }
}

@media (max-width: 520px) {
  .brand-lockup-image {
    height: 46px;
    max-width: 220px;
  }

  .post-thumb {
    width: 72px;
    height: 72px;
  }
}

/* Admin dashboard mobile summaries */
.admin-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 18px;
}

.admin-download-actions .button {
  min-height: 42px;
}

.admin-integrated-download {
  background: var(--navy-deep) !important;
  border-color: var(--gold-accent) !important;
  color: #fff !important;
  box-shadow: 0 0.85rem 1.75rem rgba(15, 23, 42, 0.16) !important;
}

.admin-mobile-list {
  display: none;
}

@media (max-width: 820px) {
  .admin-tab-shell {
    gap: 14px;
  }

  .admin-tab-nav {
    margin: 0 -14px 10px;
    padding: 2px 14px 10px;
  }

  .admin-tab-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .admin-tab-panel .admin-dashboard-table {
    display: block !important;
  }

  .admin-scroll-table {
    max-height: 500px !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
  }

  .admin-scroll-table .admin-table {
    min-width: 720px !important;
    table-layout: auto !important;
  }

  .admin-dashboard-table {
    display: none !important;
  }

  .admin-mobile-list {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
  }

  .admin-mobile-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
  }

  .admin-mobile-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
  }

  .admin-mobile-card-head strong {
    min-width: 0;
    overflow: hidden;
    color: var(--navy-deep);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-mobile-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-gray);
    font-size: 11px;
    font-weight: 700;
  }

  .admin-mobile-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-mobile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .admin-mobile-stats.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-mobile-stats span {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 7px 6px;
    border-radius: 9px;
    background: #F8FAFC;
    text-align: center;
  }

  .admin-mobile-stats small {
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
  }

  .admin-mobile-stats b {
    min-width: 0;
    overflow: hidden;
    color: var(--navy-deep);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-mobile-address {
    margin: 0;
    color: var(--text-gray);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
  }

  .admin-mobile-card-actions {
    display: flex;
    justify-content: flex-end;
  }

  .admin-download-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-download-actions .button {
    min-width: 0;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .admin-scroll-table .admin-table {
    min-width: 680px !important;
  }

  .admin-mobile-card {
    padding: 10px;
  }

  .admin-mobile-card-head strong {
    font-size: 13px;
  }

  .admin-mobile-stats {
    gap: 5px;
  }

  .admin-mobile-stats span {
    padding: 6px 4px;
  }

  .admin-mobile-stats b {
    font-size: 10px;
  }
}

/* Admin table utility classes and stealth footer */
.w-full {
  width: 100% !important;
}

.whitespace-nowrap {
  white-space: nowrap !important;
}

.truncate {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.max-w-xs {
  max-width: 20rem;
}

.admin-table .admin-address-cell {
  text-align: left;
}

.admin-table .table-date {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-section-title-row [data-xlsx-download]:disabled {
  cursor: wait;
  opacity: 0.65;
}

.stealth-footer {
  width: 100%;
  margin-top: 48px;
  padding: 32px 16px;
  border-top: 1px solid #f9fafb;
  background: #fff;
  color: #d1d5db;
  text-align: center;
  font-size: 11px;
}

.stealth-footer-inner {
  max-width: 64rem;
  margin: 0 auto;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.stealth-footer-inner:hover {
  opacity: 1;
}

.stealth-footer-service {
  margin-bottom: 16px;
}

.stealth-footer-title {
  margin: 0 0 4px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
}

.stealth-footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  margin-bottom: 16px;
  line-height: 1.65;
}

/* Admin mobile compact tables: keep dashboard data visible at a glance. */
@media (max-width: 820px) {
  .admin-actions {
    gap: 8px !important;
  }

  .admin-actions .button {
    flex: 1 1 calc(50% - 8px) !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .stat-card {
    padding: 14px 10px !important;
  }

  .stat-label {
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  .stat-value {
    font-size: 24px !important;
  }

  .table-wrap {
    overflow: hidden !important;
    padding: 8px 6px !important;
    border-radius: 16px !important;
  }

  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table tr,
  .admin-table th,
  .admin-table td {
    display: revert !important;
    width: auto !important;
  }

  .admin-table {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }

  .admin-table thead {
    display: table-header-group !important;
  }

  .admin-table tbody {
    display: table-row-group !important;
  }

  .admin-table tr {
    display: table-row !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-table th,
  .admin-table td {
    display: table-cell !important;
    padding: 6px 3px !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.86) !important;
    text-align: center !important;
    vertical-align: middle !important;
    font-size: 9.5px !important;
    line-height: 1.24 !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  .admin-table th {
    color: var(--text-muted) !important;
    font-weight: 900 !important;
  }

  .admin-table td::before {
    display: none !important;
    content: none !important;
  }

  .admin-table td > * {
    text-align: inherit !important;
  }

  .admin-table td form {
    margin: 0 !important;
  }

  .admin-table .mono-id,
  .admin-table .status-pill {
    padding: 1px 3px !important;
    max-width: 100% !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: keep-all !important;
  }

  .admin-table .button-small {
    min-height: 24px !important;
    padding: 0 5px !important;
    font-size: 9px !important;
    border-radius: 6px !important;
  }
}

@media (max-width: 520px) {
  .table-wrap {
    padding: 7px 5px !important;
  }

  .admin-table th,
  .admin-table td {
    padding: 5px 2px !important;
    font-size: 8.4px !important;
    line-height: 1.2 !important;
  }

  .admin-table .mono-id,
  .admin-table .status-pill {
    font-size: 8px !important;
  }

  .admin-table .button-small {
    min-height: 22px !important;
    padding: 0 4px !important;
    font-size: 8px !important;
  }
}

/* Board list reference layout + bottom search */
.post-list {
  border-radius: 0 0 24px 24px !important;
}

.post-list .post-item {
  height: 96px !important;
  min-height: 96px !important;
  max-height: 96px !important;
  flex: 0 0 96px !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  box-sizing: border-box;
  background: #fff !important;
}

.post-list .post-link {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center !important;
  min-height: 96px !important;
  height: 96px !important;
  max-height: 96px !important;
  padding: 14px 24px !important;
  box-sizing: border-box;
  overflow: hidden !important;
}

.post-list .post-copy {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 28px !important;
  width: 100%;
  height: 68px !important;
  max-height: 68px !important;
  min-width: 0;
  overflow: hidden !important;
}

.post-copy-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  height: 68px !important;
  max-height: 68px !important;
  min-width: 0;
  overflow: hidden !important;
}

.post-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  min-width: 0;
}

.post-title-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin: 0;
}

.post-list .post-title {
  display: block !important;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  color: var(--navy-deep) !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  line-height: 1.18 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.post-list .badge-notice,
.post-list .badge-popular,
.post-list .badge-poll,
.post-list .badge-resource {
  min-height: 52px !important;
  padding: 0 22px !important;
  border-radius: 10px !important;
  font-size: 24px !important;
  font-weight: 900 !important;
}

.post-list .post-meta {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  max-height: 18px;
  overflow: hidden;
  color: #4E5A70;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;
}

.post-meta-author {
  font-weight: 750;
}

.post-meta-divider {
  color: #7A8495;
}

.post-meta-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}

.post-meta-stat svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post-copy-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.post-thumb,
.post-thumbnail-right {
  width: 68px !important;
  height: 68px !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.post-thumb-empty {
  opacity: 0;
}
@media (max-width: 900px) {
  .post-list .post-link {
    min-height: 96px !important;
    height: 96px !important;
    padding: 14px 20px !important;
  }

  .post-copy-body {
    gap: 6px;
  }

  .post-title-row {
    gap: 6px;
  }

  .post-list .post-title {
    font-size: 20px !important;
  }

  .post-list .badge-notice,
  .post-list .badge-popular,
  .post-list .badge-poll,
  .post-list .badge-resource {
    min-height: 34px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
  }

  .post-list .post-meta {
    gap: 8px;
    font-size: 13px;
  }

  .post-meta-stat svg {
    width: 17px;
    height: 17px;
  }

  .post-thumb,
  .post-thumbnail-right {
    width: 68px !important;
    height: 68px !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 620px) {
  .post-list .post-link {
    min-height: 96px !important;
    height: 96px !important;
    padding: 14px 12px !important;
  }

  .post-list .post-copy {
    gap: 10px !important;
  }

  .post-copy-body {
    gap: 6px;
  }

  .post-title-row {
    gap: 6px;
  }

  .post-list .post-title {
    font-size: 17px !important;
  }

  .post-list .badge-notice,
  .post-list .badge-popular,
  .post-list .badge-poll,
  .post-list .badge-resource {
    min-height: 28px !important;
    padding: 0 9px !important;
    font-size: 13px !important;
  }

  .post-list .post-meta {
    gap: 6px;
    font-size: 11px;
  }

  .post-meta-stat {
    gap: 4px;
  }

  .post-meta-stat svg {
    width: 14px;
    height: 14px;
  }

  .post-thumb,
  .post-thumbnail-right {
    width: 68px !important;
    height: 68px !important;
    border-radius: 9px !important;
  }
}

/* Compact board typography tuning */
.post-content-left,
.post-copy-body {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 68px !important;
  max-height: 68px !important;
  min-width: 0;
  margin: 0 !important;
  overflow: hidden !important;
}

.post-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  min-width: 0;
}

.post-title-badges {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex: 0 0 auto;
  margin: 0 !important;
}

.post-list .post-title {
  color: #222 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}

.post-list .post-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  margin: 0 !important;
  max-height: 18px !important;
  overflow: hidden !important;
  color: #888 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.post-meta-divider {
  color: #ddd !important;
  margin: 0 !important;
}

.post-meta-stat {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.post-meta-stat svg {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 2 !important;
}

.post-list .badge-notice,
.post-list .badge-popular,
.post-list .badge-poll,
.post-list .badge-resource {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.post-list .badge-popular,
.post-list .badge-notice {
  color: #ef4444 !important;
  background: #fff1f2 !important;
  border: 1px solid rgba(239, 68, 68, 0.72) !important;
}

.post-list .badge-poll,
.post-list .badge-resource {
  color: #2563eb !important;
  background: #eff6ff !important;
  border: 1px solid rgba(37, 99, 235, 0.72) !important;
}

@media (max-width: 620px) {
  .post-like-panel {
    margin-top: 0.8rem;
    padding-top: 0.75rem;
  }

  .post-like-submit {
    width: 2.45rem;
    height: 2.45rem;
  }

  .post-like-submit .like-icon {
    font-size: 1.18rem;
  }

  .post-list .post-meta {
    gap: 7px !important;
    font-size: 11px !important;
  }

  .post-meta-stat {
    gap: 3px !important;
  }

  .post-meta-stat svg {
    width: 14px !important;
    height: 14px !important;
  }

  .post-list .post-title {
    font-size: 15px !important;
  }
}

/* Inline SVG GNB controls and detail heart reaction */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.nav-icon-button {
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0 !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: var(--navy-deep) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 0.45rem 1rem rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 167, 44, 0.52) !important;
  background: #fff !important;
}

.nav-icon-button svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.notification-menu {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.notification-bell-button {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0.35rem 0.8rem rgba(239, 68, 68, 0.28);
  animation: notificationBadgePulse 1.45s ease-in-out infinite;
}

.notification-badge[hidden],
.notification-dropdown[hidden] {
  display: none !important;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 850;
  width: 18rem;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1.65rem 3.5rem rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(16px);
  transform-origin: top right;
}

.notification-dropdown:not([hidden]) {
  animation: notificationDropdownIn 0.22s ease both;
}

.notification-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.45rem 0.55rem;
  color: var(--navy-deep);
  font-size: 0.85rem;
  font-weight: 900;
}

.notification-dropdown-list {
  display: grid;
  gap: 0.35rem;
}

.notification-item {
  width: 100%;
  display: grid;
  gap: 0.22rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 0.55rem;
  background: #fff;
  color: var(--navy-deep);
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.notification-item:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 167, 44, 0.42);
  background: #fffdf7;
}

.notification-item.is-unread {
  border-color: rgba(212, 167, 44, 0.32);
  background: rgba(212, 167, 44, 0.07);
}

.notification-item-text {
  color: var(--navy-deep);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
}

.notification-item-time,
.notification-empty {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

.notification-empty {
  margin: 0;
  padding: 1rem 0.75rem;
  text-align: center;
}

.notification-page-card {
  display: grid;
  gap: 0.8rem;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.35rem);
}

.notification-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--navy-deep);
}

.notification-page-list {
  display: grid;
  gap: 0.45rem;
}

.notification-page-list form {
  margin: 0;
}

@media (max-width: 640px) {
  .notification-dropdown {
    position: fixed;
    top: 4.25rem;
    right: 0.75rem;
    width: min(18rem, calc(100vw - 1.5rem));
  }
}

@keyframes notificationBadgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.42);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 0.35rem rgba(239, 68, 68, 0);
  }
}

@keyframes notificationDropdownIn {
  from {
    opacity: 0;
    transform: translateY(-0.45rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gnb-search-bar[hidden],
.side-nav-backdrop[hidden],
.side-nav[hidden] {
  display: none !important;
}

.gnb-search-bar {
  width: min(34rem, calc(100% - 2rem));
  margin: -0.55rem 3rem 1rem auto;
  padding: 0.35rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0.9rem 2rem rgba(15, 23, 42, 0.12);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.45rem;
  align-items: center;
  gap: 0.35rem;
}

.gnb-search-input {
  min-width: 0;
  width: 100%;
  height: 2.45rem;
  border: 0;
  outline: 0;
  padding: 0 0.85rem;
  background: transparent;
  color: var(--navy-deep);
  font-size: 0.95rem;
  font-weight: 700;
}

.gnb-search-submit {
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--gold-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gnb-search-submit svg {
  width: 1rem;
  height: 1rem;
}

.side-nav-open {
  overflow: hidden;
}

.side-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 790;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

.side-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 800;
  width: min(22rem, calc(100vw - 1rem));
  height: 100vh;
  padding: 1.15rem;
  background: #fff;
  box-shadow: -1rem 0 2.5rem rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.side-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  color: var(--navy-deep);
}

.side-nav-head-left,
.side-nav-head-actions {
  display: flex;
  align-items: center;
  min-width: 0;
}

.side-nav-head-left {
  flex: 1 1 auto;
  gap: 0.75rem;
}

.side-nav-head-actions {
  flex: 0 0 auto;
  gap: 0.75rem;
}

.side-nav-logo-link {
  flex: 0 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
}

.side-nav-logo-image {
  display: block;
  width: auto;
  height: 44px;
  max-width: min(9.2rem, 38vw);
  object-fit: contain;
}

.side-nav-invite-badge-form {
  flex: 0 0 auto;
  display: inline-flex;
  margin: 0;
}

.side-nav-invite-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.7);
  color: #78350f;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.side-nav-settings,
.side-nav-close {
  flex: 0 0 auto;
}

@media (max-width: 420px) {
  .side-nav-head {
    gap: 0.4rem;
    padding: 0.9rem 0.75rem;
  }

  .side-nav-head-left {
    gap: 0.4rem;
  }

  .side-nav-head-actions {
    gap: 0.35rem;
  }

  .side-nav-logo-image {
    height: 42px;
    max-width: 6rem;
  }

  .side-nav-invite-badge {
    padding: 0.22rem 0.5rem;
    font-size: 0.64rem;
  }
}

.side-profile-panel {
  display: grid;
  gap: 0.56rem;
  padding: 0.82rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.75rem;
  background: #f8fafc;
}

.side-profile-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.side-profile-name-row {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.side-profile-avatar {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--navy-deep);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.95);
}

.side-profile-avatar svg {
  width: 1.3rem;
  height: 1.3rem;
  display: block;
}

.side-profile-name {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--navy-deep);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-profile-stats {
  margin: -0.05rem 0 0;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
}

.side-my-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.32rem;
}

.side-my-tabs a,
.side-my-tabs button {
  min-width: 0;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.38rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  background: #fff;
  color: var(--navy-deep);
  text-align: center;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.side-my-tabs a:hover,
.side-my-tabs button:hover {
  border-color: rgba(212, 167, 44, 0.45);
  color: var(--gold-accent);
}

.side-my-tabs a.is-active,
.side-my-tabs button.is-active {
  border-color: rgba(212, 167, 44, 0.58);
  background: rgba(212, 167, 44, 0.1);
  color: var(--gold-accent);
  box-shadow: inset 0 0 0 1px rgba(212, 167, 44, 0.1);
}

.side-activity-panel {
  display: grid;
  gap: 0.48rem;
  padding: 0.55rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 0.75rem;
  background: rgba(248, 250, 252, 0.78);
}

.side-activity-list {
  display: grid;
  gap: 0.35rem;
}

.side-activity-item {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
  padding: 0.58rem 0.62rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.58rem;
  background: #fff;
  color: var(--navy-deep);
  text-decoration: none;
}

.side-activity-item:hover {
  border-color: rgba(212, 167, 44, 0.4);
  background: #fffdf7;
}

.side-activity-title {
  overflow: hidden;
  color: var(--navy-deep);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-activity-meta,
.side-activity-empty,
.side-activity-more {
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.35;
}

.side-activity-empty {
  margin: 0;
  padding: 0.5rem 0.25rem;
  text-align: center;
}

.side-activity-more {
  justify-self: end;
  color: var(--gold-accent);
  text-decoration: none;
}

.side-sample-action,
.side-pwa-action {
  display: grid;
  gap: 0.18rem;
  min-height: 3.05rem;
  margin: 0.15rem 0 0.35rem;
  padding: 0.56rem 0.74rem;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 0.75rem;
  background: #fffdf7;
  color: var(--navy-deep);
  text-decoration: none;
  text-align: left;
}

.side-sample-action strong,
.side-pwa-action strong {
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 950;
  line-height: 1.2;
}

.side-sample-countdown {
  overflow: hidden;
  color: var(--gold-accent);
  font-size: 0.69rem;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-profile-panel .side-sample-action {
  margin: -0.1rem 0 0.02rem;
}

.side-pwa-action {
  width: 100%;
  border-color: rgba(226, 232, 240, 0.95);
  background: #f8fafc;
}

.side-pwa-action span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.2;
}

.side-nav-links {
  display: grid;
  gap: 0.35rem;
}

.side-nav-links a {
  display: flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0 0.85rem;
  border-radius: 0.65rem;
  color: var(--navy-deep);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 800;
}

.side-nav-links a:hover {
  background: #F8FAFC;
}

.side-invite-action {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.side-invite-action button {
  width: 100%;
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: #fffdf7;
  color: var(--navy-deep);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.side-invite-action button:hover {
  background: #fef3c7;
  color: var(--gold-accent);
  box-shadow: 0 0.7rem 1.2rem rgba(212, 167, 44, 0.16);
  transform: translateY(-1px);
}

.admin-seed-panel {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0 1.4rem;
  padding: 1rem;
}

.admin-seed-copy {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
}

.admin-seed-panel form {
  display: grid;
  gap: 0.7rem;
}

.admin-seed-textarea {
  min-height: 7rem;
  padding: 0.85rem;
  line-height: 1.5;
}

.post-like-submit {
  color: var(--navy-deep);
}

.post-like-submit.is-liked {
  color: #ef4444;
}

.post-like-submit .like-icon {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
  transform: none;
}

.post-like-submit .like-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.post-like-submit .like-svg-filled {
  opacity: 0;
  transform: scale(0.84);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.post-like-submit .like-svg-outline {
  opacity: 1;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.post-like-submit.is-liked .like-svg-filled {
  opacity: 1;
  transform: scale(1);
}

.post-like-submit.is-liked .like-svg-outline {
  opacity: 0;
  transform: scale(0.92);
}

@media (max-width: 899px) {
  .nav-actions {
    gap: 0.6rem !important;
  }

  .nav-icon-button {
    width: 2.15rem;
    height: 2.15rem;
    min-width: 2.15rem;
    min-height: 2.15rem;
  }

  .nav-icon-button svg {
    width: 0.98rem;
    height: 0.98rem;
  }

  .gnb-search-bar {
    width: calc(100% - 1.6rem);
    margin: -0.35rem auto 0.8rem;
  }
}

@media (max-width: 520px) {
  .nav {
    padding: 0 0.75rem !important;
    gap: 0.45rem !important;
  }

  .nav-actions {
    gap: 0.42rem !important;
    flex: 0 0 auto;
  }

  .nav-link {
    font-size: 0.78rem !important;
    white-space: nowrap;
  }

  .brand.brand-lockup {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-lockup-image {
    height: 2.35rem !important;
    max-width: 8.6rem !important;
  }

  .nav-icon-button {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
  }

  .gnb-search-input {
    font-size: 0.86rem;
  }

  .side-nav {
    width: min(18rem, calc(100vw - 1rem));
  }

  .side-profile-panel {
    padding: 0.78rem;
    gap: 0.62rem;
    border-radius: 0.65rem;
  }

  .side-profile-avatar {
    width: 2.1rem;
    height: 2.1rem;
  }

  .side-profile-avatar svg {
    width: 1.15rem;
    height: 1.15rem;
  }

  .side-profile-stats {
    font-size: 0.7rem;
  }

  .side-my-tabs {
    gap: 0.25rem;
  }

  .side-my-tabs a,
  .side-my-tabs button {
    min-height: 1.85rem;
    padding: 0 0.28rem;
    font-size: 0.66rem;
  }

  .post-like-submit .like-icon {
    width: 1.18rem;
    height: 1.18rem;
  }
}

@media (max-width: 420px) {
  .nav-actions > .nav-link[href="/"] {
    display: none !important;
  }

  .brand-lockup-image {
    max-width: 7.4rem !important;
  }

  .nav-link {
    font-size: 0.72rem !important;
  }

  .nav-icon-button {
    width: 1.85rem;
    height: 1.85rem;
    min-width: 1.85rem;
    min-height: 1.85rem;
  }
}

/* Cafe-style infinite board loading */
.infinite-scroll-sentinel {
  width: 100%;
  height: 1px;
}

.infinite-scroll-status {
  min-height: 2.75rem;
  margin: 0.75rem auto 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
}

.infinite-scroll-status.is-visible {
  display: flex;
}

.infinite-scroll-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.28);
  border-top-color: var(--gold-accent);
  animation: infiniteSpin 0.72s linear infinite;
}

.infinite-scroll-status.is-loading .infinite-scroll-spinner {
  display: inline-flex;
}

.infinite-scroll-status.is-end,
.infinite-scroll-status.is-error {
  color: #64748b;
}

@keyframes infiniteSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .infinite-scroll-spinner {
    animation: none;
  }
}

@media (max-width: 620px) {
  .infinite-scroll-status {
    min-height: 2.35rem;
    margin-top: 0.55rem;
    font-size: 0.78rem;
  }

  .infinite-scroll-spinner {
    width: 0.9rem;
    height: 0.9rem;
  }
}

/* Board list ads mixed into infinite scroll */
.board-ad-item {
  overflow: hidden;
}

.board-ad-item .post-link {
  color: inherit;
}

.board-ad-title-row {
  display: flex !important;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
}

.board-ad-title {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-ad-badge {
  flex: 0 0 auto;
  color: #A0A0A0;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1;
}

.board-ad-body {
  display: -webkit-box;
  max-width: 100%;
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.board-ad-thumbnail .post-content-left {
  gap: 6px !important;
}

.board-ad-thumb,
.board-ad-thumb img {
  aspect-ratio: 1 / 1;
}

.board-ad-thumb img {
  object-fit: cover;
}

.board-ad-banner {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
}

.board-ad-banner-link {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  padding: 0.8rem 0.9rem;
  color: inherit;
  text-decoration: none;
}

.board-ad-banner-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 1;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f1f5f9;
}

.board-ad-banner-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.board-ad-copy {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
}

.board-ad-banner .board-ad-title {
  display: block;
  color: var(--navy-deep);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.board-ad-banner .board-ad-body {
  -webkit-line-clamp: 1;
}

/* Board ad admin controls */
.admin-ad-guide {
  margin-bottom: 1rem !important;
  font-size: 0.9rem !important;
}

.board-ad-form {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.75rem;
  background: #fff;
}

.board-ad-form-new {
  margin-bottom: 1rem;
  background: #f8fafc;
}

.board-ad-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 8rem) minmax(0, 12rem) auto;
  align-items: end;
  gap: 0.75rem;
}

.board-ad-form-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.board-ad-toggle {
  min-height: 2.75rem;
  align-self: end;
}

.board-ad-admin-list {
  display: grid;
  gap: 0.85rem;
}

.board-ad-form-head,
.board-ad-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.board-ad-actions {
  justify-content: flex-end;
}

.board-ad-current-image {
  display: inline-flex;
  width: fit-content;
  margin: 0.25rem 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
}
.file-input {
  padding: 0.6rem;
  cursor: pointer;
}
.file-input::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(212, 167, 44, 0.42);
  border-radius: 0.5rem;
  background: #fffdf7;
  color: #0f172a;
  font-weight: 900;
  cursor: pointer;
}

.board-ad-empty {
  padding: 0.75rem 0;
}

@media (max-width: 720px) {
  .admin-section-toolbar,
  .admin-member-search {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-member-search .field-input {
    min-width: 0;
    width: 100%;
  }

  .board-ad-form-grid,
  .board-ad-form-grid.two-cols {
    grid-template-columns: 1fr;
  }

  .board-ad-banner-link {
    padding: 0.7rem;
  }

  .board-ad-body {
    font-size: 0.74rem;
    -webkit-line-clamp: 1;
  }

  .board-ad-banner .board-ad-title {
    font-size: 0.86rem;
  }
}

/* Detail page refinement and admin hard-delete controls */
.detail-head {
  position: relative;
}

.detail-meta-simple {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  color: var(--text-gray);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.detail-meta-simple span,
.detail-meta-simple time {
  display: inline-flex;
  align-items: center;
}

.board-guide-box {
  margin: 1rem 0 1.15rem;
  border: 1px solid rgba(226, 232, 240, 0.98);
  border-radius: 0.55rem;
  background: #fff;
  overflow: hidden;
}

.board-guide-toggle {
  width: 100%;
  min-height: 2.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.8rem;
  border: 0;
  background: transparent;
  color: var(--navy-deep);
  text-align: left;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detail-aeo-toggle {
  min-height: 3.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 0.28rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.board-guide-title-line,
.board-guide-preview-line {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.42rem;
}

.board-guide-title-line {
  color: var(--navy-deep);
}

.board-guide-preview-line {
  padding-left: 1.48rem;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.board-guide-icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--gold-accent);
  flex: 0 0 auto;
}

.board-guide-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.board-guide-summary {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--navy-deep);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-guide-preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-guide-more {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}

.board-guide-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 0.8rem;
  border-top: 1px solid rgba(226, 232, 240, 0);
  color: #475569;
  font-size: 0.83rem;
  font-weight: 650;
  line-height: 1.62;
  transition: max-height 0.24s ease, opacity 0.18s ease, padding 0.24s ease, border-color 0.18s ease;
}

.board-guide-box.is-expanded .board-guide-content {
  max-height: 15rem;
  opacity: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.72rem 0.8rem 1rem;
  border-top-color: rgba(226, 232, 240, 0.9);
  scrollbar-gutter: stable;
}

.board-guide-html {
  margin: 0;
  white-space: pre-wrap;
}

.board-guide-html a {
  color: var(--gold-accent);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.board-guide-html a:hover {
  color: var(--navy-deep);
}

.board-guide-html b,
.board-guide-html strong {
  color: var(--navy-deep);
  font-weight: 850;
}

.board-guide-html p {
  margin: 0 0 0.45rem;
}

.board-guide-html p:last-child {
  margin-bottom: 0;
}

.board-guide-html ul,
.board-guide-html ol {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}

.board-guide-html li + li {
  margin-top: 0.22rem;
}

.detail-bottom-ad {
  width: 100%;
  max-width: 100%;
  margin: 1rem 0 0;
  overflow: hidden;
  border-radius: 0.6rem;
  background: #f8fafc;
}

.detail-bottom-ad-link {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 1;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.detail-bottom-ad img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.detail-like-panel {
  margin-top: 1.15rem !important;
  padding-top: 1rem !important;
}

.detail-like-pill {
  width: auto !important;
  min-width: 7.5rem !important;
  height: 2.65rem !important;
  padding: 0 1.05rem !important;
  border-radius: 999px !important;
  gap: 0.38rem;
  font-size: 0.9rem;
  font-weight: 850;
}

.detail-like-pill .like-icon {
  width: 1.05rem !important;
  height: 1.05rem !important;
}

.detail-like-pill .like-label,
.detail-like-pill .like-count {
  line-height: 1;
}

.detail-like-pill .like-count {
  min-width: 0.55rem;
  text-align: left;
  color: inherit;
}

.detail-like-pill.is-liked {
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  background: #fff7f7 !important;
}

.post-actions {
  align-items: center;
}

.admin-category-move-form {
  margin-top: 0.75rem;
  padding: 0.72rem;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 0.55rem;
  background: #f8fafc;
}

.admin-category-move-form .field-label {
  margin-bottom: 0.38rem;
  color: var(--text-gray);
  font-size: 0.72rem;
  font-weight: 850;
}

.admin-category-move-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.admin-category-move-row .field-input {
  min-height: 2.12rem;
  padding: 0.42rem 0.55rem;
  border-radius: 0.42rem;
  font-size: 0.78rem;
}

.admin-category-move-row .button {
  flex: 0 0 auto;
  min-height: 2.12rem;
  white-space: nowrap;
}

.admin-shadow-toggle-form {
  margin-top: 0.55rem;
}

.admin-shadow-toggle-button {
  width: 100%;
  min-height: 2.1rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 0.45rem;
  background: #0f172a;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.2;
}

.admin-shadow-toggle-button.is-active {
  border-color: rgba(212, 175, 55, 0.55);
  background: #fff8e1;
  color: #7c5b0a;
}

.admin-shadow-toggle-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.badge-shadow,
.post-list .badge-shadow {
  display: inline-flex;
  align-items: center;
  min-height: 1.15rem;
  padding: 0 0.34rem;
  border-radius: 0.28rem;
  background: #111827;
  color: #fef3c7 !important;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

.comment-admin-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.admin-delete-button {
  min-height: 1.65rem;
  padding: 0 0.52rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(239, 68, 68, 0.34);
  background: #fff;
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.admin-delete-button::before {
  content: "[";
}

.admin-delete-button::after {
  content: "]";
}

.admin-delete-button:hover {
  background: #fff1f2;
  border-color: rgba(239, 68, 68, 0.7);
}

.admin-delete-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

@media (max-width: 620px) {
  .detail-meta-simple {
    gap: 0.35rem 0.55rem;
    font-size: 0.72rem;
  }

  .board-guide-box {
    margin: 0.8rem 0 1rem;
    border-radius: 0.5rem;
  }

  .board-guide-toggle {
    min-height: 2.28rem;
    padding: 0 0.68rem;
    gap: 0.38rem;
  }

  .detail-aeo-toggle {
    min-height: 3.35rem;
    padding-top: 0.44rem;
    padding-bottom: 0.44rem;
    gap: 0.22rem;
  }

  .board-guide-icon {
    width: 0.95rem;
    height: 0.95rem;
  }

  .board-guide-summary {
    font-size: 0.78rem;
  }

  .board-guide-preview-line {
    padding-left: 1.32rem;
    font-size: 0.7rem;
  }

  .board-guide-more {
    font-size: 0.7rem;
  }

  .board-guide-content {
    font-size: 0.77rem;
    line-height: 1.55;
    padding-left: 0.68rem;
    padding-right: 0.68rem;
  }

  .board-guide-box.is-expanded .board-guide-content {
    max-height: 12rem;
    padding: 0.65rem 0.68rem 1rem;
  }

  .detail-bottom-ad {
    margin-top: 0.85rem;
    border-radius: 0.5rem;
  }

  .detail-like-pill {
    min-width: 6.8rem !important;
    height: 2.35rem !important;
    padding: 0 0.85rem !important;
    font-size: 0.82rem;
  }

  .detail-like-pill .like-icon {
    width: 0.95rem !important;
    height: 0.95rem !important;
  }

  .comment-head {
    gap: 0.55rem;
  }

  .admin-delete-button {
    min-height: 1.5rem;
    padding: 0 0.45rem;
    font-size: 0.68rem;
  }

  .admin-category-move-form {
    margin-top: 0.65rem;
    padding: 0.62rem;
  }

  .admin-category-move-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-category-move-row .button {
    width: 100%;
  }
}

/* Cafe-style slim comments with per-post anonymous speakers */
.comment-section-slim {
  margin-bottom: 0;
}

.comment-section-slim .comment-list {
  display: grid !important;
  gap: 0 !important;
  margin-top: 0.65rem !important;
}

.comment-section-slim .comment-card,
.comment-section-slim .reply-card {
  padding: 0.86rem 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.96) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.comment-thread-item {
  padding: 0.92rem 0 !important;
}

.comment-reply-list {
  display: grid;
  gap: 0.42rem;
  margin-top: 0.7rem !important;
  margin-left: 2rem !important;
  padding-left: 0 !important;
  border-left: 0 !important;
}

.comment-reply-item {
  display: grid;
  grid-template-columns: 1.18rem minmax(0, 1fr);
  gap: 0.38rem;
  padding: 0.68rem 0.75rem !important;
  border: 0 !important;
  border-radius: 0.48rem !important;
  background: #f8fafc !important;
}

.comment-reply-item:last-child {
  border-bottom: 0 !important;
}

.reply-indent {
  padding-top: 0.1rem;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

.reply-body {
  min-width: 0;
}

.comment-section-slim .comment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.28rem !important;
}

.comment-section-slim .comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start !important;
  gap: 0.34rem 0.5rem;
  min-width: 0;
  color: var(--text-gray);
  font-size: 0.76rem;
  line-height: 1.35;
}

.comment-label {
  color: #94a3b8;
  font-weight: 700;
}

.comment-alias {
  color: var(--navy-deep);
  font-weight: 850;
}

.comment-alias.is-forest-author {
  color: var(--gold-accent);
  font-weight: 900;
}

.comment-section-slim .comment-content {
  color: var(--text-dark);
  font-size: 0.9rem !important;
  line-height: 1.58 !important;
  word-break: break-word;
  white-space: pre-wrap;
}

.comment-section-slim .comment-content[hidden] {
  display: none;
}

.comment-action-group,
.comment-foot-actions,
.comment-dynamic-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  color: #9ca3af;
  font-size: 0.73rem;
  font-weight: 750;
}

.comment-action-group {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.comment-action-group form {
  display: inline-flex;
  margin: 0;
}

.comment-foot-actions {
  margin-top: 0.42rem;
}

.comment-action-link,
.comment-reply-trigger {
  border: 0;
  background: transparent;
  color: #9ca3af;
  font: inherit;
  line-height: 1.2;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.comment-action-link:hover,
.comment-reply-trigger:hover {
  color: var(--gold-accent);
}

.comment-edit-form {
  display: grid;
  gap: 0.52rem;
  margin-top: 0.62rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-0.2rem);
  transition: max-height 0.22s ease, opacity 0.18s ease, transform 0.18s ease;
}

.comment-edit-form.is-open {
  max-height: 12rem;
  opacity: 1;
  transform: translateY(0);
}

.comment-dynamic-textarea {
  min-height: 2.75rem !important;
  max-height: 7rem;
  resize: vertical;
  border: 0 !important;
  background: transparent !important;
  padding: 0.62rem 0.72rem !important;
  color: var(--navy-deep) !important;
  font-size: 0.88rem !important;
  line-height: 1.45 !important;
}

.comment-edit-form .comment-dynamic-textarea {
  border: 1px solid rgba(226, 232, 240, 0.96) !important;
  border-radius: 0.58rem;
  background: #fff !important;
}

.comment-dynamic-actions {
  justify-content: flex-end;
}

.comment-dynamic-submit {
  width: auto;
  min-height: 1.9rem !important;
  padding: 0 0.76rem !important;
  border-radius: 999px !important;
  font-size: 0.76rem !important;
  font-weight: 850;
}

.comment-inline-form {
  position: sticky;
  bottom: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  margin: 1rem 0 0 !important;
  padding: 0.55rem !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 -0.35rem 1rem rgba(15, 23, 42, 0.06) !important;
}

.comment-inline-input {
  min-height: 2.35rem !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 0.85rem !important;
  font-size: 0.9rem !important;
  color: var(--navy-deep) !important;
}

.comment-inline-submit {
  min-width: 3.6rem;
  min-height: 2.35rem !important;
  padding: 0 0.9rem !important;
  border-radius: 999px !important;
  font-size: 0.86rem !important;
  font-weight: 850;
}

@media (max-width: 620px) {
  .comment-thread-item {
    padding: 0.72rem 0 !important;
  }

  .comment-section-slim .comment-head {
    gap: 0.42rem;
  }

  .comment-reply-list {
    margin-left: 1.55rem !important;
  }

  .comment-reply-item {
    grid-template-columns: 0.95rem minmax(0, 1fr);
    gap: 0.28rem;
    padding: 0.62rem 0.58rem !important;
  }

  .comment-section-slim .comment-meta {
    font-size: 0.7rem;
  }

  .comment-action-group,
  .comment-foot-actions,
  .comment-dynamic-actions {
    font-size: 0.68rem;
  }

  .comment-section-slim .comment-content {
    font-size: 0.84rem !important;
  }

  .comment-dynamic-textarea {
    min-height: 2.45rem !important;
    padding: 0.45rem 0.68rem 0.58rem !important;
    font-size: 0.82rem !important;
  }

  .comment-inline-form {
    margin-top: 0.8rem !important;
    padding: 0.62rem !important;
  }

  .comment-inline-input {
    min-height: 2.15rem !important;
    font-size: 0.82rem !important;
  }

  .comment-inline-submit {
    min-width: 3.1rem;
    min-height: 2.15rem !important;
    padding: 0 0.7rem !important;
    font-size: 0.78rem !important;
  }
}

/* Header logo balance + level reward system */
.site-header {
  overflow: visible;
}

.nav {
  min-height: 76px !important;
  padding: 0 32px !important;
  gap: clamp(0.5rem, 2vw, 1.15rem) !important;
  flex-wrap: nowrap !important;
}

.brand.brand-lockup {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: min(46vw, 430px) !important;
  overflow: hidden;
}

.brand-lockup-image {
  display: block !important;
  width: auto !important;
  height: 92px !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

.nav-actions {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  flex-wrap: nowrap !important;
  white-space: nowrap;
  gap: clamp(0.42rem, 1.3vw, 0.95rem) !important;
}

.nav-actions form,
.nav-link,
.nav-icon-button {
  flex: 0 0 auto;
}

.nav-link {
  white-space: nowrap;
}

.reward-page-head {
  margin-bottom: 1rem;
}

.level-status-card {
  display: grid;
  gap: 0.8rem;
  padding: clamp(1rem, 2.5vw, 1.45rem);
  margin-bottom: 1rem;
  border-radius: 0.8rem;
}

.level-status-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy-deep);
}

.level-status-head strong {
  font-size: 1.05rem;
  font-weight: 900;
}

.level-badge,
.reward-level-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: rgba(212, 167, 44, 0.12);
  color: var(--gold-accent);
  font-size: 0.76rem;
  font-weight: 900;
}

.level-reward-copy,
.level-secret-requirement,
.level-next-requirement {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.level-next-requirement {
  color: var(--navy-light);
}

.reward-level-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.reward-level-condition {
  color: #9ca3af;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
}

.level-progress {
  height: 0.58rem;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.level-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-accent), #f3cf65);
}

.level-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.level-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--navy-light);
  font-size: 0.78rem;
  font-weight: 850;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0 0 1rem;
}

.reward-card {
  display: grid;
  align-content: space-between;
  gap: 1rem;
  min-height: 12rem;
  padding: 1rem;
  border-radius: 0.8rem;
}

.reward-card.is-locked {
  position: relative;
  opacity: 0.62;
  filter: grayscale(0.28);
  background: #f8fafc;
  border-style: dashed;
}

.reward-card.is-secret {
  opacity: 0.52;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
}

.reward-lock-icon {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 1rem;
}

.reward-card h2 {
  margin: 0.7rem 0 0.45rem;
  color: var(--navy-deep);
  font-size: 1.05rem;
  line-height: 1.25;
}

.reward-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.45;
}

.reward-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.reward-shipping {
  color: var(--navy-light);
  font-size: 0.8rem;
  font-weight: 850;
}

.reward-request-form {
  margin: 0;
}

.level-guide-card {
  margin: 0 0 1.3rem;
  padding: 1rem;
  border-radius: 0.8rem;
}

.level-guide-card h2 {
  margin: 0 0 0.65rem;
  color: var(--navy-deep);
  font-size: 1rem;
}

.level-guide-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.7;
}

.level-nudge-modal[hidden],
.reward-apply-modal[hidden] {
  display: none !important;
}

.level-nudge-modal,
.reward-apply-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.level-nudge-backdrop,
.reward-apply-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

.level-nudge-dialog,
.reward-apply-dialog {
  position: relative;
  width: min(100%, 26rem);
  padding: 1.25rem;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 1.5rem 3.5rem rgba(15, 23, 42, 0.22);
}

.reward-apply-dialog {
  width: min(100%, 32rem);
}

.reward-apply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.level-nudge-dialog h2,
.reward-apply-head h2 {
  margin: 0 0 0.65rem;
  color: var(--navy-deep);
  font-size: 1.08rem;
}

.reward-apply-head h2 {
  margin: 0;
}

.reward-apply-form {
  display: grid;
  gap: 0.75rem;
}

.reward-apply-warning {
  margin: 0.28rem 0 0;
  color: #ef4444;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
}

.reward-apply-submit {
  width: 100%;
  margin-top: 0.2rem;
}

.level-nudge-dialog p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55;
}

.level-nudge-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.reward-card-foot-static {
  justify-content: flex-start;
}

.reward-welcome-note {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: rgba(212, 167, 44, 0.1);
  color: var(--gold-accent);
  font-size: 0.8rem;
  font-weight: 900;
}

.onboarding-head {
  text-align: center;
}

.onboarding-card {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.2rem;
}

.onboarding-submit {
  width: 100%;
  margin-top: 0.2rem;
}

.vip-roadmap-nano {
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.625rem 1rem;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #1f2937;
  box-shadow: none;
}

.vip-roadmap-nano p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #1f2937;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-roadmap-nano button {
  flex: 0 0 auto;
  flex-shrink: 0;
  padding: 0.25rem 0.625rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #fff;
  color: #4b5563;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}

.level-roadmap-nano {
  border-bottom: 1px solid #dcfce7;
  background: #f0fdf4;
}

.invite-roadmap-nano {
  border-bottom: 1px solid #e5e7eb;
  background: #fefce8;
}

.pwa-roadmap-nano {
  border-bottom: 1px solid #dbeafe;
  background: rgba(239, 246, 255, 0.7);
}

.pwa-roadmap-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pwa-roadmap-copy span {
  flex: 0 0 auto;
}

.pwa-roadmap-copy p {
  color: #1e3a8a;
}

.pwa-roadmap-nano button {
  border-color: #bfdbfe;
  color: #1e40af;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.invite-roadmap-nano + .board-tabs,
.invite-roadmap-nano + .tab-container,
.pwa-roadmap-nano + .board-tabs,
.pwa-roadmap-nano + .tab-container,
.level-roadmap-nano + .board-tabs,
.level-roadmap-nano + .tab-container {
  margin-top: 0 !important;
}

.vip-roadmap-modal[hidden] {
  display: none !important;
}

.vip-roadmap-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.vip-roadmap-modal-open {
  overflow: hidden;
}

.vip-roadmap-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.vip-roadmap-dialog {
  position: relative;
  width: min(100%, 44rem);
  max-height: min(84vh, 42rem);
  overflow-y: auto;
  padding: 1rem;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 1.4rem 3.2rem rgba(15, 23, 42, 0.24);
}

.vip-roadmap-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.vip-roadmap-dialog-head strong {
  color: var(--navy-deep);
  font-size: 1.05rem;
  font-weight: 950;
}

.vip-roadmap-close {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  background: #fff;
  color: var(--navy-light);
  font-size: 1.15rem;
  font-weight: 800;
}

.vip-roadmap-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.vip-step-card {
  min-width: 0;
  min-height: 7.2rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.42rem;
  padding: 0.75rem 0.45rem;
  border: 1px solid rgba(212, 167, 44, 0.36);
  border-radius: 0.75rem;
  background: rgba(212, 167, 44, 0.09);
  color: var(--navy-deep);
  text-align: center;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease, border-color 0.16s ease;
}

.vip-step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 167, 44, 0.65);
}

.vip-step-card.is-locked {
  opacity: 0.4;
  filter: grayscale(0.45);
}

.vip-step-card.is-secret {
  opacity: 0.4;
}

.vip-step-card i {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-style: normal;
}

.vip-step-card span {
  color: var(--gold-accent);
  font-size: 0.78rem;
  font-weight: 950;
}

.vip-step-card strong {
  color: var(--navy-deep);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.25;
}

.vip-step-card em {
  color: var(--gold-accent);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
}

.side-level-panel {
  display: grid;
  gap: 0.42rem;
  padding: 0.58rem 0.62rem;
  border: 1px solid rgba(212, 167, 44, 0.2);
  border-radius: 0.7rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96));
}

.side-level-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--navy-light);
  font-size: 0.7rem;
  font-weight: 800;
}

.side-level-row strong {
  color: var(--gold-accent);
  font-size: 0.82rem;
  font-weight: 950;
}

.side-exp-bar {
  height: 0.38rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef5;
}

.side-exp-fill {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, #d4a72c, #f6d56c);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.side-nav.is-exp-ready .side-exp-fill {
  width: var(--side-exp-target, 0%);
}

.side-exp-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.72), transparent);
  transform: translateX(-120%);
  animation: side-exp-sparkle 1.75s ease-in-out infinite;
}

.side-tier-list {
  display: grid;
  gap: 0.18rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-tier-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-height: 1.2rem;
  color: var(--navy-deep);
  font-size: 0.65rem;
  font-weight: 850;
}

.side-tier-list li.is-locked {
  opacity: 0.46;
}

.side-tier-list span {
  flex: 0 0 auto;
  color: var(--gold-accent);
}

.side-tier-list strong {
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-nudge-primary {
  min-height: 2.65rem !important;
  box-shadow: 0 0.8rem 1.6rem rgba(212, 167, 44, 0.24);
}

.level-nudge-secondary {
  color: #94a3b8 !important;
  background: transparent !important;
  border-color: rgba(226, 232, 240, 0.95) !important;
}

.level-nudge-dialog strong {
  color: var(--gold-accent);
  font-weight: 950;
}

.post-compose-card .post-content-textarea {
  padding: 16px !important;
  line-height: 1.6 !important;
}

.post-content-textarea::placeholder {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.admin-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 40px;
  margin-bottom: 16px;
}

.admin-section-title-row .section-title {
  margin: 0;
}

.admin-bulk-complete-button {
  flex: 0 0 auto;
}

.admin-member-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.admin-select-cell {
  width: 44px;
  min-width: 44px;
  text-align: center !important;
}

.admin-select-cell input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 auto;
  accent-color: var(--point-gold);
}

@keyframes side-exp-sparkle {
  0% { transform: translateX(-120%); opacity: 0; }
  28% { opacity: 1; }
  100% { transform: translateX(260%); opacity: 0; }
}

@media (max-width: 768px) {
  .nav {
    min-height: 64px !important;
    padding: 0 0.75rem !important;
    gap: 0.45rem !important;
  }

  .brand.brand-lockup {
    max-width: calc(100vw - 11.8rem) !important;
  }

  .brand-lockup-image {
    height: 58px !important;
    max-width: 100% !important;
  }

  .nav-actions {
    gap: 0.35rem !important;
  }

  .nav-link {
    font-size: 0.78rem !important;
    padding: 0.48rem 0 !important;
  }

  .nav-icon-button {
    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;
    min-height: 2rem !important;
  }

  .reward-grid {
    grid-template-columns: 1fr;
  }

  .vip-roadmap-nano {
    align-items: center;
    flex-direction: row;
    gap: 0.5rem;
    min-height: 0;
    padding: 0.625rem 1rem;
  }

  .vip-roadmap-nano p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .vip-roadmap-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vip-step-card:last-child {
    grid-column: 1 / -1;
  }

  .admin-section-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .reward-card-foot,
  .level-nudge-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reward-card-foot .button,
  .level-nudge-actions .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .brand.brand-lockup {
    max-width: calc(100vw - 9.4rem) !important;
  }

  .brand-lockup-image {
    height: 52px !important;
  }
}

/* Premium balanced logo fit */
.site-header .nav {
  min-height: 58px !important;
  align-items: center !important;
  padding: 0 0.75rem !important;
  gap: 0.75rem !important;
}

.site-header .brand.brand-lockup {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: min(42vw, 178px) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-left: 0.625rem !important;
  overflow: hidden !important;
}

.site-header .brand-lockup-image {
  display: block !important;
  width: auto !important;
  height: 38px !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

.site-header .nav-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  gap: 0.42rem !important;
}

.site-header .nav-actions form,
.site-header .nav-link,
.site-header .nav-icon-button,
.site-header .notification-menu {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 768px) {
  .site-header .nav {
    min-height: 56px !important;
    padding: 0 0.5rem !important;
    gap: 0.42rem !important;
  }

  .site-header .brand.brand-lockup {
    max-width: min(38vw, 146px) !important;
    padding-left: 0.5rem !important;
  }

  .site-header .brand-lockup-image {
    height: 36px !important;
  }

  .site-header .nav-actions {
    gap: 0.28rem !important;
  }
}
/* Privacy and ribbon snap overrides */
.comment-store-name {
  color: #2563eb;
  font-weight: 800;
  white-space: nowrap;
}

.home-ribbon-stack {
  display: block;
  margin: -34px -48px -18px !important;
  padding: 0 !important;
}

.home-ribbon-stack .vip-roadmap-nano {
  margin: 0 !important;
  border-radius: 0 !important;
}

.home-ribbon-stack + .board-tabs,
.home-ribbon-stack + .tab-container {
  margin-top: 0 !important;
}

.popular-best-widget {
  height: 9.36rem;
  max-height: 9.36rem;
  margin: 0.55rem 0.9rem 0.6rem;
  padding: 0.68rem 0.78rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  background: var(--surface-dark);
  box-shadow: var(--soft-shadow);
}

.popular-best-head {
  height: 2.05rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.popular-best-head h2 {
  min-width: 0;
  margin: 0;
  color: var(--text-main);
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1.45;
  letter-spacing: 0;
}

.popular-best-tabs {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.popular-best-tabs button {
  min-width: 3rem;
  min-height: 2.05rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.popular-best-tabs button.is-active {
  background: var(--text-main);
  color: #fff;
}

.popular-best-panel {
  display: grid;
  gap: 0;
}

.popular-best-panel[hidden] {
  display: none !important;
}

.popular-best-row {
  min-height: 1.19rem;
  display: grid;
  grid-template-columns: 1.62rem minmax(0, 1fr) 4.25rem;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-main);
  text-decoration: none;
}

.popular-best-rank {
  position: relative;
  width: 1.42rem;
  height: 1.26rem;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-main);
  box-shadow: none;
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
}

.popular-best-rank::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  bottom: 0.04rem;
  left: 0.35rem;
  height: 0.12rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #b98218, #dfba55);
  pointer-events: none;
}

.popular-best-rank-number {
  position: relative;
  z-index: 1;
  transform: translateY(-0.09rem);
}

.popular-best-rank-1 {
  width: 1.54rem;
  height: 1.26rem;
  transform: translateY(-0.04rem);
}

.popular-best-rank-1::after {
  display: none;
}

.popular-best-crown {
  position: relative;
  z-index: 1;
  width: 1.46rem;
  height: 1rem;
  overflow: visible;
  filter: drop-shadow(0 0.06rem 0 rgba(139, 106, 31, 0.2));
}

.popular-best-crown-body {
  stroke: #b8841f;
  stroke-linejoin: round;
  stroke-width: 0.8;
}

.popular-best-crown-shine {
  fill: rgba(255, 255, 255, 0.42);
}

.popular-best-crown-number {
  fill: #fffdf8;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 11px;
  font-weight: 950;
  paint-order: stroke;
  stroke: rgba(96, 66, 8, 0.28);
  stroke-width: 0.8px;
  text-anchor: middle;
}

.popular-best-title {
  min-width: 0;
  overflow: hidden;
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popular-best-views {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.popular-best-empty {
  margin: 1.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.popular-best-widget + .board-tabs,
.popular-best-widget + .tab-container {
  margin-top: 0 !important;
}

.mobile-benefit-strip {
  display: none;
}

.home-ribbon-stack.has-mobile-benefits > .vip-roadmap-nano {
  display: none !important;
}

.home-ribbon-stack.has-mobile-benefits .mobile-benefit-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  height: 5.05rem;
  max-height: 5.05rem;
  padding: 0.55rem 0.9rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
}

.mobile-benefit-card {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.mobile-benefit-card,
.mobile-benefit-card > button {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 0.8rem;
  color: var(--navy-deep);
  text-align: center;
}

.mobile-benefit-card > button,
button.mobile-benefit-card {
  display: grid;
  grid-template-rows: 1rem auto auto;
  align-items: center;
  justify-items: center;
  gap: 0.12rem;
  padding: 0.42rem 0.28rem;
  font-family: inherit;
  cursor: pointer;
}

.mobile-benefit-card > button {
  border: 0;
  background: transparent;
  color: inherit;
}

.mobile-benefit-card svg {
  width: 1rem;
  height: 1rem;
  color: currentColor;
}

.mobile-benefit-card strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-benefit-card span {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.57rem;
  font-weight: 800;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-benefit-muted {
  background: #f8fafc;
}

.mobile-benefit-strip .mobile-benefit-muted:nth-child(1) {
  border-color: rgba(253, 186, 116, 0.45);
  background: #fff7ed;
}

.mobile-benefit-strip .mobile-benefit-muted:nth-child(3) {
  border-color: rgba(191, 219, 254, 0.72);
  background: #eff6ff;
}

.mobile-benefit-primary {
  border-color: rgba(251, 113, 133, 0.58) !important;
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 48%, #fed7aa 100%);
  color: #9f1239;
  box-shadow: 0 0.5rem 1rem rgba(251, 113, 133, 0.18);
}

.mobile-benefit-primary strong {
  color: #be123c;
}

.sample-countdown {
  color: #e11d48;
  font-size: 0.56rem !important;
  letter-spacing: 0;
  text-overflow: clip !important;
  font-variant-numeric: tabular-nums;
  animation: samplePulse 1.25s ease-in-out infinite;
}

@keyframes samplePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.54;
  }
}

.sample-request-modal[hidden] {
  display: none !important;
}

.sample-request-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.sample-request-modal-open {
  overflow: hidden;
}

.sample-request-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(2px);
}

.sample-request-dialog {
  position: relative;
  width: min(100%, 24rem);
  max-height: min(88vh, 42rem);
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1.5rem 3.2rem rgba(15, 23, 42, 0.22);
}

.sample-request-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.sample-request-head strong {
  color: var(--navy-deep);
  font-size: 1rem;
  font-weight: 950;
}

.sample-request-head button {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 1.1rem;
  font-weight: 900;
}

.sample-request-fields {
  display: grid;
  gap: 0.62rem;
}

.sample-request-fields label,
.sample-request-checks {
  display: grid;
  gap: 0.28rem;
}

.sample-request-fields span,
.sample-request-checks legend {
  color: #334155;
  font-size: 0.76rem;
  font-weight: 900;
}

.sample-request-fields input {
  width: 100%;
  min-height: 2.55rem;
  padding: 0 0.8rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.65rem;
  background: #fff;
  color: #0f172a;
  font-size: 0.9rem;
}

.sample-request-checks {
  margin: 0.65rem 0 0;
  padding: 0.58rem 0.68rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.8rem;
  background: #f8fafc;
}

.sample-request-checks label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.55rem;
  color: #1f2937;
  font-size: 0.82rem;
  font-weight: 800;
}

.sample-request-checks input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--gold-accent);
}

.sample-request-submit {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--gold-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 950;
  box-shadow: 0 0.75rem 1.4rem rgba(212, 167, 44, 0.24);
}

.sample-request-submit:disabled {
  opacity: 0.62;
}

.sample-install-gate[hidden] {
  display: none !important;
}

.sample-install-gate {
  position: fixed;
  inset: 0;
  z-index: 1510;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.sample-install-gate-open {
  overflow: hidden;
}

.sample-install-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(2px);
}

.sample-install-gate-dialog {
  position: relative;
  display: grid;
  gap: 0.75rem;
  width: min(100%, 22rem);
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 1.4rem 3rem rgba(15, 23, 42, 0.24);
}

.sample-install-gate-dialog strong {
  color: var(--navy-deep);
  font-size: 1rem;
  font-weight: 950;
}

.sample-install-gate-dialog p {
  margin: 0;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.55;
}

.sample-install-gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.sample-install-gate-actions button,
.side-sample-action.is-loading {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.sample-install-gate-actions button {
  min-height: 2.55rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 950;
}

.sample-install-gate-actions button:first-child {
  border: 0;
  background: var(--gold-accent);
  color: #fff;
}

.sample-install-gate-actions button:last-child {
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #334155;
}

.side-sample-action.is-loading {
  pointer-events: none;
  opacity: 0.72;
}

@media (max-width: 768px) {
  .home-ribbon-stack {
    margin: -18px -14px -14px !important;
  }

  .home-ribbon-stack.has-mobile-benefits .mobile-benefit-strip {
    gap: 0.5rem;
    height: 4.85rem;
    max-height: 4.85rem;
    padding: 0.5rem 0.75rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
  }
}

/* Multi-image upload and gallery */
.multi-image-uploader {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.image-upload-trigger {
  width: 4rem !important;
  height: 4rem !important;
  min-width: 4rem !important;
  max-width: 4rem !important;
  flex: 0 0 4rem !important;
  aspect-ratio: 1 / 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  border: 1px dashed rgba(148, 163, 184, 0.9);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 850;
}

.image-upload-trigger svg {
  width: 1.35rem;
  height: 1.35rem;
}

.image-preview-list {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.1rem 0;
}

.image-preview-thumb {
  position: relative;
  width: 4rem !important;
  height: 4rem !important;
  min-width: 4rem !important;
  max-width: 4rem !important;
  flex: 0 0 4rem !important;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #f1f5f9;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.95);
  cursor: grab;
  touch-action: none;
}

.image-preview-thumb.is-dragging {
  opacity: 0.62;
}

.image-preview-thumb img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.image-preview-delete {
  position: absolute;
  top: 0.18rem;
  right: 0.18rem;
  width: 1.18rem;
  height: 1.18rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.hide-scrollbar {
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.post-image-gallery-shell {
  position: relative;
  max-width: 100%;
}

.post-image-gallery {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  margin-top: 1rem;
  padding-bottom: 0.15rem;
  max-width: 100%;
}

.post-image-slide {
  min-width: 85%;
  max-width: 85%;
  flex-shrink: 0;
  scroll-snap-align: center;
  margin: 0;
  overflow: hidden;
  border-radius: 0.85rem;
  background: #f8fafc;
}

.post-image-slide img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.post-image-open {
  width: 100%;
  height: auto;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.post-image-open img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

.post-gallery-nav,
.post-gallery-dots {
  display: none;
}

body.post-lightbox-open {
  overflow: hidden !important;
  touch-action: none;
}

.post-lightbox[hidden] {
  display: none !important;
}

.post-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  width: 100vw;
  height: 100vh;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.9);
}

.post-lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
}

.post-lightbox-stage {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
}

.post-lightbox-image {
  width: auto !important;
  height: auto !important;
  max-width: 90vw !important;
  max-height: 90vh !important;
  display: block !important;
  object-fit: contain !important;
  border-radius: 0.75rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.post-lightbox-close,
.post-lightbox-nav {
  position: fixed;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.post-lightbox-close {
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
}

.post-lightbox-prev {
  top: 50%;
  left: max(1rem, env(safe-area-inset-left));
  transform: translateY(-50%);
}

.post-lightbox-next {
  top: 50%;
  right: max(1rem, env(safe-area-inset-right));
  transform: translateY(-50%);
}

.post-lightbox-close svg,
.post-lightbox-nav svg {
  width: 1.35rem;
  height: 1.35rem;
}

@media (max-width: 768px) {
  .post-lightbox {
    padding: 5vh 5vw;
  }

  .post-lightbox-close,
  .post-lightbox-nav {
    width: 3.25rem;
    height: 3.25rem;
  }
}

@media (min-width: 769px) {
  .post-image-gallery-shell {
    margin-top: 1rem;
    padding-bottom: 1.45rem;
  }

  .post-image-gallery {
    margin-top: 0;
    gap: 0.75rem;
    padding: 0 0.08rem 0.25rem;
    scroll-padding-inline: 0.08rem;
  }

  .post-image-slide {
    min-width: calc((100% - 0.75rem) / 2) !important;
    max-width: calc((100% - 0.75rem) / 2) !important;
    height: 18rem !important;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #f8fafc;
  }

  .post-image-slide img {
    height: 18rem !important;
    object-fit: contain !important;
    background: #f8fafc;
  }

  .post-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--navy-deep);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    opacity: 0.22;
    transform: translateY(-50%);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .post-image-gallery-shell:hover .post-gallery-nav,
  .post-gallery-nav:focus-visible {
    opacity: 1;
  }

  .post-gallery-nav:hover {
    transform: translateY(-50%) scale(1.04);
  }

  .post-gallery-nav:disabled {
    cursor: not-allowed;
    opacity: 0.28;
    transform: translateY(-50%);
  }

  .post-gallery-nav svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .post-gallery-prev {
    left: 0.65rem;
  }

  .post-gallery-next {
    right: 0.65rem;
  }

  .post-gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    transform: translateX(-50%);
  }

  .post-gallery-dot {
    width: 0.42rem;
    height: 0.42rem;
    padding: 0;
    border-radius: 999px;
    background: #cbd5e1;
    opacity: 0.72;
  }

  .post-gallery-dot.is-active {
    width: 1.05rem;
    background: var(--point-gold);
    opacity: 1;
  }
}

@media (min-width: 1100px) {
  .post-image-slide {
    min-width: calc((100% - 1.5rem) / 3) !important;
    max-width: calc((100% - 1.5rem) / 3) !important;
  }
}

.post-thumb,
.post-thumbnail-right {
  position: relative;
  overflow: hidden;
}

.post-thumb img,
.post-thumbnail-right img,
.feed-image-thumb img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.post-image-count-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 0;
  padding: 1px 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .multi-image-uploader {
    gap: 0.5rem;
  }

  .post-gallery-nav,
  .post-gallery-dots {
    display: none !important;
  }

  .post-image-gallery {
    margin-left: -0.15rem;
    margin-right: -0.15rem;
  }
}

/* Admin tab dashboard final overrides */
.admin-tab-panel .admin-mobile-list {
  display: none !important;
}

.admin-tab-panel .admin-scroll-table {
  max-height: 500px !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

.admin-tab-panel .admin-scroll-table .admin-table {
  width: 100% !important;
  min-width: 760px !important;
}

@media (max-width: 820px) {
  .admin-tab-panel .admin-dashboard-table {
    display: block !important;
  }

  .admin-tab-panel .admin-scroll-table {
    padding: 7px 5px !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
  }

  .admin-tab-panel .admin-scroll-table .admin-table {
    min-width: 720px !important;
    table-layout: auto !important;
  }
}

@media (max-width: 420px) {
  .admin-tab-panel .admin-scroll-table .admin-table {
    min-width: 680px !important;
  }
}

/* SEO login-wall preview */
.public-preview-line {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.locked-content {
  filter: blur(8px) !important;
  opacity: 0.3 !important;
  user-select: none !important;
  pointer-events: none !important;
}

.join-cta-overlay {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 242, 0.98)) !important;
  border: 1px solid rgba(251, 113, 133, 0.28) !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16) !important;
}

.join-cta-overlay > strong:not(.premium-lock-message),
.join-cta-overlay .cta-row {
  display: none !important;
}

.premium-lock-message {
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 900;
  word-break: keep-all;
}

.premium-join-cta-button {
  width: min(100%, 360px);
  margin-top: 14px;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb7185, #f97316) !important;
  border-color: transparent !important;
  box-shadow: 0 14px 30px rgba(251, 113, 133, 0.28);
}

@media (pointer: coarse) {
  .button,
  .nav-icon-button,
  .mobile-benefit-card,
  .tab-button,
  .comment-inline-submit,
  .pwa-install-button,
  .ios-install-confirm,
  .sample-request-submit,
  .fab-write {
    min-height: 44px;
  }

  .nav-icon-button,
  .post-gallery-dot {
    min-width: 44px;
  }
}

@media (max-width: 720px) {
  .admin-activity-grid {
    grid-template-columns: 1fr;
  }

  .admin-activity-card {
    padding: 14px;
  }
}

/* Popular best + dense feed final pass */
.popular-best-widget {
  height: 9.36rem !important;
  max-height: 9.36rem !important;
  margin: 0.36rem 0.52rem 0.42rem !important;
  padding: 0.56rem 0.62rem !important;
  overflow: hidden !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 1rem !important;
  background: var(--surface-dark) !important;
  box-shadow: var(--soft-shadow) !important;
}

.popular-best-head {
  height: 2.05rem !important;
  min-height: 2.05rem !important;
  align-items: flex-start !important;
}

.popular-best-tabs button {
  min-width: 3rem !important;
  min-height: 2.05rem !important;
  height: 2.05rem !important;
  padding: 0 0.7rem !important;
  touch-action: manipulation;
}

.popular-best-panel.is-active {
  display: grid !important;
  grid-template-rows: repeat(5, 1.19rem);
  min-height: 5.95rem;
  max-height: 5.95rem;
  overflow: hidden;
}

.popular-best-row {
  min-width: 0;
  min-height: 1.19rem !important;
  height: 1.19rem !important;
  grid-template-columns: 1.62rem minmax(0, 1fr) 4.25rem !important;
  overflow: hidden;
}

.popular-best-title,
.popular-best-views {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.popular-best-views {
  justify-self: end;
  min-width: 4.25rem;
}

.popular-best-widget + .board-tabs,
.popular-best-widget + .tab-container {
  margin-top: 0 !important;
}

.post-list .post-item {
  min-height: 0 !important;
}

.post-list .post-link {
  min-height: 4.12rem !important;
  height: 4.12rem !important;
  padding: 0.5rem 0.8rem !important;
}

.post-list .post-copy {
  align-items: center !important;
  gap: 0.62rem !important;
  min-width: 0;
}

.post-content-left,
.post-copy-body {
  height: 3rem !important;
  max-height: 3rem !important;
  gap: 0.18rem !important;
  min-width: 0;
}

.post-title-row {
  min-width: 0;
  gap: 0.32rem !important;
}

.post-title-badges {
  gap: 0.26rem !important;
}

.post-list .post-title {
  min-width: 0;
  color: var(--navy-deep) !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  line-height: 1.18 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.post-list .post-meta {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0.38rem !important;
  min-width: 0;
  max-width: 100%;
  max-height: 1rem !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: var(--text-muted) !important;
  font-size: 0.72rem !important;
  font-weight: 760 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

.post-list .post-meta > * {
  flex: 0 0 auto;
  min-width: 0;
}

.post-list .comment-store-name,
.post-list .post-meta-author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-list .post-meta-author {
  max-width: 7.2rem;
}

.post-meta-stat {
  gap: 0.16rem !important;
  white-space: nowrap;
}

.post-meta-stat svg {
  width: 0.78rem !important;
  height: 0.78rem !important;
}

.post-list .badge-notice,
.post-list .badge-popular,
.post-list .badge-poll,
.post-list .badge-resource {
  min-height: 1.18rem !important;
  padding: 0 0.38rem !important;
  border-radius: 0.32rem !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.post-thumb,
.post-thumbnail-right {
  width: 3rem !important;
  height: 3rem !important;
  border-radius: 0.58rem !important;
}

@media (min-width: 1024px) {
  .popular-best-widget {
    margin: 0.34rem 0.62rem 0.38rem !important;
  }

  .board-tabs,
  .tab-container {
    min-height: 2.75rem !important;
  }

  .tab-btn,
  .tab {
    min-height: 2.75rem !important;
    font-size: 0.9rem !important;
  }

  .post-section {
    margin-top: -0.55rem !important;
  }

  .post-list .post-link {
    min-height: 3.62rem !important;
    height: 3.62rem !important;
    padding: 0.38rem 0.92rem !important;
  }

  .post-content-left,
  .post-copy-body {
    height: 2.74rem !important;
    max-height: 2.74rem !important;
    gap: 0.14rem !important;
  }

  .post-list .post-title {
    font-size: 0.98rem !important;
    line-height: 1.16 !important;
  }

  .post-list .post-meta {
    gap: 0.46rem !important;
    font-size: 0.72rem !important;
  }

  .post-thumb,
  .post-thumbnail-right {
    width: 2.74rem !important;
    height: 2.74rem !important;
  }
}

@media (max-width: 768px) {
  .popular-best-widget {
    margin: 0.34rem 0.5rem 0.38rem !important;
  }

  .post-list .post-link {
    min-height: 4.08rem !important;
    height: 4.08rem !important;
    padding: 0.48rem 0.72rem !important;
  }

  .post-list .post-copy {
    gap: 0.56rem !important;
  }

  .post-content-left,
  .post-copy-body {
    height: 2.96rem !important;
    max-height: 2.96rem !important;
    gap: 0.16rem !important;
  }

  .post-list .post-title {
    font-size: 0.96rem !important;
    line-height: 1.18 !important;
  }

  .post-list .post-meta {
    gap: 0.32rem !important;
    font-size: 0.68rem !important;
  }

  .post-list .post-meta-author {
    max-width: 4.8rem;
  }

  .post-meta-stat svg {
    width: 0.72rem !important;
    height: 0.72rem !important;
  }

  .post-thumb,
  .post-thumbnail-right {
    width: 2.96rem !important;
    height: 2.96rem !important;
  }
}

@media (max-width: 420px) {
  .popular-best-row {
    grid-template-columns: 1.4rem minmax(0, 1fr) 3.85rem !important;
    gap: 0.22rem;
  }

  .popular-best-rank {
    width: 1.18rem;
    height: 1.12rem;
    font-size: 0.6rem;
  }

  .popular-best-rank-1 {
    width: 1.28rem;
  }

  .popular-best-crown {
    width: 1.24rem;
    height: 0.9rem;
  }

  .popular-best-tabs button {
    min-width: 2.72rem !important;
    padding: 0 0.5rem !important;
  }

  .popular-best-title {
    font-size: 0.68rem !important;
  }

  .popular-best-views {
    min-width: 3.85rem;
    font-size: 0.62rem !important;
  }

  .post-list .post-link {
    min-height: 3.92rem !important;
    height: 3.92rem !important;
    padding: 0.44rem 0.62rem !important;
  }

  .post-list .post-copy {
    gap: 0.5rem !important;
  }

  .post-content-left,
  .post-copy-body {
    height: 2.82rem !important;
    max-height: 2.82rem !important;
  }

  .post-list .post-title {
    font-size: 0.9rem !important;
  }

  .post-list .post-meta {
    gap: 0.22rem !important;
    font-size: 0.6rem !important;
  }

  .post-list .comment-store-name {
    display: none !important;
  }

  .post-list .post-meta-author {
    max-width: 3.8rem;
  }

  .post-list .post-meta-stat {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.1rem !important;
  }

  .post-list .post-meta-likes,
  .post-list .post-meta-comments {
    display: inline-flex !important;
  }

  .post-list .post-meta-divider {
    display: inline !important;
  }

  .post-meta-stat svg {
    width: 0.66rem !important;
    height: 0.66rem !important;
  }

  .post-thumb,
  .post-thumbnail-right {
    width: 2.82rem !important;
    height: 2.82rem !important;
  }
}

.footer-privacy-link {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-page-head {
  padding: 18px 0 10px;
}

.privacy-policy-section {
  max-width: 860px;
  margin: 0 auto 42px;
  padding: 28px;
}

.privacy-policy-section h2 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.privacy-policy-section ol {
  margin: 0;
  padding-left: 1.2rem;
}

.privacy-policy-section li {
  margin: 0 0 14px;
  line-height: 1.72;
  color: var(--text-main);
}
