/* 패배자들 (HICKS CLUB) — 이미지·차트·숏츠까지 올리는 주식 Q&A
   화이트 톤 · 얇은 경계선 · 붉은 포인트 하나. */

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --border: #e5e7eb;
  --border-soft: #f1f2f4;
  --soft: #fafafa;
  --accent: #d92b2b;
  --accent-soft: #fdf2f2;
  --done: #1f7a4d;
  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo",
          "Noto Sans CJK KR", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  flex: 0 0 auto;
  text-decoration: none !important;
}

.brand-ko {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-en {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  border-left: 1px solid var(--border);
  padding-left: 10px;
  transform: translateY(-1px);
  white-space: nowrap;
}

.head-nav { display: flex; align-items: center; gap: 14px; }

.nav-link {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}

.head-user { font-size: 13.5px; color: var(--text); font-weight: 600; white-space: nowrap; }
.head-nick { font-weight: 700; }
.head-sep { color: var(--border); }
.head-logout { margin: 0; display: inline-flex; }
.nav-btn {
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.nav-btn:hover { color: var(--accent); }

.btn-write {
  display: inline-block;
  background: var(--text);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: background 0.15s ease;
}
.btn-write:hover { background: var(--accent); }

/* ---------- board head ---------- */

main { padding-bottom: 56px; min-height: 60vh; }

.board-head { padding: 30px 0 16px; }

.board-title {
  margin: 0 0 6px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.board-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- tabs ---------- */

.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 11px 1px 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none !important;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- toolbar ---------- */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 12px;
  flex-wrap: wrap;
}

.sorts { display: flex; gap: 14px; }

.sort {
  font-size: 13px;
  color: var(--muted);
  padding: 2px 0;
  text-decoration: none !important;
}
.sort:hover { color: var(--text); }
.sort.active { color: var(--text); font-weight: 700; }

.search { display: flex; gap: 0; }

.search-input {
  width: 214px;
  font-family: inherit;
  font-size: 13.5px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--soft);
  outline: none;
}
.search-input:focus { border-color: var(--text); background: #fff; }

.search-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  color: var(--text);
}
.search-btn:hover { background: var(--soft); }

.result-line {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
}
.result-line strong { color: var(--text); }

/* ---------- post list ---------- */

.post-list { list-style: none; margin: 0; padding: 0; }

.post-item {
  display: flex;
  gap: 13px;
  padding: 15px 8px 14px;
  border-bottom: 1px solid var(--border-soft);
  align-items: flex-start;
}
.post-item:hover { background: var(--soft); }

.post-badge { flex: 0 0 62px; padding-top: 2px; }

.badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 3px 7px;
  border-radius: 3px;
  white-space: nowrap;
}
.badge-done { color: var(--done); background: #eef7f1; border: 1px solid #d6ecdf; }
.badge-wait { color: var(--muted); background: #f6f6f7; border: 1px solid var(--border); }
.badge-adopted { color: #fff; background: var(--accent); }
.badge-lock {
  margin-left: 6px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--border);
  font-weight: 600;
  vertical-align: 2px;
}

.badge-media {
  margin-left: 6px;
  color: var(--muted);
  background: #fbfbfc;
  border: 1px solid var(--border);
  font-weight: 600;
  vertical-align: 2px;
}

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

.post-line { display: block; }

.post-title {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  overflow-wrap: anywhere;
}
.post-item:hover .post-title { color: var(--accent); }

.answer-count {
  display: inline-block;
  margin-left: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--muted-2);
  flex-wrap: wrap;
}

.cat-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 6px;
  line-height: 1.5;
}

.meta-nick { color: var(--muted); font-weight: 600; }
.dot { color: var(--border); }

/* ---------- pager ---------- */

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 26px 0 4px;
}

