/* 아라 공부방 — 밝은 대시보드 모양(흰 둥근 카드·검은 알약 버튼·큰 숫자·작은 상태 칩) */
:root {
  color-scheme: light;
  --bg: #EDEFF3;
  --card: #FFFFFF;
  --ink: #0E1120;
  --ink-2: #3A3F4E;
  --muted: #6B7280;
  --line: #E6E8ED;
  --soft: #F4F5F8;
  --black: #111318;
  --navy: #1B1F3B;
  --lime: #C8F04B;
  --green: #15803D;
  --green-bg: #E5F6EA;
  --orange: #E2581F;
  --orange-bg: #FFEFE6;
  --purple: #6A4CF0;
  --purple-bg: #EFEBFF;
  --red: #C2410C;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px rgba(16, 24, 40, .06);
  --shadow-up: 0 -2px 6px rgba(16, 24, 40, .03), 0 14px 34px rgba(16, 24, 40, .12);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.ic { display: inline-grid; place-items: center; }
.ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 틀 ---------- */
.layout { display: flex; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; width: 88px; flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  padding: 22px 0; background: var(--card); border-right: 1px solid var(--line);
}
.logo { display: block; line-height: 0; }
.logo svg { width: 46px; height: 46px; }
.nav { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.nav-btn {
  width: 50px; height: 50px; border-radius: 16px; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--muted); text-decoration: none; cursor: pointer; position: relative;
}
.nav-btn:hover { background: var(--soft); color: var(--ink); }
.nav-btn.on { background: var(--black); color: #fff; }
.nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.main { flex: 1; min-width: 0; padding: 30px 36px 48px; }
.wrap { max-width: 1180px; margin: 0 auto; }

.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.eyebrow { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.top h1, .page-title { font-size: 28px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 700; }
.top-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 카드·숫자 ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-title { font-size: 16px; font-weight: 700; }
.card-sub { color: var(--muted); font-size: 14px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.kpi-num { font-size: 42px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.kpi-num small { font-size: 18px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.kpi-foot { color: var(--muted); font-size: 13px; }
.kpi-ic { width: 34px; height: 34px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; color: var(--ink-2); }

.grid2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px;
  font-size: 12.5px; font-weight: 600; background: var(--soft); color: var(--ink-2); white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.chip.plain::before { display: none; }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip.orange { background: var(--orange-bg); color: var(--orange); }
.chip.purple { background: var(--purple-bg); color: var(--purple); }
.chip.dark { background: var(--black); color: #fff; }

.bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--soft); margin: 6px 0 14px; }
.bar > span { display: block; height: 100%; }
.bar .g { background: #34C759; } .bar .o { background: #FF8A4C; } .bar .p { background: #7C5CFF; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.legend b { font-size: 20px; margin-left: 4px; letter-spacing: -0.02em; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.dot.g { background: #34C759; } .dot.o { background: #FF8A4C; } .dot.p { background: #7C5CFF; }
.note { color: var(--muted); font-size: 13.5px; margin-top: 12px; }

.steps { display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step-n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--soft); color: var(--ink-2); }
.step.here .step-n { background: var(--lime); color: var(--navy); }
.step-t { font-weight: 600; font-size: 15px; }
.step-d { color: var(--muted); font-size: 13.5px; }

.list { display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row-t { font-weight: 600; font-size: 15px; }
.row-d { color: var(--muted); font-size: 13px; }
.row-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.empty { color: var(--muted); padding: 18px 0; text-align: center; font-size: 14.5px; }

/* ---------- 버튼 ---------- */
.btn {
  border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-height: 46px;
}
.btn .ic svg { width: 18px; height: 18px; }
.btn.primary { background: var(--black); color: #fff; }
.btn.primary:hover { background: #2A2D36; }
.btn.lime { background: var(--lime); color: var(--navy); }
.btn.ghost { background: var(--soft); color: var(--ink); }
.btn.ghost:hover { background: #E9EBF0; }
.btn.line { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn.small { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: default; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn.dark { background: var(--black); color: #fff; }
.icon-btn.soft { background: var(--soft); color: var(--ink-2); }
.icon-btn.rec { background: #FFE4E0; color: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, .12); } }

.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--card); border-radius: 999px; box-shadow: var(--shadow); flex-wrap: wrap; }
.tab { border: 0; background: transparent; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); }
.tab.on { background: var(--black); color: #fff; }

/* ---------- 공부(채팅) ---------- */
.study { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.study-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.chat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 22px 22px; min-width: 0; }
.progress { display: flex; gap: 6px; align-items: center; }
.pp { min-width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--soft); color: var(--muted); padding: 0 10px; }
.pp.done { background: var(--green-bg); color: var(--green); }
.pp.now { background: var(--black); color: #fff; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 600; margin: 22px 0 6px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.msg { display: flex; gap: 10px; align-items: flex-end; margin: 12px 0; }
.msg .av { width: 34px; height: 34px; flex: none; line-height: 0; }
.msg .av svg { width: 34px; height: 34px; }
.bubble { background: var(--soft); border-radius: 20px 20px 20px 6px; padding: 12px 16px; max-width: min(640px, 90%); min-width: 0; }
.bubble p + p { margin-top: 6px; }
.msg.me { justify-content: flex-end; }
.msg.me .bubble { background: var(--black); color: #fff; border-radius: 20px 20px 6px 20px; white-space: pre-wrap; }
.msg.me .via { display: block; font-size: 11.5px; opacity: .6; margin-top: 4px; }
.msg .who { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }

.scene-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.scene-title { font-weight: 700; font-size: 16.5px; }
.scene-text { color: var(--ink-2); }
.quote { margin: 10px 0; padding: 10px 14px; background: #fff; border-left: 3px solid var(--purple); border-radius: 4px 12px 12px 4px; }
.quote p { font-weight: 500; }
.quote cite { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.cardline { display: flex; gap: 8px; align-items: baseline; background: #fff; border-radius: 12px; padding: 8px 12px; margin: 10px 0; font-size: 14.5px; color: var(--ink-2); }
.cardline-k { flex: none; font-size: 12px; font-weight: 700; color: var(--navy); background: var(--lime); border-radius: 999px; padding: 1px 8px; }
.ask { font-weight: 700; margin-top: 10px; font-size: 16.5px; }
.person { font-weight: 600; color: var(--ink-2); margin: 4px 0 8px; }
.cardblock { background: #fff; border-radius: 12px; padding: 10px 12px; margin: 8px 0 10px; }
.cardblock pre { margin: 6px 0 0; white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.guess.then { border-style: solid; border-color: #CFE3D6; }
.guess.then .guess-top { color: var(--green); }

.guess { background: #fff; border: 1.5px dashed #C9CDD8; border-radius: 16px; padding: 12px 14px; }
.guess-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 14px; color: var(--purple); margin-bottom: 6px; }
.guess-top .ic svg { width: 16px; height: 16px; }
.guess-why { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.guess-note { color: var(--muted); font-size: 12.5px; margin-top: 8px; }

.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #A5AAB8; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.composer {
  position: sticky; bottom: 16px; z-index: 5; margin-top: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-up); padding: 14px;
}
.composer-label { font-size: 14px; font-weight: 700; margin: 0 2px 8px; }
.composer-sub { font-size: 13px; color: var(--muted); margin: -6px 2px 10px; }
/* 보기(가·나·다…)는 대화 줄기 안, 질문 아래(app.js choicesBlock, 2026-10-27) — 입력 상자는 글 칸만 남겨 낮게. 44px = 아바타 34 + 틈 10, 말풍선 왼쪽 선에 맞춘다. */
.choices-block { margin: 4px 0 6px 44px; }
.choices-label { font-size: 13.5px; color: var(--ink-2); font-weight: 600; margin: 0 2px 6px; }
.pick-line { display: flex; gap: 8px; align-items: baseline; font-size: 14px; margin: -2px 2px 8px; color: var(--ink); }
.pick-line[hidden] { display: none; }
.pick-k { flex: none; font-size: 12px; font-weight: 700; color: var(--navy); background: var(--lime); border-radius: 999px; padding: 1px 8px; }
.btn.send { padding: 9px 14px; min-height: 42px; border-radius: 14px; }
.choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.choice { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 9px 13px; cursor: pointer; font-size: 14.5px; text-align: left; line-height: 1.45; }
.choice:hover { border-color: #C9CDD8; }
.choice.on { background: var(--black); color: #fff; border-color: var(--black); }
.input-row { display: flex; gap: 8px; align-items: flex-end; background: var(--soft); border-radius: 18px; padding: 6px 6px 6px 14px; }
.input-row textarea { flex: 1; border: 0; background: transparent; resize: none; min-height: 44px; max-height: 220px; padding: 10px 0; outline: none; font-size: 16px; line-height: 1.5; }
.sub-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.agree-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.agree { border: 0; border-radius: 16px; padding: 14px 8px; font-weight: 700; cursor: pointer; font-size: 15.5px; }
.agree small { display: block; font-weight: 500; font-size: 12px; opacity: .8; margin-top: 2px; }
.agree.g { background: var(--green-bg); color: var(--green); }
.agree.o { background: var(--orange-bg); color: var(--orange); }
.agree.p { background: var(--purple-bg); color: var(--purple); }
.agree:hover { filter: brightness(.97); }

.finish { text-align: center; padding: 26px 10px 8px; }
.finish h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.finish p { color: var(--ink-2); }
.finish .top-actions { justify-content: center; margin-top: 16px; }

/* ---------- 기록·관리 ---------- */
.hist { margin-bottom: 14px; }
.hist-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 10px; }
.qa { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.qa-k { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.qa-v { white-space: pre-wrap; }
.admin-box { background: var(--soft); border-radius: 14px; padding: 12px 14px; margin-top: 10px; font-size: 14px; }
.admin-box pre { margin: 0; white-space: pre-wrap; font-family: inherit; }
.review-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.review-row select, .review-row input { border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; background: #fff; min-height: 42px; }
.review-row input { flex: 1; min-width: 200px; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--black); }

/* ---------- 들어가기 ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-brand { background: var(--navy); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; position: relative; overflow: hidden; }
.login-brand::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 56px solid rgba(200, 240, 75, .14); }
.login-brand h1 { font-size: 40px; line-height: 1.2; letter-spacing: -0.03em; }
.login-brand h1 em { font-style: normal; color: var(--lime); }
.login-brand p { color: #C9CCE0; max-width: 420px; }
.mini-kpis { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.mini { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 14px 16px; min-width: 140px; }
.mini b { display: block; font-size: 26px; letter-spacing: -0.02em; color: var(--lime); }
.mini span { font-size: 13px; color: #C9CCE0; }
.login-form { display: grid; place-items: center; padding: 32px 20px; }
.login-card { width: min(400px, 100%); }
.login-card h2 { font-size: 24px; letter-spacing: -0.02em; margin: 18px 0 4px; }
.login-card .card-sub { margin-bottom: 20px; }
.field { display: block; width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; font-size: 16px; margin-bottom: 12px; }
.field:focus { border-color: var(--black); outline: none; }
.login-card .btn { width: 100%; }
.err { color: var(--red); font-size: 14px; min-height: 22px; margin-bottom: 6px; }
/* 비밀번호 정하는 화면(server.py --password-page, 이 PC 안에서만, 2026-10-29) */
.pw-page { min-height: 100vh; }
.pw-status { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.pw-status li { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.pw-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin: 0 2px 6px; }
.pw-ok { color: var(--green); background: var(--green-bg); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.pw-foot { color: var(--muted); font-size: 13px; margin-top: 14px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--black); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14.5px; z-index: 50; box-shadow: var(--shadow-up); max-width: calc(100% - 32px); }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .side {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; width: auto; z-index: 30;
    flex-direction: row; justify-content: space-around; gap: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line);
  }
  .logo { display: none; }
  .nav { flex-direction: row; flex: none; gap: 2px; }
  .nav-btn { width: 64px; height: 52px; border-radius: 14px; gap: 0; grid-template-rows: auto auto; }
  .nav-label { position: static; width: auto; height: auto; clip: auto; font-size: 11px; font-weight: 600; line-height: 1; }
  .main { padding: 18px 16px 100px; }
  .top h1, .page-title { font-size: 22px; }
  .kpis { gap: 10px; }
  .card { padding: 16px; border-radius: 18px; }
  .kpi-num { font-size: 34px; }
  .chat { padding: 4px 12px 14px; border-radius: 18px; }
  .bubble { max-width: 92%; }
  .msg .av { display: none; }
  .composer { bottom: calc(72px + env(safe-area-inset-bottom)); border-radius: 18px; padding: 12px; }
  .choices-block { margin-left: 0; }
  .agree-row { gap: 6px; }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-brand { padding: 28px 20px; }
  .login-brand h1 { font-size: 28px; }
  .mini { min-width: 0; flex: 1; }
  .toast { bottom: 90px; }
}
/* ---------- 카드 패널(그림) — static/cardpanel.js ----------
   결과지 한 장형(시안 B, 2026-10-18): 흰 판 하나에 세 띠(정체성 · 문제해결 · 시기), 띠 사이 선 하나.
   본래 너비 700px(10-27 글자 키우면서 720→800, 같은 날 '카드 너비 줄여'로 800→700 — 글자 크기는 두고 여백·칸을 줄임), fitCardPanel 이 화면에 맞춰 zoom 으로 줄인다.
   색은 유형 막대(.ty-*)·17색 점(.co-*)에만, 강조는 검정+연두. 서버 CSP(style-src self)가 인라인 style 을 막는다 — 색은 전부 클래스.
   글자: 본문 13px, 이름·값 13.5px, 설명 12px (사용자 10-27 "글자가 작다"). */
.study { grid-template-columns: minmax(0, 1fr) 700px; }
.study.no-panel { grid-template-columns: minmax(0, 1fr); }
.study-aside { position: sticky; top: 24px; display: block; }
.wrap:has(.study) { max-width: 1640px; } /* 공부 화면만 바깥 틀을 넓게 — 큰 모니터에서 채팅이 좁게 남지 않도록 */
.main:has(.study) { padding-top: 16px; } /* 공부 화면은 위 여백도 낮게 — 머리글 대신 진행 줄 하나뿐(2026-10-27) */
.study-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; min-height: 30px; }
.study-bar-k { font-size: 12.5px; font-weight: 700; color: var(--muted); }
/* 넓은 화면(1200px 초과): 채팅 칸을 화면 높이에 맞추고(높이는 app.js fitStudy) 대화만 칸 안에서 스크롤.
   입력 상자는 칸 바닥에 붙박이 — 전처럼 화면 아래에 떠서 대화를 덮지 않는다(2026-10-27 사용자 지적). 좁은 화면은 아래 media query 밖 규칙(쪽 스크롤 + 떠 있는 입력 상자) 그대로. */
@media (min-width: 1201px) {
  .study .chat { display: flex; flex-direction: column; }
  .study .thread { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding-right: 8px; margin-right: -8px; }
  .study .composer { position: static; flex: none; margin-top: 12px; }
}
.cp-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cp-wrap > summary { display: none; list-style: none; cursor: pointer; align-items: center; gap: 8px; padding: 14px 18px; font-weight: 700; font-size: 15px; }
.cp-wrap > summary::-webkit-details-marker { display: none; }
.cp-sum-hint { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cp-sum-hint::after { content: "한눈에 보기 · 열기"; }
.cp-wrap[open] .cp-sum-hint::after { content: "접기"; }
.cp { width: 700px; padding: 22px 24px 18px; font-size: 13px; line-height: 1.4; color: var(--ink); word-break: keep-all; }
.cp-band + .cp-band { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.cp-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.cp-h.cp-h2 { margin-top: 14px; }
.cp-h b { font-size: 14px; font-weight: 700; }
.cp-h span { font-size: 12px; color: var(--muted); }
.cp-h .cp-r { margin-left: auto; }
.cp-ln { display: block; }
.cp-sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.cp-none { color: var(--muted); font-weight: 500; }
.cp-tag { display: inline-block; font-size: 11.5px; line-height: 1; padding: 3px 7px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.cp-tag.same { background: var(--soft); color: var(--ink-2); }
.cp-tag.diff { background: var(--black); color: var(--lime); }
.cp-tag.assumed { border: 1px dashed var(--muted); color: var(--ink-2); padding: 2px 6px; font-weight: 500; cursor: help; }
.cp-date { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* 위 띠 — 정체성: 사람 줄 · 색채 원 · 검사 5줄(검사 | 고유 → 지금) */
.cp-idtop { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.cp-person { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cp-note-top { font-size: 12px; font-weight: 500; color: var(--muted); }
.cp-cap { font-size: 12px; color: var(--muted); }
.cp-idbody { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: start; }
.cp-who { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 4px; }
.cp-circle { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.cp-circle i { display: block; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.cp-cname { font-size: 12.5px; font-weight: 600; color: var(--ink-2); line-height: 1.4; }
.cp-cname b { font-weight: 500; color: var(--muted); margin-right: 3px; }
.cp-tests { display: flex; flex-direction: column; }
.cp-trow { display: grid; grid-template-columns: 56px minmax(0, 1fr) 14px minmax(0, 1.35fr); column-gap: 6px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cp-trow:last-child { border-bottom: 0; }
.cp-trow.head { padding: 0 0 5px; }
.cp-trow > div { min-width: 0; }
.cp-tests .cp-th { font-size: 12px; color: var(--muted); }
.cp-tname { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cp-tin { font-size: 13.5px; } .cp-tin b { font-weight: 700; }
.cp-tarrow { color: #9AA7B8; font-size: 14px; line-height: 1; text-align: center; }
.cp-tnow { font-size: 13.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.cp-tnow b { font-weight: 700; color: var(--ink); }
.cp-tnow .cp-ln { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.cp-tags { display: inline-flex; flex-wrap: wrap; gap: 3px 4px; align-items: center; }
.cp-k { font-size: 12px; color: var(--muted); font-weight: 500; }
.cp-k2 { margin-left: 6px; }
.cp-dn { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; color: var(--ink-2); }
.cp-tin .cp-dn { font-weight: 700; color: var(--ink); font-size: 13.5px; }
.cp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.cp-note { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 0 14px; }

/* 가운데 띠 — 문제해결: 역량 표(선 없이 행 간격) | 그래프 둘 */
.cp-ps { display: grid; grid-template-columns: minmax(0, 1fr) 176px 176px; gap: 14px; align-items: start; }
.cp-comp { display: grid; grid-template-columns: 76px minmax(0, 1fr) 84px; column-gap: 8px; align-items: start; }
.cp-comp > div { padding: 7px 0; }
.cp-comp .cp-th { font-size: 12px; color: var(--muted); padding-top: 0; }
.cp-comp .cp-rh { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cp-comp .cp-ccell { font-size: 13.5px; } .cp-comp .cp-ccell b { font-weight: 700; }
.cp-comp .cp-pot { grid-column: 2 / 4; font-weight: 600; color: var(--ink-2); font-size: 13px; }
.cp-wg { display: flex; flex-direction: column; align-items: center; margin: 0; }
.cp-wg-svg { width: 176px; height: 141px; display: block; }
.cp-wg-cap { text-align: center; line-height: 1.4; white-space: nowrap; }
.cp-wg-cap b { font-size: 13.5px; }
.cp-wg-cap span { font-size: 12px; color: var(--muted); margin-left: 4px; }
.cp-wg-none { align-self: center; text-align: center; font-size: 12px; }
.cp-wg-axis { stroke: var(--black); stroke-width: 1; }
.cp-wg-arrow { fill: var(--black); }
.cp-wg-fill { fill: var(--navy); fill-opacity: .18; }
.cp-wg-line { stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; }
.cp-wg-lab { font-size: 11px; fill: #9AA7B8; font-family: inherit; }
.cp-wg-lab.on { fill: var(--navy); font-weight: 600; }

/* 아래 띠 — 시기: 칸마다 따로 떨어진 막대(사이 8px), 지금 칸 검정 테두리 */
.cp-pb { display: grid; column-gap: 6px; }
.cp-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cp-cell.now { position: relative; z-index: 1; }
.cp-age { height: 18px; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.cp-cell.now .cp-age { color: var(--ink); font-weight: 600; }
.cp-chip { font-size: 11.5px; line-height: 1.2; background: var(--black); color: var(--lime); border-radius: 999px; padding: 1px 6px; font-weight: 700; }
.cp-bar { display: flex; height: 22px; gap: 1px; background: #fff; overflow: hidden; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.cp-cell.now .cp-bar { box-shadow: 0 0 0 1.5px var(--black); }
.cp-half { flex: 1; min-width: 0; display: block; }
.cp-mks { display: flex; height: 11px; align-items: center; }
.cp-mks span { flex: 1; display: flex; justify-content: center; }
.cp-names { display: flex; }
.cp-names span { flex: 1; text-align: center; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-mk { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1.2px solid var(--black); background: #fff; vertical-align: -1px; }
.cp-mk.have { background: var(--black); }
.cp-mk.other { background: linear-gradient(90deg, var(--black) 50%, #fff 50%); }
.cp-legend { margin-top: 12px; font-size: 11.5px; color: var(--muted); line-height: 1.5; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; }
.cp-legend b { color: var(--ink-2); font-weight: 600; }
.cp-legend .cp-mk { margin-right: 3px; }

/* 유형 10색 — 결과지 LCA TYPE_COLORS 그대로 · 17색 */
.ty-i { background: #00FF00; } .ty-e { background: #90EE90; }
.ty-d { background: #FF0000; } .ty-t { background: #FFB6C1; }
.ty-tc { background: #808080; } .ty-s { background: #D3D3D3; }
.ty-tk { background: #0000FF; } .ty-r { background: #ADD8E6; }
.ty-rv { background: #FFFF00; } .ty-c { background: #FFFFE0; }
.ty-x { background: #E6E8ED; }
.co-clear { background: #EDE7DA; } .co-red { background: #D8453E; } .co-orange { background: #E87A3A; } .co-gold { background: #C9972E; }
.co-yellow { background: #F2B33D; } .co-lemon { background: #E8D44D; } .co-green { background: #5C9A5C; } .co-turquoise { background: #46B5AE; }
.co-pale-blue { background: #A8C8DC; } .co-blue { background: #3E6FB0; } .co-royal-blue { background: #2D4A8A; } .co-lilac { background: #C0A8D8; }
.co-violet { background: #8A6FB8; } .co-purple { background: #6B3FA0; } .co-magenta { background: #C2447E; } .co-rose-pink { background: #E08A9B; }
.co-pink { background: #F0A8B8; } .co-none { background: #CBD0D8; }

/* 좁은 화면: 한 기둥, 패널은 채팅 위에 접힌 채로 */
@media (max-width: 1200px) {
  .study { grid-template-columns: minmax(0, 1fr); }
  .study-aside { position: static; order: -1; }
  .cp-wrap > summary { display: flex; }
  .cp { width: auto; }
  .cp-ps { grid-template-columns: minmax(0, 1fr); }
}

/* 아라 3.0 장면 (2026-10-29) — 장면(찾아온 이유·앞에서 나눈 말·지금 손님 말) → 아라 답 → 이유 → 대표님 말씀 ↔ Claude 정리 */
.visit { display: flex; gap: 8px; align-items: baseline; color: var(--ink-2); margin: 6px 0; }
.visit-k, .talk-k, .now-k { flex: none; font-size: 12px; font-weight: 700; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.talk { background: #fff; border-radius: 14px; padding: 10px 14px; margin: 10px 0; }
.talk-k { display: inline-block; margin-bottom: 6px; }
.talk-line { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }
.talk-line b { display: inline-block; min-width: 34px; font-size: 12.5px; color: var(--muted); margin-right: 6px; }
.talk-line.a b { color: var(--purple); }
.now-line { background: #fff; border-left: 3px solid var(--orange); border-radius: 4px 14px 14px 4px; padding: 10px 14px; margin: 10px 0 2px; }
.now-line .now-k { border: none; padding: 0; background: none; color: var(--orange); }
.now-line p { font-weight: 600; margin-top: 2px; }
.ara3-answer { background: #fff; border-radius: 14px; padding: 12px 14px; }
.ara3-why { margin-top: 10px; padding: 12px 14px; border: 1.5px dashed #C9CDD8; border-radius: 14px; background: #FAFAFC; }
.ara3-why p { font-size: 14.5px; color: var(--ink-2); }
.ara3-k { font-size: 12.5px; font-weight: 700; color: var(--purple); margin-bottom: 4px; }
.ara3-answer p + p, .ara3-why p + p { margin-top: 6px; }
.msg.coord .av-c { width: 34px; height: 34px; border-radius: 50%; background: #D97757; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; line-height: 1; }
.msg.coord .bubble { background: #FBF3EE; }
.hint { font-size: 13.5px; color: var(--muted); }
.teach-note { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 8px 44px; padding: 8px 12px; background: var(--green-bg); color: var(--green); border-radius: 12px; font-size: 14px; }
.teach-note .ic svg { width: 16px; height: 16px; margin-top: 3px; }
.teach-note b { margin-right: 4px; }
.hint.src { margin-top: 8px; font-size: 12.5px; }
