/* 상담실(CONSULT-ROOM-20261126.md). 맑은 흰 바탕 + 진한 주제 색(흰 글씨 4.5:1 이상, 색약 검사 통과 · 글자 라벨 항상 같이).
   주제 색은 data-topic → --topic. 인라인 style 속성 없음(CSP). 움직임은 줄이기 설정을 따른다. */
[data-topic] { --topic: #3a4540; }
[data-topic="space"] { --topic: #1d5c8f; }
[data-topic="price"] { --topic: #a35a00; }
[data-topic="compare"] { --topic: #7b3fa8; }
[data-topic="performance"] { --topic: #13804f; }
[data-topic="how"] { --topic: #c0392b; }
[data-topic="install"] { --topic: #007d9c; }
[data-topic="certification"] { --topic: #5b6b00; }
[data-topic="service"] { --topic: #b0306a; }
[data-topic="material"] { --topic: #1f2a25; }
[data-topic=""] { --topic: #3a4540; }

.cs-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--topic); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.cs-count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; margin-left: 4px; border-radius: 999px; background: var(--frame); color: #fff; font-size: 12px; font-weight: 700; vertical-align: 3px; }
.cs-empty-line { margin: 0; padding: 18px 4px; color: var(--muted-2); font-size: 13.5px; line-height: 1.7; }
.xi { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
[data-rise] { animation: fx-rise .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }

/* ── 자료실 ↔ 상담 카드 ── */
.library-switch { display: inline-flex; margin: 0 0 18px; }
.cs-cards-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 4px 0 16px; }
.cs-cards-head h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.cs-cards-head .subline { margin: 6px 0 0; }
.cs-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cs-filter button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 13px; border: 0; border-radius: 999px; background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair-strong); font-size: 13px; font-weight: 650; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease-out); }
.cs-filter button i { width: 9px; height: 9px; border-radius: 50%; background: var(--topic); }
.cs-filter button b { font-size: 12px; color: var(--muted-2); font-weight: 700; }
.cs-filter button:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--topic, var(--frame)); }
.cs-filter button[aria-pressed=true] { background: var(--topic, var(--frame)); color: #fff; box-shadow: 0 8px 18px -12px var(--topic, var(--frame)); }
.cs-filter button:not([data-topic])[aria-pressed=true] { background: var(--frame); }
.cs-filter button[aria-pressed=true] i { background: #fff; }
.cs-filter button[aria-pressed=true] b { color: rgba(255, 255, 255, .8); }
.cs-filter.is-tight { gap: 6px; }
.cs-filter.is-tight button { min-height: 30px; padding: 4px 10px; font-size: 12px; }
.cs-search { display: flex; align-items: center; gap: 8px; max-width: 420px; margin-bottom: 16px; padding: 0 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair-strong); color: var(--muted-2); }
.cs-search:focus-within { box-shadow: inset 0 0 0 2px var(--jade-deep); }
.cs-search input { flex: 1; min-width: 0; min-height: 40px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink-2); outline: none; }

.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.cs-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 14px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 4px 0 var(--topic), var(--sh-1); transition: transform .25s var(--ease-out), box-shadow .25s; }
.cs-card:hover { transform: translateY(-3px); box-shadow: inset 0 4px 0 var(--topic), var(--sh-2); }
.cs-card[data-archived] { opacity: .72; }
.cs-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cs-used { display: inline-flex; align-items: center; gap: 4px; color: var(--muted-2); font-size: 12px; font-weight: 600; }
.cs-card h3 { margin: 4px 0 0; font-size: 16.5px; line-height: 1.4; letter-spacing: -.02em; color: var(--frame); }
.cs-en { margin: 0; color: var(--muted-2); font-size: 13px; line-height: 1.5; }
.cs-answer { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cs-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--hair); }
.cs-card-foot .quiet { flex: none; white-space: nowrap; }
.cs-doc { display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: var(--ink-2); font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-doc.is-off { color: var(--crimson); }
.cs-archived { margin-top: 22px; padding: 12px 14px; }
.cs-archived summary { font-weight: 700; color: var(--ink-2); }
.cs-archived .cs-grid { margin-top: 14px; }

.cs-starter { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 24px; padding: 26px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); }
.cs-starter-copy .xi { width: 40px; height: 40px; color: var(--jade-deep); }
.cs-starter-copy h3 { margin: 12px 0 8px; font-size: 19px; letter-spacing: -.02em; }
.cs-starter-copy p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.75; }
.cs-suggest { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; align-content: start; }
.cs-suggest button { display: grid; grid-template-columns: 10px 1fr; column-gap: 10px; align-items: center; padding: 11px 13px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 4px 0 0 var(--topic), inset 0 0 0 1px var(--hair-strong); color: var(--frame); text-align: left; font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; transition: transform .2s var(--ease-out), box-shadow .2s; }
.cs-suggest button i { display: none; }
.cs-suggest button small { grid-column: 1 / -1; color: var(--topic); font-size: 11.5px; font-weight: 750; padding-left: 0; }
.cs-suggest button:hover { transform: translateX(3px); box-shadow: inset 6px 0 0 var(--topic), inset 0 0 0 1px var(--topic); }

.cs-form { padding: 22px; }
.cs-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.cs-topics legend { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cs-topics label { cursor: pointer; }
.cs-topics input { position: absolute; opacity: 0; pointer-events: none; }
.cs-topics span { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 13px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair-strong); font-size: 13px; font-weight: 650; color: var(--ink-2); transition: background-color .2s, color .2s; }
.cs-topics span i { width: 9px; height: 9px; border-radius: 50%; background: var(--topic); }
.cs-topics input:checked + span { background: var(--topic); color: #fff; box-shadow: 0 8px 18px -12px var(--topic); }
.cs-topics input:checked + span i { background: #fff; }
.cs-topics input:focus-visible + span { outline: 2px solid var(--frame); outline-offset: 2px; }
.cs-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cs-form-col h3 { margin: 0 0 6px; font-size: 14px; color: var(--frame); }
.cs-form-col h3 small { margin-left: 6px; color: var(--muted-2); font-weight: 600; }
.cs-form textarea { width: 100%; resize: vertical; }
.cs-form-doc { display: grid; grid-template-columns: 1fr 140px; gap: 14px; margin-top: 6px; }
.cs-rule { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 6px; padding: 11px 14px; border-radius: 12px; background: #fff; box-shadow: inset 4px 0 0 #a35a00, inset 0 0 0 1px var(--hair-strong); color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.cs-rule .xi { color: #a35a00; margin-top: 2px; }

/* ── 데이터룸 탭: 상담실 열기 + 기록 진열 ── */
.consult-shelf { display: grid; gap: 16px; margin: 16px 0 22px; }
.cs-launch { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 18px; background: radial-gradient(120% 140% at 0% 0%, #23302a 0%, #121513 60%); color: #fff; box-shadow: 0 22px 40px -26px rgba(10, 30, 22, .9); overflow: hidden; isolation: isolate; }
.cs-launch::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(163, 28, 27, .35), transparent 65%); z-index: -1; }
.cs-launch-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.cs-launch-ic .xi { width: 28px; height: 28px; color: #fff; }
.cs-launch.is-live .cs-launch-ic { background: var(--crimson); animation: fx-ping 1.8s infinite; }
.cs-launch-copy h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.02em; color: #fff; }
.cs-launch-copy p { margin: 0; color: rgba(255, 255, 255, .74); font-size: 13.5px; line-height: 1.6; }
.cs-launch-copy .cs-launch-off { margin-top: 6px; color: #ffb4a8; }
.cs-start-btn, .cs-live-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 14px; background: #fff; color: var(--frame); font: inherit; font-size: 15px; font-weight: 750; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease-out), box-shadow .2s; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .8); }
.cs-start-btn:hover, .cs-live-btn:hover { transform: translateY(-2px); }
.cs-start-btn:active, .cs-live-btn:active { transform: translateY(0) scale(.98); }
.cs-live-btn { background: var(--crimson); color: #fff; }
.cs-record { display: grid; grid-template-columns: 62px 1fr; gap: 14px; padding: 16px; border: 0; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: transform .25s var(--ease-out), box-shadow .25s; }
.cs-record:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.cs-record:active { transform: translateY(0) scale(.99); }
.cs-rec-date { display: grid; place-items: center; align-content: center; height: 70px; border-radius: 14px; background: var(--frame); color: #fff; }
.cs-rec-date b { font-size: 26px; line-height: 1; letter-spacing: -.03em; }
.cs-rec-date small { margin-top: 4px; font-size: 11.5px; color: rgba(255, 255, 255, .75); font-weight: 650; }
.cs-rec-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cs-band { display: flex; gap: 3px; height: 6px; margin-bottom: 4px; }
.cs-band i { flex: 1; border-radius: 3px; background: var(--topic); }
.cs-band i[data-topic="none"] { background: #d9dfdc; }
.cs-rec-body strong { font-size: 15px; line-height: 1.4; color: var(--frame); letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-rec-more { color: var(--ink-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-rec-meta { color: var(--muted-2); font-size: 12px; font-weight: 600; }
.cs-rec-next { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 6px 10px; border-radius: 10px; background: #fff; box-shadow: inset 3px 0 0 var(--crimson), inset 0 0 0 1px var(--hair-strong); color: var(--frame); font-size: 12.5px; font-weight: 700; }
.cs-rec-next .xi { color: var(--crimson); }
/* '고객과 대화' 안의 상담 기록 카드 — 대화 줄 가운데에 시간순으로 놓인다. */
.chat-consult { display: grid; justify-items: center; margin: 6px 0; }
.chat-consult .cs-record { width: 100%; max-width: 620px; box-shadow: var(--sh-1), inset 0 0 0 1px var(--hair-strong); }
.chat-consult .cs-record:hover { transform: translateY(-2px); box-shadow: var(--sh-2), inset 0 0 0 1px var(--hair-strong); }
.cs-rec-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--crimson); font-size: 11.5px; font-weight: 800; }
.cs-rec-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--crimson); }

/* ── 상담실(화면 가득) ── */
body.cs-open { overflow: hidden; }
.cs-overlay { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; background: #fdfdfd; animation: fx-fade .25s ease both; }
.cs-loading { margin: auto; display: grid; gap: 14px; justify-items: center; color: var(--ink-2); font-size: 15px; }
.cs-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 10px 20px; background: var(--frame); color: #fff; }
.cs-bar-left, .cs-bar-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cs-onair { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--crimson); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.cs-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: fx-breathe 1.4s ease-in-out infinite; flex: none; }
.cs-dot.is-green { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: cs-ping-green 1.8s infinite; }
.cs-dot.is-gray { background: #8b9690; animation: none; }
@keyframes cs-ping-green { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } }
.cs-who { display: grid; min-width: 0; }
.cs-who strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-who small { color: rgba(255, 255, 255, .6); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-elapsed { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .85); padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); }
.cs-presence { font-size: 13px; font-weight: 650; min-width: 0; }
.cs-here, .cs-away { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.cs-here { color: #b8f5cf; }
.cs-away { color: rgba(255, 255, 255, .7); }
.cs-ghost { min-height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.cs-ghost:hover { background: rgba(255, 255, 255, .18); }
.cs-end { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--crimson); color: #fff; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.cs-end:hover { background: var(--crimson-hover); }
.cs-ghost-dark { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair-strong); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.cs-ghost-dark:hover { box-shadow: inset 0 0 0 1px var(--frame); color: var(--frame); }

.cs-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 400px; }
.cs-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px 22px; overflow: auto; }
.cs-stage-label { display: flex; justify-content: space-between; align-items: center; color: var(--muted-2); font-size: 13px; font-weight: 700; }
.cs-stage-label span { display: inline-flex; align-items: center; gap: 6px; }
.cs-stage:focus { outline: none; }
.cs-stage:focus-visible { outline: 2px solid var(--frame); outline-offset: 3px; }
.cs-stage { flex: 1; min-height: 340px; display: flex; border-radius: 20px; background: #fff; box-shadow: inset 0 5px 0 var(--topic), var(--sh-2); overflow: hidden; transition: box-shadow .35s; }
.cs-idle { margin: auto; max-width: 440px; padding: 30px; text-align: center; }
.cs-idle-mark { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; background: var(--frame); color: #fff; animation: fx-pop .6s var(--ease-spring) both; }
.cs-idle-mark .xi { width: 34px; height: 34px; }
.cs-idle h2 { margin: 16px 0 8px; font-size: 22px; letter-spacing: -.02em; }
.cs-idle p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.cs-slide { width: 100%; padding: 22px 26px; display: flex; flex-direction: column; gap: 10px; animation: cs-slide-in .45s var(--ease-out) both; }
@keyframes cs-slide-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.cs-slide-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted-2); font-size: 12.5px; font-weight: 650; }
.cs-slide h2 { margin: 2px 0 0; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.3; letter-spacing: -.03em; color: var(--frame); }
.cs-slide-answer { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.75; white-space: pre-wrap; max-width: 70ch; }
.cs-page { margin: 6px 0 0; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
.cs-page-img { flex: 1; min-height: 240px; display: grid; place-items: center; border-radius: 14px; background: #f3f5f4; box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.cs-page-img img { display: block; max-width: 100%; max-height: max(240px, calc(100dvh - 540px)); object-fit: contain; animation: fx-fade .35s ease both; }
.cs-page figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; font-weight: 650; }
.cs-page figcaption > span:first-child { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-pager { display: inline-flex; align-items: center; gap: 6px; }
.cs-pager button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--frame); color: #fff; cursor: pointer; transition: transform .15s; }
.cs-pager button:active { transform: scale(.94); }
.cs-pager button:disabled { background: #d5dbd8; cursor: default; }
.cs-pager b { min-width: 62px; text-align: center; font-variant-numeric: tabular-nums; }
.cs-shimmer { width: 100%; height: 100%; min-height: 220px; background: linear-gradient(100deg, #eef1ef 30%, #f8faf9 50%, #eef1ef 70%) 0 0 / 300% 100%; animation: fx-shimmer 1.2s linear infinite; }
.cs-img-err { padding: 20px; color: var(--crimson); font-size: 13.5px; text-align: center; }
.cs-strip-head { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.cs-strip-head small { color: var(--muted-2); font-weight: 600; }
.cs-strip { display: flex; gap: 8px; margin: 0; padding: 2px 2px 6px; list-style: none; overflow-x: auto; scroll-behavior: smooth; }
.cs-strip button { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; width: 200px; padding: 10px 12px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 3px 0 var(--topic), inset 0 0 0 1px var(--hair-strong); text-align: left; font: inherit; color: var(--frame); cursor: pointer; animation: fx-rise .4s var(--ease-out) both; transition: transform .2s var(--ease-out); }
.cs-strip button:hover { transform: translateY(-2px); }
.cs-strip button[aria-current=true] { box-shadow: inset 0 3px 0 var(--topic), inset 0 0 0 2px var(--topic); }
.cs-strip b { grid-row: span 2; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--topic); color: #fff; font-size: 12px; }
.cs-strip span { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-strip time { color: var(--muted-2); font-size: 11.5px; }
.cs-strip-empty { color: var(--muted-2); font-size: 13px; padding: 8px 2px; }

.cs-side { min-width: 0; display: flex; flex-direction: column; border-left: 1px solid var(--hair); background: #fff; }
.cs-tabs { display: flex; gap: 6px; padding: 12px 14px 0; }
.cs-tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--muted-2); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.cs-tabs button b { font-size: 12px; }
.cs-tabs button[aria-selected=true] { background: var(--frame); color: #fff; }
.cs-pane { flex: 1 1 52%; min-height: 160px; display: flex; flex-direction: column; padding: 12px 14px; overflow: auto; }
.cs-pane .cs-search { max-width: none; margin-bottom: 10px; }
.cs-pane-note { margin: 0 0 8px; color: var(--muted-2); font-size: 12.5px; }
.cs-list { display: grid; gap: 7px; align-content: start; }
.cs-item { display: grid; gap: 3px; width: 100%; padding: 11px 12px 11px 15px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 4px 0 0 var(--topic), inset 0 0 0 1px var(--hair-strong); text-align: left; font: inherit; color: var(--frame); cursor: pointer; transition: transform .18s var(--ease-out), box-shadow .18s, background-color .18s; }
.cs-item:hover { transform: translateX(3px); box-shadow: inset 6px 0 0 var(--topic), inset 0 0 0 1px var(--topic); }
.cs-item:active { transform: scale(.985); }
.cs-item[aria-current=true] { background: var(--topic); color: #fff; box-shadow: 0 10px 20px -14px var(--topic); }
.cs-item[aria-current=true] .cs-item-meta { color: rgba(255, 255, 255, .85); }
.cs-item.is-busy { opacity: .6; }
.cs-item-q { font-size: 14px; font-weight: 700; line-height: 1.4; }
.cs-item-meta { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--muted-2); font-size: 12px; font-weight: 600; }
.cs-more { margin-top: 10px; padding: 8px 10px; }
.cs-more summary { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cs-more .cs-item { margin-top: 7px; }
.cs-chat { flex: 1 1 48%; min-height: 220px; display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.cs-chat-head { display: flex; align-items: center; gap: 7px; padding: 12px 14px 6px; font-size: 13.5px; font-weight: 750; color: var(--frame); }
.cs-wait { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: #1d5c8f; color: #fff; font-size: 11.5px; font-weight: 750; animation: fx-pop .5s var(--ease-spring) both; }
.cs-thread { flex: 1; min-height: 0; margin: 0; padding: 6px 14px; list-style: none; display: flex; flex-direction: column; gap: 8px; overflow: auto; overscroll-behavior: contain; }
.cs-thread-empty { color: var(--muted-2); font-size: 13px; line-height: 1.6; padding: 6px 0; }
.cs-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: inset 3px 0 0 #1d5c8f, inset 0 0 0 1px var(--hair-strong); align-self: flex-start; animation: fx-rise .35s var(--ease-out) both; }
.cs-msg[data-author=staff], [data-author=staff] > .cs-msg { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--frame); color: #fff; box-shadow: none; }
.cs-msg p { margin: 0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.cs-msg small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted-2); }
.cs-msg[data-author=staff] small, [data-author=staff] > .cs-msg small { color: rgba(255, 255, 255, .65); }
.cs-say { display: flex; gap: 8px; align-items: flex-end; padding: 10px 14px 14px; }
.cs-say textarea { flex: 1; min-height: 44px; max-height: 140px; padding: 11px 12px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair-strong); font: inherit; font-size: 14px; resize: vertical; }
.cs-say textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--jade-deep); }
.cs-send { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--crimson); color: #fff; cursor: pointer; transition: transform .15s; }
.cs-send:active { transform: scale(.94); }
.cs-send .xi { width: 20px; height: 20px; }

.cs-modal { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; background: rgba(18, 21, 19, .55); animation: fx-fade .2s ease both; }
.cs-modal-card { width: min(520px, 100%); padding: 24px; border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); animation: cs-slide-in .35s var(--ease-out) both; }
.cs-modal-card h2 { margin: 0 0 14px; font-size: 21px; letter-spacing: -.02em; }
.cs-modal-card textarea { width: 100%; }
.cs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.cs-stats span { display: grid; padding: 12px; border-radius: 14px; background: var(--frame); color: rgba(255, 255, 255, .75); font-size: 12px; font-weight: 650; }
.cs-stats b { color: #fff; font-size: 24px; letter-spacing: -.02em; }

/* ── 상담 기록 다시 보기 ── */
.cs-overlay.is-record { overflow: auto; }
.cs-record-wrap { width: min(1180px, 100%); margin: 0 auto; padding: 22px 22px 60px; }
.cs-rec-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cs-rec-title { flex: 1; min-width: 0; }
.cs-rec-title p { margin: 0; color: var(--muted-2); font-size: 13px; font-weight: 650; }
.cs-rec-title h1 { margin: 2px 0 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.03em; color: var(--frame); }
.cs-rec-title h1 span { color: var(--muted-2); font-size: .6em; font-weight: 650; }
.cs-rec-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 14px; }
.cs-rec-stats > div { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); }
.cs-rec-stats > div:first-child { background: linear-gradient(150deg, #1d2622, #121513); color: #fff; box-shadow: 0 18px 36px -20px rgba(10, 30, 22, .7); }
.cs-rec-stats b { font-size: 28px; letter-spacing: -.03em; line-height: 1.1; }
.cs-rec-stats small { color: var(--muted-2); font-size: 12.5px; font-weight: 650; }
.cs-rec-stats > div:first-child small { color: #a6d6c3; }
.cs-rec-stats .cs-rec-host b { font-size: 18px; padding-top: 6px; }
.cs-rec-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.cs-rec-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.cs-timeline { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.cs-timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--hair-strong); }
.cs-tl-show, .cs-tl-msg { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.cs-tl-rail { display: flex; justify-content: center; padding-top: 14px; }
.cs-tl-rail b { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--topic); color: #fff; font-size: 13px; }
.cs-tl-rail i { position: relative; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--hair-strong); }
.cs-tl-msg[data-author=customer] .cs-tl-rail i { box-shadow: 0 0 0 2px #1d5c8f; }
.cs-tl-card { padding: 16px 18px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 4px 0 0 var(--topic), var(--sh-1); }
.cs-tl-card h3 { margin: 8px 0 4px; font-size: 17px; letter-spacing: -.02em; color: var(--frame); }
.cs-tl-card > p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.cs-tl-doc { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hair); color: var(--ink-2); font-size: 13px; font-weight: 650; }
.cs-peek { margin-top: 10px; border-radius: 12px; overflow: hidden; background: #f3f5f4; box-shadow: inset 0 0 0 1px var(--hair); }
.cs-peek img { display: block; width: 100%; height: auto; animation: fx-fade .3s ease both; }
.cs-tl-msg .cs-msg { max-width: 80%; }
.cs-tl-msg[data-author=staff] .cs-msg { justify-self: end; }
.cs-memo { position: sticky; top: 16px; padding: 18px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 4px 0 var(--crimson), var(--sh-1); }
.cs-memo h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: 16px; }
.cs-memo h3 small { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: var(--frame); color: #fff; font-size: 11px; }
.cs-memo textarea { width: 100%; }

@media (max-width: 980px) {
 .cs-body { grid-template-columns: 1fr; overflow: auto; }
 .cs-side { border-left: 0; border-top: 1px solid var(--hair); }
 .cs-pane { max-height: 420px; }
 .cs-chat { min-height: 360px; }
 .cs-main { overflow: visible; }
 .cs-rec-grid { grid-template-columns: 1fr; }
 .cs-memo { position: static; }
 .cs-presence { display: none; }
}
@media (max-width: 640px) {
 .cs-bar { flex-wrap: wrap; padding: 10px 14px; }
 .cs-bar-left { flex: 1 1 100%; }
 .cs-bar-right { flex: 1 1 100%; justify-content: flex-end; }
 .cs-elapsed { display: none; }
 .cs-main { padding: 14px; }
 .cs-slide { padding: 18px 16px; }
 .cs-launch { grid-template-columns: auto 1fr; }
 .cs-launch > button { grid-column: 1 / -1; justify-content: center; }
 .cs-form-grid, .cs-form-doc, .cs-starter { grid-template-columns: 1fr; }
 .cs-cards-head { flex-direction: column; align-items: stretch; }
 .cs-rec-stats { grid-template-columns: repeat(2, 1fr); }
 .cs-record-wrap { padding: 16px 14px 48px; }
}
@media (prefers-reduced-motion: reduce) {
 [data-rise], .cs-slide, .cs-strip button, .cs-msg, .cs-overlay, .cs-modal, .cs-modal-card, .cs-idle-mark, .cs-wait, .cs-page-img img, .cs-peek img { animation: none !important; }
 .cs-dot, .cs-dot.is-green, .cs-launch.is-live .cs-launch-ic, .cs-shimmer { animation: none !important; }
 .cs-card, .cs-record, .cs-item, .cs-suggest button, .cs-filter button, .cs-strip button, .cs-start-btn, .cs-live-btn { transition: none; }
 .cs-card:hover, .cs-record:hover, .cs-item:hover, .cs-suggest button:hover, .cs-filter button:hover, .cs-strip button:hover, .cs-start-btn:hover { transform: none; }
}
@media (forced-colors: active) {
 .cs-chip, .cs-card, .cs-record, .cs-item, .cs-stage, .cs-tl-card, .cs-strip button, .cs-memo { border: 1px solid CanvasText; }
 .cs-item[aria-current=true], .cs-strip button[aria-current=true] { outline: 3px solid Highlight; }
}