.page-num, .page-btn {
  display: inline-block;
  min-width: 32px;
  text-align: center;
  font-size: 13px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none !important;
}
.page-num.active { background: var(--text); color: #fff; border-color: var(--text); font-weight: 700; }
.page-btn.disabled { color: var(--border); }
a.page-num:hover, a.page-btn:hover { border-color: var(--text); color: var(--text); }

/* ---------- empty ---------- */

.empty {
  text-align: center;
  padding: 64px 20px 56px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  margin-top: 18px;
  background: #fff;
}
.empty-title { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.empty-sub { margin: 0 0 20px; color: var(--muted); font-size: 13.5px; }

/* ---------- flash ---------- */

.flash {
  margin: 18px 0 0;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--soft);
}
.flash.ok { border-color: #d6ecdf; background: #eef7f1; color: #176341; }
.flash.err { border-color: #f3d0d0; background: var(--accent-soft); color: #a11f1f; }

/* ---------- detail ---------- */

.crumbs {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 18px 0 0;
  font-size: 12.5px;
  color: var(--muted-2);
}
.crumbs a { color: var(--muted); }
.crumb-sep { color: var(--border); }

.post { padding: 14px 0 26px; border-bottom: 1px solid var(--border); }

.post-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }

.post-h1 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.detail-meta { margin-bottom: 22px; font-size: 12.5px; }

.post-content,
.answer-content {
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #1b1b1b;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  flex-wrap: wrap;
}

/* ---------- 첨부(이미지·동영상·YouTube) ---------- */

.post-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.post-image-link { display: block; }

.post-image {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.post-video-wrap { margin: 0; text-align: center; }

.post-video {
  display: inline-block;
  max-width: 100%;
  max-height: 72vh;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #000;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed-vertical {
  width: auto;
  height: min(70vh, 620px);
  max-width: 100%;
  aspect-ratio: 9 / 16;
  margin: 18px auto 0;
}

.video-link {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--muted-2);
}
.video-link a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

/* 글쓰기·수정 화면의 첨부 칸 */

.media-field { margin-top: 22px; }

.media-note {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.media-room {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.media-attached {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
}

.media-attached-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--muted);
  background: #fff;
}
.media-attached-item + .media-attached-item { border-top: 1px solid var(--border-soft); }

.media-thumb {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--soft);
}
.media-thumb-video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: #000;
  color: #fff;
}

.media-file-name {
  flex: 1;
  min-width: 0;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-file-size { color: var(--muted-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

.media-remove {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  cursor: pointer;
}
.media-remove input { margin: 0; }

.file-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 15px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--soft);
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}
.file-drop:hover { border-color: var(--text); background: #fff; }

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.file-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
}

.file-hint { font-size: 11.5px; color: var(--muted-2); }

.file-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.file-preview-item { display: flex; flex-direction: column; gap: 4px; width: 96px; }
.file-preview-item img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--soft);
}
.file-preview-video {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 72px;
  font-size: 24px;
  color: #fff;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.file-preview-name {
  font-size: 10.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.12s ease;
}
.vote-btn:hover { border-color: var(--accent); color: var(--accent); }
.vote-btn.voted { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.vote-icon { font-size: 9px; transform: translateY(-1px); }
.vote-count { font-variant-numeric: tabular-nums; }
.vote-btn.small { padding: 4px 9px; font-size: 12px; }

.link-btn {
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  padding: 5px 0;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-decoration-style: dotted;
  text-underline-offset: 4px;
}
.link-btn::-webkit-details-marker { display: none; }
.link-btn:hover { color: var(--text); text-decoration-color: var(--muted); }
.link-btn.muted { color: var(--muted-2); }

.manage-form, .inline-details form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--soft);
}
.manage-form .field-label { width: 100%; margin: 0 0 2px; }

.manage-btns { display: flex; gap: 6px; }

/* ---------- answers ---------- */

.answers { padding: 26px 0 8px; }

.answers-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.answers-count { color: var(--accent); margin-left: 2px; }

.answer-list { list-style: none; margin: 0; padding: 0; }

.answer {
  padding: 16px 16px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fff;
}

