.hsqq {
  --hsqq-ink: #192c30;
  --hsqq-teal: #176b64;
  --hsqq-muted: #687a7d;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 48px;
  max-width: 1160px;
  margin: 36px auto;
  padding: 38px;
  background: #f3f6f3;
  border-radius: 22px;
  color: var(--hsqq-ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.hsqq *, .hsqq *::before, .hsqq *::after { box-sizing: border-box; }
.hsqq button, .hsqq input, .hsqq textarea { font: inherit; }
.hsqq button { cursor: pointer; transition: background .15s; }
.hsqq button:disabled { cursor: not-allowed; opacity: .55; }
.hsqq button:focus-visible, .hsqq a:focus-visible {
  outline: 3px solid #a4c8bf;
  outline-offset: 3px;
}
.hsqq-intro { display: flex; flex-direction: column; padding: 12px 0; }
.hsqq-brand { display: flex; align-items: center; gap: 14px; color: var(--hsqq-teal); text-decoration: none; font-weight: 800; font-size: 27px; letter-spacing: 2px; }
.hsqq-brand span { color: var(--hsqq-ink); font-size: 15px; letter-spacing: 1px; font-weight: 600; border-left: 1px solid #cbd7d3; padding-left: 14px; }
.hsqq-eyebrow { margin-top: 55px; color: var(--hsqq-teal); font-size: 11px; letter-spacing: 2px; font-weight: 700; }
.hsqq h1 { margin: 16px 0 22px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.4; color: var(--hsqq-ink); font-weight: 700; letter-spacing: -1px; }
.hsqq-intro > p { margin: 0; color: var(--hsqq-muted); line-height: 1.9; }
.hsqq-topics { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hsqq-topics span { border: 1px solid #ccd9d4; border-radius: 30px; padding: 5px 13px; color: #506963; font-size: 12px; }
.hsqq-service-note { margin-top: auto; padding-top: 50px; }
.hsqq-service-note strong { font-size: 14px; }
.hsqq-service-note p { margin: 6px 0 22px; font-size: 12px; color: var(--hsqq-muted); max-width: 310px; }
.hsqq-intro small { font-size: 11px; color: var(--hsqq-muted); }
.hsqq-panel { min-width: 0; display: flex; flex-direction: column; background: white; border: 1px solid #e0e8e4; border-radius: 18px; overflow: hidden; box-shadow: 0 12px 35px #213e3610; }
.hsqq-header { display: flex; align-items: center; gap: 13px; padding: 22px 24px; border-bottom: 1px solid #eef1ee; }
.hsqq-avatar { flex: 0 0 42px; height: 42px; border-radius: 13px; background: var(--hsqq-teal); color: white; display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.hsqq-header h2 { font-size: 15px; color: var(--hsqq-ink); margin: 0 0 3px; line-height: 1.5; }
.hsqq-header p { color: var(--hsqq-muted); font-size: 11px; margin: 0; }
.hsqq-header i { display: inline-block; width: 6px; height: 6px; background: #b8944a; border-radius: 50%; margin-right: 6px; }
.hsqq-header .is-online i { background: #338773; }
.hsqq-channel { margin-left: auto; font-size: 10px; color: var(--hsqq-muted); white-space: nowrap; }
.hsqq-notice { padding: 8px 24px; font-size: 11px; color: #7c652e; background: #fcf8ed; border-bottom: 1px solid #f2ebd7; }
.hsqq-messages { height: 330px; min-height: 250px; overflow-y: auto; padding: 22px 24px; overscroll-behavior: contain; scroll-behavior: auto; }
.hsqq-welcome { padding-top: 20px; }
.hsqq-welcome-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; font-size: 12px; color: var(--hsqq-teal); background: #eaf3ee; }
.hsqq-welcome h3 { font-size: 18px; margin: 17px 0 8px; color: var(--hsqq-ink); }
.hsqq-welcome p { font-size: 12px; color: var(--hsqq-muted); margin: 0 0 20px; }
.hsqq-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.hsqq-suggestions button { background: white; border: 1px solid #dce5df; color: #425e56; border-radius: 8px; padding: 7px 10px; font-size: 12px; }
.hsqq-suggestions button:hover { background: #eef6f0; }
.hsqq-message { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 18px; }
.hsqq-message.is-own { align-items: flex-end; }
.hsqq-message-label { font-size: 10px; color: var(--hsqq-muted); margin: 0 3px 5px; }
.hsqq-bubble { max-width: 88%; padding: 11px 14px; border-radius: 3px 12px 12px; background: #eff3ef; color: #28463e; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.hsqq-message.is-own .hsqq-bubble { background: var(--hsqq-teal); color: white; border-radius: 12px 3px 12px 12px; }
.hsqq-message time { font-size: 9px; margin-top: 5px; color: var(--hsqq-muted); }
.hsqq-composer { border-top: 1px solid #e8ede9; padding: 15px 20px 13px; background: white; margin: 0; }
.hsqq-name { display: flex; align-items: center; gap: 10px; font-size: 10px; color: var(--hsqq-muted); margin-bottom: 10px; }
.hsqq-name input { min-width: 0; flex: 1; border: 0; background: #f5f7f5; border-radius: 5px; padding: 5px 9px; font-size: 11px; color: var(--hsqq-ink); }
.hsqq-composer textarea { display: block; width: 100%; border: 0; background: white; padding: 4px 0; resize: vertical; min-height: 65px; max-height: 180px; color: var(--hsqq-ink); box-shadow: none; font-size: 13px; line-height: 1.6; }
.hsqq-composer textarea:focus { outline: 2px solid #b6d1c6; outline-offset: 3px; }
.hsqq input:focus { outline: 2px solid #b6d1c6; }
.hsqq textarea::placeholder, .hsqq input::placeholder { color: #8e9c95; }
.hsqq-compose-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.hsqq-compose-bottom > span { font-size: 9px; color: var(--hsqq-muted); }
.hsqq-compose-bottom button { flex-shrink: 0; background: var(--hsqq-teal); color: white; border: 0; padding: 9px 16px; border-radius: 7px; font-size: 12px; }
.hsqq-compose-bottom button:hover { background: #10564f; }
.hsqq-compose-bottom button span { margin-left: 12px; }
.hsqq-error { margin: 8px 0 0; color: #ad342f; font-size: 12px; }
.hsqq-error:empty { display: none; }
.hsqq-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 20px; border-top: 1px solid #edf0ec; background: #fafbf9; font-size: 9px; color: var(--hsqq-muted); }
.hsqq-footer button { border: 0; padding: 0; background: transparent; color: var(--hsqq-teal); font-size: 10px; white-space: nowrap; }
.hsqq-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hsqq-admin { max-width: 1400px; margin: 20px 0; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); gap: 24px; padding: 22px; }
.hsqq-admin .hsqq-messages { height: 450px; }
.hsqq-inbox { min-width: 0; }
.hsqq-inbox-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hsqq-inbox h2 { font-size: 16px; margin: 0; }
.hsqq-inbox-heading label { font-size: 12px; }
.hsqq-inbox-note { font-size: 11px; color: var(--hsqq-muted); margin: 15px 0; }
.hsqq-inbox [data-conversations] { max-height: 555px; overflow-y: auto; }
.hsqq-conversation { display: flex; flex-direction: column; width: 100%; text-align: left; padding: 14px; margin: 0 0 9px; border: 1px solid #dfe8e0; border-radius: 9px; background: white; color: var(--hsqq-ink); }
.hsqq-conversation.is-selected { border-color: var(--hsqq-teal); background: #e4efe7; }
.hsqq-conversation span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--hsqq-muted); margin: 4px 0; }
.hsqq-conversation small { font-size: 10px; color: var(--hsqq-muted); }
.hsqq-empty { color: var(--hsqq-muted); font-size: 13px; }
.hsqq-widget { position: relative; z-index: 1100; font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
.hsqq-widget-window[hidden] { display: none !important; }
.hsqq-launch {
  border: 0; background: #176b64; color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 12px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  box-shadow: 0 5px 20px #153c3026;
}
.hsqq-launch:hover { background: #10564f; color: white; }
.hsqq-launch:focus-visible, .hsqq-widget-bar button:focus-visible { outline: 3px solid #90bcac; outline-offset: 3px; }
.hsqq-floating-launch { position: fixed; right: 24px; bottom: 84px; z-index: 1100; border-radius: 11px; padding: 12px 16px; }
.hsqq-launch-avatar { display: block; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; object-fit: cover; border: 2px solid #ffffffc9; }
.hsqq-launch-label { display: flex; flex-direction: column; white-space: nowrap; text-align: left; }
.hsqq-launch-label strong { font-size: 12px; font-weight: 600; }
.hsqq-launch-label small { font-size: 10px; opacity: .85; }
.hsqq-widget-window { position: fixed; right: 110px; bottom: 70px; width: 410px; max-width: calc(100% - 32px); height: min(620px, calc(100dvh - 110px)); z-index: 1101; overflow: hidden; border-radius: 14px; border: 1px solid #dbe5dd; box-shadow: 0 15px 60px #152e302e; background: white; }
.hsqq-widget-bar { display: flex; align-items: center; justify-content: space-between; height: 39px; padding: 0 16px; background: #176b64; color: white; }
.hsqq-widget-bar small { font-size: 10px; font-weight: normal; opacity: .8; margin-left: 8px; }
.hsqq-widget-bar button { background: transparent; color: white; border: 0; padding: 5px; cursor: pointer; font: inherit; font-size: 11px; }
.hsqq-widget .hsqq { display: block; max-width: none; height: calc(100% - 39px); margin: 0; padding: 0; background: white; border-radius: 0; }
.hsqq-widget .hsqq-intro { display: none; }
.hsqq-widget .hsqq-panel { height: 100%; border: 0; border-radius: 0; box-shadow: none; overflow-y: auto; }
.hsqq-widget .hsqq-header { padding: 13px 16px; flex-shrink: 0; }
.hsqq-widget .hsqq-notice { padding: 7px 16px; flex-shrink: 0; }
.hsqq-widget .hsqq-messages { flex: 1; height: auto; min-height: 80px; padding: 18px 16px; }
.hsqq-widget .hsqq-welcome { padding-top: 5px; }
.hsqq-widget .hsqq-welcome h3 { font-size: 16px; }
.hsqq-widget .hsqq-composer { flex-shrink: 0; padding: 12px 16px; }
.hsqq-widget .hsqq-footer { flex-shrink: 0; }
.side.hsqq-with-chat { --hsqq-launch-width: 54px; display: block !important; position: fixed; width: 54px; height: auto; right: 24px; bottom: 78px; z-index: 1100; }
.side.hsqq-with-chat > ul { display: flex; flex-direction: column; width: 54px; padding: 0; margin: 0; list-style: none; }
.side.hsqq-with-chat > ul > li { float: none; flex-shrink: 0; }
.side .hsqq-sidebar-item { height: 67px; }
.side .hsqq-sidebar-launch { position: absolute; right: 0; width: 54px; height: 64px; padding: 4px 0; border-radius: 14px 0 0 0; flex-direction: column; gap: 2px; font-size: 10px; z-index: 1; }
.side .hsqq-sidebar-launch .hsqq-launch-avatar { width: 38px; height: 38px; }
.side .hsqq-sidebar-launch .hsqq-launch-label strong { font-size: 9px; }
.side .hsqq-sidebar-launch .hsqq-launch-label small { display: none; }
.side .hsqq-sidebar-launch:hover, .side .hsqq-sidebar-launch:focus-visible { width: 168px; flex-direction: row; gap: 10px; padding: 8px 12px; justify-content: flex-start; }
.side .hsqq-sidebar-launch:hover .hsqq-launch-label strong, .side .hsqq-sidebar-launch:focus-visible .hsqq-launch-label strong { font-size: 12px; }
.side .hsqq-sidebar-launch:hover .hsqq-launch-label small, .side .hsqq-sidebar-launch:focus-visible .hsqq-launch-label small { display: block; }
.hsqq-has-sidebar .hsqq-floating-launch { display: none; }
@media (max-width: 991px) {
  .side.hsqq-with-chat { right: 12px; bottom: 78px; }
  .hsqq-widget-window { right: 78px; bottom: 78px; }
}
@media (max-width: 900px) {
  .hsqq { gap: 24px; padding: 25px; margin: 20px auto; }
  .hsqq-header { padding: 18px; }
  .hsqq-channel { display: none; }
}
@media (max-width: 680px) {
  .hsqq { grid-template-columns: minmax(0, 1fr); border-radius: 12px; padding: 16px; gap: 22px; margin: 12px auto; }
  .hsqq-intro { padding: 0 2px; }
  .hsqq-brand { font-size: 22px; }
  .hsqq-eyebrow { margin-top: 25px; }
  .hsqq h1 { font-size: 30px; margin: 10px 0 14px; }
  .hsqq-intro > p { font-size: 13px; }
  .hsqq-topics { margin-top: 14px; }
  .hsqq-service-note { padding-top: 20px; }
  .hsqq-service-note p { margin-bottom: 10px; max-width: none; }
  .hsqq-intro small { font-size: 10px; }
  .hsqq-panel { border-radius: 12px; }
  .hsqq-header { padding: 15px; }
  .hsqq-header h2 { font-size: 14px; }
  .hsqq-notice { padding: 8px 15px; font-size: 10px; }
  .hsqq-messages { padding: 20px 15px; height: 315px; }
  .hsqq-composer { padding: 14px; }
  .hsqq-footer { padding: 10px 14px; gap: 8px; }
  .hsqq-admin .hsqq-messages { height: 350px; }
  .hsqq-inbox [data-conversations] { max-height: 210px; }
  .hsqq-floating-launch { right: 12px; padding: 11px 13px; font-size: 11px; }
  .side.hsqq-with-chat, .side.hsqq-with-chat > ul { width: 44px; }
  .side.hsqq-with-chat { --hsqq-launch-width: 44px; right: 8px; }
  .side.hsqq-with-chat > ul > li { width: 44px; height: 44px; }
  .side.hsqq-with-chat > ul > .hsqq-sidebar-item { height: 58px; }
  .side.hsqq-with-chat .sidebox, .side.hsqq-with-chat .sidetop { width: 44px !important; height: 44px; line-height: 44px; }
  .side.hsqq-with-chat img:not(.hsqq-launch-avatar) { width: 44px; height: 44px; }
  .side.hsqq-with-chat .hsqq-sidebar-launch { width: 44px; height: 56px; }
  .side.hsqq-with-chat .hsqq-launch-avatar { width: 34px; height: 34px; }
  .side.hsqq-with-chat .hsqq-sidebar-launch:hover, .side.hsqq-with-chat .hsqq-sidebar-launch:focus-visible { width: 155px; }
  .hsqq-widget-window { right: 62px; width: calc(100% - 74px); max-width: none; bottom: 78px; height: min(610px, calc(100dvh - 108px)); }
  .hsqq-widget .hsqq-composer textarea { min-height: 58px; max-height: 100px; }
  .hsqq-widget .hsqq-messages { min-height: 70px; }
  .hsqq-widget .hsqq-header h2 { font-size: 13px; }
  .hsqq-widget:not(.hsqq-has-sidebar) .hsqq-widget-window { right: 12px; width: calc(100% - 24px); }
}
@media (max-height: 480px) {
  .side.hsqq-with-chat { bottom: 64px; }
  .side.hsqq-with-chat > ul > li { height: 34px; }
  .side.hsqq-with-chat > ul > .hsqq-sidebar-item { height: 48px; }
  .side.hsqq-with-chat .sidebox, .side.hsqq-with-chat .sidetop { height: 34px; line-height: 34px; }
  .side.hsqq-with-chat img:not(.hsqq-launch-avatar) { height: 34px; width: 34px; }
  .side.hsqq-with-chat .hsqq-sidebar-launch { height: 46px; }
  .side.hsqq-with-chat .hsqq-launch-avatar { width: 28px; height: 28px; }
  .hsqq-widget-window { bottom: 64px; height: calc(100dvh - 84px); }
}
.side.hsqq-with-chat .hsqq-sidebar-launch[aria-expanded="true"] {
  width: var(--hsqq-launch-width); flex-direction: column; gap: 2px; padding: 4px 0;
}
.side.hsqq-with-chat .hsqq-sidebar-launch[aria-expanded="true"] .hsqq-launch-label strong { font-size: 9px; }
.side.hsqq-with-chat .hsqq-sidebar-launch[aria-expanded="true"] .hsqq-launch-label small { display: none; }
