:root {
  --bg: #f4f5f8;
  --bg-tint: #eef0f6;
  --panel: #ffffff;
  --ink: #16181d;
  --ink-2: #43474f;
  --muted: #868b95;
  --line: #e9eaef;
  --line-2: #d7dae1;
  --accent: #3b5bdb;
  --accent-hov: #2f49b8;
  --accent-ink: #ffffff;
  --accent-soft: #eef1fd;
  --good: #1a7f47;
  --warn: #9a5b12;
  --me: #3b5bdb;
  --them: #f1f2f6;
  --focus: 0 0 0 3px rgba(59, 91, 219, 0.22);
  --shadow-sm: 0 1px 2px rgba(20, 24, 40, 0.05);
  --shadow: 0 1px 3px rgba(20, 24, 40, 0.06), 0 12px 34px -10px rgba(20, 24, 40, 0.14);
  --radius: 16px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1100px 520px at 50% -8%, var(--bg-tint), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-underline-offset: 2px; }

/* 페이지 형태 */
.wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 18px 64px;
}
.wrap > .card { margin-bottom: 7vh; }

.card {
  width: 100%;
  max-width: 620px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 40px;
  box-shadow: var(--shadow);
}
@media (max-width: 560px) { .card { padding: 28px 22px; } }

/* 타이포 */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
h1 {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
p.lead { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.prose { white-space: pre-wrap; color: var(--ink-2); font-size: 15.5px; }
.prose + .prose { margin-top: 14px; }
.muted { color: var(--muted); font-size: 14px; }
strong { font-weight: 600; }

/* 버튼 */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-bd: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: 11px;
  padding: 11px 22px;
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background .13s, border-color .13s, box-shadow .13s, transform .05s;
}
.btn:hover { --btn-bg: var(--accent-hov); --btn-bd: var(--accent-hov); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn.secondary { --btn-bg: #fff; --btn-fg: var(--accent); --btn-bd: var(--line-2); }
.btn.secondary:hover { --btn-bg: var(--accent-soft); --btn-bd: var(--accent); }
.btn.ghost { --btn-bg: #fff; --btn-fg: var(--ink-2); --btn-bd: var(--line-2); }
.btn.ghost:hover { --btn-bg: #f6f7f9; --btn-bd: var(--line-2); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.block { width: 100%; }
.btn.lg { padding: 14px 24px; font-size: 15.5px; border-radius: 12px; }
.btn.mini { padding: 4px 11px; font-size: 12px; border-radius: 8px; }

.choices { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.choices > * { flex: 1 1 150px; }
.choices .btn { width: 100%; }

/* 폼 */
textarea, input[type="text"], input[type="password"] {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}
textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
textarea:focus, input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
label { display: block; margin: 0 0 7px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.field { margin-bottom: 18px; }
.actions { display: flex; gap: 10px; align-items: center; }
.error {
  color: #a52320; background: #fdf0ef; border: 1px solid #f5d6d3;
  border-radius: 9px; padding: 9px 12px; margin: 0 0 16px; font-size: 13.5px;
}

/* ===================== 랜딩 ===================== */
.card.landing { padding: 0; overflow: hidden; max-width: 600px; }
.landing-hero {
  padding: 40px 44px 30px;
  background: linear-gradient(178deg, var(--accent-soft) 0%, #fff 88%);
  border-bottom: 1px solid var(--line);
}
.landing-hero h1 { font-size: 28px; margin: 4px 0 12px; }
.landing-hero .lead { margin: 0; max-width: 46ch; font-size: 15px; color: var(--ink-2); }
.landing-body { padding: 12px 44px 40px; }
@media (max-width: 560px) {
  .landing-hero { padding: 30px 24px 24px; }
  .landing-hero h1 { font-size: 24px; }
  .landing-body { padding: 8px 24px 30px; }
}

.feature-list { margin: 8px 0 0; }
.feature {
  display: flex;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.feature:last-child { border-bottom: none; }
.feature-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-body { flex: 1; min-width: 0; }
.feature-body dt { font-weight: 600; font-size: 14px; color: var(--ink); margin: 1px 0 3px; }
.feature-body dd { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.58; }

.landing-cta { display: flex; gap: 10px; margin-top: 28px; }
.landing-cta .btn:first-child { flex: 1.6; }
.landing-cta .btn:last-child { flex: 1; }

/* 진행 바 */
.progress { margin-bottom: 22px; }
.progress-meta { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 7px; letter-spacing: .01em; }
.progress-track { height: 6px; background: var(--them); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #5a76e6); border-radius: 999px; transition: width .35s cubic-bezier(.4,0,.2,1); }

/* ===================== 채팅 ===================== */
.chat {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 680px;
  margin: 0 auto;
  background: var(--panel);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.chat-head {
  flex: none;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}
.chat-head .mono { color: var(--ink-2); }
.conn { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.conn-dot { width: 7px; height: 7px; border-radius: 50%; background: #b8bdc6; box-shadow: 0 0 0 3px rgba(184,189,198,.18); }
.conn-dot[data-state="connected"] { background: var(--good); box-shadow: 0 0 0 3px rgba(26,127,71,.16); }
.conn-dot[data-state="connecting"], .conn-dot[data-state="reconnecting"] { background: #d99a12; box-shadow: 0 0 0 3px rgba(217,154,18,.16); }
.conn-dot[data-state="closed"] { background: #cf3b38; box-shadow: 0 0 0 3px rgba(207,59,56,.16); }

.stream { flex: 1; overflow-y: auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 9px; scroll-behavior: smooth; }

/* 면접자(them) 발화 = 아바타 + 말풍선 한 줄. 참여자(me) 발화는 아바타 없이 오른쪽. */
.msg-row { display: flex; align-items: flex-start; gap: 8px; align-self: flex-start; max-width: 88%; }
.msg-row.typing-row { align-items: center; }
.msg-row > .bubble.them,
.msg-row > .scale-block { align-self: auto; max-width: none; flex: 1 1 auto; min-width: 0; }

/* [2026-09-24] 픽토그램(위) + 이름(아래) — 요청서 "관리자 아이콘에 인간/
   챗봇 픽토그램 추가". [0929] 아이콘은 연구팀이 보낸 PNG(static/icons/*.png),
   AI 이름은 "AI 인터뷰 / 진행자" 두 줄. */
.avatar {
  flex: none;
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding-top: 2px;
}
.avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}
.avatar span {
  display: block;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--muted);
  max-width: 46px;
  word-break: keep-all;
  white-space: pre-line;
}

.bubble {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 18px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15.5px;
  line-height: 1.6;
  animation: rise .22s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.bubble.them { background: var(--them); color: var(--ink); border-bottom-left-radius: 5px; }
.bubble.me { background: var(--me); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.bubble.me.pending { opacity: .5; }
.bubble.system { background: transparent; color: var(--muted); font-size: 12.5px; align-self: center; text-align: center; max-width: 90%; padding: 4px 0; }
.bubble.system.notice {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  margin: 8px auto;
}
.bubble.system.notice.notice-error {
  background: #fdecec;
  color: #c0392b;
  border-radius: 12px;
  max-width: 340px;
  line-height: 1.5;
}

/* [2026-09-24] 점 3개 + "OOO 연구원이 입력 중입니다."/"AI 진행자가 입력
   중입니다." 텍스트를 함께 보여준다(요청서: 관리자 메시지 작성 상태 표시). */
.typing { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; background: var(--them); border-radius: 18px; border-bottom-left-radius: 5px; animation: rise .22s ease both; }
.typing-dots { display: inline-flex; gap: 4px; flex: none; }
.typing-dots span { width: 7px; height: 7px; border-radius: 50%; background: #9aa0aa; animation: blink 1.3s infinite both; }
.typing-dots span:nth-child(2) { animation-delay: .18s; }
.typing-dots span:nth-child(3) { animation-delay: .36s; }
.typing-label { font-size: 13px; color: var(--muted); }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.composer { flex: none; border-top: 1px solid var(--line); padding: 13px 16px; display: flex; gap: 10px; align-items: flex-end; background: #fff; }
.composer textarea { min-height: 46px; max-height: 150px; border-radius: 13px; }
.composer .btn { flex: none; min-width: 66px; padding: 12px 18px; border-radius: 12px; }

/* ===================== 척도 ===================== */
/* [0916] 버튼 크기 통일 + 창 너비 끝까지 확장 + 문항·버튼 앞뒤 여유 확보,
   모바일에서는 줄바꿈되더라도 버튼 간격·크기가 흐트러지지 않게 한다. */
.scale-block { align-self: stretch; max-width: 100%; background: transparent; padding: 14px 0; }
.scale-progress { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-bottom: 9px; }
.scale-stimulus { white-space: pre-wrap; color: var(--ink); margin-bottom: 18px; font-size: 15.5px; }
.scale-stem { font-weight: 600; margin-bottom: 20px; font-size: 15.5px; }
.scale-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.scale-buttons button {
  flex: 1 1 40px;
  min-width: 40px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .1s, background .1s, color .1s, transform .05s, box-shadow .1s;
}
.scale-buttons button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.scale-buttons button:active { transform: translateY(1px); }
.scale-buttons button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.scale-block.answered .scale-buttons button:not([aria-pressed="true"]) { opacity: .35; }
/* [1005] 리커트 설명(앵커) 글씨를 더 진하게. */
.scale-anchors { display: flex; justify-content: space-between; color: var(--ink-2); font-weight: 600; font-size: 13px; margin-top: 12px; }
/* [1005] 채팅 속 척도 묶음은 문구 길이와 상관없이 같은 너비·같은 버튼
   비율로("가로 비율이 맞도록"). 정사각형 버튼은 너비가 넓으면 지나치게
   커져서 높이를 고정한다. */
.msg-row.scale-row { align-self: stretch; max-width: 100%; }
.msg-row.scale-row > .scale-block { flex: 1 1 auto; }
.msg-row.scale-row .scale-buttons { flex-wrap: nowrap; }
.msg-row.scale-row .scale-buttons button { aspect-ratio: auto; height: 52px; min-width: 0; flex: 1 1 0; }
.survey-start { align-self: center; margin: 14px 0 6px; }
.em-red { color: #c0392b; font-weight: 700; }
@media (max-width: 420px) {
  .scale-buttons { gap: 7px; }
  .scale-buttons button { flex-basis: calc((100% - 4 * 7px) / 5); min-width: 34px; font-size: 15px; }
  .msg-row.scale-row .scale-buttons { gap: 5px; }
  .msg-row.scale-row .scale-buttons button { height: 44px; font-size: 15px; }
}

/* ===================== 관리자 ===================== */
/* [2026-10] 관리자 화면 디자인 정리 — 공통 상단 메뉴, 같은 폭·같은 카드·같은
   버튼 크기, 넓은 표는 카드 안에서 가로 스크롤(모바일 포함). */
.admin-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 2px;
  padding: 0 20px; height: 54px; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a {
  flex: none; padding: 7px 12px; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
}
.admin-nav a:hover { background: #f3f4f7; }
.admin-nav a.on { color: var(--accent); font-weight: 700; background: var(--accent-soft); }
.admin-nav .admin-brand { font-weight: 800; color: var(--ink); margin-right: 12px; padding-left: 0; letter-spacing: -0.01em; }
.admin-nav .admin-brand:hover { background: none; }
.admin-nav-gap { flex: 1 0 12px; }
.admin-nav .admin-who { font-size: 13px; color: var(--muted); font-weight: 500; }
.admin-nav form { margin: 0; flex: none; }
.admin-nav button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 7px 10px; border-radius: 8px; }
.admin-nav button:hover { background: #f3f4f7; color: var(--ink); }
@media (max-width: 640px) {
  .admin-nav { padding: 0 12px; height: 50px; }
  .admin-nav .admin-brand, .admin-nav .admin-who { display: none; }
  .admin-nav a { padding: 6px 9px; font-size: 13.5px; }
}

.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 26px 24px 72px; }
@media (max-width: 640px) { .admin-wrap { padding: 18px 14px 56px; } }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-head h1 { font-size: 22px; margin: 0 0 2px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-head p { margin: 0; font-size: 13.5px; }
.admin-head .actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-wrap .btn { padding: 8px 15px; font-size: 13.5px; border-radius: 9px; }
.admin-wrap .btn.mini { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.admin-wrap .btn.danger { --btn-bg: #fff; --btn-fg: #c0392b; --btn-bd: #f0c8c4; }
.admin-wrap .btn.danger:hover { --btn-bg: #fdecec; }

.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; min-width: 0; }
.admin-card.flush { padding: 0; overflow: hidden; }
.admin-card > h2 { font-size: 14.5px; margin: 0 0 12px; display: flex; align-items: baseline; gap: 8px; }
.admin-card > h2 .muted { font-size: 12px; font-weight: 400; }
.admin-section-title { font-size: 14.5px; font-weight: 700; margin: 24px 0 10px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > table { min-width: 640px; }
.nowrap { white-space: nowrap; }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); font-size: 13.5px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input[type=search], .toolbar select {
  padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 13.5px; background: #fff;
}
.toolbar input[type=search] { min-width: 220px; }

.status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--them); color: var(--ink-2); white-space: nowrap; }
.status[data-s^="완료"] { background: #e6f5ec; color: var(--good); }
.status[data-s^="중단"] { background: #fdecec; color: #c0392b; }
.status[data-s^="이탈"] { background: #fbeedd; color: var(--warn); }
.status[data-s^="진행"], .status[data-s^="답변"] { background: var(--accent-soft); color: var(--accent); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  text-align: left; padding: 10px 14px;
  color: var(--muted); font-weight: 600; font-size: 11.5px;
  letter-spacing: .05em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: #f8f9fc; }
td .btn { padding: 6px 13px; font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace; font-size: 12.5px; color: var(--ink-2); }
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--them); font-size: 12px; font-weight: 500; color: var(--ink-2);
}
.pill[data-phase="done"] { background: #e6f5ec; color: var(--good); }
.pill[data-phase="struct"], .pill[data-phase="struct_intro"] { background: #fbeedd; color: var(--warn); }

.op-bar { flex: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: center; }
.op-bar .btn { padding: 8px 14px; font-size: 13px; }
.op-group { display: flex; gap: 6px; }
.op-sep { flex: 1; }
.q-btn { min-width: 42px; padding: 8px 0 !important; text-align: center; font-weight: 700; }
.q-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
#enterStruct { font-weight: 600; }
.meta { color: var(--muted); font-size: 11px; margin-left: 6px; font-weight: 400; }
.bubble.me .meta { color: rgba(255,255,255,.62); }
.op-pos { flex-basis: 100%; font-size: 12px; color: var(--muted); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; background: var(--them); padding: 1px 7px; border-radius: 6px; color: var(--ink-2);
}

/* ===================== 관리자 콘솔: 채팅 + 대본 2열 ===================== */
/* [2026-09-24 신규] 요청서: 채팅창을 왼편으로 좁히고 우측에 대본 패널. */
.console-layout {
  display: flex;
  height: 100vh;
  max-width: 1240px;
  margin: 0 auto;
}
.console-chat {
  flex: 1 1 540px;
  max-width: 640px;
  margin: 0;
  border-right: none;
}
.topic-badge { color: #c0392b; font-weight: 700; }
/* [2026-10] 면접 진행 화면 머리글·안내 */
.console-head { flex: none; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.ch-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.ch-back { text-decoration: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 2px 6px 2px 0; }
.ch-back:hover { color: var(--accent); }
.ch-name { font-size: 15px; }
.ch-gap { flex: 1; }
.ch-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.console-hint { margin: 0; padding: 8px 16px 12px; font-size: 12px; color: var(--muted); }
.console-hint.warn { padding: 12px 16px; background: #fff7ed; border-top: 1px solid var(--line); color: var(--warn); }

.script-panel {
  flex: 1 1 420px;
  max-width: none;
  min-width: 260px;
  border-left: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.script-panel-head {
  flex: none;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 13.5px;
}
.script-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 18px 40px;
  font-size: 12.5px;
  line-height: 1.55;
}
.script-section-title {
  color: #c0392b;
  font-weight: 700;
  margin: 18px 0 6px;
  font-size: 12.5px;
}
.script-section-title:first-child { margin-top: 0; }
.script-line {
  padding: 3px 0;
  color: var(--ink-2);
  white-space: pre-wrap;
}
/* [0929] 대본의 문항 묶음·리커트 질문 묶음은 진행 중 헷갈리지 않게
   파란 테두리 상자로 눈에 띄게. */
.script-box {
  margin: 8px 0;
  padding: 8px 10px;
  border: 1.5px solid #3b5bdb;
  border-radius: 8px;
  background: #eef2ff;
}
.script-box-title { font-weight: 700; color: #2f49b8; font-size: 12px; margin-bottom: 4px; }
.script-box .script-line { color: #1e2a6b; }
.script-label { color: var(--muted); font-size: 11.5px; margin-right: 4px; }

/* [0929] 리커트 버튼 3개 — 지금 차례인 버튼만 강조. */
.op-bar .scale-btn { opacity: .55; }
.op-bar .scale-btn.expected { opacity: 1; box-shadow: 0 0 0 3px rgba(59,91,219,.28); }
.op-bar .scale-btn:disabled { opacity: .3; cursor: not-allowed; }

/* [0929] 콜센터 — 연구원 상태 불빛. */
.presence-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: #c4c7cf; }
.presence-dot[data-status="available"] { background: #1a9e55; box-shadow: 0 0 0 3px rgba(26,158,85,.18); }
.presence-dot[data-status="busy"] { background: #cf3b38; box-shadow: 0 0 0 3px rgba(207,59,56,.16); }

.typing-indicator {
  flex: none;
  padding: 6px 18px;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 900px) {
  .console-layout { flex-direction: column; height: auto; }
  .console-chat { max-width: none; height: 70vh; }
  .script-panel { max-width: none; height: 40vh; border-left: none; border-top: 1px solid var(--line); }
}
