.bt-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 64px;
}

/* 히어로 */
.bt-hero { text-align: center; margin: 24px 0 28px; }
.bt-hero__title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #1a1a1a;
}
.bt-hero__sub { color: #555; font-size: 1rem; line-height: 1.6; margin: 0; }
.bt-hero__sub strong { color: #0c6b3f; } /* 네이버 그린 */

/* 입력 카드 */
.bt-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 6px 24px rgba(0,0,0,.05);
}
.bt-label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  margin: 14px 0 6px;
  color: #333;
}
.bt-label:first-of-type { margin-top: 0; }
.bt-input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #e2e2e2;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: border-color .15s;
  background: #fafafa;
}
.bt-input:focus { border-color: #0c6b3f; background: #fff; }

/* 허니팟 숨김 */
.bt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 버튼 */
.bt-btn {
  width: 100%;
  margin-top: 18px;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: #0c6b3f;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: filter .15s, transform .05s;
}
.bt-btn:hover { filter: brightness(.96); }
.bt-btn:active { transform: translateY(1px); }
.bt-btn:disabled { opacity: .6; cursor: progress; }

.bt-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: bt-spin .7s linear infinite;
}
.bt-spinner.htmx-request { display: inline-block; }
.htmx-request .bt-btn__text { opacity: .7; }
@keyframes bt-spin { to { transform: rotate(360deg); } }

