.chat-locked {
  max-width: 650px;
  text-align: center;
  padding: 42px 28px;
}
.chat-locked h2 { margin: 8px 0; }
.chat-locked p { color: #536478; line-height: 1.6; }
.chat-lock-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: #e6f4ed;
  color: #046341;
  font-size: 36px;
}
.chat-guidelines { padding: 14px 18px; margin-bottom: 16px; }
.chat-guidelines p { margin: 4px 0 0; color: #536478; }
.chat-layout {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.chat-layout.single { grid-template-columns: minmax(0, 1fr); }
.chat-page-settings { max-width: 600px; }
.chat-page-settings .chat-widget-settings { padding: 0; }
.chat-selected-rooms { display: flex; gap: 8px; overflow-x: auto; padding: 11px 14px; border-bottom: 1px solid #e1e9e5; }
.chat-selected-room { flex: none; min-height: 36px; padding: 7px 12px; border: 1px solid #d7e3dd; border-radius: 999px; background: #fff; color: #29483a; font: inherit; font-size: 13px; cursor: pointer; }
.chat-selected-room:hover, .chat-selected-room:focus-visible { border-color: #0b7951; background: #f0f8f3; }
.chat-selected-room.active { border-color: #0b7951; background: #e5f4ec; color: #06492f; font-weight: 700; }
.chat-rooms,
.chat-conversation,
.chat-reports {
  border: 1px solid #dce5e7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 43, 54, .04);
}
.chat-rooms { padding: 16px; }
.chat-rooms h2 { margin: 0 0 12px; font-size: 17px; }
.chat-room {
  display: block;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #25384b;
  padding: 11px 12px;
  margin: 3px 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.chat-room:hover,
.chat-room:focus-visible { background: #f0f7f3; }
.chat-room.active { background: #e5f4ec; border-color: #b9dfca; color: #06492f; font-weight: 700; }
.chat-conversation { min-width: 0; overflow: hidden; }
.chat-conversation-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid #e7edef;
}
.chat-conversation-head h2 { margin: 0; font-size: 18px; }
.chat-conversation-head span { color: #657586; font-size: 12px; }
.chat-messages {
  height: min(52vh, 510px);
  min-height: 300px;
  overflow-y: auto;
  padding: 14px 18px;
  background: #f8fafb;
}
.chat-empty { padding: 32px 18px; color: #596a78; text-align: center; }
.chat-message {
  max-width: 85%;
  width: fit-content;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #dce5e7;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
}
.chat-message.own {
  margin-left: auto;
  border-color: #cce6d6;
  border-radius: 14px 14px 4px 14px;
  background: #eef9f2;
}
.chat-message-meta { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 12px; }
.chat-message-meta strong { color: #06492f; }
.chat-team { padding: 2px 6px; border-radius: 5px; background: #e4f1ff; color: #174c83; font-weight: 700; }
.chat-message-meta time { color: #637789; }
.chat-message p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 7px 0; line-height: 1.5; }
.chat-message-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.chat-message-actions .btn { padding: 3px 8px; font-size: 11px; }
.chat-composer { padding: 14px 18px 18px; border-top: 1px solid #e7edef; }
.chat-composer label { display: block; margin-bottom: 6px; font-weight: 700; }
.chat-composer textarea { box-sizing: border-box; width: 100%; resize: vertical; min-height: 72px; }
.chat-composer-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.chat-composer-actions small { color: #607282; }
.chat-reports { margin-top: 18px; padding: 15px 18px; }
.chat-reports summary { cursor: pointer; font-weight: 700; }
.chat-report { border-top: 1px solid #e2e9eb; padding: 12px 0; }
.chat-report p { margin: 5px 0; white-space: pre-wrap; }
.chat-report small { display: block; color: #657586; margin-bottom: 8px; }
@media (max-width: 760px) {
  .chat-layout { grid-template-columns: 1fr; }
  .chat-rooms { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
  .chat-rooms h2 { width: 100%; margin-bottom: 2px; }
  .chat-room { width: auto; margin: 0; }
  .chat-message { max-width: 94%; }
  .chat-messages { height: 44vh; }
}
.chat-float-actions {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-float-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #075a3d;
  box-shadow: 0 8px 25px rgba(0, 46, 31, .3);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.chat-float-button svg { width: 25px; height: 25px; flex: none; }
.chat-float-button:hover { background: #06472f; transform: translateY(-2px); }
.chat-float-button:focus-visible, .chat-widget-close:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
.chat-float-button[aria-expanded="true"] { border-radius: 50%; width: 58px; padding: 0; }
.chat-float-button[aria-expanded="true"] .chat-float-label { display: none; }
.suggestion-float-button { padding: 7px 17px; background: #fff8e8; color: #63410b; border: 1px solid #e8bd59; box-shadow: 0 8px 25px rgba(89, 57, 0, .19); }
.suggestion-float-button:hover { background: #ffedc4; }
.suggestion-float-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.12; text-align: left; white-space: nowrap; }
.suggestion-float-copy strong { font-size: 14px; }
.suggestion-float-copy small { font-size: 11px; font-weight: 650; }
.suggestion-form { display: grid; gap: 9px; }
.suggestion-form label { font-weight: 750; color: #17372b; }
.suggestion-form textarea { width: 100%; min-height: 130px; resize: vertical; }
.suggestion-form small { color: #607282; }
.suggestion-form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 10px; }
.suggestion-offer { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 0 0 18px; padding: 25px 28px; border-radius: 17px; background: linear-gradient(115deg,#064a36,#0a875d); color: #fff; }
.suggestion-offer .eyebrow { color: #baf3d5; }
.suggestion-offer h2 { margin: 4px 0 7px; font-size: clamp(20px,2.3vw,27px); }
.suggestion-offer p { max-width: 750px; margin: 0; line-height: 1.5; }
.suggestion-offer .btn.primary { flex: none; background: #fff; border-color: #fff; color: #075a3d; }
.suggestion-offer .btn.primary:hover { background: #eaf8f0; }
.suggestion-offer-modal { padding: 15px 18px; margin: 0 0 13px; border: 1px solid #b7dfca; border-radius: 12px; background: #eefaf3; }
.suggestion-offer-modal p { margin: 7px 0; line-height: 1.5; }
.suggestion-offer-modal ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.55; }
.suggestion-history { margin-top: 18px; padding-top: 13px; border-top: 1px solid #e2eae6; }
.suggestion-history h3 { margin: 0 0 9px; font-size: 15px; }
.suggestion-history p { margin: 8px 0; font-size: 13px; line-height: 1.45; }
.suggestion-prizes h2 { margin-bottom: 13px; }
.suggestion-prize { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid #e1eae5; }
.suggestion-prize h3 { margin: 7px 0 5px; }
.suggestion-prize p { margin: 0 0 7px; color: #536478; }
.suggestion-prize small { color: #607282; }
.suggestion-prize .btn { flex: none; }
.suggestion-result h2 { margin: 6px 0 15px; }
.suggestion-result h3 { margin: 19px 0 10px; }
.suggestion-result ol { padding-left: 23px; line-height: 1.55; }
.suggestion-result li { margin-bottom: 7px; }
.suggestion-result-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.suggestion-result-metrics > div { display: grid; gap: 3px; padding: 13px; border: 1px solid #dce9e1; border-radius: 10px; background: #f6fbf8; }
.suggestion-result-metrics strong { font-size: 22px; color: #075a3d; }
.suggestion-result-metrics span { color: #536478; font-size: 12px; }
.suggestion-result-areas { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.suggestion-result-areas > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #e1eae5; border-radius: 9px; }
.suggestion-result-areas span { color: #536478; white-space: nowrap; }
.chat-widget {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(max(24px, env(safe-area-inset-bottom)) + 70px);
  z-index: 40;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: min(410px, calc(100vw - 32px));
  max-height: min(690px, calc(100dvh - 110px));
  overflow: hidden;
  border: 1px solid #cfded6;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 14px 48px rgba(12, 35, 29, .25);
}
.chat-widget-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 17px; background: #075a3d; color: #fff; }
.chat-widget-head strong { font-size: 16px; }
.chat-widget-head-actions { display: flex; gap: 7px; }
.chat-widget-close, .chat-widget-settings-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.45); border-radius: 9px; background: transparent; color: #fff; font-family: inherit; font-size: 24px; cursor: pointer; }
.chat-widget-settings-button svg { width: 21px; height: 21px; }
.chat-widget-settings-button:hover, .chat-widget-close:hover { background: rgba(255,255,255,.16); }
.chat-widget-body { min-height: 0; overflow: auto; }
.chat-widget-settings { padding: 19px; }
.chat-widget-settings h3 { margin: 0 0 7px; color: #17372b; font-size: 18px; }
.chat-widget-settings p { margin: 0 0 15px; color: #526777; line-height: 1.45; }
.chat-widget-settings-list { display: grid; gap: 8px; }
.chat-widget-setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 45px; padding: 9px 12px; border: 1px solid #d7e3dd; border-radius: 9px; background: #fff; color: #203a30; font: inherit; text-align: left; cursor: pointer; }
.chat-widget-setting:hover, .chat-widget-setting:focus-visible { border-color: #0b7951; background: #f0f8f3; }
.chat-widget-setting.active { border-color: #0b7951; background: #e5f4ec; color: #06492f; font-weight: 700; }
.chat-widget-settings small { display: block; margin-top: 12px; color: #607282; }
.chat-widget-locked { padding: 28px 22px; text-align: center; }
.chat-widget-locked h3 { margin: 0 0 10px; }
.chat-widget-locked p { color: #526777; line-height: 1.5; }
.chat-widget .chat-conversation-head { padding: 11px 14px; }
.chat-widget .chat-messages { height: min(330px, 38dvh); min-height: 140px; padding: 12px; }
.chat-widget .chat-message { max-width: 95%; }
.chat-widget .chat-composer { padding: 10px 12px 12px; }
.chat-widget .chat-composer textarea { min-height: 62px; }
.chat-widget .chat-composer-actions { align-items: end; }
.chat-widget .chat-composer-actions small { font-size: 10px; }
@media (max-width: 480px) {
  .chat-float-actions { left: 12px; right: 12px; bottom: max(16px, env(safe-area-inset-bottom)); justify-content: flex-end; gap: 8px; }
  .chat-float-button { min-height: 52px; padding: 0 13px; font-size: 13px; }
  .chat-float-button svg { width: 21px; height: 21px; }
  .suggestion-float-button { min-width: 0; padding: 6px 11px; }
  .suggestion-float-copy strong { font-size: 12px; }
  .suggestion-float-copy small { font-size: 10px; }
  .chat-widget { right: 16px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px); max-height: calc(100dvh - 100px); }
}
@media (max-width: 620px) {
  .suggestion-offer,.suggestion-prize { align-items: stretch; flex-direction: column; }
  .suggestion-offer { padding: 21px 19px; }
  .suggestion-result-metrics,.suggestion-result-areas { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .suggestion-result-areas > div { display: grid; gap: 2px; }
}
