.sml-chat {
  --chat-ink:#152923; --chat-green:#143f35; --chat-line:#dce5df;
  color:var(--chat-ink); 
  font-family:inherit; font-size:15px; line-height:1.45;
}
.sml-chat button {font:inherit; cursor:pointer}
.sml-chat button:focus-visible,.sml-chat a:focus-visible,.sml-chat input:focus-visible {outline:2px solid #388568;outline-offset:3px}
.sml-chat [hidden] {display:none!important}
.sml-chat .sml-chat-open {
  display:grid;place-items:center;position:fixed;z-index:30;
  right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));
  width:54px;height:54px;padding:0;border:1px solid #ffffff40;border-radius:50%;
  background:var(--chat-green);color:white;box-shadow:0 6px 22px #102b344d;
  transition:transform .18s,background .18s;
}
.sml-chat-open:hover {transform:translateY(-3px);background:#205547}
.sml-chat-icon {display:block;position:relative;width:22px;height:17px;border:2px solid currentColor;border-radius:6px}
.sml-chat-icon::before {content:"";position:absolute;bottom:-5px;left:3px;width:6px;height:6px;background:var(--chat-green);border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:skewY(-34deg)}
.sml-chat-icon::after {content:"";position:absolute;top:5px;left:4px;width:3px;height:3px;border-radius:50%;background:currentColor;box-shadow:5px 0,10px 0}
.sml-chat dialog {
  box-sizing:border-box;position:fixed;inset:auto max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) auto;
  width:min(400px,calc(100% - 32px));height:min(560px,calc(100dvh - 32px));max-height:none;
  padding:0;margin:0;border:1px solid var(--chat-line);border-radius:22px;overflow:hidden;
  background:#f7f9f7;color:var(--chat-ink);box-shadow:0 18px 64px #1427203d;
}
.sml-chat dialog[open] {display:flex;flex-direction:column;animation:sml-chat-enter .22s ease-out both}
.sml-chat dialog::backdrop {background:#142a2640}
.sml-chat .sml-chat-header {position:static;display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--chat-green);color:white}
.sml-chat-avatar {display:grid;place-items:center;width:40px;height:40px;background:#ffffff21;border:1px solid #ffffff35;border-radius:12px;font-weight:750}
.sml-chat .sml-chat-header h2 {color:inherit;font-family:inherit;font-size:16px;font-weight:700;line-height:1.2;margin:0;letter-spacing:0}
.sml-chat-subtitle {font-size:12px;color:#dcece3}
.sml-chat .sml-chat-close {margin-left:auto;width:42px;height:42px;padding:0;border:0;border-radius:12px;background:#ffffff1c;color:white;font-size:25px}
.sml-chat-stream {flex:1;min-height:0;overflow:auto;padding:16px;overscroll-behavior:contain}
.sml-chat .sml-chat-intro {font-weight:700;font-size:19px;margin:0 0 12px;color:inherit}
.sml-chat-suggestions {display:grid;gap:8px}
.sml-chat-suggestions button {text-align:left;min-height:44px;padding:8px 12px;background:white;color:var(--chat-green);border:1px solid var(--chat-line);border-radius:10px}
.sml-chat-suggestions button:hover {background:#eaf3ed}
.sml-chat-log {display:flex;flex-direction:column;gap:10px}
.sml-chat .sml-chat-log p {font-size:14px;max-width:92%;margin:0;padding:10px 13px;border-radius:14px;white-space:pre-wrap;overflow-wrap:anywhere;animation:sml-chat-enter .18s ease-out both}
.sml-chat .sml-chat-user {align-self:flex-end;background:var(--chat-green);color:white;border-bottom-right-radius:4px}
.sml-chat .sml-chat-assistant {align-self:flex-start;background:white;color:var(--chat-ink);border:1px solid var(--chat-line);border-bottom-left-radius:4px}
.sml-chat-typing {display:flex;gap:5px;width:max-content;margin-top:10px;padding:12px;background:white;border:1px solid var(--chat-line);border-radius:12px}
.sml-chat-typing i {width:6px;height:6px;border-radius:50%;background:#427564;animation:sml-chat-dot .8s ease-in-out infinite alternate}
.sml-chat-typing i:nth-child(2){animation-delay:.13s}.sml-chat-typing i:nth-child(3){animation-delay:.26s}
.sml-chat-status {font-size:13px;margin:8px 0 0}
.sml-chat-status:empty {display:none}
.sml-chat-visually-hidden {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.sml-chat .sml-chat-footer {position:static;background:white;padding:8px 12px 10px;border-top:1px solid var(--chat-line)}
.sml-chat .sml-chat-footer nav {display:flex;flex-wrap:wrap;gap:0 12px;margin:0 0 5px}
.sml-chat .sml-chat-footer nav a {display:inline-flex;align-items:center;min-height:32px;font-size:12px;color:var(--chat-green);text-decoration:underline;text-underline-offset:2px}
.sml-chat .sml-chat-form {display:flex;align-items:center;gap:7px;margin:0;padding:4px;background:#f7f9f7;border:1px solid var(--chat-line);border-radius:14px;box-shadow:none}
.sml-chat .sml-chat-form input {min-width:0;flex:1;margin:0;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--chat-ink);box-shadow:none;font:inherit;font-size:16px}
.sml-chat .sml-chat-form button {flex:0 0 44px;height:44px;margin:0;padding:0;border:0;border-radius:10px;background:var(--chat-green);color:white;font-size:23px}
.sml-chat .sml-chat-form button:disabled {opacity:.6;cursor:wait}
.sml-chat .sml-chat-privacy {margin:5px 0 0;color:#40554c;font-size:11px}
@keyframes sml-chat-enter {from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes sml-chat-dot {from{transform:translateY(0);opacity:.45}to{transform:translateY(-3px);opacity:1}}
@media(max-width:540px){
  .sml-chat dialog {inset:auto 0 0;width:100%;max-width:none;height:min(590px,90dvh);border-radius:22px 22px 0 0}
  .sml-chat .sml-chat-footer {padding-bottom:max(10px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){
  .sml-chat *,.sml-chat *::before,.sml-chat *::after{animation:none!important;transition:none!important}
}

.sml-chat-rating {display:flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:12px}
.sml-chat-rating button,.sml-chat-rating select {min-height:36px;padding:4px 8px;border:1px solid var(--chat-line);border-radius:8px;background:white;color:var(--chat-green);font:inherit}
.sml-chat-feedback {margin:0 0 5px;color:var(--chat-green);font-size:12px}
.sml-chat-feedback summary {width:max-content;cursor:pointer;padding:3px 0}
.sml-chat-feedback .sml-chat-rating {padding:5px 0}
.sml-chat-feedback summary {display:flex;align-items:center;gap:7px;list-style:none}
.sml-chat-feedback summary::-webkit-details-marker {display:none}
.sml-chat-feedback summary::before {content:"";width:6px;height:6px;border-right:1.5px solid;border-bottom:1.5px solid;transform:rotate(-45deg);transition:transform .18s ease}
.sml-chat-feedback[open] summary::before {transform:rotate(45deg)}
.sml-chat-feedback[open] .sml-chat-rating {animation:sml-chat-feedback-in .2s ease-out both}
.sml-chat-feedback-saved summary {animation:sml-chat-feedback-in .24s ease-out both}
.sml-chat-feedback-saved summary::before {width:5px;height:9px;transform:rotate(45deg)}
@keyframes sml-chat-feedback-in {
  from {opacity:0;transform:translateY(-4px)}
  to {opacity:1;transform:translateY(0)}
}

.sml-chat {
  --chat-ink:#142941;
  --chat-green:#102e49;
  --chat-line:#dbe3e9;
}
.sml-chat .sml-chat-open {
  width:56px;height:56px;
  background:linear-gradient(145deg,#284d69,#102942 72%);
  box-shadow:0 8px 24px #10294250,inset 0 1px #ffffff40;
  animation:sml-chat-launch .42s .15s cubic-bezier(.2,.8,.25,1.2) both;
  transition:transform .2s ease,box-shadow .2s ease;
}
.sml-chat .sml-chat-open:hover {transform:translateY(-3px);box-shadow:0 12px 28px #10294265}
.sml-chat .sml-chat-open:active {transform:scale(.94)}
.sml-chat-open:hover .sml-chat-icon {animation:sml-chat-nudge .36s ease both}
.sml-chat-icon::before {background:#16324e}
.sml-chat dialog {background:#f5f8fa;box-shadow:0 22px 70px #11294048;transform-origin:bottom right}
.sml-chat dialog[open] {animation:sml-chat-panel .27s cubic-bezier(.2,.8,.2,1) both}
.sml-chat dialog[open]::backdrop {background:#11263e55;animation:sml-chat-shade .27s ease both}
.sml-chat dialog.sml-chat-closing {animation:sml-chat-exit .18s ease-in both}
.sml-chat dialog.sml-chat-closing::backdrop {animation:sml-chat-shade .18s ease reverse both}
.sml-chat .sml-chat-header {background:linear-gradient(125deg,#102942,#234b67);border-bottom:1px solid #c7a15c85}
.sml-chat .sml-chat-avatar {background:#fffaf0 url('/brand-mark.svg') center / 26px no-repeat}
.sml-chat .sml-chat-subtitle {color:#d9e5ed}
.sml-chat .sml-chat-close {transition:background .18s,transform .18s}
.sml-chat .sml-chat-close:hover {background:#ffffff30;transform:rotate(5deg)}
.sml-chat .sml-chat-welcome {animation:sml-chat-enter .24s .07s ease both}
.sml-chat-suggestions button {transition:background .18s,border-color .18s,transform .18s}
.sml-chat-suggestions button:hover {background:#edf4fa;border-color:#b7cad9;transform:translateX(2px)}
.sml-chat .sml-chat-log p {animation:sml-chat-enter .25s cubic-bezier(.2,.8,.2,1) both}
.sml-chat .sml-chat-typing i {background:#456982}
.sml-chat .sml-chat-form {background:#f3f7fa}
.sml-chat .sml-chat-form button {transition:transform .16s,background .16s}
.sml-chat .sml-chat-form button:active {transform:scale(.94)}
@keyframes sml-chat-launch {from{opacity:0;scale:.82}to{opacity:1;scale:1}}
@keyframes sml-chat-nudge {50%{transform:translateY(-2px) rotate(-7deg)}}
@keyframes sml-chat-panel {from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:none}}
@keyframes sml-chat-exit {to{opacity:0;transform:translateY(12px) scale(.985)}}
@keyframes sml-chat-shade {from{opacity:0}to{opacity:1}}
@media(max-width:540px) {
  .sml-chat dialog {transform-origin:bottom center}
  .sml-chat dialog[open] {animation-name:sml-chat-sheet}
  .sml-chat dialog.sml-chat-closing {animation-name:sml-chat-exit}
}
@keyframes sml-chat-sheet {from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
/* A short, spaced cue leaves the launcher still between pulses. */
.sml-chat .sml-chat-open::before {
  content:"";position:absolute;inset:-3px;border:2px solid #b48a45;border-radius:inherit;
  pointer-events:none;animation:sml-chat-beacon 7s 1.1s ease-out infinite;
}
.sml-chat .sml-chat-icon {animation:sml-chat-wake 7s 1.1s ease-in-out infinite}
.sml-chat dialog[open] {animation-duration:.46s;animation-timing-function:cubic-bezier(.19,1,.32,1)}
.sml-chat dialog.sml-chat-closing {animation-duration:.25s}
.sml-chat dialog[open] .sml-chat-header,.sml-chat dialog[open] .sml-chat-footer {
  animation:sml-chat-enter .34s .08s ease-out both;
}
.sml-chat .sml-chat-log p {animation-duration:.35s}
@keyframes sml-chat-beacon {
  0% {opacity:0;transform:scale(.94)}
  4% {opacity:.8}
  17%,100% {opacity:0;transform:scale(1.28)}
}
@keyframes sml-chat-wake {
  0%,17%,100% {transform:none}
  5% {transform:translateY(-4px) rotate(-12deg)}
  10% {transform:translateY(-2px) rotate(9deg)}
}
@media(max-width:540px) {
  @keyframes sml-chat-sheet {
    from {opacity:.35;transform:translateY(100%)}
    to {opacity:1;transform:none}
  }
}

.sml-chat dialog {background:#f7f9fc}
.sml-chat dialog:has(.sml-chat-welcome:not([hidden])) {height:min(478px,calc(100dvh - 32px))}
.sml-chat .sml-chat-header {gap:11px;padding:12px 16px}
.sml-chat .sml-chat-avatar {width:38px;height:38px;border-radius:11px}
.sml-chat .sml-chat-stream {padding:17px 16px}
.sml-chat .sml-chat-intro {font-family:inherit;font-size:clamp(19px,4.8vw,23px);line-height:1.25;letter-spacing:-.025em;margin:0 0 13px}
.sml-chat .sml-chat-suggestions {gap:7px}
.sml-chat .sml-chat-suggestions button {
  display:grid;grid-template-columns:minmax(0,1fr) 14px;align-items:center;gap:10px;
  min-height:55px;padding:8px 12px;border-color:#dce5ef;border-radius:12px;
  box-shadow:0 1px 2px #1029420a;background:#fff;
}
.sml-chat .sml-chat-suggestions button::after {
  content:"";width:7px;height:7px;border-top:1.5px solid #536c83;
  border-right:1.5px solid #536c83;transform:rotate(45deg);justify-self:center;
}
.sml-chat .sml-chat-suggestions strong,.sml-chat .sml-chat-suggestions small {display:block}
.sml-chat .sml-chat-suggestions strong {font-size:14px;line-height:1.25}
.sml-chat .sml-chat-suggestions small {color:#475e73;font-size:12px;line-height:1.3;margin-top:2px}
.sml-chat .sml-chat-suggestions button:hover {background:#f1f6fc;border-color:#a9bed0}
.sml-chat .sml-chat-footer {padding:8px 14px 10px}
.sml-chat .sml-chat-links {display:flex;gap:0 10px;flex-wrap:wrap}
.sml-chat .sml-chat-links a {min-height:28px;text-decoration:none;font-weight:600}
.sml-chat .sml-chat-links a:hover {text-decoration:underline}
.sml-chat .sml-chat-privacy {font-size:11px;line-height:1.35}
@media(max-width:540px) {
  .sml-chat dialog:has(.sml-chat-welcome:not([hidden])) {height:min(438px,88dvh)}
  .sml-chat .sml-chat-footer {padding-bottom:max(10px,env(safe-area-inset-bottom))}
}