.bt-quota { text-align: center; color: #999; font-size: .82rem; margin: 12px 0 0; }
.bt-quota strong { color: #0c6b3f; }

/* 결과 */
.bt-result { margin-top: 18px; }
.bt-out {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 20px;
  animation: bt-fade .25s ease;
}
@keyframes bt-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.bt-out__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; flex-wrap: wrap; gap: 6px;
}
.bt-out__kw { font-weight: 800; font-size: 1.05rem; color: #1a1a1a; }
.bt-out__remain { font-size: .8rem; color: #0c6b3f; background: #eafaf0; padding: 4px 10px; border-radius: 999px; }

.bt-block { margin-top: 22px; }
.bt-block:first-of-type { margin-top: 0; }
.bt-block__title { font-size: 1rem; font-weight: 800; margin: 0 0 12px; color: #222; }

/* 제목 리스트 */
.bt-titles { list-style: none; counter-reset: bt; padding: 0; margin: 0; }
.bt-titles li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: #f8f9fa; border-radius: 12px;
  margin-bottom: 8px; counter-increment: bt;
}
.bt-titles li::before {
  content: counter(bt);
  flex: 0 0 24px; height: 24px; line-height: 24px; text-align: center;
  background: #0c6b3f; color: #fff; border-radius: 50%;
  font-size: .8rem; font-weight: 800;
}
.bt-titles__text { flex: 1; font-size: .98rem; line-height: 1.45; color: #1a1a1a; word-break: keep-all; }

/* 아웃라인 */
.bt-outline { border-left: 3px solid #0c6b3f; padding-left: 14px; }
.bt-outline__sec { margin-bottom: 14px; }
.bt-outline__h2 { font-weight: 800; font-size: .98rem; color: #1a1a1a; margin-bottom: 6px; }
.bt-outline__pts { margin: 0; padding-left: 18px; color: #555; font-size: .9rem; line-height: 1.7; }

/* 태그 */
.bt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bt-tag { background: #eef6ff; color: #2563eb; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }

.bt-tip {
  margin-top: 22px; padding: 14px 16px;
  background: #fffbe6; border: 1px solid #ffe58f; border-radius: 12px;
  font-size: .9rem; color: #614700; line-height: 1.6;
}

/* 복사 버튼 */
.bt-copy {
  flex: 0 0 auto; border: none; background: #fff; color: #0c6b3f;
  border: 1.5px solid #0c6b3f; border-radius: 8px;
  padding: 6px 12px; font-size: .8rem; font-weight: 700; cursor: pointer;
  transition: background .15s, color .15s;
}
.bt-copy:hover { background: #0c6b3f; color: #fff; }
.bt-copy--all { width: 100%; margin-top: 12px; padding: 11px; }
.bt-copy.is-done { background: #0c6b3f; color: #fff; }

/* 게이트 */
.bt-gate {
  text-align: center; background: #fff; border: 1px solid #ececec;
  border-radius: 18px; padding: 32px 22px;
}
.bt-gate__icon { font-size: 2.4rem; margin-bottom: 8px; }
.bt-gate h3 { font-size: 1.2rem; font-weight: 800; margin: 0 0 10px; }
.bt-gate p { color: #666; font-size: .92rem; line-height: 1.6; margin: 0 0 20px; }
.bt-gate__share { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.bt-share { padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: .9rem; cursor: pointer; border: none; text-decoration: none; }
.bt-share--kakao { background: #fee500; color: #3c1e1e; }
.bt-share--link { background: #f0f0f0; color: #333; }

/* 메시지 */
.bt-msg { padding: 16px; border-radius: 12px; text-align: center; font-size: .95rem; }
.bt-msg--error { background: #fff1f0; border: 1px solid #ffccc7; color: #cf1322; }

/* 가이드 */
.bt-guide { margin-top: 40px; }
.bt-guide h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; color: #222; }
.bt-guide ul { padding-left: 20px; color: #555; line-height: 1.9; font-size: .92rem; }

@media (max-width: 480px) {
  .bt-hero__title { font-size: 1.4rem; }
  .bt-card { padding: 18px; }
  .bt-titles li { flex-wrap: wrap; }
}

/* AI 생성 고지 (희미하게) */
.bt-disclaimer {
  margin-top: 32px;
  padding: 12px 14px;
  font-size: .78rem;
  line-height: 1.6;
  color: #aaa;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}
.bt-disclaimer strong { color: #888; font-weight: 700; }

.bt-out__ai {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed #ececec;
  font-size: .76rem;
  color: #b5b5b5;
  text-align: center;
}

/* 운영자 전용 대시보드 바 (staff만 보임) */
.bt-opsbar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; padding: 12px 16px;
  background: #1a1a2e; color: #fff; border-radius: 12px;
  font-weight: 800; font-size: .92rem; text-decoration: none;
  transition: background .15s;
}
.bt-opsbar:hover { background: #2a2a44; color: #fff; }
.bt-opsbar span { font-weight: 500; font-size: .82rem; color: #b8b8d0; }
@media (max-width: 480px) {
  .bt-opsbar { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* 네이버 상위 분석 반영 배지 */
.bt-naver-badge {
  margin-bottom: 16px; padding: 10px 14px;
  background: #eafaf0; border: 1px solid #b8e6c9; border-radius: 10px;
  font-size: .85rem; color: #0c6b3f; font-weight: 600; line-height: 1.5;
}

/* 로그인 유저 내 기록 바 */
.bt-mybar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; padding: 12px 16px;
  background: #0c6b3f; color: #fff; border-radius: 12px;
  font-weight: 800; font-size: .92rem; text-decoration: none;
  transition: filter .15s;
}
.bt-mybar:hover { filter: brightness(1.1); color: #fff; }
.bt-mybar span { font-weight: 500; font-size: .82rem; color: #cfeede; }

/* 비로그인 로그인 유도 힌트 */
.bt-loginhint {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 14px; padding: 12px 16px;
  background: #f1f8f4; border: 1px solid #cce8d8; border-radius: 12px;
  font-size: .88rem; color: #0c6b3f; flex-wrap: wrap;
}
.bt-loginhint strong { font-weight: 700; }
.bt-loginhint a { color: #0c6b3f; font-weight: 800; text-decoration: none; white-space: nowrap; }
.bt-loginhint a:hover { text-decoration: underline; }

/* 게이트 로그인 버튼 */
.bt-share--login { background: #0c6b3f; color: #fff; }
.bt-share--login:hover { filter: brightness(1.1); }

/* 내 기록 페이지 */
.bt-hist {
  background: #fff; border: 1px solid #ececec; border-radius: 16px;
  padding: 18px 20px; margin-bottom: 14px;
}
.bt-hist__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; flex-wrap: wrap; gap: 4px;
}
.bt-hist__kw { font-weight: 800; font-size: 1.02rem; color: #1a1a1a; }
.bt-hist__date { font-size: .78rem; color: #aaa; }
.bt-hist__block { margin-bottom: 10px; }
.bt-hist__label { font-size: .85rem; font-weight: 800; color: #444; margin-bottom: 8px; }
.bt-hist__titles { list-style: none; counter-reset: bh; padding: 0; margin: 0; }
.bt-hist__titles li {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; background: #f8f9fa; border-radius: 10px; margin-bottom: 6px;
}
.bt-hist__titles li span { flex: 1; font-size: .92rem; line-height: 1.4; word-break: keep-all; }
.bt-hist__detail summary { cursor: pointer; color: #0c6b3f; font-size: .85rem; font-weight: 700; margin: 6px 0; }
.bt-hist__outline { padding: 8px 0 4px; }
.bt-hist__h2 { font-size: .88rem; color: #555; line-height: 1.7; }
.bt-hist__tags { margin-top: 10px; color: #888; font-size: .82rem; line-height: 1.6; }

.bt-hist-empty { text-align: center; padding: 48px 20px; color: #888; }
.bt-hist-empty__icon { font-size: 2.6rem; margin-bottom: 10px; }
.bt-hist-empty p { line-height: 1.6; }
