.ps-chat{--chat-ink:#244e43;--chat-paper:#faf9f3;position:fixed;right:24px;bottom:24px;z-index:180;font:14px/1.65 Arial,"Noto Sans KR",sans-serif;color:var(--chat-ink)}
.ps-chat *{box-sizing:border-box}.ps-chat [hidden]{display:none!important}.ps-chat button,.ps-chat textarea{font:inherit}.ps-chat button{cursor:pointer}.ps-chat button:disabled{cursor:wait;opacity:.55}.ps-chat button:focus-visible,.ps-chat a:focus-visible,.ps-chat textarea:focus-visible{outline:2px solid #b2703f;outline-offset:3px}
.ps-chat-launch{display:flex;align-items:center;gap:10px;border:1px solid #e2e8e1;background:var(--chat-ink);color:#fff;padding:12px 19px;border-radius:28px;box-shadow:0 5px 24px #18352c24;font-weight:600!important}.ps-chat-launch svg{width:19px;height:19px}
.ps-chat-panel{position:absolute;bottom:62px;right:0;width:380px;height:min(610px,calc(100dvh - 115px));display:flex;flex-direction:column;background:var(--chat-paper);border:1px solid #d9e1d8;border-radius:16px;box-shadow:0 16px 60px #102c342b;overflow:hidden;text-align:left}
.ps-chat-head{display:flex;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid #dce3da;flex-shrink:0}.ps-chat-mark{width:34px;height:34px;display:grid;place-items:center;border:1px solid #c5d1c7;border-radius:50%;font:18px Georgia,serif}.ps-chat-title{margin:0!important;font-size:15px!important;font-weight:600!important;letter-spacing:0!important}.ps-chat-mode{margin:2px 0 0!important;font-size:10px!important;letter-spacing:.1em;color:#697c70}.ps-chat-close{margin-left:auto;border:0;background:none;font-size:25px!important;color:var(--chat-ink);width:36px;height:36px;line-height:1}
.ps-chat-log{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 18px;scroll-behavior:auto;display:flex;flex-direction:column;gap:15px}.ps-chat-message{max-width:95%;align-self:flex-start}.ps-chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0!important;font-size:13px!important;line-height:1.8!important;letter-spacing:0!important}.ps-chat-message.ps-chat-user{align-self:flex-end;background:#e7eee7;padding:10px 13px;border-radius:12px 12px 2px 12px;max-width:90%}.ps-chat-byline{font-size:9px;letter-spacing:.07em;color:#7c8b7f;display:block;margin-bottom:5px}.ps-chat-message a{display:inline-block;color:var(--chat-ink);font-size:11px;margin-top:7px;text-decoration:underline;text-underline-offset:3px}
.ps-chat-message:not(.ps-chat-user){background:#fffefa;border:1px solid #e1e6dc;padding:12px 13px;border-radius:3px 13px 13px 13px}.ps-chat-message[data-typing=true] p:not(:empty)::after{content:"";display:inline-block;width:2px;height:1em;background:#587465;margin-left:3px;vertical-align:-2px;animation:ps-chat-cursor .8s steps(2,end) infinite}.ps-chat-dots{display:flex;align-items:center;gap:4px;height:22px;padding:3px 0}.ps-chat-dots i{display:block;width:5px;height:5px;border-radius:50%;background:#7d9584;animation:ps-chat-dot 1s ease-in-out infinite}.ps-chat-dots i:nth-child(2){animation-delay:.15s}.ps-chat-dots i:nth-child(3){animation-delay:.3s}.ps-chat-tools .ps-chat-skip{margin-left:auto;color:#244e43;font-weight:600}@keyframes ps-chat-dot{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}@keyframes ps-chat-cursor{50%{opacity:0}}
.ps-chat-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}.ps-chat-chip{background:transparent;border:1px solid #cbd7cc;border-radius:16px;padding:6px 11px;color:var(--chat-ink);font-size:11px!important;line-height:1.4}.ps-chat-chip:hover{background:#eaf0e7}.ps-chat-chip.ps-chat-primary{background:var(--chat-ink);color:white;border-color:var(--chat-ink)}.ps-chat-summary{padding:14px;border:1px solid #d4ddd1;border-radius:9px;background:#f1f3e9}
.ps-chat-tools{display:flex;align-items:center;gap:15px;padding:8px 18px;border-top:1px solid #e1e6dd;min-height:40px;flex-wrap:wrap}.ps-chat-tools button{padding:2px 0;background:none;border:0;color:#5b7162;font-size:11px;text-decoration:underline;text-underline-offset:3px}.ps-chat-notice{padding:0 18px 9px;margin:0!important;font-size:10px!important;line-height:1.55!important;color:#7a857b}.ps-chat-notice a{color:inherit;text-decoration:underline}.ps-chat-compose{display:flex;align-items:flex-end;gap:8px;padding:12px 14px;border-top:1px solid #dce3da;background:#fffefa}.ps-chat-compose textarea{width:100%;height:48px;min-height:48px;max-height:80px;resize:none;border:0;background:none;color:#244e43;padding:10px 2px;font-size:13px;line-height:1.6}.ps-chat-compose textarea::placeholder{color:#919b90}.ps-chat-send{width:40px;height:40px;border:0;border-radius:50%;background:var(--chat-ink);color:white;flex-shrink:0;display:grid;place-items:center;margin-bottom:3px}.ps-chat-send svg{width:18px;height:18px}.ps-chat-status{margin:0!important;padding:0 18px;font-size:11px!important;min-height:0;color:#8c5838}.ps-chat-status:not(:empty){padding-top:7px;padding-bottom:7px}.ps-chat-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.ps-chat{right:14px;bottom:calc(72px + env(safe-area-inset-bottom))}.ps-chat-launch{padding:10px 15px}.ps-chat-panel{position:fixed;left:14px;right:14px;bottom:calc(129px + env(safe-area-inset-bottom));width:auto;height:min(580px,calc(100dvh - 160px))}.ps-chat-head{padding:13px 16px}.ps-chat-log{padding:16px 14px}.ps-chat-compose textarea{font-size:16px}.ps-chat-notice{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){.ps-chat *{scroll-behavior:auto!important;animation:none!important}}

/* A fixed shadow under the launcher makes the lift visible. */
.studio-refresh .ps-chat::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 8% -10px;
  height: 19px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #19201842, #19201810 52%, transparent 74%);
  pointer-events: none;
}

.studio-refresh .ps-chat button.ps-chat-launch {
  border-color: #7c8477;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 28% -65%, #ffffff45, transparent 76%),
    linear-gradient(168deg, #667164, #515b4f 57%, #414a40);
  box-shadow:
    inset 0 1px 1px #ffffff50,
    inset 0 -3px 4px #1c241e55,
    0 3px 0 #384238,
    0 8px 16px #1b241b24;
}

@keyframes ps-chat-lift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: no-preference) {
  .ps-chat-launch[aria-expanded="false"]:not(:focus-within) {
    animation: ps-chat-lift 4.6s ease-in-out;
  }
}

@media (hover: hover) and (pointer: fine) {
  .studio-refresh .ps-chat .ps-chat-launch:hover {
    animation: none;
    filter: brightness(1.07);
  }
}
