/* =====================================================================
   TW Board v0.1 — 자체 디자인 시스템
   다크 + 형광 액센트 (다른 누리보드/마케팅과 시각적으로 구분되는 톤)
   ===================================================================== */

:root {
  --bg: #0a0e14;
  --bg-2: #11161f;
  --bg-3: #1a2030;
  --bg-card: #141a24;
  --line: #232a3a;
  --line-2: #2f3950;
  --text: #e6eaf2;
  --text-dim: #8a93a8;
  --text-mute: #5b6478;
  --accent: #7c5cff;     /* 보라 — 메인 액센트 */
  --accent-2: #00d4ff;   /* 시안 — 보조 */
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #ef4444;
  --pink: #ec4899;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", "Segoe UI", sans-serif;
  font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--text-dim); }
.small { font-size: 12px; }

/* ── Topbar ───────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(124,92,255,0.05), transparent);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 17px; font-weight: 800;
  color: var(--text); display: flex; align-items: center; gap: 6px;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 6px;
  color: #0a0e14; font-size: 14px; font-weight: 900;
}
.topnav { display: flex; align-items: center; gap: 6px; }
.topnav a {
  color: var(--text-dim); padding: 6px 12px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  text-decoration: none;
}
.topnav a:hover { color: var(--text); background: var(--bg-2); }
.topnav a.active { color: var(--text); background: var(--bg-3); }
.topnav a.ghost { border: 1px solid var(--line); }
.user-chip {
  font-size: 12px; padding: 4px 10px;
  background: var(--bg-3); border-radius: 12px;
  color: var(--text-dim); margin-right: 4px;
}

/* ── Page wrap ─────────────────────────────────────────── */
.page { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
body.is-admin .page { max-width: none; padding: 0; }
body.is-landing .page { max-width: 1100px; }

/* ── Hero (메인) ───────────────────────────────────────── */
.hero { padding: 60px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 40px; align-items: center;
}
.eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  color: var(--accent-2); margin-bottom: 12px;
}
.hero h1 {
  font-size: 52px; line-height: 1.1; font-weight: 900;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 60%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}
.hero .lead {
  margin-top: 18px; font-size: 16px; line-height: 1.7;
  color: var(--text-dim); max-width: 460px;
}
.cta-row { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  font-family: ui-monospace, monospace;
  font-size: 13px;
}
.card-row {
  padding: 8px 0; border-bottom: 1px dashed var(--line);
  display: flex; align-items: center; gap: 10px;
}
.card-row:last-child { border-bottom: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-g { background: var(--green); }
.dot-b { background: var(--accent-2); }
.dot-y { background: var(--yellow); }
.dot-p { background: var(--pink); }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px; font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  font-family: inherit;
  transition: transform 0.06s, background 0.15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0e14;
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-2);
}
.btn.ghost:hover { background: var(--bg-2); }
.btn.block { width: 100%; }

/* ── Features grid ─────────────────────────────────────── */
.features { padding: 40px 0; }
.features h2 { font-size: 24px; margin-bottom: 20px; font-weight: 800; }
.grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.feat {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  transition: border-color 0.15s, transform 0.15s;
}
.feat:hover { border-color: var(--accent); transform: translateY(-2px); }
.feat-icon { font-size: 28px; margin-bottom: 12px; }
.feat-title { font-weight: 800; margin-bottom: 4px; }
.feat-tag { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 1px; }

/* ── Note ──────────────────────────────────────────────── */
.note { margin-top: 40px; padding: 24px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); }
.note h3 { font-size: 16px; margin-bottom: 6px; }
.note p { font-size: 13px; color: var(--text-dim); }

/* ── Site footer ───────────────────────────────────────── */
.sitefoot {
  max-width: 1100px; margin: 60px auto 0; padding: 24px;
  border-top: 1px solid var(--line);
  display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap;
  color: var(--text-dim); font-size: 12px;
}

/* ── Login ─────────────────────────────────────────────── */
.login-wrap {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
}
.login-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 32px; width: 100%; max-width: 380px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
}
.login-brand {
  font-size: 12px; font-weight: 800; letter-spacing: 2px;
  color: var(--accent-2);
}
.login-card h2 { font-size: 22px; }
.login-card label { font-size: 12px; color: var(--text-dim); display: flex; flex-direction: column; gap: 6px; }
.login-card input {
  background: var(--bg-3); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 12px; font-size: 14px; font-family: inherit;
}
.login-card input:focus { outline: none; border-color: var(--accent); }
.form-error {
  font-size: 13px; color: var(--red);
  background: rgba(239,68,68,0.08); border-left: 3px solid var(--red);
  padding: 8px 12px; border-radius: 6px;
}
.hint { font-size: 11px; color: var(--text-mute); text-align: center; margin-top: 4px; }
.hint code { color: var(--accent-2); background: var(--bg-2); padding: 1px 6px; border-radius: 4px; }

