* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #f5f7fb;
  color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.app7 {
  width: 100%;
  max-width: 480px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  border-radius: 18px;
  overflow: hidden;
}

.header7 {
  padding: 18px 20px;
  background: linear-gradient(135deg,#1b4f9c,#0f2b57);
  color: #fff;
  text-align: center;
}

.header-main7 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .5px;
}

.header-sub7 {
  margin-top: 4px;
  font-size: 13px;
  opacity: .85;
}

.screen7 {
  padding: 22px 20px 18px;
  display: none;
}

.screen7.active7 {
  display: block;
}

.content7 {
  margin-top: 18px;
}

.label7 {
  font-size: 13px;
  margin-bottom: 6px;
  color: #444;
}

.input7 {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d0d5e4;
  font-size: 14px;
  direction: ltr;
  text-align: left;
  transition: .2s border-color, .2s box-shadow;
  background: #fafbff;
}

.input7:focus {
  outline: none;
  border-color: #1b4f9c;
  box-shadow: 0 0 0 2px rgba(27,79,156,.15);
  background: #fff;
}

.btn7 {
  width: 100%;
  margin-top: 16px;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  background: #1b4f9c;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s background,.2s transform,.1s box-shadow;
  box-shadow: 0 6px 14px rgba(27,79,156,.25);
}

.btn7:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(27,79,156,.25);
}

.btn7[disabled] {
  opacity: .6;
  cursor: default;
  box-shadow: none;
}

.hint7 {
  margin-top: 10px;
  font-size: 12px;
  color: #777;
}

.error7 {
  margin-top: 10px;
  font-size: 12px;
  color: #c0392b;
}

/* chat */

.chat-header7 {
  padding: 10px 14px;
  border-bottom: 1px solid #e1e4f0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #f7f8fc;
}

.chat-title-row7 {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.chat-title7 {
  font-size: 16px;
  font-weight: 700;
  color: #1b2640;
}

.chat-brand7 {
  font-size: 11px;
  color: #6b7280;
}

.chat-support-name7 {
  font-size: 11px;
  color: #9ca3af;
}

.chat-body7 {
  height: 380px;
  max-height: 60vh;
  padding: 12px 10px 10px;
  overflow-y: auto;
  background: #f3f4fb;
}

.msg-row7 {
  display: flex;
  margin-bottom: 8px;
}

.msg-row7.user7 {
  justify-content: flex-start;
}

.msg-row7.support7 {
  justify-content: flex-end;
}

.msg7 {
  max-width: 75%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.msg7.user7 {
  background: #ffffff;
  border: 1px solid #e0e4f5;
  border-bottom-right-radius: 2px;
}

.msg7.support7 {
  background: #1b4f9c;
  color: #fff;
  border-bottom-left-radius: 2px;
}

.msg-time7 {
  font-size: 10px;
  opacity: .7;
  margin-top: 2px;
  text-align: left;
  direction: ltr;
}

.chat-input-area7 {
  border-top: 1px solid #e1e4f0;
  padding: 8px 10px;
  background: #fff;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chat-text7 {
  flex: 1;
  min-height: 40px;
  max-height: 90px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #d0d5e4;
  font-size: 13px;
  resize: none;
  background: #fafbff;
}

.chat-text7:focus {
  outline: none;
  border-color: #1b4f9c;
  box-shadow: 0 0 0 2px rgba(27,79,156,.12);
  background: #fff;
}

.chat-send-btn7 {
  width: 80px;
  padding: 9px 0;
  border: none;
  border-radius: 10px;
  background: #1b4f9c;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send-btn7:active {
  transform: translateY(1px);
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  .app7 {
    border-radius: 16px;
  }
  .chat-body7 {
    height: 360px;
  }
}