/* URL.KR 상담실. 공통 색상은 v2 디자인 토큰을 사용한다. 수정일: 2026-10-04 */
.cs-page { padding: 48px 0 64px; background: var(--alt); }
.cs-intro { margin-bottom: 32px; }
.cs-eyebrow { margin-bottom: 8px; color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.cs-title { color: var(--heading); font-size: 36px; line-height: 1.3; letter-spacing: -.04em; }
.cs-lead { margin-top: 12px; color: var(--muted); font-size: 16px; }
.cs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.cs-room { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 4px 24px rgb(40 66 67 / 4%); }
.cs-room-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border-soft); }
.cs-assistant { display: flex; align-items: center; gap: 12px; }
.cs-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; color: var(--surface); background: var(--band); font-size: 20px; }
.cs-assistant-name { font-size: 16px; line-height: 1.4; font-weight: 700; color: var(--heading); }
.cs-assistant-caption { margin-top: 4px; font-size: 12px; color: var(--muted); }
.cs-text-button { flex: none; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 13px; }
.cs-text-button:hover { border-color: var(--heading); color: var(--heading); }
.cs-thread { position: relative; height: clamp(360px, 44dvh, 480px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border) transparent; padding: 24px; scroll-padding: 24px; }
.cs-welcome { max-width: 480px; margin: 8px auto 16px; text-align: center; }
.cs-welcome-mark { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 16px; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--alt); color: var(--heading); font-size: 24px; }
.cs-welcome-title { font-size: 22px; letter-spacing: -.025em; line-height: 1.4; color: var(--heading); }
.cs-welcome-description { margin-top: 8px; color: var(--muted); font-size: 14px; }
.cs-starters { display: grid; gap: 8px; margin-top: 24px; }
.cs-starter { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--heading); font-size: 14px; text-align: left; line-height: 1.5; }
.cs-starter > :nth-child(2) { flex: 1; }
.cs-starter > :last-child { color: var(--muted); font-size: 12px; }
.cs-starter:hover { background: var(--alt); border-color: var(--heading); transform: translateX(2px); }
.cs-compose { padding: 16px 24px 20px; border-top: 1px solid var(--border-soft); background: var(--surface); }
.cs-input-box { display: flex; align-items: end; gap: 12px; padding: 8px; border: 1px solid var(--border-strong); border-radius: 12px; transition: box-shadow var(--dur), border-color var(--dur); }
.cs-input-box:focus-within { border-color: var(--band); box-shadow: 0 0 0 3px rgb(40 66 67 / 10%); }
.cs-question { display: block; flex: 1; min-width: 0; width: 100%; height: 44px; max-height: 144px; padding: 10px 8px; border: 0; border-radius: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; line-height: 24px; resize: none; outline: none; overflow-y: auto; }
.cs-question:focus-visible { outline: none; }
.cs-question::placeholder { color: var(--muted); opacity: 1; }
.cs-send { display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 8px; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 8px; color: var(--surface); background: var(--accent); font-size: 14px; font-weight: 700; }
.cs-send:hover { background: var(--accent-deep); }
.cs-send:disabled { opacity: .55; }
.cs-compose-note { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.cs-key-hint { font-size: 11px; }
.cs-compose-status { margin-top: 12px; padding: 12px; color: var(--heading); border-radius: 8px; background: var(--alt); font-size: 14px; line-height: 1.6; }
.cs-compose-status--error { color: var(--danger); background: var(--accent-soft); }
.cs-sidebar { display: grid; gap: 20px; }
.cs-contact-card { padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.cs-contact-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 22px; }
.cs-side-title { font-size: 20px; line-height: 1.5; letter-spacing: -.025em; color: var(--heading); }
.cs-side-description { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.cs-contact-button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; margin-top: 24px; padding: 12px 16px; border: 1px solid var(--band); border-radius: 8px; background: var(--band); color: var(--surface); font-size: 14px; font-weight: 700; }
.cs-contact-button:hover { background: var(--surface); color: var(--band); }
.cs-help { padding: 8px 12px; }
.cs-help-title { margin: 0 12px 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.cs-help-link { display: flex; align-items: center; gap: 12px; padding: 16px 12px; font-size: 14px; color: var(--heading); border-radius: 8px; }
.cs-help-link > :nth-child(2) { flex: 1; }
.cs-help-link > :last-child { font-size: 12px; color: var(--muted); }
.cs-help-link:hover { background: var(--surface); color: var(--accent-ink); }
.cs-message { margin: 0 0 24px; min-width: 0; }
.cs-message--user { display: flex; justify-content: flex-end; padding-left: 40px; }
.cs-user-text { max-width: 90%; padding: 12px 16px; border-radius: 12px 12px 4px 12px; background: var(--band); color: var(--surface); font-size: 16px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.cs-message--assistant { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.cs-reply-mark { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--alt); color: var(--heading); font-size: 16px; }
.cs-reply-content { min-width: 0; }
.cs-answer-label { display: block; margin: 2px 0 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.cs-answer { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.85; }
.cs-source { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border-soft); color: var(--heading); background: var(--alt); font-size: 13px; overflow-wrap: anywhere; }
.cs-source:hover { color: var(--accent-ink); border-color: var(--accent); }
.cs-suggestions { display: grid; gap: 8px; margin-top: 20px; }
.cs-suggestions-title { font-size: 12px; color: var(--muted); font-weight: 700; }
.cs-suggestion { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--heading); font-size: 14px; line-height: 1.6; text-align: left; }
.cs-suggestion:hover { border-color: var(--heading); background: var(--alt); }
.cs-feedback { display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.cs-feedback-button { flex: 1 1 140px; max-width: 200px; min-width: 0; min-height: 48px; padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--heading); font-size: 14px; font-weight: 600; line-height: 1.5; text-align: center; }
.cs-feedback-button:hover:not(:disabled) { border-color: var(--heading); background: var(--alt); }
.cs-feedback-button:disabled { opacity: .55; cursor: default; }
.cs-feedback-note { align-self: center; color: var(--muted); font-size: 14px; text-align: center; }
.cs-typing { display: flex; align-items: center; gap: 4px; padding-top: 10px; }
.cs-typing-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: cs-pulse 1.2s ease-in-out infinite; }
.cs-typing-dot:nth-child(2) { animation-delay: .15s; }
.cs-typing-dot:nth-child(3) { animation-delay: .3s; }
.cs-topic-divider { margin: 24px 0; padding: 8px 0; border-block: 1px solid var(--border-soft); text-align: center; font-size: 12px; color: var(--muted); }
.cs-noscript { margin-top: 24px; color: var(--muted); }
.cs-noscript > a { text-decoration: underline; }
.cs-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* 상담실의 도움말·문의와 겹치는 고정 메뉴는 이 페이지에서만 숨긴다. */
.hv2-quick, .hv2-quick.has-top { display: none; }
@keyframes cs-pulse { 0%, 80%, 100% { opacity: .35; } 40% { opacity: 1; } }
@media (max-width: 991px) {
    .cs-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; }
    .cs-contact-card { padding: 20px; }
    .cs-side-title { font-size: 18px; }
    .cs-key-hint { display: none; }
}
@media (max-width: 767px) {
    .cs-page { padding: 28px 0 40px; }
    .cs-intro { margin-bottom: 24px; }
    .cs-title { font-size: 28px; }
    .cs-lead { margin-top: 8px; font-size: 14px; }
    .cs-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .cs-room-heading { padding: 16px; }
    .cs-thread { height: 360px; padding: 20px 16px; scroll-padding: 16px; }
    .cs-welcome { margin-top: 4px; }
    .cs-welcome-title { font-size: 20px; }
    .cs-welcome-description { font-size: 13px; }
    .cs-starters { margin-top: 20px; }
    .cs-starter { gap: 8px; padding: 12px; font-size: 13px; }
    .cs-compose { padding: 12px 16px 16px; }
    .cs-input-box { gap: 4px; }
    .cs-send { width: 44px; padding: 10px; }
    .cs-send > span { display: none; }
    .cs-compose-note { font-size: 11px; }
    .cs-sidebar { gap: 16px; }
    .cs-contact-card { padding: 20px; }
    .cs-contact-icon { width: 32px; height: 32px; margin-bottom: 12px; font-size: 18px; }
    .cs-side-description { margin-top: 8px; }
    .cs-contact-button { margin-top: 16px; }
    .cs-help { padding: 4px; }
    .cs-message--assistant { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .cs-reply-mark { display: none; }
    .cs-message--user { padding-left: 24px; }
    .cs-user-text { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .cs-typing-dot { animation: none; }
    .cs-starter:hover { transform: none; }
}
