/* 소라 상담 채팅 — bottom-right (Apple-style skin) */
.sora-chat{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom));z-index:1000;font-family:var(--font,system-ui,sans-serif);font-size:15px;line-height:1.5;color:var(--ink,#1d1d1f)}
.sora-fab{display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 20px 0 16px;border:0;border-radius:980px;background:var(--accent,#0071e3);color:#fff;font:inherit;font-weight:500;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.18);position:relative;transition:background .25s,transform .25s}
.sora-fab:hover{background:var(--accent-hover,#0077ed)}
.sora-fab:active{transform:scale(.97)}
.sora-fab:focus-visible,.sora-send:focus-visible,.sora-x:focus-visible{outline:2px solid var(--accent,#0071e3);outline-offset:3px}
.sora-fab svg{width:20px;height:20px}
.sora-fab.has-new::after{content:"";position:absolute;top:4px;right:6px;width:10px;height:10px;border-radius:50%;background:#ff3b30;box-shadow:0 0 0 2px #fff}
.sora-chat.is-open .sora-fab span{display:none}
.sora-chat.is-open .sora-fab{padding:0 14px}
.sora-panel{position:absolute;right:0;bottom:60px;width:360px;max-width:calc(100vw - 24px);height:520px;max-height:calc(100vh - 110px);display:flex;flex-direction:column;background:rgba(255,255,255,.88);-webkit-backdrop-filter:saturate(180%) blur(24px);backdrop-filter:saturate(180%) blur(24px);border:1px solid rgba(0,0,0,.08);border-radius:22px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.22)}
.sora-panel[hidden]{display:none}
.sora-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px;border-bottom:1px solid rgba(0,0,0,.07)}
.sora-ht{display:flex;flex-direction:column}
.sora-ht strong{font-size:16px;font-weight:600}
.sora-ht span{font-size:12px;color:var(--muted,#6e6e73)}
.sora-x{background:rgba(0,0,0,.06);border:0;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--ink,#1d1d1f)}
.sora-x svg{width:16px;height:16px;display:block}
.sora-log{flex:1;overflow-y:auto;padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.sora-msg{max-width:85%;padding:9px 13px;border-radius:18px;white-space:pre-wrap;word-break:break-word}
.sora-msg p{margin:0}
.sora-msg.bot{align-self:flex-start;background:#e9e9eb;border-bottom-left-radius:5px}
.sora-msg.me{align-self:flex-end;background:var(--accent,#0071e3);color:#fff;border-bottom-right-radius:5px}
.sora-who{display:block;font-size:11px;opacity:.65;margin-bottom:1px}
.sora-note{margin:0;padding:0 16px 8px;font-size:12.5px;color:var(--muted,#6e6e73);min-height:0}
.sora-note:empty{display:none}
.sora-form{border-top:1px solid rgba(0,0,0,.07);padding:10px 12px 12px;display:flex;flex-direction:column;gap:8px}
.sora-email,.sora-in{width:100%;font:inherit;font-size:14px;border:1px solid rgba(0,0,0,.14);padding:9px 12px;border-radius:14px;background:#fff;color:inherit}
.sora-email:focus,.sora-in:focus{outline:none;border-color:var(--accent,#0071e3);box-shadow:0 0 0 3px rgba(0,113,227,.2)}
.sora-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.sora-row{display:flex;gap:8px;align-items:stretch}
.sora-in{resize:none;flex:1}
.sora-send{flex:none;padding:0 16px;border:0;border-radius:980px;background:var(--accent,#0071e3);color:#fff;font:inherit;font-weight:500;cursor:pointer}
.sora-send:disabled{opacity:.55;cursor:default}
@media (max-width:640px){
  .sora-chat{right:12px;bottom:calc(12px + env(safe-area-inset-bottom))}
  .sora-fab{height:46px}
  .sora-panel{position:fixed;right:8px;left:8px;bottom:68px;width:auto;max-width:none;height:auto;top:60px;max-height:none}
}
@media (prefers-reduced-motion:reduce){.sora-fab{transition:none}}
@media print{.sora-chat{display:none}}