/* ── Admin layout ──────────────────────────────────────── */
.adm { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 60px); }
.adm-side {
  background: var(--bg-2); border-right: 1px solid var(--line);
  padding: 18px 12px; display: flex; flex-direction: column; gap: 2px;
}
.adm-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--text-dim); text-decoration: none;
}
.adm-link .ico { font-size: 16px; width: 22px; display: inline-flex; justify-content: center; }
.adm-link:hover { background: var(--bg-3); color: var(--text); }
.adm-link.on { background: linear-gradient(90deg, rgba(124,92,255,0.15), transparent); color: var(--text); border-left: 3px solid var(--accent); padding-left: 9px; }
.adm-link.sub { font-size: 12px; color: var(--text-mute); }
.adm-side-sep { height: 1px; background: var(--line); margin: 14px 4px; }

.adm-main { padding: 28px 32px; overflow: hidden; min-width: 0; }
.adm-head h1 { font-size: 22px; margin-bottom: 4px; }
.adm-head { margin-bottom: 24px; }

/* ── Grid of tool cards (admin home) ───────────────────── */
.grid-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.card-tool {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}
.card-tool:hover {
  border-color: var(--accent); transform: translateY(-2px);
  text-decoration: none;
}
.card-tool-icon { font-size: 26px; }
.card-tool-title { font-weight: 800; font-size: 15px; }
.card-tool-tag {
  display: inline-block; align-self: flex-start;
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(0,212,255,0.08);
  padding: 2px 8px; border-radius: 10px;
}
.card-tool-src {
  font-size: 11px; font-family: ui-monospace, monospace;
  word-break: break-all; margin-top: 4px;
}

