/* белая страница, никаких зависимостей */
html, body { height: 100%; margin: 0; }
body { font-family: Arial, Helvetica, sans-serif; background: #fff; color: #111; }

.ec-page {
  min-height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.ec-card {
  width: 980px;
  max-width: 100%;
  height: calc(100vh - 32px);
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.ec-header {
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid #eee;
}

.ec-title { font-weight: bold; font-size: 16px; }
.ec-sub { font-size: 12px; color: #666; margin-top: 4px; }

.ec-body {
  flex: 1;
  overflow: auto;
  padding: 14px;
  background: #fff;
}

.ec-msg { margin: 0 0 10px 0; display: flex; }
.ec-msg.user { justify-content: flex-end; }
.ec-bubble {
  max-width: 78%;
  padding: 10px 11px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.ec-msg.user .ec-bubble { background: #111; color: #fff; border-top-right-radius: 4px; }
.ec-msg.assistant .ec-bubble { background: #f3f4f6; color: #111; border-top-left-radius: 4px; }

.ec-foot {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #eee;
  background: #fff;
}

.ec-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 11px;
  font-size: 13px;
  outline: none;
}

.ec-send {
  border: 0;
  background: #111;
  color: #fff;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  cursor: pointer;
}

.ec-send:disabled { opacity: .5; cursor: default; }

.ec-hint {
  padding: 10px 14px;
  border-top: 1px solid #f2f2f2;
  font-size: 12px;
  color: #777;
}
