/* ASTERON 상담 도우미 — asteron-inc.css 토큰(--asteron-blue, --ink …)을 그대로 쓴다. */
.support-chat{position:fixed;right:24px;bottom:24px;z-index:990;font-family:inherit}
.support-chat[hidden]{display:none}

.sc-launcher{position:relative;width:60px;height:60px;display:grid;place-items:center;margin-left:auto;border:1px solid rgba(17,17,22,.06);border-radius:50%;background:#fff;color:var(--ink);cursor:pointer;box-shadow:0 14px 36px rgba(12,12,40,.22),0 3px 10px rgba(12,12,40,.10);transition:transform .2s,box-shadow .2s}
.sc-launcher:hover{transform:translateY(-2px);box-shadow:0 18px 44px rgba(12,12,40,.26),0 4px 12px rgba(12,12,40,.12)}
.sc-launcher::after{content:'';position:absolute;top:3px;right:3px;width:12px;height:12px;border:2px solid #fff;border-radius:50%;background:var(--asteron-yellow)}
.support-chat.is-open .sc-launcher::after{display:none}
.sc-launcher-open{width:26px;height:auto;display:block}
.sc-launcher .material-symbols-rounded{font-size:24px}
.sc-launcher-close,.support-chat.is-open .sc-launcher-open{display:none}
.support-chat.is-open .sc-launcher-close{display:block}

.sc-panel{position:absolute;right:0;bottom:76px;width:400px;height:min(640px,calc(100vh - 196px));min-height:360px;display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(17,17,22,.10);border-radius:22px;background:#fff;box-shadow:0 32px 80px rgba(12,12,40,.30),0 8px 24px rgba(12,12,40,.14);animation:sc-in .22s ease-out}
.sc-panel[hidden]{display:none}
@keyframes sc-in{from{opacity:0;transform:translateY(10px)}}

.sc-head{display:flex;align-items:center;gap:12px;padding:18px 16px 16px 20px;border-bottom:1px solid #ececf1}
.sc-mark{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:var(--paper-blue)}
.sc-mark img{width:18px}
.sc-head p{flex:1;min-width:0;line-height:1.4}
.sc-head strong{display:block;font-size:14px;font-weight:700;letter-spacing:-.02em}
.sc-head small{display:block;margin-top:2px;overflow:hidden;color:#80828c;font-size:11px;white-space:nowrap;text-overflow:ellipsis}
.sc-head small i{display:inline-block;width:6px;height:6px;margin:0 6px 1px 1px;vertical-align:middle;border-radius:50%;background:#1fb866;box-shadow:0 0 0 3px rgba(31,184,102,.16)}
.sc-icon{width:32px;height:32px;display:grid;place-items:center;flex:0 0 auto;border:0;border-radius:9px;background:transparent;color:#71737d;cursor:pointer}
.sc-icon:hover{background:#f3f3f6;color:var(--ink)}
.sc-icon .material-symbols-rounded{font-size:19px}

.sc-log{flex:1;overflow-y:auto;padding:22px 20px 10px;background:#f7f7f5;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d4d5dc transparent}
.sc-msg{max-width:86%;margin-bottom:16px}
.sc-text{white-space:pre-wrap;word-break:keep-all;overflow-wrap:anywhere;font-size:13px;line-height:1.7;letter-spacing:-.01em}
.sc-user{margin-left:auto}
.sc-user .sc-text{padding:10px 15px;border-radius:16px 16px 4px 16px;background:var(--asteron-blue);color:#fff}
.sc-bot .sc-text{padding:13px 16px;border:1px solid #ebebef;border-radius:16px 16px 16px 4px;background:#fff;color:#2a2c33;box-shadow:0 1px 2px rgba(12,12,40,.04)}
.sc-bot.is-error .sc-text{border-color:#f5d2cf;background:#fff8f7}

.sc-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.sc-link{display:inline-flex;align-items:center;gap:4px;padding:5px 11px;border:1px solid #dfe1f5;border-radius:999px;background:#fff;color:var(--asteron-blue);font-size:11.5px;font-weight:600;text-decoration:none;transition:background .2s}
.sc-link::after{content:'→';font-size:10.5px}
.sc-link[target=_blank]::after{content:'↗'}
.sc-link:hover{background:var(--paper-blue)}

.sc-handoff{margin-top:12px;padding:16px 18px;border-radius:14px;background:var(--ink);color:#fff}
.sc-handoff-title{font-size:13px;font-weight:700}
.sc-handoff-sub{margin-top:4px;color:#a4a6b1;font-size:11.5px;line-height:1.6}
.sc-handoff-btn{margin-top:12px;padding:8px 14px;border:0;border-radius:999px;background:var(--asteron-yellow);color:var(--ink);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.sc-handoff-btn:hover{filter:brightness(.96)}

.sc-quick{display:flex;flex-wrap:wrap;gap:6px;margin:-4px 0 16px}
.sc-chip{padding:6px 11px;border:1px solid #dcdde6;border-radius:999px;background:#fff;color:#474953;font:inherit;font-size:12px;cursor:pointer;transition:border-color .2s,color .2s}
.sc-chip:hover{border-color:var(--asteron-blue);color:var(--asteron-blue)}

.sc-typing{display:inline-flex;gap:5px;padding:14px 16px;border:1px solid #ebebef;border-radius:16px 16px 16px 4px;background:#fff}
.sc-typing i{width:6px;height:6px;border-radius:50%;background:#b5b7c2;animation:sc-dot 1.2s infinite}
.sc-typing i:nth-child(2){animation-delay:.15s}
.sc-typing i:nth-child(3){animation-delay:.3s}
@keyframes sc-dot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}

.sc-form{display:flex;align-items:flex-end;gap:8px;padding:12px 16px 8px;border-top:1px solid #ececf1;background:#fff}
.sc-form textarea{flex:1;min-height:40px;max-height:120px;overflow-y:hidden;padding:9px 13px;border:1px solid #e1e2e8;border-radius:12px;resize:none;font:inherit;font-size:13px;line-height:1.55;outline:0}
.sc-form textarea:focus{border-color:var(--asteron-blue);box-shadow:0 0 0 3px rgba(27,23,255,.1)}
.sc-form button{width:40px;height:40px;display:grid;place-items:center;flex:0 0 auto;border:0;border-radius:50%;background:var(--asteron-blue);color:#fff;cursor:pointer}
.sc-form button .material-symbols-rounded{font-size:20px}
.sc-form button:disabled{background:#c7c8d3;cursor:default}
.sc-foot{padding:2px 16px 12px;background:#fff;color:#9a9ca5;font-size:10.5px;text-align:center}

/* 고객지원 페이지: 도우미가 채운 초안 안내 */
.support-chat-draft-note{margin-bottom:18px;padding:12px 14px;border:1px solid #dfe1f5;border-radius:12px;background:var(--paper-blue);color:var(--asteron-blue);font-size:13px;font-weight:600;line-height:1.6}

@media(max-width:560px){
  .support-chat{right:16px;bottom:16px}
  .sc-launcher{width:54px;height:54px}
  .support-chat.is-open{inset:0;right:0;bottom:0;z-index:1300}
  .support-chat.is-open .sc-launcher{display:none}
  .sc-panel{position:fixed;inset:0;width:100%;height:100%;border:0;border-radius:0;animation:none}
}
@media(prefers-reduced-motion:reduce){.sc-panel{animation:none}.sc-typing i{animation:none}}
