/* health-note.css — AI Live 건강상담 메모 패널 (2026-08-15)
   ⚠️ 모든 선택자를 .hn- 스코프 안에 둔다. getlive 의 기존 디자인에 간섭하지 않기 위해서다. */

.hn-panel {
  position: fixed; inset: 0; z-index: 2147482000;
  background: rgba(8, 6, 20, 0.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.hn-panel[hidden] { display: none; }
.hn-panel-in {
  width: 100%; max-width: 620px; max-height: 86vh;
  display: flex; flex-direction: column;
  background: #14121f; color: #e6e3f0;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
  overflow: hidden;
}
.hn-panel-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; font-size: 14.5px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
/* ⛔ main.css(HTML5UP) 가 **모든 <button>** 에 아래를 건다:
      height: calc(4.75em + 2px);  line-height: 4.75em;
      border-radius: 3em;          padding: 0 3.75em;
      border: solid 1px !important;   ← !important 라 border:none 이 안 먹는다
   그래서 닫기 버튼이 세로로 긴 알약으로 보였다(오너 제보 2026-08-15).
   패널 안 버튼은 여기서 한 번에 되돌린다 — 나중에 버튼을 추가해도 자동 적용된다.
   ⚠️ border 를 다시 그릴 때는 !important 가 필요하다.
   ⚠️ 이 리셋은 명시도 (0,1,1) 이라 `.hn-x`(0,1,0) 를 이겨버린다 →
      개별 버튼 클래스는 전부 `.hn-panel .hn-xxx` 로 스코프를 올려 둘 것. */
.hn-panel button {
  height: auto; min-height: 0; min-width: 0;
  line-height: 1.2; padding: 0; margin: 0;
  border-radius: 8px; box-shadow: none;
  white-space: normal; text-transform: none; letter-spacing: normal;
  font-family: inherit;
}

.hn-panel .hn-x {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;                 /* 헤더 flex 에서 늘어나지 않게 */
  width: 32px; height: 32px;
  background: none; border: 0 !important; color: inherit;
  font-size: 17px; line-height: 1; cursor: pointer; opacity: 0.6;
}
.hn-panel .hn-x:hover { opacity: 1; background: rgba(255,255,255,0.08); }
.hn-panel-body { overflow-y: auto; padding: 16px 18px 20px; }

.hn-card + .hn-card { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); }
.hn-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 12px; }
.hn-head h4 { margin: 0; font-size: 16px; font-weight: 700; }
.hn-dept {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  background: rgba(139,92,246,0.22); border: 1px solid rgba(139,92,246,0.4);
}

/* 응급 신호 — 유일하게 색을 강하게 쓰는 자리. 놓치면 안 되는 정보다. */
.hn-red {
  margin: 0 0 14px; padding: 11px 13px; border-radius: 10px;
  background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.42);
  font-size: 12.5px; line-height: 1.6;
}
.hn-red b { color: #fca5a5; }
.hn-red ul { margin: 5px 0 6px; padding-left: 17px; }
.hn-red p { margin: 0; font-weight: 600; }

.hn-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.hn-tbl th {
  text-align: left; width: 92px; padding: 6px 10px 6px 0;
  font-weight: 600; opacity: 0.62; vertical-align: top; white-space: nowrap;
}
.hn-tbl td { padding: 6px 0; line-height: 1.6; }
.hn-tbl tr + tr th, .hn-tbl tr + tr td { border-top: 1px solid rgba(255,255,255,0.07); }

.hn-sec { margin-top: 17px; }
.hn-sec h5 { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; opacity: 0.72; }
.hn-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.65; }
.hn-list li { margin-bottom: 9px; }
.hn-list b { font-weight: 700; }
.hn-sub, .hn-chk { display: block; font-size: 12px; opacity: 0.72; margin-top: 2px; }
.hn-chk { opacity: 0.56; }
.hn-ask li { margin-bottom: 5px; }

.hn-disc {
  margin: 18px 0 0; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px; line-height: 1.65; opacity: 0.58;
}
.hn-acts { display: flex; gap: 8px; margin-top: 14px; }
.hn-panel .hn-btn {
  flex: 1; padding: 9px 12px; border-radius: 9px; cursor: pointer;
  font-size: 12.5px; font-weight: 600; line-height: 1.3;
  background: rgba(255,255,255,0.07); color: inherit;
  /* ⚠️ main.css 의 border !important 를 이기려면 이쪽도 !important 여야 한다 */
  border: 1px solid rgba(255,255,255,0.16) !important;
}
.hn-panel .hn-btn:hover { background: rgba(255,255,255,0.13); }
.hn-panel .hn-danger { color: #fca5a5; border-color: rgba(239,68,68,0.4) !important; }
.hn-empty { text-align: center; opacity: 0.6; padding: 34px 0; font-size: 13px; }

@media (max-width: 480px) {
  .hn-panel { padding: 0; }
  .hn-panel-in { max-width: none; max-height: 100vh; height: 100vh; border-radius: 0; border: none; }
  .hn-tbl th { width: 76px; font-size: 12px; }
}

/* 면책 고지 줄에 붙는 '지난 상담 메모' 버튼 — 고지문을 밀어내지 않게 작고 조용하게 */
.live-health-notes-btn {
  margin-left: auto;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  color: inherit; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
}
.live-health-notes-btn:hover { background: rgba(255,255,255,0.15); }
