#ortho-chat-bubble {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  background: #111;
  color: #fff;
  font-size: 22px;
}

#ortho-chat-panel {
  position: fixed;
  right: 18px;
  bottom: 86px;
  width: 360px;
  max-width: calc(100vw - 36px);
  height: 520px;
  max-height: calc(100vh - 120px);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(0,0,0,.22);
  overflow: hidden;
  display: none;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,.08);
}

#ortho-chat-header {
  padding: 12px 14px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#ortho-chat-title { font: 600 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto; }
#ortho-chat-sub { font: 400 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto; opacity: .85; }

#ortho-chat-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

#ortho-chat-messages {
  padding: 12px;
  overflow: auto;
  flex: 1;
  background: #fafafa;
}

.msg {
  margin: 10px 0;
  display: flex;
}

.msg.user { justify-content: flex-end; }
.msg.bot { justify-content: flex-start; }

.bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  font: 400 13px/1.4 system-ui, -apple-system, Segoe UI, Roboto;
  white-space: pre-wrap;
}

.msg.user .bubble { background: #111; color: #fff; border-bottom-right-radius: 4px; }
.msg.bot .bubble { background: #fff; color: #111; border: 1px solid rgba(0,0,0,.08); border-bottom-left-radius: 4px; }

#ortho-chat-inputbar {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.08);
}

#ortho-chat-input {
  flex: 1;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 12px;
  padding: 10px 12px;
  font: 400 13px/1.2 system-ui, -apple-system, Segoe UI, Roboto;
  outline: none;
}

#ortho-chat-send {
  border: none;
  background: #111;
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font: 600 13px/1.2 system-ui, -apple-system, Segoe UI, Roboto;
}

.smallhint {
  padding: 10px 12px;
  font: 400 11px/1.2 system-ui, -apple-system, Segoe UI, Roboto;
  color: rgba(0,0,0,.65);
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;
}