.answer.accepted {
  border-color: #f0c9c9;
  background: #fffdfd;
  box-shadow: inset 3px 0 0 var(--accent);
}

.answer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 12.5px;
  color: var(--muted-2);
  flex-wrap: wrap;
}

.answer-content { font-size: 14.5px; line-height: 1.8; }

.answer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.inline-details { display: inline-block; }
.inline-details form { margin-top: 6px; }

.no-answer {
  color: var(--muted);
  font-size: 13.5px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 22px;
  text-align: center;
  margin: 0 0 10px;
}

/* ---------- forms ---------- */

.form-page { padding-top: 22px; max-width: 720px; }

.write-form { margin-top: 22px; }

.field { margin-bottom: 16px; }

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.input, .textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.12s ease;
}
.input:focus, .textarea:focus { border-color: var(--text); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }

.textarea { resize: vertical; line-height: 1.75; }

.input-sm { width: auto; padding: 6px 9px; font-size: 13px; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.cat-choice { display: flex; gap: 8px; flex-wrap: wrap; }

.cat-option {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.cat-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.cat-option span {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  background: #fff;
}
.cat-option input:checked + span {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}
.cat-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.cat-hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hint { font-size: 12px; color: var(--muted-2); }

.form-btns { display: flex; align-items: center; gap: 8px; }

.btn-primary {
  display: inline-block;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff !important;
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: var(--radius);
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none !important;
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }

.btn-ghost {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 16px;
  text-decoration: none !important;
}
.btn-ghost:hover { border-color: var(--text); color: var(--text) !important; }

.btn-sm {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.btn-sm:hover { border-color: var(--text); }

.btn-danger { color: var(--accent); border-color: #f0d5d5; }
.btn-danger:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- ALPHA 잠금 카드 ---------- */

.lock-card {
  margin: 26px 0 10px;
  padding: 44px 32px 36px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: #fff;
}

.lock-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.9;
}

.lock-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lock-text {
  margin: 0 auto;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  word-break: keep-all;
}

.lock-post {
  margin: 14px auto 0;
  max-width: 460px;
  font-size: 13px;
  color: var(--text);
  background: var(--soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 9px 12px;
  overflow-wrap: anywhere;
}

.lock-steps {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 26px;
  margin: 24px 0 0;
  padding: 0;
  flex-wrap: wrap;
}

.lock-steps li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.lock-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
}

.lock-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.lock-note {
  margin: 18px 0 0;
  font-size: 11.5px;
  color: var(--muted-2);
}

/* ---------- 회원가입 · 인증 · 로그인 ---------- */

.auth-page { max-width: 560px; padding-bottom: 20px; }

.auth-card {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px 28px 26px;
  background: #fff;
}

.auth-title {
  margin: 18px 0 8px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.auth-sub {
  margin: 0 0 22px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  word-break: keep-all;
}
.auth-sub strong { color: var(--text); }

.steps {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-2);
}
.step + .step::before {
  content: "→";
  color: var(--border);
  margin-right: 2px;
}
.step.active { color: var(--text); }
.step.done { color: var(--done); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.auth-form { margin-top: 4px; }

.field-hint {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--muted-2);
}

.field-error .input { border-color: #e9a5a5; background: #fffafa; }

.code-input {
  max-width: 220px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.28em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.code-input::placeholder {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.verify-targets {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
}

.verify-target {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-size: 13px;
  background: #fff;
}
.verify-target + .verify-target { border-top: 1px solid var(--border-soft); }
.verify-target.done { background: #f7fbf8; }

.verify-kind {
  flex: 0 0 64px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

.verify-value { flex: 1; min-width: 0; overflow-wrap: anywhere; }

.verify-state {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  white-space: nowrap;
}
.verify-target.done .verify-state { color: var(--done); }

.dev-box {
  margin: 0 0 20px;
  padding: 13px 15px;
  border: 1px dashed #e3c98f;
  border-radius: 8px;
  background: #fffdf6;
  font-size: 12px;
  color: #7a5c14;
}
.dev-box strong { display: block; font-size: 11.5px; letter-spacing: 0.02em; margin-bottom: 4px; }
.dev-box p { margin: 0; line-height: 1.6; }
.dev-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  background: #f6efdd;
  padding: 0 3px;
  border-radius: 3px;
}
.dev-codes {
  display: flex;
  gap: 16px;
  margin-top: 9px;
  flex-wrap: wrap;
  font-size: 11.5px;
}
.dev-codes b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: #5d4409;
}

.resend-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.resend-form .link-btn {
  padding: 0;
  font-size: 12px;
  font-family: inherit;
  background: none;
  border: 0;
}

.auth-alt {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 12.5px;
  color: var(--muted);
}
.auth-alt a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); }

textarea.input { resize: vertical; }

.member-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 10px 13px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--soft);
  font-size: 12.5px;
  color: var(--muted);
}
.member-note strong { color: var(--text); }

.member-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.owner-box { flex-direction: column; align-items: flex-start; }

.cat-hint-lock { color: var(--accent); }
.cat-hint-lock a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--border);
  padding: 22px 0 30px;
  font-size: 12px;
  color: var(--muted-2);
}
.site-foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-brand { font-weight: 700; color: var(--muted); letter-spacing: -0.01em; }

