/* 케이스노트 — 밝은 세이지 (시안 색) */
:root {
  --bg: #F8FAF6;
  --surface: #FFFFFF;
  --soft: #EAF2E7;
  --primary: #557A5B;
  --primary-hover: #4a6b50;
  --ink: #26312B;
  --muted: #5D6A61;
  --line: #DCE6D8;
  --warn: #9a5b45;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans KR", sans-serif;
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
p { margin: 0; word-break: keep-all; }
.muted { color: var(--muted); }

/* 공통 입력 */
.lbl { display: block; font-size: 14px; font-weight: 500; margin: 0 0 8px; color: var(--ink); }
.field {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.field:focus { border-color: var(--primary); }
.btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.btn:hover { background: var(--primary-hover); }
.btn:disabled { opacity: .6; cursor: default; }
.msg { font-size: 14px; margin-top: 12px; color: var(--muted); line-height: 1.6; word-break: keep-all; }
.msg:empty { display: none; }
.msg.err { color: var(--warn); }
.link {
  background: none; border: 0; padding: 0;
  font: inherit; font-size: 14px;
  color: var(--muted); text-decoration: underline; cursor: pointer;
}

/* 로그인 */
.center {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.card {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 28px 32px;
  box-shadow: 0 16px 38px rgba(52, 58, 52, .06);
}
.org { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.brand { font-family: "Gowun Batang", serif; font-weight: 700; font-size: 26px; margin: 0 0 24px; }
.note { font-size: 14px; margin-top: 16px; color: var(--muted); line-height: 1.7; }
.sent { background: var(--soft); border-radius: 12px; padding: 16px; line-height: 1.7; font-size: 15px; }
#again { margin-top: 20px; }
.lbl-gap { margin-top: 16px; }
.auth-link { display: block; margin-top: 18px; }
.remember { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--ink); cursor: pointer; }
.remember input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.code-form { margin-top: 18px; }
.field.code { font-size: 20px; letter-spacing: .25em; text-align: center; }
.field.code::placeholder { font-size: 16px; letter-spacing: normal; }

/* 앱 화면 */
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--bg); }
.app.wide { max-width: 760px; }
.top {
  padding: 20px 20px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.top-org { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.top-title { font-family: "Gowun Batang", serif; font-size: 22px; font-weight: 700; word-break: keep-all; }
.child-pick { margin-top: 8px; font-size: 15px; padding: 8px 12px; }
.tabs {
  display: flex; gap: 6px; padding: 12px 16px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.tab {
  flex: 1; min-height: 44px; padding: 10px 0;
  border: 0; border-radius: 10px; background: transparent;
  font: inherit; font-size: 14px; color: var(--ink); cursor: pointer;
}
.tab[aria-current="page"] { background: var(--primary); color: #fff; font-weight: 700; }
.body { padding: 20px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.week-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.week-name { font-size: 18px; font-weight: 700; }
.week-range { font-size: 13px; color: var(--muted); }
.soft { background: var(--soft); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.soft-title { font-size: 13px; font-weight: 700; color: var(--primary); }
.soft p { font-size: 15px; line-height: 1.6; white-space: pre-line; }
.soft-help {
  margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
  font-size: 14px; line-height: 1.6; color: var(--muted); word-break: keep-all;
}
.qs { display: flex; flex-direction: column; gap: 8px; }

/* 질문 */
.q { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.q-head {
  width: 100%; min-height: 56px; padding: 14px 16px;
  border: 0; background: transparent; font: inherit; color: var(--ink);
  text-align: left; display: flex; align-items: center; gap: 10px; cursor: pointer;
}
.q-title { flex: 1; font-size: 15px; font-weight: 700; line-height: 1.5; word-break: keep-all; }
.chip { flex: none; font-size: 12px; padding: 4px 9px; border-radius: 999px; white-space: nowrap; color: var(--muted); }
.chip.done { background: var(--soft); color: var(--primary); font-weight: 700; }
.chip.none { background: var(--bg); border: 1px solid var(--line); }
.q-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.q-help { font-size: 13px; color: var(--muted); line-height: 1.5; }
.q-text {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; font-size: 15px; line-height: 1.6;
  background: var(--bg); color: var(--ink); resize: vertical;
  min-height: 3.8em; field-sizing: content; outline: none;
}
.q-text:focus { border-color: var(--primary); }
.none-btn {
  align-self: flex-start; min-height: 40px; padding: 0 14px; border-radius: 999px;
  font: inherit; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
}
.none-btn[aria-pressed="true"] { border: 2px solid var(--primary); background: var(--soft); color: var(--ink); font-weight: 700; }

/* 표정 */
.faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.face {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-height: 60px; padding: 6px 2px; border-radius: 10px;
  font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--surface);
}
.face[aria-pressed="true"] { border: 2px solid var(--primary); background: var(--soft); }
.face span { font-size: 11px; line-height: 1.2; color: var(--ink); white-space: nowrap; }

.save {
  margin-top: 8px; min-height: 52px; border: 0; border-radius: 12px;
  background: var(--primary); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.save:disabled { opacity: .6; cursor: default; }
.saved { font-size: 14px; text-align: center; color: var(--primary); font-weight: 500; }
.saved:empty { display: none; }
.saved.err { color: var(--warn); }
.foot { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.6; }
.foot.left { text-align: left; }
.bottom { padding: 8px 16px 40px; text-align: center; }

/* 선생님 이야기·사진 */
.note-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.note-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.note-title { font-size: 14px; font-weight: 700; color: var(--primary); }
.note-date { font-size: 13px; color: var(--muted); }
.note-card p { font-size: 15px; line-height: 1.7; white-space: pre-line; }
.empty { font-size: 15px; color: var(--muted); line-height: 1.7; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--soft); display: block; }

/* 상담자 */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; margin-top: 10px; }
.panel-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-form .full { grid-column: 1 / -1; }
.grid-form .btn { margin-top: 2px; }
.child-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.child-name { font-size: 16px; font-weight: 700; }
.child-meta { font-size: 13px; color: var(--muted); }
.g-list { display: flex; flex-direction: column; gap: 6px; }
.g-row { display: flex; gap: 8px; font-size: 14px; align-items: center; flex-wrap: wrap; }
.g-row .small-link { margin-left: auto; }
.g-mail { word-break: break-all; }
.g-consent { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.g-state { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.g-state.on { background: var(--soft); border-color: var(--soft); color: var(--primary); font-weight: 700; }
.invite { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; }
.invite .btn { grid-column: 1 / -1; margin-top: 0; }
.btn-line { background: var(--surface); color: var(--primary); border: 1px solid var(--primary); }
.btn-line:hover { background: var(--soft); }
.small-link { font-size: 13px; }

@media (max-width: 370px) {
  .face span { font-size: 10px; letter-spacing: -0.04em; }
}
@media (max-width: 420px) {
  .grid-form { grid-template-columns: 1fr; }
  .invite { grid-template-columns: 1fr; }
}

/* ================= 양육자: 이야기 사진 · 사진 모아보기 ================= */
.photo-grid .ph, .thumbs .thumb { padding: 0; border: 0; background: var(--soft); border-radius: 10px; overflow: hidden; cursor: pointer; display: block; }
.photo-grid .ph img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.note-card .photo-grid { margin-top: 4px; }
.ph-day { display: flex; flex-direction: column; gap: 8px; }
.ph-date { font-size: 14px; font-weight: 700; color: var(--primary); }

/* 크게 보기 */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(28, 34, 30, .86); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px 16px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 8px; object-fit: contain; background: #fff; }
.lb-bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lb-btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.lb-btn.danger { border-color: #e2b8a8; color: #f6d9cf; }

/* 알림 */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; line-height: 1.5; box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: opacity .4s; word-break: keep-all; }
.toast.err { background: #7d4a37; }
.toast.out { opacity: 0; pointer-events: none; }
.sr-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ================= 상담자 ================= */
.cn { min-height: 100vh; background: var(--bg); }
.cn-top { background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cn-brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; text-decoration: none; color: var(--ink); }
.cn-org { font-family: "Gowun Batang", serif; font-size: 20px; font-weight: 700; }
.cn-app { font-size: 14px; color: var(--muted); }
.cn-wrap { max-width: 1280px; margin: 0 auto; padding: 24px; }
.pad { padding: 24px; }

.c-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.c-aside { flex: 1 1 220px; max-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.aside-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.aside-title { font-size: 15px; font-weight: 700; }
.aside-pick { display: none; }
.aside-list { display: flex; flex-direction: column; gap: 2px; }
.aside-item { display: block; padding: 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; word-break: keep-all; }
.aside-item:hover { background: var(--bg); }
.aside-item.on { background: var(--soft); font-weight: 700; }
.aside-meta { font-weight: 400; font-size: 13px; color: var(--muted); }
.aside-none { font-size: 14px; color: var(--muted); padding: 8px 12px; }
.aside-closed summary { font-size: 13px; color: var(--muted); padding: 10px 12px; cursor: pointer; }
.c-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.c-loading { color: var(--muted); font-size: 15px; }

.c-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.c-empty { padding: 32px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.c-h2 { font-family: "Gowun Batang", serif; font-size: 22px; margin: 0 0 18px; }
.c-h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.c-h4 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.hint { font-size: 14px; color: var(--muted); line-height: 1.6; word-break: keep-all; }
.c-none { font-size: 14px; color: var(--muted); line-height: 1.6; }
.c-card > form.grid-form, .c-card > .grid-form { margin: 0; }
section.c-card:has(> .c-h2) { padding: 22px 24px; }

/* 버튼 */
.cbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.cbtn:hover { background: var(--bg); }
.cbtn.primary { border: 0; background: var(--primary); color: #fff; font-weight: 700; }
.cbtn.primary:hover { background: var(--primary-hover); }
.cbtn.line { border-color: var(--primary); color: var(--primary); }
.cbtn.small { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.cbtn:disabled { opacity: .5; cursor: default; }
.tlink { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 13px; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.tlink:hover { color: var(--primary-hover); }
.form-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.form-btns .grow { flex: 1; }

/* 아동 머리 */
.c-head { padding: 20px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.c-head-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.c-name { font-family: "Gowun Batang", serif; font-size: 26px; font-weight: 700; margin: 0; word-break: keep-all; }
.c-meta { font-size: 14px; color: var(--muted); word-break: keep-all; }
.c-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* 정보 접기 */
.c-info { padding: 0; }
.c-info > summary { padding: 14px 24px; font-size: 14px; color: var(--muted); cursor: pointer; }
.c-info[open] > summary { border-bottom: 1px solid var(--line); }
.info-sec { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.info-sec:last-child { border-bottom: 0; }
.info-sec .grid-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-sec .invite { margin-top: 12px; grid-template-columns: minmax(0, 1fr) 110px auto; }
.info-sec .invite .cbtn { grid-column: auto; }
.info-sec .g-list { gap: 8px; }
.info-sec .g-row { min-height: 32px; }

/* 보기 고르기 */
.c-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.chip-btn[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: #fff; }

/* 회기 카드 */
.c-list { display: flex; flex-direction: column; gap: 16px; }
.sc { overflow: hidden; }
.sc-head { padding: 12px 24px; background: var(--soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.sc-title { font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left; }
.sc-title.static { cursor: default; }
.sc-right { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rep-link { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; }
.st { font-weight: 700; color: var(--muted); }
.st.ok { color: var(--primary); }
.st.warn { color: #8A4F14; }
.sc-sum { display: block; width: 100%; text-align: left; padding: 16px 24px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.sc-pad { padding: 16px 24px; display: flex; flex-direction: column; gap: 10px; }
.sc-row { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; }
.sc-label { flex: 0 0 110px; font-size: 13px; font-weight: 700; color: var(--primary); padding-top: 2px; }
.sc-body { flex: 1 1 300px; min-width: 0; font-size: 14px; line-height: 1.7; display: flex; flex-direction: column; gap: 8px; }
.sc-act { flex: 0 0 auto; }
.sc-row.editing { background: #FBFCFA; }
.sc-state { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pre { white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.sc-body, .qa-a, .rp-text { word-break: keep-all; overflow-wrap: anywhere; }
.pre.scroll { max-height: 360px; overflow: auto; }
.c-details > summary { cursor: pointer; color: var(--ink); }
.c-details[open] > summary { margin-bottom: 8px; color: var(--muted); }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.c-details[open] > .clamp { display: block; -webkit-line-clamp: unset; height: 0; overflow: hidden; margin: 0; }
details.c-details > summary.clamp { list-style: none; }
details.c-details > summary.clamp::-webkit-details-marker { display: none; }
.c-text { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; line-height: 1.7; background: #fff; color: var(--ink); resize: vertical; outline: none; min-height: 90px; }
.c-text:focus { border-color: var(--primary); }

/* 주간 기록 보기 */
.emo-line { display: flex; flex-wrap: wrap; gap: 6px; }
.emo { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; }
.qa { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; }
.qa-q { font-size: 13px; color: var(--muted); }
.qa-a { font-size: 14px; white-space: pre-wrap; }

/* 사진 */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs .thumb { width: 72px; height: 72px; }
.thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-x { font-size: 12px; color: var(--muted); }
.pick-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pick-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-ph { position: relative; width: 80px; height: 80px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--soft); cursor: pointer; }
.pick-ph img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .75; }
.pick-ph[aria-pressed="true"] { border-color: var(--primary); }
.pick-ph[aria-pressed="true"] img { opacity: 1; }
.pick-mark { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.9); border: 1px solid var(--line); font-size: 13px; line-height: 20px; text-align: center; color: var(--primary); font-weight: 700; }
.pick-ph[aria-pressed="true"] .pick-mark { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 폼 */
.c-form { padding: 20px 24px; display: flex; flex-direction: column; gap: 0; }
.c-form > .c-h3 { margin-bottom: 8px; }
.c-form > .lbl { margin: 14px 0 8px; }
.c-form > .hint { margin-top: 6px; }
.c-form .grid-4 .lbl { margin-top: 6px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* 보고서 목록 */
.rp-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 24px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; }
.rp-item:first-child { border-top: 0; }
a.rp-item:hover { background: var(--bg); }
.rp-date { font-size: 13px; color: var(--muted); }

/* ================= 회기 보고서 · 묶음 ================= */
.pg { display: flex; flex-direction: column; gap: 16px; }
.pg-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.pg-title { font-family: "Gowun Batang", serif; font-size: 24px; font-weight: 700; margin: 0; word-break: keep-all; }
.pg-links { display: flex; gap: 16px; flex-wrap: wrap; }
.pg-links a { font-size: 14px; color: var(--primary); }
.rp-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.rp-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill { padding: 8px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; }
.pill.warn { background: #FBF0E2; border-color: #FBF0E2; color: #8A4F14; }
.pill.ok { background: var(--soft); border-color: var(--soft); color: var(--primary); }
.rp-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.rp-aside { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
.rp-aside-title { font-size: 14px; font-weight: 700; color: var(--muted); }
.rp-src { padding: 14px 16px; font-size: 14px; line-height: 1.7; }
.rp-src > summary { font-weight: 700; color: var(--primary); cursor: pointer; }
.rp-src[open] > summary { margin-bottom: 8px; }
.rp-doc { flex: 999 1 560px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 3px rgba(34, 48, 42, .08); padding: 48px 56px; display: flex; flex-direction: column; }
.rp-h1 { margin: 0 0 24px; text-align: center; font-family: "Gowun Batang", serif; font-size: 26px; font-weight: 700; letter-spacing: .08em; }
.rp-h1.small { font-size: 24px; margin: 4px 0 20px; letter-spacing: .06em; }
.rp-table-wrap { overflow-x: auto; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rp-table th { width: 16%; padding: 10px 12px; border: 1px solid var(--line); background: var(--soft); text-align: left; font-weight: 700; white-space: nowrap; }
.rp-table td { width: 34%; padding: 10px 12px; border: 1px solid var(--line); }
.rp-sec { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.rp-sec:last-child { border-bottom: 0; padding-bottom: 0; }
.rp-h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--primary); }
.rp-text { font-size: 15px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; min-height: 1.8em; }
.rp-text[contenteditable], .rp-cell[contenteditable] { outline: none; border-radius: 4px; display: block; }
.rp-text[contenteditable]:hover, .rp-cell[contenteditable]:hover { background: #F3F7F1; }
.rp-text[contenteditable]:focus, .rp-cell[contenteditable]:focus { background: #EEF4EB; box-shadow: 0 0 0 2px #B9CDB5; }
.rp-text:empty::before, .rp-cell:empty::before { content: attr(data-ph); color: #9AA39C; }
.rp-text.ro:empty::before { content: '[아직 비어 있어요]'; }
.bd-bar { display: flex; justify-content: flex-end; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft); }
.seg button { min-height: 40px; padding: 0 14px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.bd-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.bd-toc { flex: 1 1 240px; max-width: 280px; padding: 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; }
.bd-toc-title { font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 10px; }
.bd-toc-item { display: block; width: 100%; text-align: left; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; font: inherit; color: var(--ink); cursor: pointer; }
.bd-toc-item[aria-current="true"] { background: var(--soft); font-weight: 700; }
.bd-t { display: block; font-size: 14px; }
.bd-d { display: block; font-size: 12px; color: var(--muted); }
.bd-docs { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.bd-docs .rp-doc { padding: 44px 52px; scroll-margin-top: 16px; }
.bd-kind { font-size: 12px; color: var(--muted); text-align: right; }
.bd-foot { padding-top: 16px; text-align: right; }
.bd-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* 휴대폰 */
@media (max-width: 760px) {
  .cn-top { padding: 12px 16px; }
  .cn-org { font-size: 17px; }
  .cn-wrap { padding: 16px 12px; }
  .c-grid { gap: 12px; }
  .c-aside { max-width: none; flex-basis: 100%; padding: 12px; }
  .aside-list { display: none; }
  .aside-pick { display: block; }
  .c-head { padding: 16px; }
  .c-name { font-size: 22px; }
  .c-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .c-actions .cbtn { padding: 0 6px; font-size: 13px; }
  .c-actions .cbtn.primary { grid-column: 1 / -1; }
  .c-info > summary, .info-sec { padding-left: 16px; padding-right: 16px; }
  .info-sec .grid-form { grid-template-columns: 1fr 1fr; }
  .info-sec .invite { grid-template-columns: minmax(0, 1fr) 90px; }
  .info-sec .invite .cbtn { grid-column: 1 / -1; }
  .sc-head, .sc-row, .sc-sum, .sc-pad, .rp-item { padding-left: 16px; padding-right: 16px; }
  .sc-label { flex-basis: 100%; padding-top: 0; }
  .sc-row { position: relative; }
  .sc-act { position: absolute; top: 12px; right: 16px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .c-form { padding: 16px; }
  .rp-doc, .bd-docs .rp-doc { padding: 28px 18px; }
  .rp-h1 { font-size: 22px; }
  .rp-aside, .bd-toc { max-width: none; flex-basis: 100%; }
  .rp-grid .rp-doc { order: -1; }
  .rp-aside-title { margin-top: 4px; }
  .bd-toc { position: static; }
  .pg-title { font-size: 20px; }
  .rp-item { grid-template-columns: minmax(0, 1fr) auto; }
  .rp-item .rp-date { grid-row: 2; }
}

/* 양육자 첫 안내 · 홈 화면 추가 */
.welcome { margin: 20px 16px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.welcome-title { font-family: "Gowun Batang", serif; font-size: 20px; font-weight: 700; margin: 0; word-break: keep-all; }
.welcome p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.welcome-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.welcome-list li { font-size: 15px; line-height: 1.7; word-break: keep-all; padding: 12px 14px; background: var(--bg); border-radius: 10px; }
.welcome-list b { display: block; color: var(--primary); font-size: 14px; }
.install { background: var(--soft); border-radius: 12px; padding: 14px 16px; }
.install-steps { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.7; word-break: keep-all; display: flex; flex-direction: column; gap: 4px; }
.install-ok { font-size: 15px; color: var(--primary); }
.install .btn { margin-top: 0; }
.bottom .dot { color: var(--line); margin: 0 10px; }

.install-lead { font-size: 15px; line-height: 1.7; color: var(--ink) !important; word-break: keep-all; margin-bottom: 12px !important; }
.install-open { display: block; text-align: center; text-decoration: none; margin: 0 0 12px; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--primary); color: var(--primary); background: var(--surface); font-weight: 500; }

/* 이용 동의 (가입) */
.auth-policy { font-size: 13px; text-decoration: underline; color: var(--muted); margin-top: 12px; }
.cs-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.cs-child { font-size: 14px; color: var(--primary); font-weight: 500; margin: 0 0 12px; }
.cs-child:empty { display: none; }
.cs-lead { font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
.cs-box { background: var(--soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.cs-box-title { display: block; font-size: 14px; color: var(--primary); margin-bottom: 6px; }
.cs-box ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.cs-box li { font-size: 14px; line-height: 1.6; word-break: keep-all; }
.cs-items { border: 1px solid var(--line); border-radius: 12px; }
.cs-item + .cs-item { border-top: 1px solid var(--line); }
.cs-row { display: flex; align-items: center; gap: 8px; padding: 12px 14px; }
.cs-check { flex: 1; display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; cursor: pointer; word-break: keep-all; }
.cs-check input, .cs-keep input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--primary); }
.cs-check em { font-style: normal; color: var(--primary); font-weight: 500; }
.cs-more { flex: none; background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.cs-detail { padding: 0 14px 12px 40px; font-size: 13px; line-height: 1.6; color: var(--muted); word-break: keep-all; }
.cs-detail dl { margin: 0 0 6px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.cs-detail dt { color: var(--ink); font-weight: 500; }
.cs-detail dd { margin: 0; }
.cs-detail p { margin: 0; }
.cs-detail a { color: var(--primary); }
.cs-keep { border: 1px solid var(--line); border-radius: 12px; margin: 14px 0 0; padding: 10px 14px 12px; }
.cs-keep legend { font-size: 14px; font-weight: 500; padding: 0 4px; }
.cs-keep-opts { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.cs-keep-opts label { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.cs-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* 개인정보 처리방침 */
.doc { max-width: 720px; margin: 0 auto; padding: 32px 20px 48px; }
.doc-title { font-family: "Gowun Batang", serif; font-size: 24px; margin: 0 0 12px; }
.doc-lead { font-size: 15px; line-height: 1.7; margin-bottom: 8px; }
.doc-sec { border-top: 1px solid var(--line); padding: 18px 0 4px; }
.doc-sec h2 { font-size: 16px; margin: 0 0 10px; }
.doc-sec p, .doc-sec li, .doc-dl dd { font-size: 14px; line-height: 1.7; word-break: keep-all; }
.doc-sec p + p { margin-top: 8px; }
.doc-sec ul { margin: 0; padding-left: 18px; }
.doc-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.doc-dl dt { font-size: 14px; font-weight: 500; }
.doc-dl dd { margin: 0; }
.doc-cards { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.doc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.6; color: var(--muted); word-break: keep-all; }
.doc-card b { color: var(--ink); font-size: 14px; }
.doc-note { color: var(--muted); font-size: 13px !important; }
.doc-back { display: inline-block; margin-top: 24px; }
@media (max-width: 420px) { .doc-dl { grid-template-columns: 1fr; gap: 0; } .doc-dl dd { margin-bottom: 8px; } }
@media (max-width: 420px) {
  .card:has(#view-consent:not([hidden])) { padding: 26px 18px 22px; }
  .cs-box { padding: 12px 14px; }
  .cs-box li, .cs-check { font-size: 13.5px; }
  .cs-row { padding: 10px 12px; }
  .cs-detail { padding: 0 12px 10px 38px; }
  .cs-keep { padding: 8px 12px 10px; }
  .cs-keep-opts { gap: 6px 12px; }
  .cs-keep-opts label { font-size: 13.5px; }
}

/* 양육자 지난 기록 */
.past { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.past-title { font-size: 16px; }
.past-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.past-item > summary { cursor: pointer; font-size: 15px; font-weight: 500; }
.past-item[open] > summary { margin-bottom: 10px; }
.past-item .qa { margin-top: 8px; }

/* 정기 상담 일정 · 회기 상태 */
.sched { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.sched-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: center; }
@media (max-width: 520px) { .sched-row { grid-template-columns: 1fr 1fr; } }
.check-line { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin-top: 10px; cursor: pointer; }
.check-line input { width: 18px; height: 18px; accent-color: var(--primary); }
.sc.canceled .sc-title { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.sc.future { border-style: dashed; }
.later > summary { padding: 14px 20px; font-size: 14px; color: var(--muted); cursor: pointer; }
.later[open] > summary { border-bottom: 1px solid var(--line); }
.later-list { padding: 12px; gap: 10px; }

/* 가입 링크 */
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin-top: 4px; }
.join-grid .full { grid-column: 1 / -1; }
.join-grid .lbl { margin-bottom: 6px; }
.aside-join { display: inline-block; margin-top: 12px; font-size: 13px; }

/* 내려받기 (PDF · Word) */
.dl { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.dl .tlink { font-size: 14px; }
.dl .dot { color: var(--line); }
.sc-dl { padding: 12px 24px 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
@media (max-width: 760px) { .sc-dl { padding-left: 16px; padding-right: 16px; } }

/* 인쇄 → PDF로 저장 */
#print-root { display: none; }
@media print {
  @page { size: A4; margin: 18mm 17mm; }
  body.printing { background: #fff; }
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block; color: #26312B; font-family: "Noto Sans KR", sans-serif; font-size: 10.5pt; line-height: 1.65; }
  #print-root .pr-h1 { margin: 0 0 16pt; text-align: center; font-family: "Gowun Batang", serif; font-size: 18pt; letter-spacing: .08em; }
  #print-root .pr-h2 { margin: 18pt 0 6pt; padding-bottom: 3pt; border-bottom: 1px solid #C9D6C4; font-size: 12.5pt; color: #557A5B; break-after: avoid; }
  #print-root .pr-h3 { margin: 12pt 0 4pt; font-size: 11pt; color: #557A5B; break-after: avoid; }
  #print-root .pr-p, #print-root .pr-a { margin: 0 0 6pt; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
  #print-root .pr-none { margin: 0 0 6pt; color: #7A857D; }
  #print-root .pr-qa { margin: 8pt 0 0; break-inside: avoid; }
  #print-root .pr-q { font-weight: 700; color: #5D6A61; }
  #print-root .pr-meta { width: 100%; border-collapse: collapse; margin: 0 0 10pt; font-size: 10pt; }
  #print-root .pr-meta th, #print-root .pr-meta td { border: 1px solid #C9D6C4; padding: 5pt 8pt; text-align: left; }
  #print-root .pr-meta th { width: 16%; background: #EAF2E7; white-space: nowrap; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print-root .pr-break { break-after: page; }
}

/* 상담 문의 (부모님) */
.iq-card { max-width: 520px; }
.iq-sec { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.iq-sec legend { font-size: 15px; font-weight: 700; color: var(--primary); padding: 0; margin-bottom: 10px; }
.iq-grid3 { grid-template-columns: 1.4fr 1fr 1fr; }
.iq-req { font-style: normal; font-size: 12px; font-weight: 500; color: var(--primary); margin-left: 4px; }
.iq-text { min-height: 84px; }
.iq-consent { margin-top: 4px; }
.iq-card .cs-detail p + dl, .iq-card .cs-detail dl + p { margin-top: 6px; }
.iq-card .btn { margin-top: 18px; }
.iq-sub { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
#iq-nadap, #iq-f2f, .iq-hint { margin-top: 6px; }
@media (max-width: 400px) { .iq-grid3 { grid-template-columns: 1fr 1fr; } .iq-grid3 > div:first-child { grid-column: 1 / -1; } }

/* 상담 문의 (상담자) */
.aside-new { margin-left: 6px; font-size: 12px; font-weight: 700; color: #8A4F14; text-decoration: none; }
.iq-funnel { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 14px 0 16px; }
.iq-step { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px 10px; text-align: center; }
.iq-num { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.iq-label { font-size: 13px; color: var(--muted); margin-top: 2px; }
.iq-stop { font-size: 12px; color: var(--warn); min-height: 17px; margin-top: 2px; }
.iq-link { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.iq-link .field { flex: 1; min-width: 0; font-size: 14px; }
.iq-bar { display: flex; margin: 16px 0 12px; overflow-x: auto; }
.iq-item .sc-right { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.iq-item .pill { padding: 5px 10px; font-size: 12px; }
.iq-date { font-weight: 400; font-size: 14px; color: var(--muted); }
.iq-body { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.iq-memo { margin-top: 6px; }
.iq-acts { align-items: center; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.iq-pick { width: auto; min-width: 120px; font-size: 14px; padding: 8px 12px; }
@media (max-width: 760px) {
  .iq-funnel { grid-template-columns: repeat(3, 1fr); }
  .iq-link { flex-direction: column; align-items: stretch; }
}
.c-aside .aside-join { display: block; width: fit-content; }
.iq-sum { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; color: var(--muted); margin: 10px 0 16px; }
.iq-sum b { color: var(--ink); font-size: 17px; margin-left: 2px; }
.iq-sum .new b { color: #8A4F14; }
.iq-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.iq-more > summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.iq-more .iq-funnel { margin-bottom: 0; }
.join-open { margin-top: 10px; }

/* 회기 보고서: 보고서 바로 위 축어록 칸, 아래 참고용 양육자 기록 (2026-10-14) */
.rp-tr { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.rp-tr-h { font-size: 15px; font-weight: 700; color: var(--primary); margin: 0; }
.rp-tr .form-btns { margin-top: 0; }
.c-allrep { align-self: flex-start; margin-top: 4px; font-size: 14px; }
.rp-page > .rp-doc { flex: none; }
.rp-page > .rp-tr, .rp-page > .rp-doc, .rp-page > .rp-entry { width: 100%; max-width: 920px; margin: 0 auto; box-sizing: border-box; }

/* 휴대폰: 회기 보고서 아래 고정 버튼 · 작은 링크 누르기 쉽게 */
@media (max-width: 760px) {
  .rp-page { padding-bottom: 96px; }
  .rp-page .rp-acts { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: flex-end; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,.06); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .rp-page .rp-acts .pill { flex: 1 1 100%; padding: 4px 0; background: none; border: 0; font-size: 12px; text-align: left; }
  .rp-page .rp-acts .cbtn { flex: 1 1 0; min-height: 46px; }
  .rp-tr { padding: 14px 16px; }
  .cn .tlink, .cn .rep-link { position: relative; }
  .cn .tlink::after { content: ""; position: absolute; inset: -10px -8px; }
  body:has(.rp-page) .toast { bottom: 130px; }
}

/* 상담 문의 · 등록 신청 한 줄로 (2026-10-14) */
.aside-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; }
.aside-links .aside-join, .c-aside .aside-links .aside-join { display: inline-block; width: auto; margin-top: 0; }

/* 아동 정보 수정 · 양육자 초대·연결 · 초기상담기록지 보관 — 세 줄 (2026-10-14) */
.c-info-group { padding: 0; overflow: hidden; }
.c-info-group .c-info + .c-info { border-top: 1px solid var(--line); }
.c-info-group .c-info > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 15px 24px; color: var(--ink); list-style: none; }
.c-info-group .c-info > summary::-webkit-details-marker { display: none; }
.c-info-group .c-info > summary::after { content: "열기 ›"; margin-left: auto; font-size: 13px; color: var(--primary); }
.c-info-group .c-info[open] > summary::after { content: "닫기 ⌃"; }
.ci-title { font-size: 15px; font-weight: 700; }
.ci-desc { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .c-info-group .c-info > summary { padding: 14px 16px; } }

/* 아동 이름 아래 보기 링크 · 상담기록관리 배너 (2026-10-14) */
.c-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.c-links .tlink { font-size: 14px; padding-left: 0; padding-right: 0; }
.c-links .tlink[aria-current="page"] { font-weight: 700; text-decoration-thickness: 2px; }
.c-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; background: var(--soft); border-radius: 12px; padding: 14px 20px; }
.c-banner-title { font-family: "Gowun Batang", serif; font-size: 19px; font-weight: 700; color: var(--primary); margin: 0; }
.c-banner-desc { font-size: 13px; color: var(--muted); margin: 2px 0 0; line-height: 1.6; word-break: keep-all; }
.c-banner .tlink { font-size: 14px; font-weight: 700; }
@media (max-width: 760px) { .c-banner { padding: 14px 16px; } }

/* 지우기 (2026-10-14) */
.tlink.danger { color: #9b3b2a; }
.tlink.danger:hover { color: #7d2d1f; }
.info-del { border-top: 1px dashed var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.rp-clear, .iq-del { display: flex; justify-content: flex-end; }
.rp-page > .rp-clear { width: 100%; max-width: 920px; margin: 0 auto; }

/* 「나답게, 우리답게」 참여 신청서 (adhd.html) */
.pa-sub { display: block; font-family: "Noto Sans KR", sans-serif; font-weight: 500; font-size: 15px; color: var(--muted); margin-top: 4px; }
.pa-opts { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pa-opts.pa-col { flex-direction: column; gap: 8px; }
.pa-opts label { display: flex; align-items: center; gap: 7px; font-size: 15px; cursor: pointer; }
.pa-opts input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--primary); }
.pa-hint { margin-top: 6px; font-size: 13px; }
.pa-qlead { margin-bottom: 4px; }
.pa-part { font-size: 14px; font-weight: 700; color: var(--ink); margin: 18px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pa-q { line-height: 1.6; margin-top: 14px; word-break: keep-all; }
.pa-qn { color: var(--primary); }
.pa-research { margin-top: 16px; }
.pa-research .hint { font-size: 13px; margin-bottom: 8px; }
.pa-done-text { white-space: pre-line; }
/* 연구소 홈페이지 안에 들어갔을 때 */
.in-frame body { background: #fff; }
.in-frame .center { min-height: 0; padding: 0; display: block; }
.in-frame .card { max-width: none; border: 0; border-radius: 0; box-shadow: none; padding: 24px 20px 28px; }
.in-frame .org, .in-frame .brand { display: none; }
