.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#assistant-host {
  --chat-edge: max(24px, calc(env(safe-area-inset-bottom) + 12px));
  --chat-launcher-height: 68px;
  --chat-panel-bottom: calc(var(--chat-edge) + var(--chat-launcher-height) + 10px);
}
.chat-launcher {
  position: fixed;
  right: 27px;
  bottom: var(--chat-edge);
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: var(--chat-launcher-height);
  max-width: calc(100vw - 32px);
  padding: 10px 17px 10px 11px;
  border: 1px solid #648b6d;
  border-radius: 19px;
  background: var(--ink);
  color: #fff;
  text-align: left;
  box-shadow: 0 6px 24px #163e353d;
  z-index: 1001;
}
.chat-launcher:hover { border-color: var(--lime); }
.chat-launcher-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
}
.chat-launcher-copy {
  display: grid;
  gap: 3px;
  font-size: 12px;
  line-height: 1.25;
  color: #e8efdc;
}
.chat-launcher-copy strong {
  font-size: 18px;
  font-weight: 650;
  color: #fff;
}
.chat-launcher i {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}
.chat-panel {
  position: fixed;
  right: 27px;
  bottom: var(--chat-panel-bottom);
  display: flex;
  flex-direction: column;
  width: 390px;
  max-width: calc(100vw - 30px);
  height: 650px;
  max-height: calc(100dvh - var(--chat-panel-bottom) - 14px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 15px 65px #183c342b;
  z-index: 1002;
  overflow: hidden;
}
.chat-heading{padding:18px 20px;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:15px}.chat-heading b{display:block;font-size:15px;font-weight:500;letter-spacing:-.02em}.chat-heading span{display:block;font-size:10px;color:#d8e5c7;margin-top:6px}.chat-heading button{font-size:26px;color:#fff;line-height:1;padding:5px}.chat-context{font-size:10px;line-height:1.5;background:#f2f5e8;border-bottom:1px solid var(--line);padding:9px 17px;flex-shrink:0}.chat-log{flex:1;min-height:80px;overflow:auto;padding:18px 15px;overscroll-behavior:contain;scrollbar-width:thin}.chat-message{margin-bottom:19px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.chat-speaker{font-size:9px;color:var(--muted);display:block;margin:0 4px 5px}.chat-bubble{padding:12px 14px;background:#f0f3ea;border-radius:3px 12px 12px;white-space:pre-wrap}.chat-message.visitor{margin-left:28px}.chat-message.visitor .chat-speaker{text-align:right}.chat-message.visitor .chat-bubble{background:var(--ink);color:white;border-radius:12px 3px 12px 12px}.chat-message.staff .chat-bubble{background:#e7efce;border:1px solid #d1deb1}.chat-message.system .chat-bubble{background:transparent;color:var(--muted);font-size:10px;text-align:center;padding:4px}.chat-message.system .chat-speaker{display:none}.chat-sources{font-size:8px;color:var(--muted);padding:6px 4px;line-height:1.6}.chat-product-list{display:flex;flex-direction:column;gap:6px;margin-top:8px}.chat-product{display:flex;width:100%;gap:10px;align-items:center;text-align:left;border:1px solid var(--line);border-radius:8px;padding:9px;background:white}.chat-product img{width:48px;height:48px;object-fit:contain;flex-shrink:0}.chat-product>span{font-size:10px;line-height:1.5;min-width:0}.chat-product b{font-size:9px;display:block;color:var(--muted)}.chat-product small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.chat-pending{font-size:10px;color:var(--muted);padding:0 18px 9px}.chat-error{font-size:11px;color:#a83c2b;line-height:1.6;max-height:70px;overflow:auto;padding:0 16px}.chat-error:empty{display:none}.chat-shortcuts{display:flex;gap:6px;flex-wrap:wrap;padding:10px 13px;border-top:1px solid var(--line);flex-shrink:0}.chat-shortcuts button,.chat-shortcuts a{font-size:9px;padding:6px 9px;border:1px solid var(--line);border-radius:20px;background:#fff;line-height:1.5}.chat-shortcuts button:hover{background:var(--soft)}.chat-contact{padding:0 16px;font-size:10px;background:var(--paper);flex-shrink:0;max-height:260px;overflow:auto;border-top:1px solid var(--line)}.chat-contact summary{cursor:pointer;padding:10px 0;color:var(--muted)}.chat-contact form{display:flex;flex-direction:column;gap:10px;padding:5px 0 12px}.chat-contact label{font-size:9px}.chat-contact input{padding:8px 9px;font-size:11px}.chat-contact .check input{padding:0}.chat-contact .button{font-size:10px;min-height:34px;padding:9px}.chat-contact form>p{margin:0;font-size:10px}.chat-composer{display:flex;align-items:center;gap:9px;padding:12px 14px 6px;border-top:1px solid var(--line);background:#fff;flex-shrink:0}.chat-composer textarea{font-size:12px;padding:10px;resize:none;max-height:90px}.chat-composer button{width:36px;height:36px;background:var(--ink);color:#fff;flex-shrink:0;border-radius:50%;font-size:20px}.chat-footnote{font-size:8px;color:var(--muted);text-align:center;padding:2px 15px 11px;margin:0;line-height:1.5}.ask-product-button{margin-top:12px;width:100%}
.assistant-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:23px}.assistant-tabs button{background:white;border:1px solid var(--line);border-radius:30px;padding:9px 16px;font-size:12px}.assistant-tabs button.active{background:var(--ink);color:#fff}.chat-badge{font-size:9px;background:var(--lime);color:var(--ink);padding:3px 6px;border-radius:10px;margin-left:5px}.staff-chat-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:22px;align-items:start}.staff-conversation-list{display:flex;flex-direction:column;gap:9px}.staff-chat-item{border:1px solid var(--line);border-radius:10px;padding:15px;background:white;text-align:left;min-width:0}.staff-chat-item.active{background:#f3f7e9;border-color:#8caa70}.staff-chat-item b{display:block;font-size:13px;margin:9px 0;overflow-wrap:anywhere}.staff-chat-item p{font-size:11px;color:var(--muted);margin:5px 0;overflow-wrap:anywhere}.staff-chat-item time{font-size:9px;color:var(--muted)}.staff-chat-item>div{display:flex;gap:10px;align-items:center;justify-content:space-between}.staff-chat-detail{display:flex;flex-direction:column;gap:18px;min-width:0}.staff-chat-context{font-size:11px;line-height:1.7}.staff-chat-context p{margin:5px 0;overflow-wrap:anywhere}.staff-chat-context h3{font-size:13px;margin:16px 0 7px}.staff-chat-selected{display:flex;flex-direction:column;gap:7px;background:var(--paper);padding:12px;border-radius:7px}.staff-chat-selected>div{display:flex;align-items:center;gap:10px}.staff-chat-selected img{width:40px;height:40px;object-fit:contain}.staff-chat-transcript{max-height:490px;min-height:160px;overflow:auto;overscroll-behavior:contain;padding:12px 4px;border-bottom:1px solid var(--line);scrollbar-width:thin}.staff-chat-transcript .chat-message{max-width:88%}.staff-chat-transcript .chat-message.visitor{margin-left:12%}.staff-chat-transcript time{font-size:9px;color:var(--muted);display:inline-block;margin-left:9px}.staff-chat-compose{display:flex;flex-direction:column;gap:13px;padding-top:18px}.staff-chat-compose textarea{min-height:90px;font-size:12px}.staff-chat-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.staff-chat-actions button{font-size:11px;padding:10px 15px}.staff-chat-claim{display:flex;align-items:end;gap:13px;padding-top:18px;flex-wrap:wrap}.staff-chat-claim label{flex:1}.staff-chat-audit{font-size:10px;color:var(--muted);margin-top:20px}.staff-chat-audit summary{cursor:pointer}.staff-chat-audit pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px}.assistant-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.assistant-config-form{display:flex;flex-direction:column;gap:17px}.assistant-config-form .button-row{display:flex;gap:10px;flex-wrap:wrap}.assistant-config-form h3{font-size:18px}.knowledge-item{padding:15px 0;border-top:1px solid var(--line)}.knowledge-item:first-child{border-top:0}.knowledge-item>div{display:flex;align-items:center;justify-content:space-between;gap:15px}.knowledge-item b{font-size:12px}.knowledge-item p{font-size:11px;color:var(--muted);margin:8px 0}.knowledge-item button{font-size:11px;text-decoration:underline;text-underline-offset:4px}.knowledge-editor{margin-top:24px}.knowledge-editor h2{font-size:21px}.knowledge-editor form{display:flex;flex-direction:column;gap:15px}.assistant-help{font-size:12px;color:var(--muted);line-height:1.8}.assistant-config-result{font-size:12px;line-height:1.7;margin:0;white-space:pre-wrap}.staff-assistant-heading{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:25px}.staff-assistant-heading h1{font-size:29px;margin-bottom:10px}.staff-assistant-heading p{font-size:12px;color:var(--muted);margin:0}.staff-chat-state{font-size:10px;background:var(--soft);padding:6px 10px;border-radius:20px;white-space:nowrap}.staff-assistant-heading .button{font-size:11px;min-height:40px;padding:10px 15px}
@media(max-width:900px){.assistant-settings-grid{grid-template-columns:1fr}.staff-chat-layout{grid-template-columns:230px minmax(0,1fr)}}@media(max-width:760px){
  #assistant-host {
    --chat-edge: max(16px, calc(env(safe-area-inset-bottom) + 8px));
    --chat-launcher-height: 62px;
  }
  .chat-launcher { right: 14px; padding: 8px 13px 8px 9px; }
  .chat-launcher-icon { flex-basis: 40px; height: 40px; }
  .chat-launcher-copy strong { font-size: 17px; }
  .chat-panel { right: 10px; width: calc(100vw - 20px); max-width: none; border-radius: 13px; }
  .chat-heading{padding:16px 18px}.chat-contact[open]{max-height:235px}.chat-log{padding:15px 12px}.chat-message{font-size:12px;margin-bottom:15px}.chat-message.visitor{margin-left:20px}.staff-chat-layout{grid-template-columns:1fr}.staff-conversation-list{display:grid;grid-template-columns:1fr 1fr;max-height:310px;overflow:auto}.staff-chat-item{padding:12px}.staff-chat-item b{font-size:11px}.staff-chat-item p{font-size:10px}.staff-assistant-heading h1{font-size:25px}.staff-chat-detail .panel{padding:17px}.staff-chat-transcript{max-height:430px}.staff-chat-claim{gap:10px}.staff-chat-claim .button{padding:12px 15px;font-size:11px}.assistant-tabs button{font-size:11px;padding:8px 13px}.staff-chat-actions button{font-size:10px;padding:10px}.assistant-settings-grid{gap:18px}.staff-header nav{max-width:65%;gap:12px}.staff-header nav button{line-height:1.7}}

/* A full-width, sticky disclosure remains visible even when the form scrolls. */
.chat-contact{padding:0;max-height:280px;border-top:2px solid #b3c66b;background:#f4f7e8}
.chat-contact summary{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;min-height:52px;padding:12px 16px;background:#e9f1c8;color:#173e35;font-size:16px;font-weight:650;line-height:1.4;cursor:pointer;border-bottom:1px solid #cad8a0}
.chat-contact summary::-webkit-details-marker{display:none}
.chat-contact summary:focus-visible{outline:3px solid #23745b;outline-offset:-3px}
.chat-contact-chevron{font-size:28px;line-height:1;min-width:30px;text-align:center;transition:transform .15s}
.chat-contact[open] .chat-contact-chevron{transform:rotate(180deg)}
.chat-contact form{padding:12px 16px 16px}.chat-contact label{font-size:12px}.chat-contact input{font-size:16px}.chat-contact .button{font-size:13px;min-height:44px}
.chat-after-contact{padding:0 16px 10px}.chat-after-contact button{font-size:13px;min-height:40px;padding:8px 16px;border:1px solid #a3b399;border-radius:22px;background:#f4f7e8;color:#173e35}
.chat-after-contact[hidden]{display:none}

.chat-contact-chevron{display:block;flex:0 0 12px;min-width:12px;width:12px;height:12px;margin:0 5px 5px;border-right:3px solid currentColor;border-bottom:3px solid currentColor;transform:rotate(45deg)}
.chat-contact[open] .chat-contact-chevron{margin-bottom:0;margin-top:5px;transform:rotate(225deg)}