.adm-section { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.adm-section h3 { font-size: 14px; margin-bottom: 8px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

/* ── Tool iframe page ──────────────────────────────────── */
.tool-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tool-head h1 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.tool-head .ico { font-size: 22px; }
.tool-frame {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.tool-frame iframe {
  display: block; width: 100%;
  height: calc(100vh - 200px);
  min-height: 540px;
  border: 0;
  background: #0a0e14;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .adm { grid-template-columns: 1fr; }
  .adm-side {
    flex-direction: row; overflow-x: auto;
    border-right: 0; border-bottom: 1px solid var(--line);
    padding: 8px;
  }
  .adm-link { white-space: nowrap; }
  .adm-side-sep { display: none; }
  .adm-link.sub { display: none; }
  .adm-main { padding: 18px 14px; }
  .tool-frame iframe { height: calc(100vh - 260px); }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .page { padding: 20px 14px; }
}

/* =====================================================================
   커뮤니티 / 게시판 / 댓글 / 마이페이지 (N3)
   ===================================================================== */
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.page-head h1 { font-size: 26px; }

/* 카테고리 chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip {
  display: inline-block; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 20px;
  font-size: 13px; color: var(--text-dim);
  background: var(--bg-card); text-decoration: none;
}
.chip:hover { color: var(--text); border-color: var(--line-2); text-decoration: none; }
.chip.active { background: var(--accent); color: #0a0e14; border-color: var(--accent); font-weight: 700; }

/* 검색 */
.search-form { display: flex; gap: 6px; margin-bottom: 18px; }
.search-form input[type="text"] {
  flex: 1; background: var(--bg-3); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font-size: 14px;
}
.search-form input[type="text"]:focus { outline: none; border-color: var(--accent); }

/* 글 목록 */
.post-list {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.post-item {
  display: grid;
  grid-template-columns: 70px 1fr 120px 90px 70px;
  gap: 10px; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--text); font-size: 14px;
}
.post-item:last-child { border-bottom: 0; }
.post-item:hover { background: var(--bg-2); text-decoration: none; }
.post-cat {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: var(--bg-3); color: var(--accent-2);
  text-align: center; font-weight: 600;
}
.post-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-comment-count { color: var(--accent-2); font-size: 12px; margin-left: 4px; font-weight: 700; }
.post-author { color: var(--text-dim); font-size: 13px; }
.post-date, .post-views { color: var(--text-mute); font-size: 12px; }

/* 페이지네이션 */
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.pagination a {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); background: var(--bg-card);
  text-decoration: none; font-size: 13px;
}
.pagination a:hover { border-color: var(--accent); }
.page-info { color: var(--text-dim); font-size: 13px; }

/* 글 상세 */
.crumb { font-size: 12px; color: var(--text-dim); margin-bottom: 14px; }
.crumb a { color: var(--text-dim); }
.crumb a:hover { color: var(--accent-2); }
.post-detail { margin-bottom: 30px; }
.post-detail h1 { font-size: 28px; margin: 8px 0 12px; }
.post-meta-detail {
  font-size: 13px; color: var(--text-dim);
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
  margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
.post-content { font-size: 15px; line-height: 1.8; color: var(--text); min-height: 200px; }
.post-content p { margin-bottom: 14px; }
.post-content h2 { font-size: 20px; margin: 24px 0 12px; }
.post-content h3 { font-size: 17px; margin: 18px 0 10px; }
.post-content ul, .post-content ol { padding-left: 24px; margin: 10px 0; }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; }
.post-content code { background: var(--bg-3); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.post-actions { display: flex; gap: 6px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.badge.ai { background: rgba(124,92,255,0.15); color: var(--accent); padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }

/* 댓글 */
.comments { margin-top: 30px; }
.comments h3 { font-size: 18px; margin-bottom: 16px; }
.comment-form, .reply-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.reply-form { margin: 10px 0; }
.comment-form textarea, .reply-form textarea,
.write-form textarea, .write-form input, .write-form select {
  background: var(--bg-3); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; font-family: inherit; resize: vertical;
}
.comment-form textarea:focus, .reply-form textarea:focus,
.write-form textarea:focus, .write-form input:focus, .write-form select:focus {
  outline: none; border-color: var(--accent);
}
.comment { padding: 14px 0; border-top: 1px solid var(--line); }
.comment.deleted { opacity: 0.55; }
.comment-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13px; }
.comment-content { font-size: 14px; line-height: 1.6; white-space: pre-wrap; }

/* 글쓰기 폼 */
.write-form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.write-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-dim); font-weight: 600; }
.form-actions { display: flex; gap: 8px; margin-top: 10px; }

/* btn 변형 */
.btn.danger { background: var(--red); color: #fff; }
.btn.danger:hover { filter: brightness(1.1); }
.btn.btn-sm, .btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-link {
  background: none; border: none; color: var(--accent-2);
  font-size: 12px; cursor: pointer; padding: 0 4px; font-family: inherit;
}
.btn-link.danger { color: var(--red); }
.btn-link:hover { text-decoration: underline; }

.empty {
  text-align: center; padding: 40px 20px;
  color: var(--text-dim); font-size: 14px;
  background: var(--bg-card); border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty a { color: var(--accent-2); }

@media (max-width: 720px) {
  .post-item { grid-template-columns: 60px 1fr; gap: 6px 10px; }
  .post-author, .post-date, .post-views { grid-column: 2; font-size: 11px; }
  .post-title { grid-column: 2; }
}


/* ── inline-style 청소용 유틸리티 (CSP strict 단계용) ── */
.inline { display: inline; }
.inline-block { display: inline-block; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mt-sm { margin-top: 6px; }
.mt-md { margin-top: 14px; }
.mt-lg { margin-top: 30px; }
.mb-md { margin-bottom: 14px; }
.full-width { width: 100%; }


/* ── admin 공통 테이블 컴포넌트 ────────────────────────── */
.adm-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.adm-table thead tr { color: var(--text-dim); font-weight: 600; text-align: left; }
.adm-table th { padding: 10px; font-weight: 600; }
.adm-table td { padding: 10px; vertical-align: top; }
.adm-table tbody tr { border-top: 1px solid var(--line); }
.adm-table tbody tr:hover { background: var(--bg-3); }
.adm-table .td-dim { color: var(--text-dim); }
.adm-table .td-num { text-align: right; }
.adm-table code { font-size: 11px; }

/* 테이블 열 너비 modifier */
.col-40  { width: 40px; }
.col-60  { width: 60px; }
.col-80  { width: 80px; }
.col-100 { width: 100px; }
.col-120 { width: 120px; }
.col-140 { width: 140px; }
.col-160 { width: 160px; }
.col-180 { width: 180px; }

/* 작은 버튼 — admin 액션 */
.btn-tiny { font-size: 11px; padding: 3px 8px; }

/* 색상 유틸 */
.text-danger { color: #dc2626; }
.text-success { color: #16a34a; }
.text-warn { color: #f59e0b; }
.text-accent { color: var(--accent); }
.text-accent-2 { color: var(--accent-2); }

/* spacing — 라운드 9 보강 */
.mt-xs { margin-top: 4px; }
.mt-xl { margin-top: 60px; }
.mb-sm { margin-bottom: 6px; }
.mb-lg { margin-bottom: 24px; }
.mb-xl { margin-bottom: 30px; }
.p-md { padding: 14px; }
.p-lg { padding: 22px; }
.py-card { padding: 30px 20px; }
.py-empty { padding: 80px 20px; }
.gap-sm { gap: 6px; }
.gap-md { gap: 14px; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.w-half { width: 50%; }
.hidden { display: none; }
.center-block { max-width: 580px; margin: 0 auto; }
.preserve-line { white-space: pre-wrap; }
.scroll-y { overflow-y: auto; }

/* 일반 카드/패널 — inline 반복 패턴 #1 */
.card-pad { padding: 18px; }
.card-pad-lg { padding: 22px; }
.card-mb { margin-bottom: 14px; }

/* admin 메시지 박스 */
.msg-banner {
  padding: 14px 18px; margin-bottom: 14px;
  background: var(--bg-card); border: 1px solid var(--accent);
  border-radius: var(--radius);
}

/* 폼 input/select 작게 */
.form-sm { font-size: 12px; padding: 3px 6px; }

/* 본문 max-width 한정 — pricing/contact/error 등 */
.page-narrow { max-width: 560px; margin: 0 auto; }
.page-mid { max-width: 800px; margin: 0 auto; }
.page-wide { max-width: 1100px; margin: 0 auto; }


/* ── admin 페이지 공통 컴포넌트 ───────────────────────── */
.adm-filter-bar {
  padding: 12px 14px; margin-bottom: 14px;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.adm-search { margin-left: auto; display: flex; gap: 6px; }
.adm-search input {
  padding: 5px 10px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 6px;
  width: 200px;
  background: var(--bg-3); color: var(--text);
}
.adm-empty { padding: 30px; text-align: center; }
.card-bare { padding: 0; }

/* badges — 색상 변형 */
.badge { padding: 2px 7px; border-radius: 8px; font-size: 11px; display: inline-block; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-purple { background: #f3e8ff; color: #6b21a8; }
.badge-amber  { background: #fef3c7; color: #92400e; font-size: 10px; padding: 1px 6px; border-radius: 6px; }
.badge-mute   { background: #e5e7eb; color: #6b7280; font-size: 10px; padding: 1px 6px; border-radius: 6px; }
.badge-accent { background: var(--accent); color: #0a0e14; padding: 1px 6px; border-radius: 8px; font-size: 10px; }
.badge-success { background: rgba(52,211,153,0.15); color: var(--green); }
.badge-warn-soft { background: rgba(251,191,36,0.15); color: var(--yellow); }

/* margin auto for flex children */
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

/* pagination bar */
.pagination-bar {
  margin-top: 14px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
}

/* status grid (scheduler dashboard) */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; font-size: 13px;
}
.status-cell .label { font-size: 11px; color: var(--text-dim); }
.status-cell .val { font-size: 18px; font-weight: 700; margin-top: 4px; }
.status-cell .val-sm { font-size: 14px; font-weight: 600; margin-top: 4px; }

/* admin write form 안의 fieldset */
.adm-fieldset {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 14px; margin-top: 10px;
}
.adm-fieldset legend {
  font-size: 13px; color: var(--accent-2); padding: 0 8px;
}

/* form action row */
.form-actions { margin-top: 14px; display: flex; gap: 10px; align-items: center; }

/* email-log style box (admin scheduler 로그 등) */
.log-box {
  background: var(--bg-3); padding: 12px; border-radius: 8px;
  max-height: 300px; overflow: auto; font-size: 12px;
  white-space: pre-wrap; margin-top: 10px;
}

/* admin checkbox row (스케줄러 체크박스 라벨) */
.check-row {
  display: flex; align-items: center; gap: 8px; flex-direction: row;
}

/* msg-banner accent variants */
.msg-banner-accent { border-color: var(--accent); }

/* 에러 페이지 큰 코드 */
.error-code {
  font-size: 80px; font-weight: 800; color: var(--accent); line-height: 1;
}

/* contact 폼 grid */
.contact-grid {
  display: grid; gap: 14px; grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }

/* pricing 카드 grid 2/3 col */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* margin-left utility */
.ml-xs { margin-left: 4px; }
.ml-sm { margin-left: 6px; }
.ml-md { margin-left: 12px; }
.ml-lg { margin-left: 24px; }
.mr-sm { margin-right: 6px; }
.mr-md { margin-right: 12px; }

/* badge — admin 회원 역할 */
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-neutral { background: #e5e7eb; color: #4b5563; }

/* 이메일 링크 등 accent 색 강조 */
.link-accent { color: var(--accent); }

/* members 검색 input은 더 길게 */
.adm-search-wide input { width: auto; flex: 1; max-width: 300px; }

.ml-0 { margin-left: 0 !important; }

/* contact status badges */
.badge-new      { background: #fef3c7; color: #92400e; padding: 2px 8px; border-radius: 8px; font-size: 11px; }
.badge-progress { background: #dbeafe; color: #1e40af; padding: 2px 8px; border-radius: 8px; font-size: 11px; }
.badge-done     { background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: 8px; font-size: 11px; }

/* 문의 메시지 박스 — max-height 스크롤 */
.msg-box {
  white-space: pre-wrap; max-height: 120px;
  overflow: auto; font-size: 13px; line-height: 1.6;
}

.text-mute { color: var(--text-mute); }
.text-dim  { color: var(--text-dim); }

/* check row 자체-align end (스케줄러 체크박스 grid 우측) */
.check-row-end { display: flex; align-items: center; gap: 8px; align-self: end; padding-bottom: 10px; }

/* external_publish 안 강조 dry-run 라벨 */
.dry-run-banner {
  background: rgba(0,212,255,0.08);
  padding: 10px; border-radius: 8px;
  border: 1px solid var(--accent-2);
  display: flex; align-items: center; gap: 8px;
}

/* contact 페이지 — 성공 카드 */
.success-card { text-align: center; padding: 40px; border-color: var(--accent); }
.success-card .check-mark { font-size: 42px; }

/* page 안 narrow wrap (contact, error 등) */
.page-680 { max-width: 680px; margin: 0 auto; }

/* my- = margin-top + margin-bottom (조합) */
.my-sm { margin-top: 10px; margin-bottom: 10px; }
.my-md { margin-top: 14px; margin-bottom: 14px; }

/* error 페이지 */
.page-error { max-width: 560px; margin: 0 auto; text-align: center; padding: 80px 20px; }
.error-msg { margin-top: 14px; line-height: 1.7; }
.error-actions { margin-top: 30px; display: flex; gap: 10px; justify-content: center; }
.error-details {
  margin-top: 40px; text-align: left;
  background: var(--bg-card); padding: 14px; border-radius: 8px; border: 1px solid var(--line);
}
.error-details summary { cursor: pointer; }
.error-details pre {
  margin-top: 10px; font-size: 12px; white-space: pre-wrap; color: var(--text-dim);
}

/* 댓글 depth — 동적 inline 대체 */
.depth-0 { margin-left: 0; }
.depth-1 { margin-left: 24px; }
.depth-2 { margin-left: 48px; }
.depth-3 { margin-left: 72px; }
.depth-4 { margin-left: 96px; }

/* community detail — 빈 공간 */
.empty-narrow { padding: 18px; }

/* search form narrow centered */
.search-form-narrow { max-width: 500px; margin: 0 auto 24px; }
.chips-center { justify-content: center; margin-bottom: 24px; }
.header-center { text-align: center; margin-bottom: 30px; }

/* blog 글 상세 — cover image 스타일 */
.post-cover {
  width: 100%; border-radius: var(--radius); margin-bottom: 18px;
}

/* page max-width 추가 변형 */
.page-780 { max-width: 780px; margin: 0 auto; }

/* 관련 글 섹션 */
.related-section { margin-top: 60px; }
.related-section h3 { margin-bottom: 14px; }

/* 알림 박스 — forgot 페이지 'sent' 안내 */
.alert-info {
  background: #e0f2fe; border: 1px solid #7dd3fc;
  color: #075985; padding: 12px 14px; border-radius: 8px;
  margin-bottom: 12px;
}
.alert-info p, .alert-info * { color: #0c4a6e; }

/* center utilities */
.center-mt-sm  { text-align: center; margin-top: 8px; }
.center-mt-md  { text-align: center; margin-top: 14px; }
.center-mb-md  { text-align: center; margin-bottom: 14px; }

/* page max-widths 960 / 800 */
.page-960 { max-width: 960px; margin: 0 auto; }
.page-800 { max-width: 800px; margin: 0 auto; }

/* community write toolbar */
.write-toolbar {
  margin-bottom: 6px; display: flex; gap: 8px;
  align-items: center; flex-wrap: wrap;
}

.row-between { display: flex; justify-content: space-between; align-items: center; }
.m-0 { margin: 0; }
.cta-row-center { justify-content: center; }

.adm-head-mt { margin-top: 34px; }
.h-sm { font-size: 18px; }