/* ---------- mobile ---------- */

@media (max-width: 640px) {
  body { font-size: 14.5px; }

  .wrap { padding: 0 16px; }

  .head-inner { height: 56px; gap: 8px; }
  .brand-ko { font-size: 19px; }
  .brand-en { font-size: 9.5px; padding-left: 8px; letter-spacing: 0.13em; }
  .head-nav { gap: 8px; }
  .nav-link { display: none; }
  .nav-link.nav-auth { display: inline; }
  .nav-link.nav-signup { display: none; }
  .head-logout .nav-btn { display: inline; white-space: nowrap; }
  .head-user {
    font-size: 12.5px;
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .head-sep { display: none; }
  .btn-write { padding: 7px 11px; font-size: 12.5px; white-space: nowrap; }

  .board-head { padding: 22px 0 12px; }
  .board-title { font-size: 21px; }
  .board-sub { font-size: 13px; }

  .tabs { gap: 18px; }
  .tab { font-size: 14px; }

  .toolbar { gap: 10px; padding: 12px 0 10px; }
  .sorts { gap: 12px; overflow-x: auto; }
  .search { width: 100%; }
  .search-input { flex: 1; width: auto; }

  .post-item { gap: 10px; padding: 13px 2px 12px; }
  .post-badge { flex: 0 0 54px; }
  .badge { font-size: 9.5px; padding: 2px 5px; }
  .post-title { font-size: 14.8px; line-height: 1.45; }
  .post-meta { font-size: 11.8px; gap: 5px; }

  .post-h1 { font-size: 19.5px; }
  .post-content { font-size: 14.8px; }

  .video-embed-vertical { width: 100%; height: auto; aspect-ratio: 9 / 16; }
  .media-attached-item { gap: 8px; padding: 7px 10px; font-size: 12px; }
  .media-thumb { width: 40px; height: 40px; }
  .media-file-size { display: none; }

  .row-2 { grid-template-columns: 1fr; gap: 0; }

  .form-foot { flex-direction: column; align-items: stretch; }
  .form-btns { justify-content: flex-end; }
  .btn-primary { width: 100%; text-align: center; }

  .answer { padding: 14px 13px 12px; }
  .manage-form, .inline-details form { width: 100%; }
  .input-sm { flex: 1; min-width: 0; }

  .lock-card { padding: 34px 18px 28px; }
  .lock-steps { gap: 14px; }
  .lock-actions { flex-direction: column; align-items: stretch; }
  .lock-actions .btn-primary, .lock-actions .btn-ghost { text-align: center; }

  .auth-card { padding: 24px 18px 22px; }
  .auth-title { font-size: 20px; }
  .code-input { max-width: none; }
}
