#site-message-open{position:fixed;right:20px;bottom:24px;z-index:65;display:flex;align-items:center;gap:9px;min-height:52px;padding:12px 20px;border:0;border-radius:999px;background:#CF1022;color:#fff;font-family:inherit;font-size:16px;font-weight:700;line-height:1.3;box-shadow:0 5px 18px #31141024;cursor:pointer}
#site-message-open svg{width:23px;height:23px;flex:none}
#site-chat{box-sizing:border-box;position:fixed;inset:auto 20px 20px auto;margin:0;padding:0;width:440px;max-width:calc(100% - 24px);height:700px;max-height:calc(100dvh - 32px);border:1px solid #E6DBD4;border-radius:24px;background:#FFFDFA;color:#281D19;box-shadow:0 16px 70px #231a1940;overflow:hidden}
#site-chat::backdrop{background:#24191655}
#site-chat *{box-sizing:border-box}
#site-chat .sm-layout{height:100%;display:grid;grid-template-rows:auto minmax(90px,1fr) auto;font-family:inherit}
#site-chat .sm-head{padding:22px 24px 16px;border-bottom:1px solid #E6DBD4;position:relative}
#site-chat .sm-head small{display:block;color:#73635B;font-size:12px;margin-bottom:7px;padding-right:36px}
#site-chat h2{font-size:24px;line-height:1.3;margin:0;letter-spacing:-.04em;padding-right:28px}
#site-chat .sm-close{position:absolute;right:12px;top:12px;width:44px;height:44px;border:0;border-radius:50%;background:#F3EDE5;color:#281D19;font-size:27px;cursor:pointer}
#site-chat .sm-log{padding:18px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:14px;scroll-behavior:smooth}
#site-chat .sm-bubble{align-self:flex-start;max-width:92%;padding:13px 15px;background:#F2EDE7;border-radius:16px 16px 16px 4px;font-size:15px;line-height:1.65;overflow-wrap:anywhere;word-break:normal}
#site-chat .sm-bubble[data-sender=visitor]{align-self:flex-end;background:#FCE8E7;border-radius:16px 16px 4px 16px}
#site-chat .sm-bubble b{display:block;font-size:12px;margin-bottom:6px;color:#78554D}
#site-chat .sm-bubble p{margin:0;white-space:pre-wrap}
#site-chat .sm-bubble time{display:block;font-size:11px;color:#786963;margin-top:6px}
#site-chat .sm-compose{padding:14px 18px max(16px,env(safe-area-inset-bottom));border-top:1px solid #E6DBD4;overflow-y:auto;max-height:55dvh;background:#FFFDFA;display:grid;gap:10px}
#site-chat label{font-size:13px;line-height:1.5;display:block;font-weight:600}
#site-chat input[type=text],#site-chat textarea{width:100%;min-width:0;font:inherit;font-size:16px;color:#281D19;border:1px solid #CEBFB5;border-radius:10px;padding:10px 12px;background:#fff;outline-offset:2px}
#site-chat textarea{resize:none;min-height:72px;max-height:150px;line-height:1.5;display:block;margin-top:5px}
#site-chat .sm-consent{display:flex;align-items:flex-start;gap:8px;font-size:12px;font-weight:400;color:#65544C}
#site-chat .sm-consent input{margin:3px 0 0;flex:none;width:17px;height:17px;accent-color:#CF1022}
#site-chat .sm-note,#site-chat .sm-status{font-size:12px;line-height:1.5;margin:0;color:#72635B;word-break:keep-all;overflow-wrap:anywhere}
#site-chat .sm-status:empty{display:none}
#site-chat .sm-status[data-error=true]{color:#AF0018}
#site-chat .sm-row{display:flex;gap:12px;align-items:center;justify-content:space-between}
#site-chat .sm-send{border:0;background:#CF1022;color:white;border-radius:999px;padding:12px 24px;font:inherit;font-weight:700;min-height:44px;cursor:pointer}
#site-chat .sm-send:disabled{opacity:.5;cursor:default}
#site-chat .sm-reset{border:0;background:none;color:#746158;font:inherit;font-size:12px;padding:10px 0;min-height:44px;text-decoration:underline;cursor:pointer}
#site-chat [hidden]{display:none!important}
#site-chat .sm-honey{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
/* 휴대폰: 하단 독(아래 14 + 높이 56) 위로 12px. 첫 화면·입시안내·캠퍼스에서는 아이콘만(html.sm-fold), 첫 화면에서는 «다시 보기» 버튼 위로(html.sm-hero) — 상태는 index.html dockUpdate() */
@media(max-width:760px){#site-message-open{right:14px;bottom:calc(env(safe-area-inset-bottom,0px) + 82px);min-height:48px;padding:11px 16px;font-size:14px;transition:transform .3s cubic-bezier(.23,1,.32,1)}
  .sm-fold #site-message-open{width:48px;height:48px;padding:0;justify-content:center}
  .sm-fold #site-message-open .sm-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .sm-hero #site-message-open{transform:translateY(-38px)}}
@media(max-width:760px) and (prefers-reduced-motion:reduce){#site-message-open{transition:none}}
@media(max-width:640px){#site-chat{inset:auto 12px 12px auto;max-height:calc(100dvh - 24px);border-radius:20px}#site-chat .sm-head{padding:18px 20px 14px}#site-chat h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){#site-chat .sm-log{scroll-behavior:auto}}
@media print{#site-message-open,#site-chat{display:none!important}}
