.tzy-assistant { --chat-green: #086a5d; --chat-ink: #202923; --chat-muted: #58675e; position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 80; color: var(--chat-ink); font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; letter-spacing: 0; }
.tzy-assistant *, .tzy-assistant *::before, .tzy-assistant *::after { box-sizing: border-box; letter-spacing: 0; }
.tzy-assistant [hidden] { display: none !important; }
.tzy-assistant button, .tzy-assistant textarea, .tzy-assistant input { font: inherit; }
.tzy-assistant button, .tzy-assistant a { -webkit-tap-highlight-color: transparent; }
.tzy-assistant button { cursor: pointer; }
.tzy-assistant button:disabled { cursor: not-allowed; opacity: .45; }
.tzy-assistant :focus-visible { outline: 3px solid #aa741b; outline-offset: 3px; }
.tzy-assistant svg { width: 20px; height: 20px; flex: none; stroke-width: 1.7; }
.tzy-chat-launcher { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid #fff; border-radius: 50%; color: #fff; background: var(--chat-green); box-shadow: 0 5px 22px #102c2529; margin-left: auto; }
.tzy-chat-launcher svg { width: 26px; height: 26px; }
.tzy-chat-panel { position: absolute; bottom: 70px; right: 0; width: 398px; max-width: calc(100vw - 32px); height: 626px; max-height: calc(100dvh - 115px); border: 1px solid #d9e2dc; border-radius: 8px; background: #fff; box-shadow: 0 18px 65px #11271e29; display: flex; flex-direction: column; overflow: hidden; }
.tzy-chat-header { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid #e5eae6; background: #fff; flex: none; }
.tzy-chat-header img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.tzy-chat-heading { flex: 1; min-width: 0; }
.tzy-chat-heading h2 { font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1.4; margin: 0; color: var(--chat-ink); }
.tzy-chat-heading p { font-size: 11px; color: var(--chat-muted); margin: 2px 0 0; }
.tzy-chat-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; background: transparent; border: 0; color: var(--chat-muted); border-radius: 6px; flex: none; }
.tzy-chat-icon:hover { background: #f0f4f1; }
.tzy-chat-feed { padding: 18px 16px; overflow: auto; flex: 1; min-height: 70px; overscroll-behavior: contain; scroll-behavior: auto; background: #fafcfb; }
.tzy-chat-intro h3 { font-size: 21px; line-height: 1.4; margin: 0 0 8px; }
.tzy-chat-intro p { font-size: 13px; line-height: 1.65; color: var(--chat-muted); margin: 0 0 16px; }
.tzy-chat-questions { display: grid; gap: 0; border-block: 1px solid #dfe6e1; margin: 15px 0 20px; }
.tzy-chat-questions button { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 10px 0; text-align: left; border: 0; border-bottom: 1px solid #e5eae6; background: transparent; color: var(--chat-green); font-size: 13px; }
.tzy-chat-questions button:last-child { border-bottom: 0; }
.tzy-chat-questions button:hover { color: #114c42; background: #f0f6f2; }
.tzy-chat-message { margin-top: 18px; max-width: 100%; overflow-wrap: anywhere; }
.tzy-chat-message small { display: block; color: var(--chat-muted); font-size: 10px; margin-bottom: 5px; }
.tzy-chat-message p { font-size: 14px; margin: 0; line-height: 1.7; white-space: pre-wrap; }
.tzy-chat-message[data-role="user"] { background: #eaf1ed; padding: 11px 13px; border-radius: 6px; margin-left: 26px; }
.tzy-chat-sources { display: grid; gap: 6px; margin-top: 10px; }
.tzy-chat-sources a { display: inline-flex; align-items: center; gap: 7px; color: var(--chat-green); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.tzy-chat-sources svg { width: 14px; height: 14px; }
.tzy-chat-status { font-size: 12px; margin: 13px 0 0; color: #875313; }
.tzy-chat-retry { border: 0; border-bottom: 1px solid currentColor; color: var(--chat-green); background: transparent; padding: 4px 0; font-size: 12px; margin-top: 6px; }
.tzy-chat-bottom { padding: 12px 16px 14px; border-top: 1px solid #e0e7e2; flex: none; }
.tzy-chat-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 1.55; color: var(--chat-muted); margin-bottom: 10px; }
.tzy-chat-consent input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--chat-green); flex: none; }
.tzy-chat-form { display: flex; align-items: flex-end; border: 1px solid #c5d2c9; padding: 7px; border-radius: 6px; gap: 8px; }
.tzy-chat-form:focus-within { border-color: var(--chat-green); }
.tzy-chat-form textarea { resize: none; border: 0; padding: 4px; height: 56px; width: 100%; min-width: 0; max-height: 100px; background: #fff; color: var(--chat-ink); font-size: 16px; line-height: 1.5; }
.tzy-chat-form textarea:focus-visible { outline-offset: 0; outline-width: 1px; }
.tzy-chat-form .tzy-chat-icon { color: #fff; background: var(--chat-green); }
.tzy-chat-limit { font-size: 10px; color: var(--chat-muted); text-align: right; margin: 3px 0 0; }
.tzy-chat-unavailable { font-size: 12px; line-height: 1.6; color: var(--chat-muted); margin: 0 0 10px; }
.tzy-chat-human { display: flex; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid #edf0ee; margin-top: 10px; }
.tzy-chat-human a { font-size: 12px; color: var(--chat-green); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.tzy-chat-human .tzy-chat-copy { margin-left: auto; }
.tzy-chat-note { font-size: 10px; line-height: 1.5; color: var(--chat-muted); margin: 6px 0 0; }
@media (max-width: 600px) {
  .tzy-assistant { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
  .tzy-chat-launcher { width: 50px; height: 50px; }
  .tzy-chat-panel { position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); top: auto; width: auto; max-width: none; height: min(690px, calc(100dvh - 24px)); max-height: calc(100dvh - 24px); }
  .tzy-assistant[data-open="true"] .tzy-chat-launcher { visibility: hidden; }
  .tzy-chat-header { padding: 12px; }
  .tzy-chat-bottom { padding: 10px 12px; }
  .tzy-chat-feed { padding: 16px 12px; }
}
@media (max-height: 510px) {
  .tzy-chat-panel { bottom: 8px; max-height: calc(100dvh - 16px); }
  .tzy-chat-header { padding-block: 8px; }
  .tzy-chat-bottom { padding-block: 8px; }
  .tzy-chat-note, .tzy-chat-limit { display: none; }
}
