.usc-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: #142033;
}
.usc-toggle {
  appearance: none;
  border: 0;
  background: #142033;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(20, 32, 51, 0.28);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.usc-toggle:hover { background: #1c2c44; }
.usc-panel {
  display: none;
  width: min(360px, calc(100vw - 28px));
  background: #fff;
  border: 1px solid #d8deea;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(20, 32, 51, 0.18);
  overflow: hidden;
  margin-bottom: 10px;
}
.usc-root.is-open .usc-panel { display: flex; flex-direction: column; }
.usc-root.is-open .usc-toggle { display: none; }
.usc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #142033;
  color: #fff;
  font-weight: 650;
}
.usc-head button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  opacity: 0.85;
}
.usc-log {
  max-height: 400px;
  overflow: auto;
  padding: 12px;
  background: #f6f7fa;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.usc-msg {
  padding: 8px 10px;
  border-radius: 10px;
  max-width: 92%;
  white-space: pre-wrap;
}
.usc-msg.is-you {
  align-self: flex-end;
  background: #142033;
  color: #fff;
}
.usc-msg.is-site {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #d8deea;
}
.usc-msg.is-wait { color: #5a6578; border-style: dashed; }
.usc-form {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid #e6eaf1;
  background: #fff;
}
.usc-form textarea {
  flex: 1;
  min-height: 42px;
  max-height: 90px;
  resize: none;
  border: 1px solid #c9d1de;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}
.usc-form button {
  appearance: none;
  border: 0;
  background: #c45c26;
  color: #fff;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.usc-form button:disabled { opacity: 0.55; cursor: default; }
@media (max-width: 520px) {
  .usc-root { right: 10px; bottom: 10px; }
}
